Created
January 12, 2016 01:48
-
-
Save The-Alchemist/e846dcbec2a71af779d9 to your computer and use it in GitHub Desktop.
POM to produce NPE for wildfly maven plugin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> | |
<groupId>com.github.thealchemist</groupId> | |
<version>1.0</version> | |
<artifactId>functional-tests</artifactId> | |
<name>whatever tests</name> | |
<description>Selenium tests</description> | |
<properties> | |
<version.org.wildfly>9.0.2.Final</version.org.wildfly> | |
<ghostdriver.version>1.1.0</ghostdriver.version> | |
<phantomjs.version>2.0.0</phantomjs.version> | |
<phantomjs.plugin.version>0.7</phantomjs.plugin.version> | |
<version-login_module-ear>0.2.8</version-login_module-ear> | |
<version-login_module-jbcrypt>0.3m</version-login_module-jbcrypt> | |
<version-login_module-commons-httpcomponents>4.4.1</version-login_module-commons-httpcomponents> | |
<version-login_module-gson>2.2.2</version-login_module-gson> | |
<version-login_module-javax.json>1.0.1</version-login_module-javax.json> | |
<version-login_module-commons-ioutils>1.3.2</version-login_module-commons-ioutils> | |
<directory.wildfly.extract>${project.build.directory}/wildfly-embedded</directory.wildfly.extract> | |
<directory.wildfly.install>${project.build.directory}/wildfly-embedded/wildfly-${version.org.wildfly}</directory.wildfly.install> | |
</properties> | |
<dependencies> | |
<dependency> | |
<groupId>com.github.detro</groupId> | |
<artifactId>phantomjsdriver</artifactId> | |
<version>1.2.0</version> | |
<scope>test</scope> | |
</dependency> | |
<dependency> | |
<groupId>org.postgresql</groupId> | |
<artifactId>postgresql</artifactId> | |
<version>9.3-1102-jdbc41</version> | |
<type>jar</type> | |
</dependency> | |
<dependency> | |
<groupId>org.mindrot</groupId> | |
<artifactId>jbcrypt</artifactId> | |
<version>${version-login_module-jbcrypt}</version> | |
<type>jar</type> | |
</dependency> | |
<dependency> | |
<groupId>org.apache.httpcomponents</groupId> | |
<artifactId>httpclient</artifactId> | |
<version>${version-login_module-commons-httpcomponents}</version> | |
<type>jar</type> | |
</dependency> | |
<dependency> | |
<groupId>org.apache.httpcomponents</groupId> | |
<artifactId>httpcore</artifactId> | |
<version>${version-login_module-commons-httpcomponents}</version> | |
<type>jar</type> | |
</dependency> | |
<dependency> | |
<groupId>com.google.code.gson</groupId> | |
<artifactId>gson</artifactId> | |
<version>${version-login_module-gson}</version> | |
<type>jar</type> | |
</dependency> | |
<dependency> | |
<groupId>org.glassfish</groupId> | |
<artifactId>javax.json</artifactId> | |
<version>${version-login_module-javax.json}</version> | |
<type>jar</type> | |
</dependency> | |
<dependency> | |
<groupId>commons-io</groupId> | |
<artifactId>commons-io</artifactId> | |
<version>${version-login_module-commons-ioutils}</version> | |
<type>jar</type> | |
</dependency> | |
<dependency> | |
<groupId>junit</groupId> | |
<artifactId>junit</artifactId> | |
<version>4.12</version> | |
<scope>test</scope> | |
</dependency> | |
<dependency> | |
<groupId>org.hamcrest</groupId> | |
<artifactId>hamcrest-library</artifactId> | |
<version>1.3</version> | |
<scope>test</scope> | |
</dependency> | |
</dependencies> | |
<build> | |
<resources> | |
<resource> | |
<directory>${project.basedir}/src/main/resources</directory> | |
<filtering>false</filtering> | |
</resource> | |
<!-- filter this directory because there's a file called database.properties that needs to be "filled out" --> | |
<resource> | |
<directory>${project.basedir}/src/main/filtered-resources</directory> | |
<filtering>true</filtering> | |
</resource> | |
</resources> | |
<plugins> | |
<plugin> | |
<artifactId>maven-failsafe-plugin</artifactId> | |
<version>2.19.1</version> | |
<configuration> | |
<systemPropertyVariables> | |
<phantomjs.binary>${phantomjs.binary}</phantomjs.binary> | |
</systemPropertyVariables> | |
</configuration> | |
</plugin> | |
<plugin> | |
<groupId>com.github.klieber</groupId> | |
<artifactId>phantomjs-maven-plugin</artifactId> | |
<version>${phantomjs.plugin.version}</version> | |
<executions> | |
<execution> | |
<goals> | |
<goal>install</goal> | |
</goals> | |
</execution> | |
</executions> | |
<configuration> | |
<version>${phantomjs.version}</version> | |
</configuration> | |
</plugin> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-dependency-plugin</artifactId> | |
<configuration> | |
<skip>${skipITs}</skip> | |
</configuration> | |
<executions> | |
<execution> | |
<id>unpack</id> | |
<phase>pre-integration-test</phase> | |
<goals> | |
<goal>unpack</goal> | |
</goals> | |
<configuration> | |
<artifactItems> | |
<artifactItem> | |
<groupId>org.wildfly</groupId> | |
<artifactId>wildfly-dist</artifactId> | |
<version>${version.org.wildfly}</version> | |
<type>zip</type> | |
<overWrite>true</overWrite> | |
<outputDirectory>${directory.wildfly.extract}</outputDirectory> | |
</artifactItem> | |
</artifactItems> | |
</configuration> | |
</execution> | |
</executions> | |
</plugin> | |
<plugin> | |
<groupId>org.wildfly.plugins</groupId> | |
<artifactId>wildfly-maven-plugin</artifactId> | |
<version>1.1.0.Alpha5</version> | |
<configuration> | |
<jboss-home>${directory.wildfly.install}</jboss-home> | |
<jvmArgs>-Duser.timezone=UTC</jvmArgs> | |
<server-config>standalone-full.xml</server-config> | |
</configuration> | |
<executions> | |
<execution> | |
<id>start-wildfly</id> | |
<phase>pre-integration-test</phase> | |
<goals> | |
<goal>start</goal> | |
</goals> | |
</execution> | |
<!-- Deploy postgreSQL JDBC driver --> | |
<execution> | |
<id>deploy_postgresql_driver</id> | |
<phase>pre-integration-test</phase> | |
<goals> | |
<goal>deploy-artifact</goal> | |
</goals> | |
<configuration> | |
<groupId>org.postgresql</groupId> | |
<artifactId>postgresql</artifactId> | |
<name>postgresql.jar</name> | |
</configuration> | |
</execution> | |
<execution> | |
<id>stop-wildfly</id> | |
<phase>post-integration-test</phase> | |
<goals> | |
<goal>shutdown</goal> | |
</goals> | |
</execution> | |
</executions> | |
</plugin> | |
</plugins> | |
<pluginManagement> | |
<plugins> | |
</plugins> | |
</pluginManagement> | |
</build> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment