Permalink
Browse files

Make POM more complete

Correct groupID: change "edu.ucar.unidata.sruth" to "edu.ucar.unidata".
Correct project URL: change "software" to "projects".
Improve <developer>: change role to "everything"; add timezone.
Add Unidata <repository>.
Replace version ranges in dependencies with single version.
Make slf4j-jdk14 optional.
Add source jar-file.
Add signing of jar files.
Add javadoc plugin.
Add <distributionManagement>.
  • Loading branch information...
1 parent 5143364 commit ebe1791ac9a29a936389018bab4a2ca9752e3e7e @semmerson semmerson committed Apr 25, 2012
Showing with 131 additions and 18 deletions.
  1. +131 −18 pom.xml
View
149 pom.xml
@@ -2,47 +2,70 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <groupId>edu.ucar.unidata.sruth</groupId>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>edu.ucar.unidata</groupId>
<artifactId>sruth</artifactId>
<packaging>jar</packaging>
<version>1.0-SNAPSHOT</version>
<name>Unidata Sruth Data-Distribution Package</name>
- <url>http://www.unidata.ucar.edu/software/sruth</url>
- <description>The Unidata Sruth package is free and open-source software for
- the rapid dissemination of arbitrary files over the Internet. It is
- implemented in Java and integrates a publish/subscribe distribution model with
- an asynchronous, event-driven, peer-to-peer transport mechanism.</description>
+ <url>http://www.unidata.ucar.edu/projects/sruth</url>
+ <description>The Unidata Sruth package is free and open-source software for the rapid dissemination of arbitrary files over the Internet. It is implemented in Java and integrates a publish/subscribe distribution model with an asynchronous, event-driven, peer-to-peer transport mechanism.</description>
<organization>
<name>University Corporation for Atmospheric Research</name>
- <url>http://www.ucar.edu</url></organization>
+ <url>http://www.ucar.edu</url>
+ </organization>
<licenses>
<license>
- <name>Software License</name><url>LICENSE.txt</url>
- </license></licenses>
+ <name>Software License</name>
+ <url>LICENSE.txt</url>
+ </license>
+ </licenses>
<ciManagement>
<system>Jenkins</system>
- <url>http://spock:8080/jenkins/job/Sruth/</url></ciManagement>
+ <url>http://spock:8080/jenkins/job/Sruth/</url>
+ </ciManagement>
<scm>
<connection>scm:git://github.com/Unidata/sruth.git</connection>
<developerConnection>scm:git://github.com/Unidata/sruth.git</developerConnection>
- <url>https://github.com/Unidata/sruth</url></scm>
+ <url>https://github.com/Unidata/sruth</url>
+ </scm>
<issueManagement>
<system>GitHub</system>
- <url>https://github.com/Unidata/sruth/issues</url></issueManagement>
+ <url>https://github.com/Unidata/sruth/issues</url>
+ </issueManagement>
<developers>
<developer>
- <email>emmerson@ucar.edu</email>
<name>Steve Emmerson</name>
+ <email>emmerson@ucar.edu</email>
<organization>Unidata Program Center of the University Corporation for Atmospheric Research</organization>
<organizationUrl>http://www.unidata.ucar.edu</organizationUrl>
<roles>
- <role>Grand High Exalted Poo-Bah</role></roles></developer></developers>
+ <role>everything</role>
+ </roles>
+ <timezone>-6</timezone>
+ </developer>
+ </developers>
+
+ <repositories>
+ <repository>
+ <releases>
+ <enabled>true</enabled>
+ <checksumPolicy>fail</checksumPolicy>
+ </releases>
+ <snapshots>
+ <enabled>false</enabled>
+ </snapshots>
+ <id>UPC-3rd-Party-Repo</id>
+ <name>Unidata Program Center 3rd-Party Maven Repository</name>
+ <url>https://artifacts.unidata.ucar.edu/content/groups/unidata/</url>
+ </repository>
+ </repositories>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
+ <!-- <version>[4.8,5.0)</version> -->
<version>4.8.2</version>
<scope>test</scope>
</dependency>
@@ -54,16 +77,20 @@
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
+ <!-- <version>[1.6.0,2.0)</version> -->
<version>1.6.0</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-jdk14</artifactId>
+ <!-- <version>[1.6.0,2.0]</version> -->
<version>1.6.0</version>
+ <optional>true</optional>
</dependency>
<dependency>
<groupId>org.jdom</groupId>
<artifactId>jdom</artifactId>
+ <!-- <version>[1.1,2.0)</version> -->
<version>1.1</version>
</dependency>
</dependencies>
@@ -106,16 +133,102 @@
</execution>
</executions>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-javadoc-plugin</artifactId>
+ <version>2.8.1</version>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-source-plugin</artifactId>
+ <version>2.1.2</version>
+ <executions>
+ <execution>
+ <id>attach-sources</id>
+ <phase>verify</phase>
+ <goals>
+ <goal>jar-no-fork</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-release-plugin</artifactId>
+ <version>2.2.2</version>
+ <configuration>
+ <!-- Avoid GPG plugin hanging issue -->
+ <mavenExecutorId>forked-path</mavenExecutorId>
+ </configuration>
+ </plugin>
</plugins>
</build>
+
+ <profiles>
+ <profile>
+ <id>release-sign-artifacts</id>
+ <activation>
+ <property>
+ <name>performRelease</name>
+ <value>true</value>
+ </property>
+ </activation>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-gpg-plugin</artifactId>
+ <version>1.4</version>
+ <executions>
+ <execution>
+ <id>sign-artifacts</id>
+ <phase>verify</phase>
+ <goals>
+ <goal>sign</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
+
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
+
<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-project-info-reports-plugin</artifactId>
- <version>2.4</version></plugin></plugins></reporting>
-
-</project>
+ <version>2.4</version>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-javadoc-plugin</artifactId>
+ <version>2.8.1</version>
+ </plugin>
+ </plugins>
+ </reporting>
+
+ <distributionManagement>
+ <repository>
+ <id>unidata-releases</id>
+ <name>Unidata Program Center Maven Release Repository</name>
+ <url>https://artifacts.unidata.ucar.edu/content/repositories/unidata-releases</url>
+ </repository>
+ <snapshotRepository>
+ <id>unidata-snapshots</id>
+ <name>Unidata Program Center Maven Snapshot Repository</name>
+ <url>https://artifacts.unidata.ucar.edu/content/repositories/unidata-snapshots</url>
+ </snapshotRepository>
+ <site>
+ <id>sruth.website</id>
+ <name>Sruth Website</name>
+ <url>file:///web/content/projects/sruth</url>
+ </site>
+ <downloadUrl>http://artifacts.unidata.ucar.edu/content/repositories/unidata-releases</downloadUrl>
+ </distributionManagement>
+</project>

0 comments on commit ebe1791

Please sign in to comment.