aslak

Arquillian - Examples - JBoss Embedded AS 6.0 Profile

May 8th, 2010
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 3.43 KB | None | 0 0
  1.       <profile>
  2.          <id>jbossas-embedded-60</id>
  3.          <dependencies>
  4.             <dependency>
  5.                <groupId>org.jboss.arquillian.container</groupId>
  6.                <artifactId>arquillian-jbossas-embedded-60</artifactId>
  7.                <version>${project.version}</version>
  8.             </dependency>
  9.             <dependency> <!-- Need on all profiles except Glassfish to compile, api is not 100% up to date with final spec -->
  10.                <groupId>org.jboss.ejb3</groupId>
  11.                <artifactId>jboss-ejb3-api</artifactId>
  12.                <version>3.1.0</version>
  13.                <scope>test</scope>
  14.             </dependency>
  15.          </dependencies>
  16.       <build>
  17.         <plugins>
  18.           <plugin>
  19.             <artifactId>maven-surefire-plugin</artifactId>
  20.                 <configuration>
  21.                   <additionalClasspathElements>
  22.                     <additionalClasspathElement>${project.build.directory}/jboss-6.0.0.20100429-M3/client/jbossws-native-client.jar</additionalClasspathElement>
  23.                     <!--
  24.                      Because jbossweb.sar contains shared web.xml,
  25.                      which must be visible from same CL as
  26.                      TomcatDeployer.class.getClassLoader
  27.                    -->
  28.                     <additionalClasspathElement>${project.build.directory}/jboss-6.0.0.20100429-M3/server/default/deploy/jbossweb.sar</additionalClasspathElement>
  29.                   </additionalClasspathElements>
  30.  
  31.                   <redirectTestOutputToFile>true</redirectTestOutputToFile>
  32.                   <trimStackTrace>false</trimStackTrace>
  33.                   <printSummary>true</printSummary>
  34.                   <forkMode>once</forkMode>
  35.  
  36.                   <!--
  37.                    MaxPermSize Required to bump the space for relective
  38.                    data like classes, methods, etc. EMB-41. Endorsed
  39.                    required for things like WS support (EMB-61)
  40.                  -->
  41.                   <argLine>-Xmx512m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Djava.util.logging.manager=org.jboss.logmanager.LogManager -Djava.endorsed.dirs=${project.build.directory}/jboss-6.0.0.20100429-M3/lib/endorsed -Djboss.home=${project.build.directory}/jboss-6.0.0.20100429-M3 -Djboss.boot.server.log.dir=${project.build.directory}/jboss-6.0.0.20100429-M3</argLine>
  42.                 </configuration>
  43.           </plugin>
  44.           <plugin>
  45.             <groupId>org.apache.maven.plugins</groupId>
  46.             <artifactId>maven-dependency-plugin</artifactId>
  47.            <executions>
  48.               <execution>
  49.                 <id>unpack</id>
  50.                 <phase>process-test-classes</phase> <!-- So run before testing -->
  51.                 <goals>
  52.                   <goal>unpack</goal>
  53.                 </goals>
  54.               <configuration>
  55.                 <artifactItems>
  56.                   <artifactItem>
  57.                     <groupId>org.jboss.jbossas</groupId>
  58.                     <artifactId>jboss-as-distribution</artifactId>
  59.                     <version>6.0.0.20100429-M3</version>
  60.                     <type>zip</type>
  61.                     <overWrite>false</overWrite>
  62.                     <outputDirectory>${project.build.directory}</outputDirectory>
  63.                   </artifactItem>
  64.                 </artifactItems>
  65.               </configuration>
  66.               </execution>
  67.             </executions>
  68.           </plugin>
  69.         </plugins>
  70.        </build>
  71.       </profile>
Add Comment
Please, Sign In to add comment