Posted By

jasonhue on 04/24/15


Tagged

java maven


Versions (?)

POM


 / Published in: Java
 

pom configuration

  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/xsd/maven-4.0.0.xsd">
  3. <modelVersion>4.0.0</modelVersion>
  4. <groupId>com.technodex</groupId>
  5. <artifactId>project</artifactId>
  6. <version>1.0.0</version>
  7. <packaging>war</packaging>
  8. <name>sccb2</name>
  9.  
  10. <properties>
  11. <spring.version>4.0.6.RELEASE</spring.version>
  12. <spring-security.version>3.2.5.RELEASE</spring-security.version>
  13. <slf4j.version>1.6.1</slf4j.version>
  14. <log4j.version>1.2.16</log4j.version>
  15. <hibernate.version>4.3.6.Final</hibernate.version>
  16. <primefaces-version>5.2</primefaces-version>
  17. <primefaces-extension.version>3.0.0</primefaces-extension.version>
  18. <aspectj.version>1.7.4</aspectj.version>
  19. <ehcache.version>2.8.3</ehcache.version>
  20. <guava.version>17.0</guava.version>
  21. <omnifaces.version>2.0</omnifaces.version>
  22. <deploy.server>${project.build.finalName}</deploy.server>
  23. <jackson.version>2.5.1</jackson.version>
  24. <web.home>${basedir}/target/${deploy.server}</web.home>
  25. <java.version>1.7</java.version>
  26. </properties>
  27.  
  28. <repositories>
  29. <repository>
  30. <id>prime-repo</id>
  31. <name>Prime Repo</name>
  32. <url>http://repository.primefaces.org</url>
  33. </repository>
  34. <repository>
  35. <id>springsource-repo</id>
  36. <name>SpringSource Repository</name>
  37. <url>http://repo.springsource.org/release</url>
  38. </repository>
  39. </repositories>
  40.  
  41. <profiles>
  42. <!-- This profile use for redeploy -->
  43. <profile>
  44. <id>Sccb2WarJboss</id>
  45. <build>
  46. <plugins>
  47. <plugin>
  48. <groupId>org.apache.maven.plugins</groupId>
  49. <artifactId>maven-antrun-plugin</artifactId>
  50. <version>1.7</version>
  51. <configuration>
  52. <target>
  53.  
  54. <delete includeEmptyDirs="true" failonerror="false">
  55. <fileset dir="${jboss.deploy.home}/${deploy.server}.war"
  56. includes="**/*" defaultexcludes="no" />
  57. </delete>
  58.  
  59. <!-- Copy war file to JBOSS -->
  60. <!-- Copy the contents of the build directory -->
  61. <mkdir dir="${jboss.deploy.home}/${deploy.server}.war" />
  62.  
  63. <copy todir="${jboss.deploy.home}/${deploy.server}.war">
  64. <fileset dir="${basedir}/target/${deploy.server}">
  65. <exclude name="**/env.properties" />
  66. </fileset>
  67. </copy>
  68.  
  69. <delete file="${jboss.deploy.home}/${deploy.server}.war.deployed"
  70. failonerror="false" />
  71. <delete file="${jboss.deploy.home}/${deploy.server}.war.dodeploy"
  72. failonerror="false" />
  73. <touch file="${jboss.deploy.home}/${deploy.server}.war.dodeploy" />
  74. </target>
  75. </configuration>
  76. <executions>
  77. <execution>
  78. <id>Sccb2WarJboss</id>
  79. <goals>
  80. <goal>run</goal>
  81. </goals>
  82. <phase>package</phase> <!-- Anything after package phase -->
  83. </execution>
  84. </executions>
  85. </plugin>
  86. </plugins>
  87. </build>
  88. </profile>
  89. <profile>
  90. <id>Sccb2WarWeb</id>
  91. <build>
  92. <plugins>
  93. <plugin>
  94. <groupId>org.apache.maven.plugins</groupId>
  95. <artifactId>maven-antrun-plugin</artifactId>
  96. <version>1.7</version>
  97. <executions>
  98. <execution>
  99. <id>Sccb2WarWeb</id>
  100. <goals>
  101. <goal>run</goal>
  102. </goals>
  103. <phase>package</phase> <!-- Anything after package phase -->
  104. <configuration>
  105. <target name="warWeb">
  106. <copy todir="${jboss.deploy.home}/${deploy.server}.war">
  107. <fileset dir="${web.home}">
  108. <include name="*.jsp" />
  109. <include name="*.xhtml" />
  110. </fileset>
  111. </copy>
  112.  
  113. <copy todir="${jboss.deploy.home}/${deploy.server}.war/resources"
  114. failonerror="false">
  115. <fileset dir="${web.home}/resources" />
  116. </copy>
  117.  
  118. <copy
  119. todir="${jboss.deploy.home}/${deploy.server}.war/WEB-INF/acraMap"
  120. failonerror="false">
  121. <fileset dir="${web.home}/WEB-INF/acraMap" />
  122. </copy>
  123.  
  124. <copy
  125. todir="${jboss.deploy.home}/${deploy.server}.war/WEB-INF/faces-views"
  126. failonerror="false">
  127. <fileset dir="${web.home}/WEB-INF/faces-views" />
  128. </copy>
  129.  
  130. <copy
  131. todir="${jboss.deploy.home}/${deploy.server}.war/WEB-INF/pages"
  132. failonerror="false">
  133. <fileset dir="${web.home}/WEB-INF/pages" />
  134. </copy>
  135.  
  136. <copy
  137. todir="${jboss.deploy.home}/${deploy.server}.war/WEB-INF/reports"
  138. failonerror="false">
  139. <fileset dir="${web.home}/WEB-INF/reports" />
  140. </copy>
  141.  
  142. <copy
  143. todir="${jboss.deploy.home}/${deploy.server}.war/WEB-INF/templates"
  144. failonerror="false">
  145. <fileset dir="${web.home}/WEB-INF/templates" />
  146. </copy>
  147.  
  148. <copy
  149. todir="${jboss.deploy.home}/${deploy.server}.war/WEB-INF/classes/locale"
  150. failonerror="false">
  151. <fileset dir="${web.home}/WEB-INF/classes/locale" />
  152. </copy>
  153. </target>
  154. </configuration>
  155. </execution>
  156. </executions>
  157. </plugin>
  158. </plugins>
  159. </build>
  160. </profile>
  161. </profiles>
  162.  
  163. <build>
  164. <plugins>
  165. <plugin>
  166. <artifactId>maven-compiler-plugin</artifactId>
  167. <version>2.0.2</version>
  168. <configuration>
  169. <source>1.7</source>
  170. <target>1.7</target>
  171. </configuration>
  172. </plugin>
  173. <plugin>
  174. <groupId>org.codehaus.mojo</groupId>
  175. <artifactId>properties-maven-plugin</artifactId>
  176. <version>1.0-alpha-2</version>
  177. <executions>
  178. <execution>
  179. <phase>initialize</phase>
  180. <goals>
  181. <goal>read-project-properties</goal>
  182. </goals>
  183. <configuration>
  184. <files>
  185. <file>${basedir}/pom.properties</file>
  186. </files>
  187. </configuration>
  188. </execution>
  189. </executions>
  190. </plugin>
  191. <plugin>
  192. <groupId>org.codehaus.mojo</groupId>
  193. <artifactId>aspectj-maven-plugin</artifactId>
  194. <version>1.7</version>
  195. <dependencies>
  196. <dependency>
  197. <groupId>org.aspectj</groupId>
  198. <artifactId>aspectjtools</artifactId>
  199. <version>${aspectj.version}</version>
  200. </dependency>
  201. </dependencies>
  202. <executions>
  203. <execution>
  204. <id>compile</id>
  205. <goals>
  206. <goal>compile</goal>
  207. </goals>
  208. </execution>
  209. </executions>
  210. <configuration>
  211. <complianceLevel>${java.version}</complianceLevel>
  212. <!-- Add aspect libraries, which is contain aspects to be weaven into
  213. @Configurable annotated beans on compile time by this plugin. -->
  214. <aspectLibraries>
  215. <aspectLibrary>
  216. <groupId>org.springframework</groupId>
  217. <artifactId>spring-aspects</artifactId>
  218. </aspectLibrary>
  219. </aspectLibraries>
  220. </configuration>
  221. </plugin>
  222. </plugins>
  223. </build>
  224.  
  225. <dependencies>
  226. <!-- Spring 4 dependencies -->
  227. <dependency>
  228. <groupId>org.springframework</groupId>
  229. <artifactId>spring-core</artifactId>
  230. <version>${spring.version}</version>
  231. </dependency>
  232. <dependency>
  233. <groupId>org.springframework</groupId>
  234. <artifactId>spring-context</artifactId>
  235. <version>${spring.version}</version>
  236. </dependency>
  237. <dependency>
  238. <groupId>org.springframework</groupId>
  239. <artifactId>spring-web</artifactId>
  240. <version>${spring.version}</version>
  241. </dependency>
  242. <dependency>
  243. <groupId>org.springframework</groupId>
  244. <artifactId>spring-aop</artifactId>
  245. <version>${spring.version}</version>
  246. </dependency>
  247. <dependency>
  248. <groupId>org.springframework</groupId>
  249. <artifactId>spring-context-support</artifactId>
  250. <version>${spring.version}</version>
  251. </dependency>
  252. <dependency>
  253. <groupId>org.springframework</groupId>
  254. <artifactId>spring-aspects</artifactId>
  255. <version>${spring.version}</version>
  256. </dependency>
  257. <dependency>
  258. <groupId>org.springframework</groupId>
  259. <artifactId>spring-tx</artifactId>
  260. <version>${spring.version}</version>
  261. </dependency>
  262. <dependency>
  263. <groupId>org.springframework</groupId>
  264. <artifactId>spring-orm</artifactId>
  265. <version>${spring.version}</version>
  266. </dependency>
  267. <dependency>
  268. <groupId>org.springframework</groupId>
  269. <artifactId>spring-test</artifactId>
  270. <version>${spring.version}</version>
  271. </dependency>
  272.  
  273. <dependency>
  274. <groupId>org.springframework.security</groupId>
  275. <artifactId>spring-security-web</artifactId>
  276. <version>${spring-security.version}</version>
  277. </dependency>
  278.  
  279. <dependency>
  280. <groupId>org.springframework.security</groupId>
  281. <artifactId>spring-security-config</artifactId>
  282. <version>${spring-security.version}</version>
  283. </dependency>
  284.  
  285. <!-- Hibernate dependencies -->
  286. <dependency>
  287. <groupId>org.hibernate</groupId>
  288. <artifactId>hibernate-core</artifactId>
  289. <version>${hibernate.version}</version>
  290. </dependency>
  291.  
  292. <!-- JUnit and related -->
  293. <dependency>
  294. <groupId>junit</groupId>
  295. <artifactId>junit</artifactId>
  296. <version>4.11</version>
  297. </dependency>
  298. <dependency>
  299. <groupId>org.mockito</groupId>
  300. <artifactId>mockito-core</artifactId>
  301. <version>1.9.5</version>
  302. <scope>test</scope>
  303. </dependency>
  304.  
  305. <!-- PrimeFaces and extension and omnifaces -->
  306. <dependency>
  307. <groupId>org.primefaces</groupId>
  308. <artifactId>primefaces</artifactId>
  309. <version>${primefaces-version}</version>
  310. </dependency>
  311. <dependency>
  312. <groupId>org.primefaces.extensions</groupId>
  313. <artifactId>primefaces-extensions</artifactId>
  314. <version>${primefaces-extension.version}</version>
  315. </dependency>
  316. <dependency>
  317. <groupId>org.omnifaces</groupId>
  318. <artifactId>omnifaces</artifactId>
  319. <version>${omnifaces.version}</version>
  320. </dependency>
  321.  
  322. <dependency>
  323. <groupId>org.primefaces.themes</groupId>
  324. <artifactId>all-themes</artifactId>
  325. <version>1.0.10</version>
  326. </dependency>
  327.  
  328. <dependency>
  329. <groupId>org.atmosphere</groupId>
  330. <artifactId>atmosphere-runtime</artifactId>
  331. <version>2.3.0-RC6</version>
  332. </dependency>
  333.  
  334. <!-- aspectj , jakson, guava etc related -->
  335. <dependency>
  336. <groupId>org.aspectj</groupId>
  337. <artifactId>aspectjrt</artifactId>
  338. <version>${aspectj.version}</version>
  339. </dependency>
  340. <dependency>
  341. <groupId>org.aspectj</groupId>
  342. <artifactId>aspectjtools</artifactId>
  343. <version>${aspectj.version}</version>
  344. </dependency>
  345. <dependency>
  346. <groupId>com.fasterxml.jackson.core</groupId>
  347. <artifactId>jackson-core</artifactId>
  348. <version>${jackson.version}</version>
  349. </dependency>
  350. <dependency>
  351. <groupId>com.fasterxml.jackson.core</groupId>
  352. <artifactId>jackson-annotations</artifactId>
  353. <version>${jackson.version}</version>
  354. </dependency>
  355. <dependency>
  356. <groupId>com.fasterxml.jackson.core</groupId>
  357. <artifactId>jackson-databind</artifactId>
  358. <version>${jackson.version}</version>
  359. </dependency>
  360. <dependency>
  361. <groupId>net.sf.ehcache</groupId>
  362. <artifactId>ehcache</artifactId>
  363. <version>${ehcache.version}</version>
  364. </dependency>
  365. <dependency>
  366. <groupId>commons-beanutils</groupId>
  367. <artifactId>commons-beanutils</artifactId>
  368. <version>1.9.2</version>
  369. </dependency>
  370. <dependency>
  371. <groupId>com.google.guava</groupId>
  372. <artifactId>guava</artifactId>
  373. <version>${guava.version}</version>
  374. </dependency>
  375.  
  376. <dependency>
  377. <groupId>com.google.code.gson</groupId>
  378. <artifactId>gson</artifactId>
  379. <version>2.2.4</version>
  380. </dependency>
  381.  
  382. <dependency>
  383. <groupId>org.projectlombok</groupId>
  384. <artifactId>lombok</artifactId>
  385. <version>1.14.8</version>
  386. <scope>provided</scope>
  387. </dependency>
  388.  
  389. <dependency>
  390. <groupId>org.jboss.spec</groupId>
  391. <artifactId>jboss-javaee-6.0</artifactId>
  392. <version>1.0.0.Final</version>
  393. <type>pom</type>
  394. <scope>provided</scope>
  395. </dependency>
  396.  
  397. <dependency>
  398. <groupId>commons-validator</groupId>
  399. <artifactId>commons-validator</artifactId>
  400. <version>1.4.0</version>
  401. </dependency>
  402.  
  403. <!-- Jasper Report -->
  404. <dependency>
  405. <groupId>net.sf.jasperreports</groupId>
  406. <artifactId>jasperreports</artifactId>
  407. <version>6.0.0</version>
  408. </dependency>
  409.  
  410. <dependency>
  411. <groupId>com.lowagie</groupId>
  412. <artifactId>itext</artifactId>
  413. <version>4.2.1</version>
  414. </dependency>
  415.  
  416. <dependency>
  417. <groupId>commons-fileupload</groupId>
  418. <artifactId>commons-fileupload</artifactId>
  419. <version>1.3.1</version>
  420. </dependency>
  421.  
  422. <dependency>
  423. <groupId>log4j</groupId>
  424. <artifactId>log4j</artifactId>
  425. <version>1.2.17</version>
  426. </dependency>
  427.  
  428. <dependency>
  429. <groupId>ddp-report-engine-xml.1.7.jar</groupId>
  430. <artifactId>ddp-report-engine-xml.1.7.jar</artifactId>
  431. <version>1.0</version>
  432. <scope>system</scope>
  433. <systemPath>${project.basedir}/src/main/webapp/WEB-INF/lib/ddp-report-engine-xml.1.7.jar</systemPath>
  434. </dependency>
  435.  
  436. <dependency>
  437. <groupId>jaxen</groupId>
  438. <artifactId>jaxen</artifactId>
  439. <version>1.1.6</version>
  440. </dependency>
  441.  
  442. <dependency>
  443. <groupId>org.apache.poi</groupId>
  444. <artifactId>poi</artifactId>
  445. <version>3.11</version>
  446. </dependency>
  447.  
  448. <dependency>
  449. <groupId>org.javers</groupId>
  450. <artifactId>javers-persistence-mongo</artifactId>
  451. <version>1.1.0-RC2</version>
  452. </dependency>
  453.  
  454. <dependency>
  455. <groupId>de.danielbechler</groupId>
  456. <artifactId>java-object-diff</artifactId>
  457. <version>0.91.1</version>
  458. </dependency>
  459.  
  460.  
  461.  
  462. </dependencies>
  463.  
  464. </project>

Report this snippet  

You need to login to post a comment.