<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>org.dataone</groupId> <artifactId>d1_common_java</artifactId> <packaging>jar</packaging> <version>2.4.0-SNAPSHOT</version> <name>DataONE_Common_Java</name> <url>http://dataone.org</url> <description>DataONE Common Code with Service Interface Definitions</description> <properties> <d1_test_resources.version>2.4.0-SNAPSHOT</d1_test_resources.version> <compiler.target.version>1.7</compiler.target.version> </properties> <build> <directory>target</directory> <sourceDirectory>src/main/java</sourceDirectory> <testSourceDirectory>src/test/java</testSourceDirectory> <outputDirectory>target/main-target</outputDirectory> <testOutputDirectory>target/test-target</testOutputDirectory> <resources> <resource> <directory>src/main/resources</directory> <filtering>true</filtering> <includes> <include>buildInfo/buildInfo.properties</include> </includes> </resource> <resource> <directory>src/main/resources</directory> <filtering>false</filtering> <includes> <include>**/*.*</include> </includes> </resource> </resources> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>1.7</source> <target>${compiler.target.version}</target> </configuration> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>buildnumber-maven-plugin</artifactId> <executions> <execution> <phase>validate</phase> <goals> <goal>create</goal> </goals> </execution> </executions> <configuration> <doCheck>false</doCheck> <doUpdate>false</doUpdate> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> <configuration> <archive> <manifestEntries> <D1-version>${project.version}</D1-version> <D1-SCM-Revision>${buildNumber}</D1-SCM-Revision> <D1-SCM-Branch>${scmBranch}</D1-SCM-Branch> <D1-Build-TimeStamp>${timestamp}</D1-Build-TimeStamp> </manifestEntries> </archive> </configuration> <executions> <!-- make a test resources jar --> <execution> <goals> <goal>test-jar</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-source-plugin</artifactId> <version>2.2.1</version> <executions> <execution> <id>attach-sources</id> <phase>package</phase> <goals> <goal>jar-no-fork</goal> </goals> </execution> </executions> </plugin> <plugin> <artifactId>maven-clean-plugin</artifactId> <configuration> <excludeDefaultDirectories>true</excludeDefaultDirectories> <filesets> <fileset> <directory>${project.build.directory}</directory> <excludes> <exclude>**/*.jar</exclude> <exclude>**/.*</exclude> <exclude>**/.svn/*</exclude> </excludes> <followSymlinks>false</followSymlinks> </fileset> </filesets> </configuration> </plugin> <plugin> <groupId>com.mycila.maven-license-plugin</groupId> <artifactId>maven-license-plugin</artifactId> <configuration> <header>src/license-header.txt</header> </configuration> </plugin> <plugin> <artifactId>maven-javadoc-plugin</artifactId> <version>2.9</version> <executions> <execution> <id>resource-bundles</id> <phase>package</phase> <goals> <!-- produce source artifact for main project sources --> <goal>resource-bundle</goal> </goals> </execution> </executions> <configuration> <!-- <additionalparam>-noqualifier org.dataone.*:java.lang.*</additionalparam> --> <detectOfflineLinks>false</detectOfflineLinks> </configuration> </plugin> </plugins> </build> <repositories> <repository> <id>sonatype.org</id> <url>https://repository.sonatype.org/content/shadows/centralm1</url> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>false</enabled> </snapshots> </repository> <repository> <id>dataone.org</id> <url>http://maven.dataone.org/</url> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>true</enabled> </snapshots> </repository> </repositories> <dependencies> <dependency> <groupId>javax.mail</groupId> <artifactId>mail</artifactId> <version>1.4.1</version> <type>jar</type> <scope>compile</scope> </dependency> <!-- https://mvnrepository.com/artifact/javax.xml.bind/jaxb-api --> <dependency> <groupId>javax.xml.bind</groupId> <artifactId>jaxb-api</artifactId> <version>2.2.3</version> </dependency> <dependency> <groupId>joda-time</groupId> <artifactId>joda-time</artifactId> <version>2.9.9</version> </dependency> <!-- https://mvnrepository.com/artifact/log4j/log4j --> <!-- NOTE: this is the old logging API, upgrade to org.apache.logging.log4j when possible --> <dependency> <groupId>log4j</groupId> <artifactId>log4j</artifactId> <version>1.2.17</version> </dependency> <!-- <dependency> --> <!-- <groupId>org.apache.logging.log4j</groupId> --> <!-- <artifactId>log4j-api</artifactId> --> <!-- <version>2.6.2</version> --> <!-- </dependency> --> <!-- <dependency> --> <!-- <groupId>org.apache.logging.log4j</groupId> --> <!-- <artifactId>log4j-core</artifactId> --> <!-- <version>2.6.2</version> --> <!-- </dependency> --> <dependency> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>2.3.1</version> <type>maven-plugin</type> <scope>compile</scope> </dependency> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.8.2</version> <type>jar</type> <scope>test</scope> </dependency> <dependency> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> <version>2.3.1</version> <type>maven-plugin</type> <scope>compile</scope> <exclusions> <exclusion> <groupId>commons-lang</groupId> <artifactId>commons-lang</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-clean-plugin</artifactId> <version>2.4.1</version> <type>maven-plugin</type> <scope>compile</scope> </dependency> <dependency> <groupId>commons-fileupload</groupId> <artifactId>commons-fileupload</artifactId> <version>1.3.1</version> </dependency> <dependency> <groupId>org.apache.httpcomponents</groupId> <artifactId>httpmime</artifactId> <version>4.3.3</version> </dependency> <dependency> <groupId>org.apache.commons</groupId> <artifactId>commons-collections4</artifactId> <version>4.0</version> </dependency> <dependency> <groupId>org.apache.commons</groupId> <artifactId>commons-lang3</artifactId> <version>3.3.2</version> </dependency> <dependency> <groupId>commons-configuration</groupId> <artifactId>commons-configuration</artifactId> <version>1.7</version> <!-- later versions changes getList() to return List<Object> instead of List<String> so users will need to us getStringArray instead (refactor) --> </dependency> <dependency> <groupId>commons-io</groupId> <artifactId>commons-io</artifactId> <version>2.4</version> </dependency> <dependency> <groupId>commons-beanutils</groupId> <artifactId>commons-beanutils</artifactId> <version>1.9.2</version> </dependency> <dependency> <groupId>javax.servlet</groupId> <artifactId>javax.servlet-api</artifactId> <version>3.0.1</version> <type>jar</type> <scope>provided</scope> </dependency> <!-- <dependency> <groupId>qdox</groupId> <artifactId>qdox</artifactId> <version>1.6.1</version> </dependency> --> <dependency> <groupId>org.dataone</groupId> <artifactId>d1_test_resources</artifactId> <version>${d1_test_resources.version}</version> <type>jar</type> <scope>test</scope> </dependency> </dependencies> <licenses> <license> <name>Apache License, Version 2.0</name> <url>LICENSE.txt</url> </license> </licenses> <scm> <url>https://repository.dataone.org/software/cicore</url> <connection>scm:svn:https://repository.dataone.org/software/cicore</connection> <developerConnection>scm:svn:https://repository.dataone.org/software/cicore</developerConnection> <tag>HEAD</tag> </scm> <reporting> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> </plugin> </plugins> </reporting> </project>