[seam-commits] Seam SVN: r13762 - in modules/resteasy/trunk: impl and 1 other directory.
seam-commits at lists.jboss.org
seam-commits at lists.jboss.org
Fri Sep 17 07:15:02 EDT 2010
Author: mgencur at redhat.com
Date: 2010-09-17 07:15:01 -0400 (Fri, 17 Sep 2010)
New Revision: 13762
Modified:
modules/resteasy/trunk/impl/pom.xml
modules/resteasy/trunk/pom.xml
Log:
code-coverage capability and arq jbossas-managed profile
Modified: modules/resteasy/trunk/impl/pom.xml
===================================================================
--- modules/resteasy/trunk/impl/pom.xml 2010-09-16 14:39:16 UTC (rev 13761)
+++ modules/resteasy/trunk/impl/pom.xml 2010-09-17 11:15:01 UTC (rev 13762)
@@ -22,6 +22,32 @@
<version>${project.version}</version>
</dependency>
</dependencies>
+
+ <profiles>
+ <profile>
+ <id>code-coverage</id>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>emma-maven-plugin</artifactId>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-antrun-plugin</artifactId>
+ </plugin>
+ <plugin>
+ <groupId>org.sonatype.maven.plugin</groupId>
+ <artifactId>emma4it-maven-plugin</artifactId>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
</project>
Modified: modules/resteasy/trunk/pom.xml
===================================================================
--- modules/resteasy/trunk/pom.xml 2010-09-16 14:39:16 UTC (rev 13761)
+++ modules/resteasy/trunk/pom.xml 2010-09-17 11:15:01 UTC (rev 13762)
@@ -16,8 +16,11 @@
<packaging>pom</packaging>
<properties>
- <seam.version>3.0.0.b01</seam.version>
- <arquillian.version>1.0.0.Alpha3</arquillian.version>
+ <seam.version>3.0.0.b01</seam.version>
+ <arquillian.version>1.0.0.Alpha3</arquillian.version>
+ <jbossas.version>6.0.0.20100721-M4</jbossas.version>
+ <jbossas.managed>false</jbossas.managed>
+ <jboss.server.manager.version>1.0.3.GA</jboss.server.manager.version>
</properties>
<url>http://www.seamframework.org</url>
@@ -38,7 +41,6 @@
<module>impl</module>
</modules>
-
<dependencyManagement>
<dependencies>
<dependency>
@@ -100,12 +102,6 @@
<scope>test</scope>
</dependency>
<dependency>
- <groupId>org.jboss.arquillian.container</groupId>
- <artifactId>arquillian-jbossas-remote-6</artifactId>
- <version>${arquillian.version}</version>
- <scope>test</scope>
- </dependency>
- <dependency>
<groupId>org.jboss.jbossas</groupId>
<artifactId>jboss-as-client</artifactId>
<!-- <version>6.0.0-SNAPSHOT</version>-->
@@ -152,6 +148,124 @@
</plugin>
</plugins>
</build>
+
+ <profiles>
+ <profile>
+ <id>code-coverage</id>
+ <build>
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>deploy-emma-jar</id>
+ <phase>process-test-sources</phase>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ <configuration>
+ <tasks>
+ <echo message="Deploying emma jar to server lib directory" />
+ <copy file="${emma.jar.file}"
+ todir="${env.JBOSS_HOME}/server/default/lib"
+ overwrite="true" />
+ </tasks>
+ </configuration>
+ </execution>
+ <execution>
+ <id>retrieve-coverage-file</id>
+ <phase>test</phase>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ <configuration>
+ <tasks>
+ <move file="${env.JBOSS_HOME}/bin/coverage.ec"
+ todir="${basedir}" failonerror="false" />
+ <delete file="${basedir}/transaction.log"
+ failonerror="false" />
+ </tasks>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+ </build>
+ </profile>
+
+ <profile>
+ <id>jbossas-managed-6</id>
+ <properties>
+ <bindAddress>localhost</bindAddress>
+ <httpPort>8080</httpPort>
+ <jbossas.managed>true</jbossas.managed>
+ </properties>
+ <dependencies>
+ <dependency>
+ <groupId>org.jboss.arquillian.container</groupId>
+ <artifactId>arquillian-jbossas-managed-6</artifactId>
+ <version>${arquillian.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.jbossas</groupId>
+ <artifactId>jboss-server-manager</artifactId>
+ <version>${jboss.server.manager.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.jbossas</groupId>
+ <artifactId>jboss-as-client</artifactId>
+ <version>${jbossas.version}</version>
+ <type>pom</type>
+ </dependency>
+ </dependencies>
+ <build>
+ <testResources>
+ <testResource>
+ <directory>src/test/resources</directory>
+ </testResource>
+ <testResource>
+ <directory>src/test/resources-jbossas</directory>
+ </testResource>
+ </testResources>
+ </build>
+ </profile>
+
+ <profile>
+ <id>jbossas-remote-6</id>
+ <activation>
+ <property>
+ <name>jbossas.managed</name>
+ <value>false</value>
+ </property>
+ </activation>
+ <dependencies>
+ <dependency>
+ <groupId>org.jboss.arquillian.container</groupId>
+ <artifactId>arquillian-jbossas-remote-6</artifactId>
+ <version>${arquillian.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.jbossas</groupId>
+ <artifactId>jboss-as-client</artifactId>
+ <version>${jbossas.version}</version>
+ <type>pom</type>
+ </dependency>
+ </dependencies>
+ <build>
+ <testResources>
+ <testResource>
+ <directory>src/test/resources</directory>
+ </testResource>
+ <testResource>
+ <directory>src/test/resources-jbossas</directory>
+ </testResource>
+ </testResources>
+ </build>
+ </profile>
+ </profiles>
<scm>
<connection>scm:svn:http://anonsvn.jboss.org/repos/seam/modules/resteasy/trunk</connection>
More information about the seam-commits
mailing list