用户工具

站点工具


light4j:logserver

starter nexus issue maven

  • 生成javadoc和source
<build>
  <plugins>
    <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-source-plugin</artifactId>
      <version>2.2.1</version>
      <executions>
        <execution>
          <id>attach-sources</id>
          <goals>
            <goal>jar-no-fork</goal>
          </goals>
        </execution>
      </executions>
    </plugin>
    <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-javadoc-plugin</artifactId>
      <version>2.9.1</version>
      <executions>
        <execution>
          <id>attach-javadocs</id>
          <goals>
            <goal>jar</goal>
          </goals>
        </execution>
      </executions>
    </plugin>
  </plugins>
</build>
<server>
  <id>releases</id>
  <username>yourusername</username>
  <password>yourpassword</password>
</server>
mvn deploy -DaltDeploymentRepository=releases::default::https://s01.oss.sonatype.org/content/repositories/releases/
light4j/logserver.txt · 最后更改: 2021/03/30 17:12 由 admin