- <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">
- <parent>
- <groupId>com.tracetracker</groupId>
- <artifactId>tt-main</artifactId>
- <version>5.1.1-SNAPSHOT</version>
- </parent>
- <modelVersion>4.0.0</modelVersion>
- <artifactId>tix</artifactId>
- <version>5.1.2-SNAPSHOT</version>
- <packaging>war</packaging>
- <name>tix</name>
- <dependencyManagement>
- <dependencies>
- <!-- EXTERNAL -->
- <!-- Need to add shrinkwrap to overide those used by the embedded container,
- which are way too old! -->
- <dependency>
- <groupId>org.jboss.shrinkwrap</groupId>
- <artifactId>shrinkwrap-api</artifactId>
- <version>${version.shrinkwrap_shrinkwrap}</version>
- </dependency>
- <dependency>
- <groupId>org.jboss.shrinkwrap</groupId>
- <artifactId>shrinkwrap-impl-base</artifactId>
- <version>${version.shrinkwrap_shrinkwrap}</version>
- </dependency>
- <!-- Spring Security -->
- <dependency>
- <groupId>org.springframework.security</groupId>
- <artifactId>spring-security-core</artifactId>
- <version>${spring-security.version}</version>
- </dependency>
- <dependency>
- <groupId>org.springframework.security</groupId>
- <artifactId>spring-security-web</artifactId>
- <version>${spring-security.version}</version>
- </dependency>
- <dependency>
- <groupId>org.springframework.security</groupId>
- <artifactId>spring-security-config</artifactId>
- <version>${spring-security.version}</version>
- </dependency>
- <!-- PrimeFaces -->
- <dependency>
- <groupId>org.primefaces</groupId>
- <artifactId>primefaces</artifactId>
- <version>3.0.M2</version>
- </dependency>
- <!-- Enunciate -->
- <dependency>
- <groupId>org.codehaus.enunciate</groupId>
- <artifactId>enunciate-jboss-rt</artifactId>
- <version>1.23</version>
- <exclusions>
- <exclusion>
- <groupId>javax.annotation</groupId>
- <artifactId>jsr250-api</artifactId>
- </exclusion>
- <exclusion>
- <groupId>javassist</groupId>
- <artifactId>javassist</artifactId>
- </exclusion>
- <exclusion>
- <groupId>org.jboss.resteasy</groupId>
- <artifactId>resteasy-jaxrs</artifactId>
- </exclusion>
- <exclusion>
- <groupId>org.jboss.resteasy</groupId>
- <artifactId>resteasy-jackson-provider</artifactId>
- </exclusion>
- <exclusion>
- <groupId>org.jboss.resteasy</groupId>
- <artifactId>resteasy-jaxb-provider</artifactId>
- </exclusion>
- <exclusion>
- <groupId>org.slf4j</groupId>
- <artifactId>slf4j-api</artifactId>
- </exclusion>
- <exclusion>
- <groupId>org.slf4j</groupId>
- <artifactId>slf4j-simple</artifactId>
- </exclusion>
- <exclusion>
- <groupId>org.slf4j</groupId>
- <artifactId>jcl-over-slf4j</artifactId>
- </exclusion>
- </exclusions>
- </dependency>
- <dependency>
- <groupId>commons-lang</groupId>
- <artifactId>commons-lang</artifactId>
- <version>2.3</version>
- </dependency>
- <dependency>
- <groupId>xerces</groupId>
- <artifactId>xercesImpl</artifactId>
- <version>2.9.1</version>
- </dependency>
- <dependency>
- <groupId>joda-time</groupId>
- <artifactId>joda-time</artifactId>
- <version>1.3</version>
- </dependency>
- <dependency>
- <groupId>org.hornetq</groupId>
- <artifactId>hornetq-core</artifactId>
- <version>${hornetq.version}</version>
- </dependency>
- <dependency>
- <groupId>javax</groupId>
- <artifactId>javaee-api</artifactId>
- <version>6.0</version>
- </dependency>
- <!-- INTERNAL -->
- <dependency>
- <groupId>com.tracetracker</groupId>
- <artifactId>lib-web-java</artifactId>
- <version>1.0.18</version>
- <type>jar</type>
- </dependency>
- <dependency>
- <groupId>com.tracetracker</groupId>
- <artifactId>lib-biz-java</artifactId>
- <version>1.2.18</version>
- <type>jar</type>
- </dependency>
- <dependency>
- <groupId>com.tracetracker</groupId>
- <artifactId>lib-epcis-java</artifactId>
- <version>1.3.3</version>
- </dependency>
- <dependency>
- <groupId>com.tracetracker</groupId>
- <artifactId>lib-utils-java</artifactId>
- <version>1.0.36-SNAPSHOT</version>
- <type>jar</type>
- </dependency>
- <dependency>
- <groupId>com.tracetracker</groupId>
- <artifactId>lib-gap-interface-java</artifactId>
- <version>4.1.18</version>
- <type>jar</type>
- </dependency>
- <dependency>
- <groupId>com.tracetracker</groupId>
- <artifactId>lib-resources-java</artifactId>
- <version>${lib.resources.java.version}</version>
- </dependency>
- <!-- TEST -->
- </dependencies>
- </dependencyManagement>
- <dependencies>
- <!--
- <dependency>
- <groupId>com.tracetracker</groupId>
- <artifactId>tt-main</artifactId>
- <classifier>resources</classifier>
- <version>4.1.78</version>
- <scope>test</scope>
- <type>zip</type>
- </dependency>
- -->
- <dependency>
- <groupId>com.tracetracker</groupId>
- <artifactId>lib-web-java</artifactId>
- </dependency>
- <dependency>
- <groupId>com.tracetracker</groupId>
- <artifactId>lib-biz-java</artifactId>
- </dependency>
- <dependency>
- <groupId>com.tracetracker</groupId>
- <artifactId>lib-utils-java</artifactId>
- </dependency>
- <dependency>
- <groupId>com.tracetracker</groupId>
- <artifactId>lib-gap-interface-java</artifactId>
- </dependency>
- <dependency>
- <groupId>com.tracetracker</groupId>
- <artifactId>lib-resources-java</artifactId>
- </dependency>
- <dependency>
- <groupId>commons-io</groupId>
- <artifactId>commons-io</artifactId>
- <version>2.0.1</version>
- </dependency>
- <dependency>
- <groupId>commons-fileupload</groupId>
- <artifactId>commons-fileupload</artifactId>
- <version>1.2.2</version>
- </dependency>
- <!-- JADE Units -->
- <dependency>
- <groupId>com.dautelle</groupId>
- <artifactId>jade</artifactId>
- <version>5.3.8</version>
- </dependency>
- <!-- Spring Security -->
- <dependency>
- <groupId>org.springframework.security</groupId>
- <artifactId>spring-security-core</artifactId>
- </dependency>
- <dependency>
- <groupId>org.springframework.security</groupId>
- <artifactId>spring-security-web</artifactId>
- </dependency>
- <dependency>
- <groupId>org.springframework.security</groupId>
- <artifactId>spring-security-config</artifactId>
- </dependency>
- <!-- PrimeFaces -->
- <dependency>
- <groupId>org.primefaces</groupId>
- <artifactId>primefaces</artifactId>
- </dependency>
- <!-- Enunciate -->
- <dependency>
- <groupId>org.codehaus.enunciate</groupId>
- <artifactId>enunciate-jboss-rt</artifactId>
- </dependency>
- <!--Hibernate -->
- <!-- Needed by Fetch and FetchMode used in Event.java -->
- <!-- <dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate-annotations</artifactId>
- <version>3.4.0.GA</version> </dependency> -->
- <dependency>
- <groupId>commons-lang</groupId>
- <artifactId>commons-lang</artifactId>
- </dependency>
- <!-- TODO VN240811 Pick another impl? Is there any in the JDK? If yes,
- also change parserClass in CaptureManager.java -->
- <dependency>
- <groupId>xerces</groupId>
- <artifactId>xercesImpl</artifactId>
- </dependency>
- <dependency>
- <groupId>joda-time</groupId>
- <artifactId>joda-time</artifactId>
- </dependency>
- <dependency>
- <groupId>org.jboss.spec</groupId>
- <artifactId>jboss-javaee-6.0</artifactId>
- <version>2.0.0.Final</version>
- <type>pom</type>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.hornetq</groupId>
- <artifactId>hornetq-core</artifactId>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>javax</groupId>
- <artifactId>javaee-api</artifactId>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>com.tracetracker</groupId>
- <artifactId>lib-epcis-java</artifactId>
- </dependency>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>4.8.2</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.jboss.arquillian.junit</groupId>
- <artifactId>arquillian-junit-container</artifactId>
- <version>${arquillian.version}</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.hibernate</groupId>
- <artifactId>hibernate-entitymanager</artifactId>
- <version>3.6.0.Final</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.hibernate</groupId>
- <artifactId>hibernate-core</artifactId>
- <version>3.6.0.Final</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.hibernate</groupId>
- <artifactId>hibernate-validator</artifactId>
- <version>4.1.0.Final</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>commons-digester</groupId>
- <artifactId>commons-digester</artifactId>
- <version>1.7</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>commons-collections</groupId>
- <artifactId>commons-collections</artifactId>
- <version>3.1</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>hsqldb</groupId>
- <artifactId>hsqldb</artifactId>
- <version>1.8.0.10</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>postgresql</groupId>
- <artifactId>postgresql</artifactId>
- <version>9.0-801.jdbc4</version>
- <scope>test</scope>
- </dependency>
- <!-- hack to overcome http://jira.codehaus.org/browse/MSITE-228 -->
- <dependency>
- <groupId>org.apache.maven.skins</groupId>
- <artifactId>maven-default-skin</artifactId>
- <version>1.0</version>
- <optional>true</optional>
- </dependency>
- </dependencies>
- <build>
- <defaultGoal>install</defaultGoal>
- <resources>
- <resource>
- <directory>src/main/resources</directory>
- <filtering>true</filtering>
- <excludes>
- <exclude>**/db</exclude>
- <exclude>**/fragment</exclude>
- </excludes>
- </resource>
- </resources>
- <pluginManagement>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-enforcer-plugin</artifactId>
- <version>1.0.1</version>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-surefire-plugin</artifactId>
- <version>2.9</version>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-site-plugin</artifactId>
- <version>2.2</version>
- </plugin>
- <plugin>
- <groupId>com.carbonfive.db-support</groupId>
- <artifactId>db-migration-maven-plugin</artifactId>
- <version>0.9.8</version>
- </plugin>
- <plugin>
- <groupId>org.codehaus.enunciate</groupId>
- <artifactId>maven-enunciate-jboss-plugin</artifactId>
- <version>1.23</version>
- </plugin>
- <plugin>
- <groupId>org.codehaus.enunciate</groupId>
- <artifactId>enunciate-jboss</artifactId>
- <version>1.23</version>
- </plugin>
- <plugin>
- <groupId>org.codehaus.cargo</groupId>
- <artifactId>cargo-maven2-plugin</artifactId>
- <version>1.0.6</version>
- <configuration>
- <container>
- <containerId>jboss6x</containerId>
- <type>installed</type>
- <home>${jboss6x.home}</home>
- <timeout>300000</timeout>
- <output>${project.build.directory}/jboss-output.log</output>
- <log>${project.build.directory}/jboss6x-cargo.log</log>
- </container>
- <configuration>
- <type>standalone</type>
- <home>${tix.server.home}</home>
- <!-- TODO: Where to put config files when not having EAR project?
- Probably src/main/resources/install.. -->
- <configfiles>
- <configfile>
- <file>${project.build.directory}/cargo-config/server.xml</file>
- <todir>deploy/jbossweb.sar</todir>
- </configfile>
- <configfile>
- <file>${project.build.directory}/cargo-config/postgres-ds.xml</file>
- <todir>deploy</todir>
- </configfile>
- <configfile>
- <file>${project.build.directory}/cargo-config/jboss-logging.xml</file>
- <todir>deploy</todir>
- </configfile>
- </configfiles>
- <files>
- <file>
- <file>${project.build.directory}/lib/postgresql.jar</file>
- <todir>lib</todir>
- </file>
- <file>
- <file>${project.build.directory}/classes/hornetq/hornetq-jms.xml</file>
- <todir>deploy/hornetq</todir>
- </file>
- <file>
- <file>${project.build.directory}/lib-resources-java-unpacked/src/resources/security</file>
- <todir>conf/security</todir>
- </file>
- <file>
- <file>${project.build.directory}/lib-resources-java-unpacked/src/resources/trust/tt-rootca.cer</file>
- <todir>conf/security/trust</todir>
- </file>
- <file>
- <file>${project.build.directory}/lib-resources-java-unpacked/src/resources/trust/ttcacerts</file>
- <todir>conf/security/trust</todir>
- </file>
- <file>
- <file>${project.build.directory}/lib-resources-java-unpacked/src/resources/trust/testcacerts</file>
- <todir>conf/security/trust</todir>
- </file>
- </files>
- <properties>
- <cargo.jboss.configuration>default</cargo.jboss.configuration>
- <cargo.servlet.port>${tix.server.port}</cargo.servlet.port>
- <cargo.rmi.port>${tix.rmi.port}</cargo.rmi.port>
- <cargo.jvmargs>${cargo.jvmargs}</cargo.jvmargs>
- <cargo.hostname>${tix.server.host}</cargo.hostname>
- </properties>
- <deployables>
- <deployable>
- <properties>
- <!--context>tix</context --> <!-- context root is specified in jobss-web.xml instead! -->
- </properties>
- <pingURL>http://localhost:${tix.server.port}/console/</pingURL>
- </deployable>
- </deployables>
- </configuration>
- </configuration>
- </plugin>
- </plugins>
- </pluginManagement>
- <plugins>
- <plugin>
- <groupId>org.codehaus.enunciate</groupId>
- <artifactId>maven-enunciate-jboss-plugin</artifactId>
- <configuration>
- <configFile>${basedir}/src/main/resources/enunciate.xml</configFile>
- <exports>
- <jaxws.client.library.binaries>client.jar</jaxws.client.library.binaries>
- </exports>
- </configuration>
- <executions>
- <execution>
- <goals>
- <goal>assemble</goal>
- </goals>
- </execution>
- </executions>
- <dependencies>
- <dependency>
- <groupId>org.codehaus.enunciate</groupId>
- <artifactId>enunciate-jboss</artifactId>
- <version>${enunciate.version}</version>
- </dependency>
- </dependencies>
- </plugin>
- <plugin>
- <artifactId>maven-antrun-plugin</artifactId>
- <inherited>false</inherited>
- <configuration>
- <tasks>
- <property name="lib-resources-java.jar"
- value="${maven.dependency.com.tracetracker.lib-resources-java.jar.path}" />
- <unjar src="${lib-resources-java.jar}"
- dest="${project.build.directory}/lib-resources-java-unpacked" />
- <!--
- <property name="tt-main-resources.jar"
- value="${maven.dependency.com.tracetracker.tt-main.resources.zip.path}" />
- <unjar src="${tt-main-resources.jar}"
- dest="${project.build.directory}/tt-main-resources-unpacked" />
- -->
- </tasks>
- </configuration>
- <executions>
- <execution>
- <id>unpack_resources</id>
- <goals>
- <goal>run</goal>
- </goals>
- <phase>generate-test-resources</phase>
- </execution>
- <execution>
- <id>unpack_resources_site</id>
- <goals>
- <goal>run</goal>
- </goals>
- <phase>pre-site</phase>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-enforcer-plugin</artifactId>
- <executions>
- <execution>
- <id>enforce-versions</id>
- <goals>
- <goal>enforce</goal>
- </goals>
- <configuration>
- <rules>
- <requireMavenVersion>
- <version>3.0.3</version>
- </requireMavenVersion>
- <requireJavaVersion>
- <version>1.6.0-25</version>
- </requireJavaVersion>
- <!--requireOS>
- <family>unix</family>
- </requireOS-->
- </rules>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <version>2.3.2</version>
- <configuration>
- <source>1.6</source>
- <target>1.6</target>
- <compilerArguments>
- <endorseddirs>${endorsed.dir}</endorseddirs>
- </compilerArguments>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-war-plugin</artifactId>
- <version>2.1.1</version>
- <configuration>
- <failOnMissingWebXml>false</failOnMissingWebXml>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-dependency-plugin</artifactId>
- <version>2.1</version>
- <executions>
- <execution>
- <phase>validate</phase>
- <goals>
- <goal>copy</goal>
- </goals>
- <configuration>
- <outputDirectory>${endorsed.dir}</outputDirectory>
- <silent>true</silent>
- <artifactItems>
- <artifactItem>
- <groupId>javax</groupId>
- <artifactId>javaee-endorsed-api</artifactId>
- <version>6.0</version>
- <type>jar</type>
- </artifactItem>
- </artifactItems>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- <reporting>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-checkstyle-plugin</artifactId>
- <version>2.5</version>
- <configuration>
- <enableRulesSummary>false</enableRulesSummary>
- <configLocation>http://svn.pd.tracetracker.com/svn/trunk/tt-main/tt_checkstyle.xml
- </configLocation>
- </configuration>
- </plugin>
- <plugin>
- <artifactId>maven-pmd-plugin</artifactId>
- <version>2.5</version>
- <configuration>
- <targetJdk>1.6</targetJdk>
- <rulesets>
- <ruleset>http://svn.pd.tracetracker.com/svn/trunk/tt-main/pmd.xml
- </ruleset>
- </rulesets>
- <excludes>
- <exclude>**/jaxb/**/*.java</exclude>
- <exclude>**/wsdl/*.java</exclude>
- </excludes>
- </configuration>
- </plugin>
- </plugins>
- </reporting>
- <profiles>
- <!-- createDB is *ONLY* used to generate the initial DDL's for the database,
- which will be committed to SVN. Otherwise, *ALWAYS* use init-db profile mvn
- install -P createDB -->
- <!--profile>
- <id>createDDLFile</id>
- <build>
- <plugins>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>hibernate3-maven-plugin</artifactId>
- <version>2.2</version>
- <executions>
- <execution>
- <id>hibernate-create-schema</id>
- <phase>process-classes</phase>
- <goals>
- <goal>hbm2ddl</goal>
- </goals>
- <configuration>
- <components>
- <component>
- <name>hbm2ddl</name>
- <implementation>jpaconfiguration</implementation>
- </component>
- </components>
- <componentProperties>
- <jdk5>true</jdk5>
- <persistenceunit>tixPU</persistenceunit>
- <outputfilename>create.sql</outputfilename>
- <drop>false</drop>
- <create>true</create>
- <export>false</export>
- <format>true</format>
- </componentProperties>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </profile-->
- <profile>
- <id>init-db</id>
- <build>
- <plugins>
- <plugin>
- <groupId>com.carbonfive.db-support</groupId>
- <artifactId>db-migration-maven-plugin</artifactId>
- <configuration>
- <url>jdbc:${tix.database.type}://${tix.database.host}:${tix.database.port}/${tix.database.name}
- </url>
- <username>${tix.database.username}</username>
- <password>${tix.database.password}</password>
- <migrationsPath>${tix.migration.path}</migrationsPath>
- </configuration>
- <dependencies>
- <dependency>
- <groupId>postgresql</groupId>
- <artifactId>postgresql</artifactId>
- <version>${postgres.version}</version>
- </dependency>
- </dependencies>
- <executions>
- <execution>
- <id>drop-existing-create-new-db-with-migrations</id>
- <phase>package</phase>
- <goals>
- <goal>reset</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </profile>
- <profile>
- <id>config-server</id>
- <dependencies>
- <dependency>
- <groupId>postgresql</groupId>
- <artifactId>postgresql</artifactId>
- <version>${postgres.version}</version>
- </dependency>
- </dependencies>
- <build>
- <plugins>
- <plugin>
- <artifactId>maven-dependency-plugin</artifactId>
- <executions>
- <execution>
- <id>copy</id>
- <phase>package</phase>
- <goals>
- <goal>copy</goal>
- </goals>
- <configuration>
- <artifactItems>
- <artifactItem>
- <groupId>postgresql</groupId>
- <artifactId>postgresql</artifactId>
- <type>jar</type>
- <overWrite>false</overWrite>
- <outputDirectory>${project.build.directory}/lib
- </outputDirectory>
- <destFileName>postgresql.jar</destFileName>
- </artifactItem>
- </artifactItems>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <artifactId>maven-antrun-plugin</artifactId>
- <executions>
- <execution>
- <id>clean-jboss-instance</id>
- <phase>test</phase>
- <goals>
- <goal>run</goal>
- </goals>
- <configuration>
- <tasks>
- <delete dir="${tix.server.home}" />
- </tasks>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <artifactId>maven-resources-plugin</artifactId>
- <version>2.4.3</version>
- <executions>
- <execution>
- <id>copy-cargo-config</id>
- <phase>process-resources</phase>
- <goals>
- <goal>copy-resources</goal>
- </goals>
- <configuration>
- <outputDirectory>${project.build.directory}/cargo-config
- </outputDirectory>
- <resources>
- <resource>
- <directory>${basedir}/src/main/setup
- </directory>
- <filtering>true</filtering>
- <includes>
- <include>**/postgres-ds.xml</include>
- <include>**/server.xml</include>
- <include>**/jboss-logging.xml</include>
- </includes>
- </resource>
- </resources>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.codehaus.cargo</groupId>
- <artifactId>cargo-maven2-plugin</artifactId>
- <executions>
- <execution>
- <id>config-server</id>
- <phase>package</phase>
- <goals>
- <goal>configure</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </profile>
- <profile>
- <id>deploy-server</id>
- <!--dependencies> <dependency> <groupId>com.tracetracker</groupId> <artifactId>tix</artifactId>
- <version>${project.version}</version> <type>war</type> </dependency> </dependencies -->
- <build>
- <plugins>
- <plugin>
- <groupId>org.codehaus.cargo</groupId>
- <artifactId>cargo-maven2-plugin</artifactId>
- <executions>
- <execution>
- <id>deploy-server</id>
- <phase>pre-integration-test</phase>
- <goals>
- <goal>deploy</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </profile>
- <profile>
- <id>start-server</id>
- <build>
- <plugins>
- <plugin>
- <!-- Start jboss instance -->
- <artifactId>maven-antrun-plugin</artifactId>
- <executions>
- <execution>
- <id>start_jboss</id>
- <configuration>
- <tasks>
- <echo message="start_jboss: ${jboss6x.home}/bin/run.sh -c ${tix.server.name} -b ${tix.server.host} ${tix.server.ports.set} WITH JAVA_OPTS=${tix.server.java.opts}" />
- <exec executable="${jboss6x.home}/bin/run.sh" spawn="true">
- <env key="JAVA_OPTS" value="${tix.server.java.opts}" />
- <env key="BUILD_ID" value="dontKillMe" />
- <arg value="-c" />
- <arg value="${tix.server.name}" />
- <arg value="-b" />
- <arg value="${tix.server.host}" />
- <arg value="${tix.server.ports.set}" />
- </exec>
- </tasks>
- </configuration>
- <phase>pre-integration-test</phase>
- <goals>
- <goal>run</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </profile>
- <profile>
- <id>stop-server</id>
- <build>
- <plugins>
- <plugin>
- <!-- Stop jboss instance -->
- <artifactId>maven-antrun-plugin</artifactId>
- <executions>
- <execution>
- <id>stop_jboss</id>
- <configuration>
- <tasks>
- <exec executable="${jboss6x.home}/bin/shutdown.sh">
- <arg value="-o" />
- <arg value="${tix.server.host}" />
- <arg value="-r" />
- <arg value="${tix.server.shutdown.port}" />
- </exec>
- <echo message="shutdown, will wait for ${jboss-restart-wait-seconds} seconds before continuing" />
- <sleep seconds="${jboss-restart-wait-seconds}" />
- </tasks>
- </configuration>
- <phase>initialize</phase>
- <goals>
- <goal>run</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </profile>
- <profile>
- <id>testintegration</id>
- <dependencies>
- <dependency>
- <groupId>org.jboss.arquillian.container</groupId>
- <artifactId>arquillian-jbossas-embedded-6</artifactId>
- <version>${arquillian.version}</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.jboss.jbossas</groupId>
- <artifactId>jboss-as-depchain</artifactId>
- <version>6.1.0.Final</version>
- <type>pom</type>
- <scope>test</scope>
- </dependency>
- <!-- Hornetq dependencies are here to override Arquillian's
- HornetQ dependencies (version 2.2.5.Final) which were colliding with
- JBoss' 2.2.2.Final version of HornetQ. -->
- <dependency>
- <groupId>org.hornetq</groupId>
- <artifactId>hornetq-jms</artifactId>
- <version>${hornetq.version}</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.hornetq</groupId>
- <artifactId>hornetq-jms-client</artifactId>
- <version>${hornetq.version}</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.hornetq</groupId>
- <artifactId>hornetq-jboss-as-integration</artifactId>
- <version>${hornetq.version}</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.hornetq</groupId>
- <artifactId>hornetq-resources</artifactId>
- <version>${hornetq.version}</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.hornetq</groupId>
- <artifactId>hornetq-bootstrap</artifactId>
- <version>${hornetq.version}</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.hornetq</groupId>
- <artifactId>hornetq-core-client</artifactId>
- <version>${hornetq.version}</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.hornetq</groupId>
- <artifactId>hornetq-logging</artifactId>
- <version>${hornetq.version}</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.hornetq</groupId>
- <artifactId>hornetq-ra</artifactId>
- <version>${hornetq.version}</version>
- <scope>provided</scope>
- </dependency>
- </dependencies>
- <dependencyManagement>
- <dependencies>
- <!--will set the Arquillain-Core v. and override the Arquillian-Core
- artifacts the Container depend on that Arq-Junit does not directly include,
- e.g. the Protocols, Enrichers etc -->
- <dependency>
- <groupId>org.jboss.arquillian</groupId>
- <artifactId>arquillian-bom</artifactId>
- <version>${arquillian.version}</version>
- <scope>import</scope>
- <type>pom</type>
- </dependency>
- <dependency>
- <groupId>org.jboss.jbossas</groupId>
- <artifactId>jboss-as-depchain</artifactId>
- <version>6.1.0.Final</version>
- <type>pom</type>
- <scope>import</scope>
- </dependency>
- </dependencies>
- </dependencyManagement>
- <build>
- <plugins>
- <plugin>
- <artifactId>maven-antrun-plugin</artifactId>
- <inherited>false</inherited>
- <configuration>
- <tasks>
- <copy todir="${tt.user.jboss6.home}/server/default/deploy/hornetq">
- <fileset dir="src/main/resources/hornetq">
- <include name="*.xml"/>
- </fileset>
- </copy>
- </tasks>
- </configuration>
- <executions>
- <execution>
- <id>unpack_resources</id>
- <goals>
- <goal>run</goal>
- </goals>
- <phase>generate-test-resources</phase>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-surefire-plugin</artifactId>
- <configuration>
- <additionalClasspathElements>
- <additionalClasspathElement>${tt.user.jboss6.home}/client/jbossws-native-client.jar
- </additionalClasspathElement>
- <!-- Because jbossweb.sar contains shared web.xml, which must be
- visible from same CL as TomcatDeployer.class.getClassLoader -->
- <additionalClasspathElement>${tt.user.jboss6.home}/server/default/deploy/jbossweb.sar
- </additionalClasspathElement>
- </additionalClasspathElements>
- <redirectTestOutputToFile>true</redirectTestOutputToFile>
- <trimStackTrace>false</trimStackTrace>
- <printSummary>true</printSummary>
- <forkMode>once</forkMode>
- <!-- MaxPermSize Required to bump the space for relective data like
- classes, methods, etc. EMB-41. Endorsed required for things like WS support
- (EMB-61) -->
- <argLine>-Xmx512m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Djava.util.logging.manager=org.jboss.logmanager.LogManager -Djava.endorsed.dirs=${tt.user.jboss6.home}/lib/endorsed -Djboss.home=${tt.user.jboss6.home} -Djboss.boot.server.log.dir=${tt.user.jboss6.home}</argLine>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </profile>
- <profile>
- <id>nightly</id>
- <properties>
- <cargo.jvmargs>-Xmx512m</cargo.jvmargs>
- <jboss-restart-wait-seconds>20</jboss-restart-wait-seconds>
- <tix.server.host>foylejboss6.pd.tracetracker.com</tix.server.host> <!-- TODO: Which foyle to run the new TIX on? -->
- <tix.server.jks>foylejboss6</tix.server.jks> <!-- TODO: Which foyle to run the new TIX on? -->
- <tix.server.shutdown.port>1090</tix.server.shutdown.port>
- <tix.server.ports.set />
- </properties>
- </profile>
- </profiles>
- <prerequisites>
- <maven>3.0.3</maven>
- </prerequisites>
- <description>TraceTracker Traceability Information Exchange Server
- </description>
- <url />
- <contributors />
- <distributionManagement>
- <site>
- <id>site</id>
- <url>file://${user.home}/site/nightly/tix</url>
- </site>
- <repository>
- <id>marplerepo2</id>
- <url>http://mavenrepo.pd.tracetracker.com:9998/tracetracker</url>
- </repository>
- </distributionManagement>
- <scm>
- <connection>scm:svn:http://svn.pd.tracetracker.com/svn/TIX/trunk/tix
- </connection>
- <url>scm:svn:http://svn.pd.tracetracker.com/svn/TIX/trunk/tix</url>
- </scm>
- <properties>
- <endorsed.dir>${project.build.directory}/endorsed</endorsed.dir>
- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- <jboss6x.home>${tt.user.jboss6.home}</jboss6x.home>
- <jboss-restart-wait-seconds>6</jboss-restart-wait-seconds>
- <!--
- <tt-main-resources-unpacked>${project.build.directory}/tt-main-resources-unpacked
- </tt-main-resources-unpacked>
- -->
- <lib-resources-java-unpacked>${project.build.directory}/lib-resources-java-unpacked
- </lib-resources-java-unpacked>
- <lib.resources.java.version>0.21-SNAPSHOT</lib.resources.java.version>
- <enunciate.version>1.23</enunciate.version>
- <spring-security.version>3.1.0.RC2</spring-security.version>
- <postgres.version>8.3-603.jdbc3</postgres.version>
- <arquillian.version>1.0.0.CR2</arquillian.version>
- <hornetq.version>2.2.2.Final</hornetq.version>
- <!-- Override the managed version from jboss-as-depchain -->
- <version.shrinkwrap_shrinkwrap>1.0.0-beta-3</version.shrinkwrap_shrinkwrap>
- <!-- Guide versions -->
- <tix.userguide.version>5.1.0</tix.userguide.version>
- <tix.userguide.fileName>TIX.UserGuide.pdf</tix.userguide.fileName>
- <tix.adminguide.version>5.1.0</tix.adminguide.version>
- <tix.adminguide.fileName>TIX.AdministrationGuide.pdf</tix.adminguide.fileName>
- <application.name>${project.artifactId}</application.name>
- <application.version>${project.version}</application.version>
- <!-- default values -->
- <!--tix.server.java.opts>-Xmx512m -XX:MaxPermSize=256m -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=10252</tix.server.java.opts -->
- <tix.server.java.opts>-Xmx512m -XX:MaxPermSize=256m</tix.server.java.opts>
- <tix.server.host>0.0.0.0</tix.server.host>
- <tix.server.jks>${user.name}</tix.server.jks>
- <tix.server.name>tix-trunk</tix.server.name>
- <tix.server.home>${jboss6x.home}/server/${tix.server.name}</tix.server.home>
- <tix.server.port>8080</tix.server.port>
- <tix.server.ports.set>-Djboss.service.binding.set=ports-03</tix.server.ports.set>
- <tix.server.shutdown.port>1390</tix.server.shutdown.port>
- <tix.rmi.port>1099</tix.rmi.port>
- <tix.hibernate.dialect>org.hibernate.dialect.PostgreSQLDialect</tix.hibernate.dialect>
- <tix.database.host>morse.pd.tracetracker.com</tix.database.host>
- <tix.database.port>5432</tix.database.port>
- <tix.database.type>postgresql</tix.database.type>
- <tix.database.driver>org.postgresql.Driver</tix.database.driver>
- <tix.database.name>tix_${user.name}</tix.database.name>
- <tix.database.username>jboss</tix.database.username>
- <tix.database.password>jboss</tix.database.password>
- <tix.database.admin.username>sa</tix.database.admin.username>
- <tix.database.admin.password>sa_secret</tix.database.admin.password>
- <tix.migration.path>src/main/setup/db/postgresql/migrations
- </tix.migration.path>
- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- <netbeans.hint.j2eeVersion>1.6</netbeans.hint.j2eeVersion>
- <netbeans.hint.deploy.server>JBoss4</netbeans.hint.deploy.server>
- </properties>
- <repositories>
- <repository>
- <id>prime-repo</id>
- <name>PrimeFaces Maven Repository</name>
- <url>http://repository.primefaces.org</url>
- <layout>default</layout>
- </repository>
- </repositories>
- <pluginRepositories>
- <pluginRepository>
- <id>c5-public-repository</id>
- <url>http://mvn.carbonfive.com/public</url>
- </pluginRepository>
- </pluginRepositories>
- </project>