Advertisement
RussellSeymour

Parent POM

Feb 9th, 2012
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.79 KB | None | 0 0
  1. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  2. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  3.  
  4. <modelVersion>4.0.0</modelVersion>
  5.  
  6. <groupId>com.example.fire</groupId>
  7. <artifactId>fire</artifactId>
  8. <version>latest-SNAPSHOT</version>
  9. <packaging>pom</packaging>
  10.  
  11. <name>FIRE Parent POM</name>
  12. <description>Parent POM for the Fire project.</description>
  13.  
  14. <modules>
  15. <module>apis</module>
  16. <module>fire-model</module>
  17. <module>fire-sesame</module>
  18. <module>fire-test-utils</module>
  19. <module>fire-rest-test-utils</module>
  20. <module>fire-config</module>
  21. <module>fire-validation</module>
  22. <module>distribution</module>
  23. </modules>
  24.  
  25. <properties>
  26. <org.springframework.version>3.0.5.RELEASE</org.springframework.version>
  27. <sesame.version>2.5.0</sesame.version>
  28. <jena.version>2.8.2</jena.version>
  29.  
  30. <tomcat.url>http://localhost:8080/manager</tomcat.url>
  31. <tomcat.path>INVALID!!@@%% Provide a valid tomcat.path attribute in a child pom</tomcat.path>
  32.  
  33. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  34. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  35.  
  36. <!-- Properties for building the package -->
  37. <almfx.path>../../../almfx/</almfx.path>
  38. <assembler.descriptor>assembler.xml</assembler.descriptor>
  39.  
  40.  
  41. </properties>
  42.  
  43. <profiles>
  44. <profile>
  45. <id>normal</id>
  46. <activation>
  47. <activeByDefault>true</activeByDefault>
  48. </activation>
  49. <build>
  50. <plugins>
  51. <plugin>
  52. <artifactId>maven-surefire-plugin</artifactId>
  53. <configuration>
  54. <excludes>
  55. <exclude>**/*IntegrationTest.java</exclude>
  56. <exclude>**/IntegrationTest*.java</exclude>
  57. </excludes>
  58. </configuration>
  59. </plugin>
  60. </plugins>
  61. </build>
  62. </profile>
  63. <profile>
  64. <id>itest</id>
  65. <build>
  66. <plugins>
  67. <plugin>
  68. <artifactId>maven-surefire-plugin</artifactId>
  69. <configuration>
  70. <includes>
  71. <include>**/*IntegrationTest.java</include>
  72. <include>**/IntegrationTest*.java</include>
  73. </includes>
  74. <excludes><!-- nothing --></excludes>
  75. </configuration>
  76. </plugin>
  77. </plugins>
  78. </build>
  79. </profile>
  80. </profiles>
  81.  
  82. <dependencyManagement>
  83. <dependencies>
  84. <!-- logging -->
  85. <dependency>
  86. <groupId>org.slf4j</groupId>
  87. <artifactId>jcl-over-slf4j</artifactId>
  88. <version>1.6.1</version>
  89. </dependency>
  90. <!-- This is the only compatible logger for some dependencies -->
  91. <dependency>
  92. <groupId>org.slf4j</groupId>
  93. <artifactId>slf4j-log4j12</artifactId>
  94. <version>1.6.1</version>
  95. <exclusions>
  96. <exclusion>
  97. <groupId>log4j</groupId>
  98. <artifactId>log4j</artifactId>
  99. </exclusion>
  100. </exclusions>
  101. </dependency>
  102. <dependency>
  103. <groupId>log4j</groupId>
  104. <artifactId>log4j</artifactId>
  105. <version>1.2.16</version>
  106. </dependency>
  107.  
  108. <!-- JSON -->
  109. <dependency>
  110. <groupId>org.json</groupId>
  111. <artifactId>json</artifactId>
  112. <version>20090211</version>
  113. </dependency>
  114.  
  115. <!-- Our rdf model -->
  116. <dependency>
  117. <groupId>org.openrdf.sesame</groupId>
  118. <artifactId>sesame-model</artifactId>
  119. <version>${sesame.version}</version>
  120. </dependency>
  121.  
  122. <!-- apache commons -->
  123. <dependency>
  124. <groupId>commons-lang</groupId>
  125. <artifactId>commons-lang</artifactId>
  126. <version>2.4</version>
  127. </dependency>
  128. <dependency>
  129. <groupId>commons-io</groupId>
  130. <artifactId>commons-io</artifactId>
  131. <version>1.4</version>
  132. </dependency>
  133. <dependency>
  134. <groupId>commons-httpclient</groupId>
  135. <artifactId>commons-httpclient</artifactId>
  136. <version>3.1</version>
  137. <exclusions>
  138. <exclusion>
  139. <artifactId>commons-logging</artifactId>
  140. <groupId>commons-logging</groupId>
  141. </exclusion>
  142. <exclusion>
  143. <artifactId>commons-codec</artifactId>
  144. <groupId>commons-codec</groupId>
  145. </exclusion>
  146. </exclusions>
  147. </dependency>
  148. <dependency>
  149. <groupId>commons-logging</groupId>
  150. <artifactId>commons-logging</artifactId>
  151. <version>1.1.1</version>
  152. </dependency>
  153. <dependency>
  154. <groupId>commons-codec</groupId>
  155. <artifactId>commons-codec</artifactId>
  156. <version>1.4</version>
  157. </dependency>
  158.  
  159. <dependency>
  160. <groupId>org.apache.cxf</groupId>
  161. <artifactId>cxf-bundle-jaxrs</artifactId>
  162. <version>2.4.0</version>
  163. </dependency>
  164.  
  165. <!-- spring -->
  166. <dependency>
  167. <groupId>org.springframework</groupId>
  168. <artifactId>spring-core</artifactId>
  169. <version>${org.springframework.version}</version>
  170. </dependency>
  171. <dependency>
  172. <groupId>org.springframework</groupId>
  173. <artifactId>spring-aop</artifactId>
  174. <version>${org.springframework.version}</version>
  175. </dependency>
  176. <dependency>
  177. <groupId>org.springframework</groupId>
  178. <artifactId>spring-tx</artifactId>
  179. <version>${org.springframework.version}</version>
  180. </dependency>
  181. <dependency>
  182. <groupId>org.springframework</groupId>
  183. <artifactId>spring-context</artifactId>
  184. <version>${org.springframework.version}</version>
  185. </dependency>
  186. <dependency>
  187. <groupId>org.springframework</groupId>
  188. <artifactId>spring-beans</artifactId>
  189. <version>${org.springframework.version}</version>
  190. </dependency>
  191.  
  192. <!-- JSR 305 - common annotations for the java platform -->
  193. <dependency>
  194. <groupId>com.google.code.findbugs</groupId>
  195. <artifactId>jsr305</artifactId>
  196. <version>1.3.9</version>
  197. </dependency>
  198.  
  199. <!-- Rome - ATOM/RSS syndication library -->
  200. <dependency>
  201. <groupId>net.java.dev.rome</groupId>
  202. <artifactId>rome</artifactId>
  203. <version>1.0.0</version>
  204. </dependency>
  205.  
  206. <!-- Utility functionality -->
  207. <dependency>
  208. <groupId>com.google.guava</groupId>
  209. <artifactId>guava</artifactId>
  210. <version>r09</version>
  211. </dependency>
  212.  
  213. <dependency>
  214. <groupId>javax.inject</groupId>
  215. <artifactId>javax.inject</artifactId>
  216. <version>1</version>
  217. </dependency>
  218.  
  219. <!-- Test dependencies -->
  220. <dependency>
  221. <groupId>org.mockito</groupId>
  222. <artifactId>mockito-all</artifactId>
  223. <version>1.8.5</version>
  224. </dependency>
  225. <dependency>
  226. <groupId>junit</groupId>
  227. <artifactId>junit</artifactId>
  228. <version>4.8.1</version>
  229. </dependency>
  230. </dependencies>
  231. </dependencyManagement>
  232.  
  233. <build>
  234. <resources>
  235. <resource>
  236. <directory>src/main/resources</directory>
  237. <filtering>true</filtering>
  238. <includes>
  239. <include>**/*.xml</include>
  240. <include>**/*.xsd</include>
  241. <include>**/*.properties</include>
  242. <include>**/*.rdf</include>
  243. <include>**/*.n3</include>
  244. <include>**/*.sparql</include>
  245. </includes>
  246. </resource>
  247. <resource>
  248. <directory>src/main/java</directory>
  249. <includes>
  250. <include>**/*.properties</include>
  251. <include>**/*.index</include>
  252. </includes>
  253. </resource>
  254. </resources>
  255. <!-- Resources for src/test -->
  256. <testResources>
  257. <testResource>
  258. <directory>src/test/resources</directory>
  259. <filtering>true</filtering>
  260. <includes>
  261. <include>**/*.xml</include>
  262. <include>**/*.properties</include>
  263. <include>**/*.xsd</include>
  264. <include>**/*.json</include>
  265. <include>**/*.rdf</include>
  266. <include>**/*.n3</include>
  267. <include>**/*.sparql</include>
  268. <include>**/*.txt</include>
  269. </includes>
  270. </testResource>
  271. </testResources>
  272.  
  273. <pluginManagement>
  274. <plugins>
  275. <plugin>
  276. <groupId>org.apache.maven.plugins</groupId>
  277. <artifactId>maven-surefire-plugin</artifactId>
  278. <version>2.10</version>
  279. </plugin>
  280. <!-- Reporting on code coverage and static code analysis -->
  281. <plugin>
  282. <groupId>org.codehaus.mojo</groupId>
  283. <artifactId>sonar-maven-plugin</artifactId>
  284. <version>1.0-beta-2</version>
  285. </plugin>
  286. <!-- Used to change the version of the poms for deployment -->
  287. <plugin>
  288. <groupId>org.codehaus.mojo</groupId>
  289. <artifactId>versions-maven-plugin</artifactId>
  290. <version>1.2</version>
  291. </plugin>
  292. </plugins>
  293. </pluginManagement>
  294.  
  295. <plugins>
  296. <plugin>
  297. <artifactId>maven-compiler-plugin</artifactId>
  298. <version>2.3.2</version>
  299. <configuration>
  300. <source>1.6</source>
  301. <target>1.6</target>
  302. </configuration>
  303. </plugin>
  304. <plugin>
  305. <artifactId>maven-source-plugin</artifactId>
  306. <version>2.1.2</version>
  307. <executions>
  308. <execution>
  309. <id>attach-sources</id>
  310. <phase>verify</phase>
  311. <goals>
  312. <goal>jar-no-fork</goal>
  313. </goals>
  314. </execution>
  315. </executions>
  316. </plugin>
  317.  
  318. <plugin>
  319. <groupId>org.codehaus.mojo</groupId>
  320. <artifactId>tomcat-maven-plugin</artifactId>
  321. <configuration>
  322. <url>${tomcat.url}</url>
  323. <server>fire.dev.server</server>
  324. <path>/${tomcat.path}</path>
  325. </configuration>
  326. </plugin>
  327.  
  328.  
  329.  
  330. </plugins>
  331. </build>
  332. <reporting>
  333. <plugins>
  334. <plugin>
  335. <groupId>org.apache.maven.plugins</groupId>
  336. <artifactId>maven-surefire-report-plugin</artifactId>
  337. <version>2.10</version>
  338. </plugin>
  339. </plugins>
  340. </reporting>
  341.  
  342. <distributionManagement>
  343. <repository>
  344. <id>example.releases</id>
  345. <name>Nexus Release Repo</name>
  346. <url>http://nexus.howden.press.net/nexus/content/repositories/releases</url>
  347. </repository>
  348. <snapshotRepository>
  349. <id>example.snapshots</id>
  350. <name>Nexus Snapshot Repo</name>
  351. <url>http://nexus.howden.press.net/nexus/content/repositories/snapshots</url>
  352. </snapshotRepository>
  353. </distributionManagement>
  354. </project>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement