Author: sboscarine
Date: 2010-06-20 16:05:02 -0400 (Sun, 20 Jun 2010)
New Revision: 6570
Modified:
archetypes/trunk/javaee6-webapp-src/pom.xml
Log:
Comment updates
Modified: archetypes/trunk/javaee6-webapp-src/pom.xml
===================================================================
--- archetypes/trunk/javaee6-webapp-src/pom.xml 2010-06-20 06:35:24 UTC (rev 6569)
+++ archetypes/trunk/javaee6-webapp-src/pom.xml 2010-06-20 20:05:02 UTC (rev 6570)
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<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/maven-v4_0_0.xsd">
+<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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.jboss.weld.archetypes</groupId>
@@ -12,19 +11,14 @@
<description>A basic Java EE 6 webapp project generated from the
jboss-javaee6-webapp archetype</description>
<properties>
- <!--
- Explicitly declaring the source encoding eliminates the following message:
- [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources,
i.e. build is platform dependent!
- -->
+ <!-- Explicitly declaring the source encoding eliminates the following message:
-->
+ <!-- [WARNING] Using platform encoding (UTF-8 actually) to copy filtered
resources, i.e. build is platform dependent! -->
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- <!--
- Timestamp format for the maven.build.timestamp property; you can reference
property in pom.xml or filtered
- resources (must enable third-party plugin if using Maven < 2.1)
- -->
+ <!--Timestamp format for the maven.build.timestamp property; -->
+ <!--you can reference property in pom.xml or filtered resources (must enable
third-party plugin if using Maven < 2.1)-->
<maven.build.timestamp.format>yyyyMMdd'T'HHmmss</maven.build.timestamp.format>
<!--
- To set the jboss.home environment variable the Maven way, set the jboss.home
property in an active profile in
- the Maven 2 settings.xml file
+ To set the jboss.home environment variable the Maven way, set the jboss.home
property in an active profile in the Maven 2 settings.xml file
-->
<jboss.home>${env.JBOSS_HOME}</jboss.home>
<jboss.domain>default</jboss.domain>
@@ -35,11 +29,12 @@
<repositories>
<!-- The JBoss public Nexus repository is a composite repository of several
major repositories -->
<!-- see
http://community.jboss.org/wiki/MavenGettingStarted-Users -->
- <!-- The goal is to get everything you would need into the central, but it's
not there yet -->
+ <!-- At the time of writing, Arquillian and the JBoss Spec POMs have newer
versions in the JBoss repo than Maven central. -->
<repository>
<id>jboss-public-repository</id>
<name>JBoss Repository</name>
<
url>https://repository.jboss.org/nexus/content/groups/public</url>
+ <!-- These optional flags are designed to speed up your builds by reducing
remote server calls. -->
<releases>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
@@ -56,6 +51,7 @@
<id>jboss-public-repository</id>
<name>JBoss Repository</name>
<
url>https://repository.jboss.org/nexus/content/groups/public</url>
+ <!-- These optional flags are designed to speed up your builds by reducing
remote server calls. -->
<releases>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
@@ -91,14 +87,15 @@
<version>4.0.0.GA</version>
<scope>provided</scope>
</dependency>
-
+ <!-- Optional, but highly recommended. -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.8.1</version>
<scope>test</scope>
</dependency>
-
+ <!-- Optional, but highly recommended. -->
+ <!-- Arquillian allows you to test enterprise code such as EJBs and
Transactional JPA from JUnit/TestNG. -->
<dependency>
<groupId>org.jboss.arquillian</groupId>
<artifactId>arquillian-junit</artifactId>
@@ -132,6 +129,8 @@
<activeByDefault>true</activeByDefault>
</activation>
<dependencies>
+ <!-- Java EE Specification POM -->
+ <!-- This one dependency imports all APIs available for a Java EE 6.0
application. -->
<dependency>
<groupId>org.jboss.spec</groupId>
<artifactId>jboss-javaee-6.0</artifactId>
@@ -149,7 +148,9 @@
<skip>true</skip>
</configuration>
</plugin>
- <!-- Configure the JBoss AS Maven deploy plugin -->
+
+ <!-- Optional JBoss deployer plugin will deploy your war to a local
JBoss AS container if you've declared $JBOSS_HOME in your OS.-->
+ <!-- To use, declare $JBOSS_HOME and run 'mvn package
jboss:hard-deploy' -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jboss-maven-plugin</artifactId>
@@ -158,6 +159,8 @@
<jbossHome>${jboss.home}</jbossHome>
<serverName>${jboss.domain}</serverName>
<fileNames>
+
<fileName>${project.build.directory}/${project.build.finalName}.war</fileName>
+ <!-- JNDI Datasource hitting Derby to demonstrate JPA. -->
<fileName>src/main/resources-jbossas/default-ds.xml</fileName>
<fileName>${project.build.directory}/${project.build.finalName}.war</fileName>
</fileNames>
@@ -176,6 +179,7 @@
<version>${arquillian.version}</version>
<scope>test</scope>
</dependency>
+ <!-- This imports all APIs needed for a Java EE 6 application. -->
<dependency>
<groupId>org.glassfish.extras</groupId>
<artifactId>glassfish-embedded-all</artifactId>
@@ -188,6 +192,8 @@
<testResource>
<directory>src/test/resources</directory>
</testResource>
+ <!-- Overrides default configuration to use alternate persistence.xml
with eclipselink settings and declare a Glassfish Datasource. -->
+ <!-- Used by Arquillian -->
<testResource>
<directory>src/test/resources-glassfish-embedded</directory>
</testResource>
@@ -220,6 +226,8 @@
<version>${arquillian.version}</version>
<scope>test</scope>
</dependency>
+ <!-- Java EE Specification POM -->
+ <!-- This one dependency imports all APIs available for a Java EE 6.0
application. -->
<dependency>
<groupId>org.jboss.spec</groupId>
<artifactId>jboss-javaee-6.0</artifactId>
@@ -241,6 +249,8 @@
<testResource>
<directory>src/test/resources</directory>
</testResource>
+ <!-- Overrides default configuration to use alternate persistence.xml
with Hibernate settings and declare a JBossAS Datasource. -->
+ <!-- Used by Arquillian -->
<testResource>
<directory>src/test/resources-jbossas</directory>
</testResource>