Skip to content

Instantly share code, notes, and snippets.

@shrikanthavale
Last active August 29, 2015 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shrikanthavale/8cd19f2a6c3be8cc44be to your computer and use it in GitHub Desktop.
Save shrikanthavale/8cd19f2a6c3be8cc44be to your computer and use it in GitHub Desktop.
<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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<!-- ======================================================
Project Settings
====================================================== -->
<groupId>at.prosigma</groupId>
<artifactId>profilerNT</artifactId>
<version>0.0.1</version>
<packaging>war</packaging>
<url>http://wildfly.org</url>
<licenses>
<license>
<name>Apache License, Version 2.0</name>
<distribution>repo</distribution>
<url>http://www.apache.org/licenses/LICENSE-2.0.html</url>
</license>
</licenses>
<!-- Should be overriden by properties passed through the maven run configuration -->
<properties>
<build-path>C:\wildfly-8.1.0.Final\standalone\deployments</build-path>
</properties>
<!-- ======================================================
Repositories
====================================================== -->
<repositories>
<!-- Used for JPedal -->
<repository>
<id>clojars.org</id>
<url>http://clojars.org/repo</url>
</repository>
<!-- Used for JPod (Jai-Core) -->
<repository>
<id>jboss-3rd-party-releases</id>
<url>https://repository.jboss.org/nexus/content/repositories/thirdparty-releases/</url>
</repository>
</repositories>
<!-- ======================================================
Dependencies
====================================================== -->
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.jboss.shrinkwrap.resolver</groupId>
<artifactId>shrinkwrap-resolver-bom</artifactId>
<version>2.0.0</version>
<scope>import</scope>
<type>pom</type>
</dependency>
<dependency>
<groupId>org.jboss.arquillian</groupId>
<artifactId>arquillian-bom</artifactId>
<version>1.1.5.Final</version>
<scope>import</scope>
<type>pom</type>
</dependency>
<dependency>
<groupId>org.wildfly.bom</groupId>
<artifactId>jboss-javaee-7.0-with-tools</artifactId>
<version>8.1.0.Final</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<!-- set up dependencies -->
<dependencies>
<dependency>
<groupId>javax.enterprise</groupId>
<artifactId>cdi-api</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.jboss.spec.javax.servlet</groupId>
<artifactId>jboss-servlet-api_3.1_spec</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.jboss.spec.javax.annotation</groupId>
<artifactId>jboss-annotations-api_1.2_spec</artifactId>
<scope>provided</scope>
</dependency>
<!-- Javassist -->
<dependency>
<groupId>org.javassist</groupId>
<artifactId>javassist</artifactId>
<version>3.17.1-GA</version>
</dependency>
<!-- JConsole from local -->
<dependency>
<groupId>sun.jdk</groupId>
<artifactId>jconsole</artifactId>
<version>jdk</version>
<type>jar</type>
<scope>system</scope>
<systemPath>${env.JAVA_HOME}\lib\jconsole.jar</systemPath>
</dependency>
<!-- Rich Faces -->
<dependency>
<groupId>org.richfaces</groupId>
<artifactId>richfaces-bom</artifactId>
<version>4.3.7.Final</version>
<type>pom</type>
</dependency>
<dependency>
<groupId>org.richfaces.ui</groupId>
<artifactId>richfaces-components-ui</artifactId>
<version>4.3.7.Final</version>
</dependency>
<dependency>
<groupId>org.richfaces.core</groupId>
<artifactId>richfaces-core-impl</artifactId>
<version>4.3.7.Final</version>
</dependency>
<dependency>
<groupId>org.richfaces.cdk</groupId>
<artifactId>maven-richfaces-resources-plugin</artifactId>
<version>4.3.1.Final</version>
<exclusions>
<exclusion>
<groupId>dom4j</groupId>
<artifactId>dom4j</artifactId>
</exclusion>
</exclusions>
</dependency>
<!-- iText Dependencies -->
<dependency>
<groupId>com.itextpdf</groupId>
<artifactId>itextpdf</artifactId>
<version>5.5.2</version>
</dependency>
<dependency>
<groupId>com.kenai.nbpwr</groupId>
<artifactId>com-sun-pdfview</artifactId>
<version>1.0.5-201003191900</version>
</dependency>
<dependency>
<groupId>com.lowagie</groupId>
<artifactId>itext</artifactId>
<version>2.1.7</version>
</dependency>
<!-- Spring Dependencies -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
<version>4.0.6.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>4.0.6.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<version>3.2.5.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
<version>4.0.6.RELEASE</version>
</dependency>
<!-- Spring Web-Flow for CONVERSATIONs -->
<dependency>
<groupId>org.springframework.webflow</groupId>
<artifactId>spring-webflow</artifactId>
<version>2.4.0.RELEASE</version>
</dependency>
<!-- Spring ORM Management -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-orm</artifactId>
<version>4.0.6.RELEASE</version>
</dependency>
<!-- Spring Test Management -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-test</artifactId>
<version>4.0.6.RELEASE</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.eclipse.persistence</groupId>
<artifactId>javax.persistence</artifactId>
<version>2.1.0</version>
</dependency>
<!-- Hibernate Validator -->
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-validator</artifactId>
<version>5.1.0.Final</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-validator-cdi</artifactId>
<version>5.1.0.Final</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-core</artifactId>
<version>4.3.5.Final</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-entitymanager</artifactId>
<version>4.3.5.Final</version>
</dependency>
<!-- JavaX -->
<dependency>
<groupId>javax.inject</groupId>
<artifactId>javax.inject</artifactId>
</dependency>
<dependency>
<groupId>javax.el</groupId>
<artifactId>javax.el-api</artifactId>
<version>2.2.4</version>
</dependency>
<dependency>
<groupId>javax</groupId>
<artifactId>javaee-api</artifactId>
<version>7.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>3.0.1</version>
<scope>provided</scope>
</dependency>
<!-- Apache Commons -->
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.3.2</version>
</dependency>
<dependency>
<groupId>commons-digester</groupId>
<artifactId>commons-digester</artifactId>
<version>2.1</version>
</dependency>
<!-- Apache Cxf Bundle -->
<!-- <dependency> -->
<!-- <groupId>org.apache.cxf</groupId> -->
<!-- <artifactId>cxf-bundle</artifactId> -->
<!-- <version>2.2.9</version> -->
<!-- </dependency> -->
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-bundle-jaxrs</artifactId>
<version>2.7.0</version>
</dependency>
<!-- Log4J -->
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.17</version>
</dependency>
<!-- com.sun.xml.bind.marshaller -->
<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-impl</artifactId>
<version>2.0.1</version>
<exclusions>
<exclusion>
<groupId>dom4j</groupId>
<artifactId>dom4j</artifactId>
</exclusion>
</exclusions>
</dependency>
<!-- AJAX -->
<!-- <dependency> <groupId>org.ajax4jsf</groupId> <artifactId>ajax4jsf</artifactId>
<version>1.0.5</version> </dependency> -->
<!-- JFree Charting -->
<dependency>
<groupId>jfree</groupId>
<artifactId>jfreechart</artifactId>
<version>1.0.13</version>
</dependency>
<!-- Tesseract OCR -->
<dependency>
<groupId>net.sourceforge.tess4j</groupId>
<artifactId>tess4j</artifactId>
<version>1.3.0</version>
</dependency>
<!-- PayPal SDK -->
<dependency>
<groupId>com.paypal.sdk</groupId>
<artifactId>merchantsdk</artifactId>
<version>2.10.116</version>
</dependency>
<!-- hsqldb -->
<dependency>
<groupId>hsqldb</groupId>
<artifactId>hsqldb</artifactId>
<version>1.8.0.10</version>
</dependency>
<!-- PDF Box -->
<dependency>
<groupId>org.apache.pdfbox</groupId>
<artifactId>pdfbox</artifactId>
<version>1.8.6</version>
</dependency>
<!-- Opencsv -->
<dependency>
<groupId>net.sf.opencsv</groupId>
<artifactId>opencsv</artifactId>
<version>2.3</version>
</dependency>
<!-- Base64 -->
<dependency>
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
<version>1.9</version>
</dependency>
<!-- jmimemagic -->
<dependency>
<groupId>jmimemagic</groupId>
<artifactId>jmimemagic</artifactId>
<version>0.1.1</version>
</dependency>
<!-- Lucene -->
<dependency>
<groupId>org.apache.lucene</groupId>
<artifactId>lucene-core</artifactId>
<version>4.9.0</version>
</dependency>
<!-- JPod begin -->
<dependency>
<groupId>org.jpedal</groupId>
<artifactId>jpedal-lgpl</artifactId>
<version>4.74b27</version>
</dependency>
<dependency>
<groupId>de.intarsys.opensource</groupId>
<artifactId>jPod</artifactId>
<version>5.3</version>
</dependency>
<dependency>
<groupId>de.intarsys.opensource</groupId>
<artifactId>jPodRenderer</artifactId>
<version>5.5.1</version>
</dependency>
<dependency>
<groupId>javax.media</groupId>
<artifactId>jai-core</artifactId>
<version>1.1.3</version>
</dependency>
<!-- AXIS -->
<dependency>
<groupId>org.apache.axis</groupId>
<artifactId>axis</artifactId>
<version>1.4</version>
</dependency>
<!-- ======================================================
Security libraries
====================================================== -->
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-config</artifactId>
<version>3.2.5.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-web</artifactId>
<version>3.2.5.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-taglibs</artifactId>
<version>3.2.5.RELEASE</version>
</dependency>
<!-- ======================================================
Prosigma libraries
====================================================== -->
<!-- TODO: These should be moved to a network intern maven repository -->
<dependency>
<groupId>at.prosigma</groupId>
<artifactId>base</artifactId>
<version>1.0</version>
<scope>system</scope>
<systemPath>${basedir}/lib/prosigma_base.jar</systemPath>
</dependency>
<dependency>
<groupId>at.prosigma</groupId>
<artifactId>finanz</artifactId>
<version>1.0</version>
<scope>system</scope>
<systemPath>${basedir}/lib/prosigma_finanzonline.jar</systemPath>
</dependency>
<dependency>
<groupId>at.prosigma</groupId>
<artifactId>certificate</artifactId>
<version>1.0</version>
<scope>system</scope>
<systemPath>${basedir}/lib/prosigma_certificate.jar</systemPath>
</dependency>
<dependency>
<groupId>at.prosigma</groupId>
<artifactId>FPLibrary</artifactId>
<version>1.0</version>
<scope>system</scope>
<systemPath>${basedir}/lib/prosigma_FPLibrary.jar</systemPath>
</dependency>
<dependency>
<groupId>at.prosigma</groupId>
<artifactId>Integrationhelper</artifactId>
<version>1.0</version>
<scope>system</scope>
<systemPath>${basedir}/lib/prosigma_Integrationhelper.jar</systemPath>
</dependency>
<dependency>
<groupId>at.prosigma</groupId>
<artifactId>proExtract</artifactId>
<version>1.0</version>
<scope>system</scope>
<systemPath>${basedir}/lib/prosigma_proExtract.jar</systemPath>
</dependency>
<dependency>
<groupId>at.prosigma</groupId>
<artifactId>fujitsu1</artifactId>
<version>1.0</version>
<scope>system</scope>
<systemPath>${basedir}/lib/fujitsu-bss-extsvc-platform.jar</systemPath>
</dependency>
<dependency>
<groupId>at.prosigma</groupId>
<artifactId>fujitsu2</artifactId>
<version>1.0</version>
<scope>system</scope>
<systemPath>${basedir}/lib/fujitsu-bss-extsvc-provisioning.jar</systemPath>
</dependency>
<dependency>
<groupId>at.prosigma</groupId>
<artifactId>sqljdbc4</artifactId>
<version>1.0</version>
<scope>system</scope>
<systemPath>${basedir}/lib/sqljdbc4.jar</systemPath>
</dependency>
<!-- ======================================================
Testing Dependencies
====================================================== -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
</dependency>
<dependency>
<groupId>org.wildfly</groupId>
<artifactId>wildfly-arquillian-container-managed</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jboss.arquillian.junit</groupId>
<artifactId>arquillian-junit-container</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jboss.arquillian.extension</groupId>
<artifactId>arquillian-service-deployer-spring-3</artifactId>
<version>1.0.0.Beta3</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jboss.arquillian.extension</groupId>
<artifactId>arquillian-service-integration-spring-inject</artifactId>
<version>1.0.0.Beta3</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jboss.arquillian.extension</groupId>
<artifactId>arquillian-transaction-spring</artifactId>
<version>1.0.0.Beta3</version>
<scope>test</scope>
</dependency>
<!-- Some how this plugin is not working during server startup, it should
not deploy war everytime you change a test case Research later when have
time, this can really improve testing time, because war will not be deployed
again for testing, its like hot deploy -->
<!-- <dependency> -->
<!-- <groupId>org.jboss.arquillian.extension</groupId> -->
<!-- <artifactId>arquillian-jrebel-impl</artifactId> -->
<!-- <version>1.0.0.Alpha1</version> -->
<!-- </dependency> -->
<dependency>
<groupId>org.eu.ingwar.tools</groupId>
<artifactId>arquillian-suite-extension</artifactId>
<version>1.1.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>1.7.7</version>
<scope>test</scope>
</dependency>
</dependencies>
<!-- ======================================================
BUILD
====================================================== -->
<build>
<finalName>profilerNT</finalName>
<sourceDirectory>${basedir}/src/main</sourceDirectory>
<testSourceDirectory>${basedir}/src/test</testSourceDirectory>
<!-- Add configuration xml files to resource folder -->
<resources>
<resource>
<directory>src/main/main</directory>
<includes>
<include>**/*.xml</include>
</includes>
</resource>
<resource>
<directory>src/main/hot</directory>
<includes>
<include>**/*.xml</include>
</includes>
</resource>
<resource>
<directory>src/main/TEMP</directory>
<includes>
<include>**/*.xml</include>
</includes>
</resource>
</resources>
<pluginManagement>
<plugins>
<!-- Resource plugin to read the resources from src/main/resources folder
and then replace with values accordingly -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>2.6</version>
<configuration>
<!-- specify UTF-8, ISO-8859-1 or any other file encoding -->
<encoding>UTF-8</encoding>
</configuration>
</plugin>
<!-- Set JAVA Version -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>
<!-- Add additional source folders -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>1.7</version>
<executions>
<execution>
<id>add-source</id>
<phase>generate-sources</phase>
<goals>
<goal>add-source</goal>
</goals>
<configuration>
<sources>
<source>src/main/main</source>
<source>src/main/hot</source>
<source>src/main/TEMP</source>
<source>src/test/java</source>
</sources>
</configuration>
</execution>
</executions>
</plugin>
<!-- Create WAR and deploy on WILDFLY -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<!-- Source files -->
<warSourceDirectory>${basedir}/webapp</warSourceDirectory>
<webXml>${basedir}/webapp/WEB-INF/web.xml</webXml>
<!-- Output files <webappDirectory>${basedir}/webapp</webappDirectory> -->
<outputDirectory>${build-path}</outputDirectory>
<!-- Add custom libraries to the war -->
<webResources>
<resource>
<directory>${basedir}/resources</directory>
<targetPath>WEB-INF/classes</targetPath>
</resource>
<resource>
<directory>${basedir}/lib</directory>
<targetPath>WEB-INF/lib</targetPath>
</resource>
<resource>
<filtering>true</filtering>
<directory>${basedir}/webapp/WEB-INF</directory>
<targetPath>WEB-INF</targetPath>
<includes>
<include>**/*</include>
<!-- include any other file types you want to filter exclude any
other -->
</includes>
</resource>
<resource>
<filtering>true</filtering>
<directory>${basedir}/webapp/META-INF</directory>
<targetPath>META-INF</targetPath>
<includes>
<include>**/*</include>
<!-- include any other file types you want to filter exclude any
other -->
</includes>
</resource>
</webResources>
<!-- Wildfly provides it's own version of these libraries. To avoid
conflicts, we only use the maven libraries to compile the project. -->
<packagingExcludes>
WEB-INF/lib/cxf*.jar
<!-- WEB-INF/lib/hibernate*.jar, -->
<!-- WEB-INF/lib/dom4j*.jar -->
</packagingExcludes>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
<profiles>
<profile>
<!-- The default development skips all tests -->
<!-- DEVELOPMENT PROFILE -->
<id>daniel</id>
<properties>
<build.profile.id>dev</build.profile.id>
</properties>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<build>
<directory>/Users/danielherr/Documents/prosigma/mavenTargets/profilerNT</directory>
<filters>
<!-- Specifies path to the properties file, which contains profile specific
configuration. In this case, the configuration file is searched from datasources/jms
directory. -->
<filter>webapp/resources/datasources/persistence-${build.profile.id}.properties</filter>
<filter>webapp/resources/jms/jms-config.properties</filter>
</filters>
</build>
</profile>
<profile>
<!-- The default development skips all tests -->
<!-- DEVELOPMENT PROFILE -->
<id>profilernt-dev</id>
<properties>
<build.profile.id>dev</build.profile.id>
</properties>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<build>
<plugins>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.17</version>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
<filters>
<!-- Specifies path to the properties file, which contains profile specific
configuration. In this case, the configuration file is searched from datasources/jms
directory. -->
<filter>webapp/resources/datasources/persistence-${build.profile.id}.properties</filter>
<filter>webapp/resources/jms/jms-config.properties</filter>
</filters>
</build>
</profile>
<!-- This profile is used for test deployment -->
<!-- TEST PROFILE -->
<profile>
<id>profilernt-test</id>
<properties>
<build.profile.id>test</build.profile.id>
</properties>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<build>
<plugins>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.17</version>
<configuration>
<skip>false</skip>
<argLine>-Xms1024m -Xmx1024m</argLine>
<!-- This is the best possible way I found out for skipping multiple test cases in
arquillian. Writing @Ignore everytime on each test case is time consuming, so once one
particular package is complete, just add them here temporarily to continue with other testing -->
<excludes>
<exclude>**/*Entities.java</exclude>
<exclude>**/*Dms*.java</exclude>
<exclude>**/*LoginTokenAccessTest.java</exclude>
<exclude>**/*SqlListTest.java</exclude>
<exclude>**/*ViewPaymentTreeAccessTest.java</exclude>
<exclude>**/*ChartAccessTest.java</exclude>
<exclude>**/*WflStatisticsAccessTest.java</exclude>
<exclude>**/*Doc*Access*.java</exclude>
<exclude>**/*Bdb*AccessTest.java</exclude>
</excludes>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
</plugin>
</plugins>
<filters>
<!-- Specifies path to the properties file, which contains profile specific
configuration. In this case, the configuration file is searched from datasources/jms
directory. -->
<filter>webapp/resources/datasources/persistence-${build.profile.id}.properties</filter>
<filter>webapp/resources/jms/jms-config.properties</filter>
</filters>
</build>
</profile>
<profile>
<!-- The default development skips all tests -->
<!-- HUDSON PROFILE -->
<id>profilernt-hud</id>
<properties>
<build.profile.id>hud</build.profile.id>
</properties>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<build>
<filters>
<!-- Specifies path to the properties file, which contains profile specific
configuration. In this case, the configuration file is searched from datasources/jms
directory. -->
<filter>webapp/resources/datasources/persistence-${build.profile.id}.properties</filter>
<filter>webapp/resources/jms/jms-config.properties</filter>
</filters>
</build>
</profile>
<!-- This profile is used for production deployment -->
<!-- PRODUCTION PROFILE -->
<profile>
<id>prod</id>
<properties>
<build.profile.id>prod</build.profile.id>
</properties>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<build>
<filters>
<!-- Specifies path to the properties file, which contains profile specific
configuration. In this case, the configuration file is searched from datasources/jms
directory. -->
<filter>webapp/resources/datasources/persistence-${build.profile.id}.properties</filter>
<filter>webapp/resources/jms/jms-config.properties</filter>
</filters>
</build>
</profile>
</profiles>
</project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment