Skip to content

Commit

Permalink
Removed oss-parent and made changes to pom so it can still deploy to …
Browse files Browse the repository at this point in the history
…maven central.
  • Loading branch information
nclarkekb committed Aug 16, 2021
1 parent b231f2c commit 79a68cd
Showing 1 changed file with 79 additions and 62 deletions.
141 changes: 79 additions & 62 deletions pom.xml
Expand Up @@ -3,12 +3,6 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.sonatype.oss</groupId>
<artifactId>oss-parent</artifactId>
<version>7</version>
</parent>

<groupId>org.jwat</groupId>
<artifactId>jwat</artifactId>
<version>1.1.2-SNAPSHOT</version>
Expand Down Expand Up @@ -98,6 +92,7 @@

<maven-compiler-plugin.version>3.8.1</maven-compiler-plugin.version>
<maven-deploy-plugin.version>2.8.2</maven-deploy-plugin.version>
<maven-gpg-plugin.version>3.0.1</maven-gpg-plugin.version>
<maven-javadoc-plugin.version>3.3.0</maven-javadoc-plugin.version>
<maven-release-plugin.version>2.5.3</maven-release-plugin.version>
<maven-site-plugin.version>3.9.1</maven-site-plugin.version>
Expand Down Expand Up @@ -125,6 +120,19 @@
<bug-pattern.version>1.5.0</bug-pattern.version>
</properties>

<distributionManagement>
<snapshotRepository>
<id>ossrh</id>
<!-->url>https://s01.oss.sonatype.org/content/repositories/snapshots</url-->
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
</snapshotRepository>
<repository>
<id>ossrh</id>
<!-->url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url-->
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
</distributionManagement>

<modules>
<module>jwat-common</module>
<module>jwat-archive-common</module>
Expand Down Expand Up @@ -217,62 +225,6 @@
</configuration>
</plugin>

<!-- Generate source jar. (http://maven.apache.org/plugins/maven-source-plugin/usage.html) -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>${maven-source-plugin.version}</version>
<executions>
<execution>
<id>attach-sources</id>
<phase>verify</phase>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>

<!-- Generate javadoc jar. Note: Java 8 (doclint) check has been disabled. -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>${maven-javadoc-plugin.version}</version>
<configuration>
<source>8</source>
<detectJavaApiLink>false</detectJavaApiLink>
<aggregate>true</aggregate>
<linksource>true</linksource>
<quiet>true</quiet>
<!-- Note: This fails with a JVM older than Java 8 -->
<additionalparam>-Xdoclint:none</additionalparam>
</configuration>
<executions>
<execution>
<id>attach-javadocs</id>
<phase>verify</phase>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.1</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>

<!-- Explicitly define maven-deploy-plugin after other to force exec order. -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down Expand Up @@ -711,4 +663,69 @@
-->
</plugins>
</reporting>

<profiles>
<profile>
<id>release</id>
<build>
<plugins>
<!-- Generate source jar. (http://maven.apache.org/plugins/maven-source-plugin/usage.html) -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>${maven-source-plugin.version}</version>
<executions>
<execution>
<id>attach-sources</id>
<phase>verify</phase>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>

<!-- Generate javadoc jar. Note: Java 8 (doclint) check has been disabled. -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>${maven-javadoc-plugin.version}</version>
<configuration>
<source>8</source>
<detectJavaApiLink>false</detectJavaApiLink>
<aggregate>true</aggregate>
<linksource>true</linksource>
<quiet>true</quiet>
<!-- Note: This fails with a JVM older than Java 8 -->
<additionalparam>-Xdoclint:none</additionalparam>
</configuration>
<executions>
<execution>
<id>attach-javadocs</id>
<phase>verify</phase>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>${maven-gpg-plugin.version}</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>

0 comments on commit 79a68cd

Please sign in to comment.