blob: 323a19c42ec9443b98d1a8c45c40ada3d2f3a856 [file] [log] [blame]
Andrew Brown3f2521a2015-01-17 22:10:15 -08001<?xml version="1.0" encoding="UTF-8"?>
Andrew Brown454d89f2016-09-02 17:24:21 -07002<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
andrewsbrown249ebb32016-06-10 14:28:55 -07003 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4 <modelVersion>4.0.0</modelVersion>
andrewsbrown68a399f2016-06-10 14:27:59 -07005
andrewsbrown249ebb32016-06-10 14:28:55 -07006 <groupId>com.intel.jndn.utils</groupId>
7 <artifactId>jndn-utils</artifactId>
Andrew Brown9e011a32016-08-29 14:52:15 -07008 <version>1.0.4</version>
Andrew Brownec843052016-09-02 21:26:06 -07009 <prefix>jndn-utils</prefix>
andrewsbrown249ebb32016-06-10 14:28:55 -070010 <description>Collection of tools to simplify synchronous and asynchronous data transfer over the NDN network
11 </description>
12 <url>https://github.com/01org/jndn-utils</url>
13 <packaging>jar</packaging>
andrewsbrown68a399f2016-06-10 14:27:59 -070014
andrewsbrown249ebb32016-06-10 14:28:55 -070015 <licenses>
16 <license>
Andrew Brownec843052016-09-02 21:26:06 -070017 <prefix>LGPL v3</prefix>
andrewsbrown249ebb32016-06-10 14:28:55 -070018 <url>https://www.gnu.org/licenses/lgpl.html</url>
19 </license>
20 </licenses>
andrewsbrown474f2402015-04-07 09:11:30 -070021
andrewsbrown249ebb32016-06-10 14:28:55 -070022 <developers>
23 <developer>
Andrew Brownec843052016-09-02 21:26:06 -070024 <prefix>Andrew Brown</prefix>
andrewsbrown249ebb32016-06-10 14:28:55 -070025 <url>http://github.com/andrewsbrown</url>
26 </developer>
27 </developers>
28
29 <distributionManagement>
30 <snapshotRepository>
31 <id>ossrh</id>
32 <url>https://oss.sonatype.org/content/repositories/snapshots</url>
33 </snapshotRepository>
34 </distributionManagement>
35
36 <scm>
37 <url>https://github.com/01org/jndn-utils</url>
38 <connection>scm:git:git@github.com:01org/jndn-utils.git</connection>
39 <developerConnection>scm:git:git@github.com:01org/jndn-utils.git</developerConnection>
40 </scm>
41
42 <dependencies>
43 <dependency>
44 <groupId>net.named-data</groupId>
45 <artifactId>jndn</artifactId>
46 <version>0.13</version>
47 </dependency>
48 <!-- Test dependencies -->
49 <dependency>
50 <groupId>junit</groupId>
51 <artifactId>junit</artifactId>
52 <version>4.10</version>
53 <scope>test</scope>
54 </dependency>
55 <dependency>
56 <groupId>com.intel.jndn.mock</groupId>
57 <artifactId>jndn-mock</artifactId>
Andrew Brownb2243902016-08-24 16:48:49 -070058 <version>1.1.0</version>
andrewsbrown249ebb32016-06-10 14:28:55 -070059 <scope>test</scope>
60 </dependency>
61 </dependencies>
62
63 <properties>
64 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
65 <maven.compiler.source>1.8</maven.compiler.source>
66 <maven.compiler.target>1.8</maven.compiler.target>
67 </properties>
68
andrewsbrown249ebb32016-06-10 14:28:55 -070069 <profiles>
Andrew Brown454d89f2016-09-02 17:24:21 -070070 <!-- Run `mvn clean package -P sonarqube` to send analyzed code to SonarQube -->
71 <profile>
72 <id>sonarqube</id>
73 <build>
74 <plugins>
75 <plugin>
76 <groupId>org.jacoco</groupId>
77 <artifactId>jacoco-maven-plugin</artifactId>
78 <version>0.7.7.201606060606</version>
79 <executions>
80 <execution>
81 <id>pre-unit-test</id>
82 <goals>
83 <goal>prepare-agent</goal>
84 </goals>
85 </execution>
86 <execution>
87 <id>post-unit-test</id>
88 <phase>test</phase>
89 <goals>
90 <goal>report</goal>
91 </goals>
92 </execution>
93 </executions>
94 </plugin>
95 <plugin>
96 <groupId>org.sonarsource.scanner.maven</groupId>
97 <artifactId>sonar-maven-plugin</artifactId>
98 <version>3.0.2</version>
99 <executions>
100 <execution>
101 <id>scan-with-sonar</id>
102 <phase>prepare-package</phase>
103 <goals>
104 <goal>sonar</goal>
105 </goals>
106 </execution>
107 </executions>
108 </plugin>
109 </plugins>
110 </build>
111 </profile>
112
andrewsbrown249ebb32016-06-10 14:28:55 -0700113 <!-- Use OSSRH-directed plugins (see http://central.sonatype.org/pages/apache-maven.html)
114 for deployment to Maven central; e.g. `mvn deploy -P ossrh`-->
115 <profile>
116 <id>ossrh</id>
117 <build>
118 <plugins>
119 <plugin>
120 <groupId>org.apache.maven.plugins</groupId>
121 <artifactId>maven-source-plugin</artifactId>
122 <version>2.4</version>
123 <executions>
124 <execution>
125 <id>attach-sources</id>
126 <goals>
127 <goal>jar-no-fork</goal>
128 </goals>
129 </execution>
130 </executions>
131 </plugin>
132 <plugin>
133 <groupId>org.apache.maven.plugins</groupId>
134 <artifactId>maven-javadoc-plugin</artifactId>
135 <version>2.10.2</version>
136 <configuration>
137 <additionalparam>-Xdoclint:none</additionalparam>
138 </configuration>
139 <executions>
140 <execution>
141 <id>attach-javadocs</id>
142 <goals>
143 <goal>jar</goal>
144 </goals>
145 </execution>
146 </executions>
147 </plugin>
148 <plugin>
149 <groupId>org.sonatype.plugins</groupId>
150 <artifactId>nexus-staging-maven-plugin</artifactId>
151 <version>1.6.3</version>
152 <extensions>true</extensions>
153 <configuration>
154 <serverId>ossrh</serverId>
155 <stagingProfileId>a80137db01223a</stagingProfileId>
156 <nexusUrl>https://oss.sonatype.org/</nexusUrl>
157 <autoReleaseAfterClose>true</autoReleaseAfterClose>
158 </configuration>
159 </plugin>
160 <plugin>
161 <groupId>org.apache.maven.plugins</groupId>
162 <artifactId>maven-gpg-plugin</artifactId>
163 <version>1.5</version>
164 <executions>
165 <execution>
166 <id>sign-artifacts</id>
167 <phase>verify</phase>
168 <goals>
169 <goal>sign</goal>
170 </goals>
171 </execution>
172 </executions>
173 </plugin>
174 </plugins>
175 </build>
176 </profile>
177
178 <!-- Use failsafe to run integration tests with an NFD instance; e.g.
179 `mvn verify -Pnfd-integration-tests -Dnfd.ip=10.0.0.1; these are not run by default
180 due to the external NFD dependency -->
181 <profile>
182 <id>nfd-integration-tests</id>
183 <build>
184 <plugins>
185 <plugin>
186 <groupId>org.apache.maven.plugins</groupId>
187 <artifactId>maven-failsafe-plugin</artifactId>
188 <version>2.18.1</version>
189 <executions>
190 <execution>
191 <id>runIntegrationTests</id>
192 <phase>integration-test</phase>
193 <goals>
194 <goal>integration-test</goal>
195 </goals>
196 </execution>
197 <execution>
198 <id>verifyIntegrationTests</id>
199 <phase>verify</phase>
200 <goals>
201 <goal>verify</goal>
202 </goals>
203 </execution>
204 </executions>
205 </plugin>
206 </plugins>
207 </build>
208 </profile>
209
210 <!-- Run `mvn clean javadoc:javadoc scm-publish:publish-scm -P docs` to push
211 Javadoc to Github -->
212 <profile>
213 <id>docs</id>
214 <build>
215 <plugins>
216 <plugin>
217 <groupId>org.apache.maven.plugins</groupId>
218 <artifactId>maven-javadoc-plugin</artifactId>
219 <version>2.10.2</version>
220 <configuration>
221 <additionalparam>-Xdoclint:none</additionalparam>
222 </configuration>
223 </plugin>
224 <plugin>
225 <groupId>org.apache.maven.plugins</groupId>
226 <artifactId>maven-scm-publish-plugin</artifactId>
227 <version>1.1</version>
228 <configuration>
229 <checkoutDirectory>${project.build.directory}/scmpublish</checkoutDirectory>
230 <checkinComment>Publishing javadoc for ${project.artifactId}:${project.version}</checkinComment>
231 <content>${project.build.directory}/site/apidocs</content>
232 <skipDeletedFiles>true</skipDeletedFiles>
233 <pubScmUrl>scm:git:https://github.com/01org/jndn-utils.git</pubScmUrl>
234 <scmBranch>gh-pages</scmBranch>
235 </configuration>
236 </plugin>
237 </plugins>
238 </build>
239 </profile>
240 </profiles>
andrewsbrown300cd3c2015-04-14 14:25:54 -0700241</project>