Weld SVN: r6686 - archetypes/javaee6-webapp/trunk.
by weld-commits@lists.jboss.org
Author: dan.j.allen
Date: 2010-07-17 11:41:08 -0400 (Sat, 17 Jul 2010)
New Revision: 6686
Modified:
archetypes/javaee6-webapp/trunk/readme.txt
Log:
summarize how to set jboss home
Modified: archetypes/javaee6-webapp/trunk/readme.txt
===================================================================
--- archetypes/javaee6-webapp/trunk/readme.txt 2010-07-17 13:52:22 UTC (rev 6685)
+++ archetypes/javaee6-webapp/trunk/readme.txt 2010-07-17 15:41:08 UTC (rev 6686)
@@ -77,8 +77,15 @@
mvn package jboss:hard-deploy -Djboss.home=/path/to/jboss-as-6.0.0.M3
- Start JBoss AS. The application will be running at the following URL:
+ To summarize, you have three options for specifying the path to your JBoss AS
+ installation:
+ 1. Set the JBOSS_HOME environment variable (e.g., export JBOSS_HOME=/path/to/jboss-as)
+ 2. Define the jboss.home Maven property in $HOME/.m2/settings.xml
+ 3. Override the jboss.home Maven property from the commandline using -Djboss.home=/path/to/jboss-as
+
+ Now start JBoss AS. The application will be running at the following URL:
+
http://localhost:8080/jboss-javaee6-webapp-src/
To undeploy from JBoss AS, run this command:
15 years, 9 months
Weld SVN: r6685 - archetypes/javaee6-webapp/trunk.
by weld-commits@lists.jboss.org
Author: dan.j.allen
Date: 2010-07-17 09:52:22 -0400 (Sat, 17 Jul 2010)
New Revision: 6685
Modified:
archetypes/javaee6-webapp/trunk/pom.xml
Log:
comment use of exclusion
Modified: archetypes/javaee6-webapp/trunk/pom.xml
===================================================================
--- archetypes/javaee6-webapp/trunk/pom.xml 2010-07-17 13:28:13 UTC (rev 6684)
+++ archetypes/javaee6-webapp/trunk/pom.xml 2010-07-17 13:52:22 UTC (rev 6685)
@@ -28,7 +28,7 @@
<repositories>
<!-- The JBoss Community public repository is a composite repository of several major repositories -->
<!-- see http://community.jboss.org/wiki/MavenGettingStarted-Users -->
- <!-- At the time of writing, Arquillian and the JBoss Spec POMs are only in the JBoss Community public repository (not Maven central) -->
+ <!-- At the time of writing, Arquillian and the JBoss Java EE specification POMs are only in the JBoss Community public repository (not Maven central) -->
<repository>
<id>jboss-public-repository</id>
<name>JBoss Repository</name>
@@ -70,6 +70,7 @@
<artifactId>hibernate-jpamodelgen</artifactId>
<version>1.0.0.Final</version>
<scope>provided</scope>
+ <!-- Excluded because it's provided by the Java EE 6 dependencies -->
<exclusions>
<exclusion>
<groupId>org.hibernate.javax.persistence</groupId>
@@ -193,7 +194,7 @@
<activeByDefault>true</activeByDefault>
</activation>
<dependencies>
- <!-- Java EE 6 Specification POM -->
+ <!-- Java EE 6 API dependency -->
<!-- This one dependency imports all APIs available for a Java EE 6.0 application -->
<dependency>
<groupId>org.jboss.spec</groupId>
@@ -293,7 +294,7 @@
<version>${arquillian.version}</version>
<scope>test</scope>
</dependency>
- <!-- Java EE 6 Specification POM -->
+ <!-- Java EE 6 API dependency -->
<!-- This one dependency imports all APIs available for a Java EE 6.0 application -->
<dependency>
<groupId>org.jboss.spec</groupId>
15 years, 9 months
Weld SVN: r6684 - examples/trunk/jsf/pastecode.
by weld-commits@lists.jboss.org
Author: pete.muir(a)jboss.org
Date: 2010-07-17 09:28:13 -0400 (Sat, 17 Jul 2010)
New Revision: 6684
Modified:
examples/trunk/jsf/pastecode/pom.xml
Log:
add main compile phase
Modified: examples/trunk/jsf/pastecode/pom.xml
===================================================================
--- examples/trunk/jsf/pastecode/pom.xml 2010-07-17 13:25:50 UTC (rev 6683)
+++ examples/trunk/jsf/pastecode/pom.xml 2010-07-17 13:28:13 UTC (rev 6684)
@@ -140,6 +140,15 @@
<goal>compile</goal>
</goals>
</execution>
+ <execution>
+ <id>compile</id>
+ <configuration>
+ <compilerArgument>-proc:none</compilerArgument>
+ </configuration>
+ <goals>
+ <goal>compile</goal>
+ </goals>
+ </execution>
</executions>
</plugin>
<!--
15 years, 9 months
Weld SVN: r6683 - examples/trunk/jsf/pastecode.
by weld-commits@lists.jboss.org
Author: pete.muir(a)jboss.org
Date: 2010-07-17 09:25:50 -0400 (Sat, 17 Jul 2010)
New Revision: 6683
Modified:
examples/trunk/jsf/pastecode/pom.xml
Log:
use dan's annotation processor config
Modified: examples/trunk/jsf/pastecode/pom.xml
===================================================================
--- examples/trunk/jsf/pastecode/pom.xml 2010-07-17 13:11:25 UTC (rev 6682)
+++ examples/trunk/jsf/pastecode/pom.xml 2010-07-17 13:25:50 UTC (rev 6683)
@@ -1,171 +1,177 @@
<?xml version="1.0"?>
<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>
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
- <parent>
- <groupId>org.jboss.weld.examples</groupId>
- <artifactId>weld-examples-parent</artifactId>
- <version>1.0.2-SNAPSHOT</version>
- <relativePath>../../pom.xml</relativePath>
- </parent>
+ <parent>
+ <groupId>org.jboss.weld.examples</groupId>
+ <artifactId>weld-examples-parent</artifactId>
+ <version>1.0.2-SNAPSHOT</version>
+ <relativePath>../../pom.xml</relativePath>
+ </parent>
- <groupId>org.jboss.weld.examples.jsf.pastecode</groupId>
- <artifactId>weld-jsf-pastecode</artifactId>
- <packaging>war</packaging>
- <name>Weld Examples: PasteCode</name>
+ <groupId>org.jboss.weld.examples.jsf.pastecode</groupId>
+ <artifactId>weld-jsf-pastecode</artifactId>
+ <packaging>war</packaging>
+ <name>Weld Examples: PasteCode</name>
- <dependencies>
+ <dependencies>
- <dependency>
- <groupId>org.testng</groupId>
- <artifactId>testng</artifactId>
- <scope>test</scope>
- <classifier>jdk15</classifier>
- </dependency>
+ <dependency>
+ <groupId>org.testng</groupId>
+ <artifactId>testng</artifactId>
+ <scope>test</scope>
+ <classifier>jdk15</classifier>
+ </dependency>
- <dependency>
- <groupId>javax.faces</groupId>
- <artifactId>jsf-api</artifactId>
- <scope>provided</scope>
- </dependency>
+ <dependency>
+ <groupId>javax.faces</groupId>
+ <artifactId>jsf-api</artifactId>
+ <scope>provided</scope>
+ </dependency>
- <dependency>
- <groupId>org.tuckey</groupId>
- <artifactId>urlrewritefilter</artifactId>
- <version>3.1.0</version>
- <scope>compile</scope>
- </dependency>
+ <dependency>
+ <groupId>org.tuckey</groupId>
+ <artifactId>urlrewritefilter</artifactId>
+ <version>3.1.0</version>
+ <scope>compile</scope>
+ </dependency>
- <dependency>
- <groupId>org.jboss.spec.javax.servlet</groupId>
- <artifactId>jboss-servlet-api_3.0_spec</artifactId>
- <version>1.0.0.Beta2</version>
- <scope>provided</scope>
- </dependency>
+ <dependency>
+ <groupId>org.jboss.spec.javax.servlet</groupId>
+ <artifactId>jboss-servlet-api_3.0_spec</artifactId>
+ <version>1.0.0.Beta2</version>
+ <scope>provided</scope>
+ </dependency>
- <dependency>
- <groupId>javax.enterprise</groupId>
- <artifactId>cdi-api</artifactId>
- <scope>provided</scope>
- </dependency>
+ <dependency>
+ <groupId>javax.enterprise</groupId>
+ <artifactId>cdi-api</artifactId>
+ <scope>provided</scope>
+ </dependency>
- <dependency>
- <groupId>org.hibernate.javax.persistence</groupId>
- <artifactId>hibernate-jpa-2.0-api</artifactId>
- <version>1.0.0.Final</version>
- <scope>provided</scope>
- </dependency>
+ <dependency>
+ <groupId>org.hibernate.javax.persistence</groupId>
+ <artifactId>hibernate-jpa-2.0-api</artifactId>
+ <version>1.0.0.Final</version>
+ <scope>provided</scope>
+ </dependency>
- <dependency>
- <groupId>org.hibernate</groupId>
- <artifactId>hibernate-jpamodelgen</artifactId>
- <!-- TODO Get this into Weld Parent! -->
- <version>1.0.0.Final</version>
- <scope>provided</scope>
- </dependency>
+ <dependency>
+ <groupId>org.hibernate</groupId>
+ <artifactId>hibernate-jpamodelgen</artifactId>
+ <!-- TODO Get this into Weld Parent! -->
+ <version>1.0.0.Final</version>
+ <scope>provided</scope>
+ </dependency>
- <dependency>
- <groupId>javax.validation</groupId>
- <artifactId>validation-api</artifactId>
- <scope>provided</scope>
- </dependency>
+ <dependency>
+ <groupId>javax.validation</groupId>
+ <artifactId>validation-api</artifactId>
+ <scope>provided</scope>
+ </dependency>
- <dependency>
- <groupId>org.jboss.ejb3</groupId>
- <artifactId>jboss-ejb3-api</artifactId>
- <scope>provided</scope>
- </dependency>
+ <dependency>
+ <groupId>org.jboss.ejb3</groupId>
+ <artifactId>jboss-ejb3-api</artifactId>
+ <scope>provided</scope>
+ </dependency>
- <dependency>
- <groupId>javax.annotation</groupId>
- <artifactId>jsr250-api</artifactId>
- <scope>provided</scope>
- </dependency>
+ <dependency>
+ <groupId>javax.annotation</groupId>
+ <artifactId>jsr250-api</artifactId>
+ <scope>provided</scope>
+ </dependency>
- <dependency>
- <groupId>javax.transaction</groupId>
- <artifactId>jta</artifactId>
- <version>1.1</version>
- <scope>provided</scope>
- </dependency>
+ <dependency>
+ <groupId>javax.transaction</groupId>
+ <artifactId>jta</artifactId>
+ <version>1.1</version>
+ <scope>provided</scope>
+ </dependency>
- <dependency>
- <groupId>org.glassfish.web</groupId>
- <artifactId>el-impl</artifactId>
- <exclusions>
- <exclusion>
- <groupId>javax.el</groupId>
- <artifactId>el-api</artifactId>
- </exclusion>
- </exclusions>
- </dependency>
+ <dependency>
+ <groupId>org.glassfish.web</groupId>
+ <artifactId>el-impl</artifactId>
+ <exclusions>
+ <exclusion>
+ <groupId>javax.el</groupId>
+ <artifactId>el-api</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
- </dependencies>
+ </dependencies>
- <build>
- <finalName>weld-pastecode</finalName>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-war-plugin</artifactId>
- <configuration>
- <warSourceExcludes>WEB-INF/classes/**,WEB-INF/lib/**
- </warSourceExcludes>
- </configuration>
- </plugin>
- <plugin>
- <artifactId>maven-compiler-plugin</artifactId>
- <configuration>
- <compilerArgument>-proc:none</compilerArgument>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.bsc.maven</groupId>
- <artifactId>maven-processor-plugin</artifactId>
- <version>1.3.5</version>
- <executions>
- <execution>
- <id>process</id>
- <goals>
- <goal>process</goal>
- </goals>
- <phase>generate-sources</phase>
- <configuration>
- <!-- source output directory -->
- <outputDirectory>target/metamodel</outputDirectory>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>build-helper-maven-plugin</artifactId>
- <executions>
- <execution>
- <id>add-source</id>
- <phase>generate-sources</phase>
- <goals>
- <goal>add-source</goal>
- </goals>
- <configuration>
- <sources>
- <source>target/metamodel</source>
- </sources>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
+ <build>
+ <finalName>weld-pastecode</finalName>
+ <plugins>
+ <!--
+ Compiler plugin enforces Java 1.6 compatibility and controls
+ execution of annotation processors
+ -->
+ <plugin>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <version>2.3.1</version>
+ <configuration>
+ <source>1.6</source>
+ <target>1.6</target>
+ <compilerArgument>-proc:none</compilerArgument>
+ </configuration>
+ <executions>
+ <execution>
+ <id>run-annotation-processors-only</id>
+ <phase>generate-sources</phase>
+ <configuration>
+ <compilerArgument>-proc:only</compilerArgument>
+ <!--
+ If your app has multiple packages, use this include filter to
+ execute the processor only on the package containing your
+ entities
+ -->
+ <!--
+ <includes> <include>**/model/*.java</include> </includes>
+ -->
+ <includes>
+ <include>org/jboss/weld/examples/pastecode/model/*.java</include>
+ </includes>
+ </configuration>
+ <goals>
+ <goal>compile</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <!--
+ Build helper plugin adds the sources generated by the JPA 2
+ annotation processor to the compile path
+ -->
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>build-helper-maven-plugin</artifactId>
+ <version>1.5</version>
+ <executions>
+ <execution>
+ <phase>process-sources</phase>
+ <configuration>
+ <sources>
+ <source>${project.build.directory}/generated-sources/annotations</source>
+ </sources>
+ </configuration>
+ <goals>
+ <goal>add-source</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
- <!--
- <scm>
- <connection>scm:svn:http://anonsvn.jboss.org/repos/weld/examples/trunk/jsf/pastecode</connection>
- <developerConnection>scm:svn:https://svn.jboss.org/repos/weld/examples/trunk/jsf/pastecode</developerConnection>
- <url>http://fisheye.jboss.org/browse/weld/examples/trunk/jsf/pastecode</url>
- </scm>
- -->
+ <scm>
+ <connection>scm:svn:http://anonsvn.jboss.org/repos/weld/examples/trunk/jsf/pastecode</connection>
+ <developerConnection>scm:svn:https://svn.jboss.org/repos/weld/examples/trunk/jsf/pastecode</developerConnection>
+ <url>http://fisheye.jboss.org/browse/weld/examples/trunk/jsf/pastecode</url>
+ </scm>
</project>
15 years, 9 months
Weld SVN: r6682 - examples/trunk/jsf/numberguess/src/main/webapp/WEB-INF.
by weld-commits@lists.jboss.org
Author: pete.muir(a)jboss.org
Date: 2010-07-17 09:11:25 -0400 (Sat, 17 Jul 2010)
New Revision: 6682
Modified:
examples/trunk/jsf/numberguess/src/main/webapp/WEB-INF/
Log:
ignores
Property changes on: examples/trunk/jsf/numberguess/src/main/webapp/WEB-INF
___________________________________________________________________
Name: svn:ignore
- classes
lib
jetty-env.xml
web.xml
appengine-web.xml
logging.properties
+ classes
lib
jetty-env.xml
web.xml
appengine-web.xml
logging.properties
*.jsfdia
15 years, 9 months
Weld SVN: r6681 - examples/trunk/jsf/numberguess/src/main/webapp/WEB-INF.
by weld-commits@lists.jboss.org
Author: pete.muir(a)jboss.org
Date: 2010-07-17 09:09:15 -0400 (Sat, 17 Jul 2010)
New Revision: 6681
Modified:
examples/trunk/jsf/numberguess/src/main/webapp/WEB-INF/faces-config.xml
Log:
minor
Modified: examples/trunk/jsf/numberguess/src/main/webapp/WEB-INF/faces-config.xml
===================================================================
--- examples/trunk/jsf/numberguess/src/main/webapp/WEB-INF/faces-config.xml 2010-07-17 12:43:38 UTC (rev 6680)
+++ examples/trunk/jsf/numberguess/src/main/webapp/WEB-INF/faces-config.xml 2010-07-17 13:09:15 UTC (rev 6681)
@@ -5,4 +5,7 @@
xsi:schemaLocation="
http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd">
+
+ <name>numberguess</name>
+
</faces-config>
15 years, 9 months
Weld SVN: r6680 - core/trunk/parent.
by weld-commits@lists.jboss.org
Author: pete.muir(a)jboss.org
Date: 2010-07-17 08:43:38 -0400 (Sat, 17 Jul 2010)
New Revision: 6680
Modified:
core/trunk/parent/pom.xml
Log:
use test harness snapshot until M4 is released
Modified: core/trunk/parent/pom.xml
===================================================================
--- core/trunk/parent/pom.xml 2010-07-17 12:43:15 UTC (rev 6679)
+++ core/trunk/parent/pom.xml 2010-07-17 12:43:38 UTC (rev 6680)
@@ -76,7 +76,7 @@
<log4j.version>1.2.14</log4j.version>
<!-- Testing deps -->
<testng.version>5.10</testng.version>
- <jboss.test.harness.version>1.1.0-CR5</jboss.test.harness.version>
+ <jboss.test.harness.version>1.1.0-SNAPSHOT</jboss.test.harness.version>
<jboss.arquillian.version>1.0.0.Alpha2</jboss.arquillian.version>
<jboss.metadata.version>1.0.0.CR16</jboss.metadata.version>
<jboss.mdr.version>2.0.1.GA</jboss.mdr.version>
15 years, 9 months
Weld SVN: r6679 - core/trunk/impl/src/main/java/org/jboss/weld/bean/proxy/util.
by weld-commits@lists.jboss.org
Author: pete.muir(a)jboss.org
Date: 2010-07-17 08:43:15 -0400 (Sat, 17 Jul 2010)
New Revision: 6679
Modified:
core/trunk/impl/src/main/java/org/jboss/weld/bean/proxy/util/SimpleProxyServices.java
Log:
minor
Modified: core/trunk/impl/src/main/java/org/jboss/weld/bean/proxy/util/SimpleProxyServices.java
===================================================================
--- core/trunk/impl/src/main/java/org/jboss/weld/bean/proxy/util/SimpleProxyServices.java 2010-07-17 06:54:04 UTC (rev 6678)
+++ core/trunk/impl/src/main/java/org/jboss/weld/bean/proxy/util/SimpleProxyServices.java 2010-07-17 12:43:15 UTC (rev 6679)
@@ -59,7 +59,6 @@
private ClassLoader _getClassLoader(Class<?> proxiedBeanType)
{
- // return Thread.currentThread().getContextClassLoader();
if (proxiedBeanType.getName().startsWith("java"))
{
return this.getClass().getClassLoader();
@@ -102,10 +101,7 @@
{
public Object run() throws Exception
{
- // ClassLoader cl =
- // Thread.currentThread().getContextClassLoader();
- ClassLoader cl = getClassLoader(this.getClass());
- return Class.forName(className, true, cl);
+ return Class.forName(className, true, getClassLoader(this.getClass()));
}
});
}
15 years, 9 months
Weld SVN: r6678 - in archetypes/javaee6-webapp/trunk: eclipse-dot-files and 2 other directories.
by weld-commits@lists.jboss.org
Author: dan.j.allen
Date: 2010-07-17 02:54:04 -0400 (Sat, 17 Jul 2010)
New Revision: 6678
Added:
archetypes/javaee6-webapp/trunk/eclipse-dot-files/
archetypes/javaee6-webapp/trunk/eclipse-dot-files/.factorypath
archetypes/javaee6-webapp/trunk/eclipse-dot-files/.settings/
archetypes/javaee6-webapp/trunk/eclipse-dot-files/.settings/org.eclipse.jdt.apt.core.prefs
Modified:
archetypes/javaee6-webapp/trunk/build.sh
archetypes/javaee6-webapp/trunk/readme.txt
archetypes/javaee6-webapp/trunk/src/main/java/com/mycompany/MemberListProducer.java
Log:
furthur document the JPA metamodel generation
don't start with a compile dependency on the metamodel (to avoid confusion)
introduce out-of-box Eclipse settings to generate JPA metamodel
Modified: archetypes/javaee6-webapp/trunk/build.sh
===================================================================
--- archetypes/javaee6-webapp/trunk/build.sh 2010-07-17 06:53:03 UTC (rev 6677)
+++ archetypes/javaee6-webapp/trunk/build.sh 2010-07-17 06:54:04 UTC (rev 6678)
@@ -15,7 +15,8 @@
echo Generating archetype from project into $ARCHETYPE_BUILD_DIR...
mvn clean archetype:create-from-project -Darchetype.properties=archetype.properties
echo Relocating generated archetype project to $ARCHETYPE_DIR...
-rsync -az --exclude `basename $0` --exclude archetype-pom.xml $ARCHETYPE_BUILD_DIR/src $ARCHETYPE_DIR/
+rsync -az --exclude `basename $0` --exclude archetype-pom.xml --exclude eclipse-dot-files $ARCHETYPE_BUILD_DIR/src $ARCHETYPE_DIR/
+rsync -az eclipse-dot-files/ $ARCHETYPE_RESOURCES_DIR/
cp -f archetype-pom.xml $ARCHETYPE_DIR/pom.xml
mvn -f $ARCHETYPE_DIR/pom.xml clean
echo Patching generated archetype...
@@ -25,6 +26,7 @@
sed -i 's;
;;' $ARCHETYPE_RESOURCES_DIR/readme.txt
sed -i 's;<name>jboss-javaee6-webapp-src</name>;<name>${name}</name>;' $ARCHETYPE_RESOURCES_DIR/pom.xml
+sed -i 's;eclipse-dot-files/\?;;' $ARCHETYPE_DIR/src/main/resources/META-INF/maven/archetype-metadata.xml
# remove local file that NetBeans add to source project
rm -f $ARCHETYPE_RESOURCES_DIR/src/main/webapp/WEB-INF/sun-web.xml
# could set the release version at this point, if specified
Added: archetypes/javaee6-webapp/trunk/eclipse-dot-files/.factorypath
===================================================================
--- archetypes/javaee6-webapp/trunk/eclipse-dot-files/.factorypath (rev 0)
+++ archetypes/javaee6-webapp/trunk/eclipse-dot-files/.factorypath 2010-07-17 06:54:04 UTC (rev 6678)
@@ -0,0 +1,5 @@
+<factorypath>
+ <factorypathentry kind="PLUGIN" id="org.eclipse.jst.ws.annotations.core" enabled="true" runInBatchMode="false"/>
+ <factorypathentry kind="VARJAR" id="M2_REPO/org/hibernate/hibernate-jpamodelgen/1.0.0.Final/hibernate-jpamodelgen-1.0.0.Final.jar" enabled="true" runInBatchMode="false"/>
+ <factorypathentry kind="VARJAR" id="M2_REPO/org/hibernate/javax/persistence/hibernate-jpa-2.0-api/1.0.0.Final/hibernate-jpa-2.0-api-1.0.0.Final.jar" enabled="true" runInBatchMode="false"/>
+</factorypath>
Added: archetypes/javaee6-webapp/trunk/eclipse-dot-files/.settings/org.eclipse.jdt.apt.core.prefs
===================================================================
--- archetypes/javaee6-webapp/trunk/eclipse-dot-files/.settings/org.eclipse.jdt.apt.core.prefs (rev 0)
+++ archetypes/javaee6-webapp/trunk/eclipse-dot-files/.settings/org.eclipse.jdt.apt.core.prefs 2010-07-17 06:54:04 UTC (rev 6678)
@@ -0,0 +1,4 @@
+eclipse.preferences.version=1
+org.eclipse.jdt.apt.aptEnabled=false
+org.eclipse.jdt.apt.genSrcDir=target/generated-sources/annotations
+org.eclipse.jdt.apt.reconcileEnabled=true
Modified: archetypes/javaee6-webapp/trunk/readme.txt
===================================================================
--- archetypes/javaee6-webapp/trunk/readme.txt 2010-07-17 06:53:03 UTC (rev 6677)
+++ archetypes/javaee6-webapp/trunk/readme.txt 2010-07-17 06:54:04 UTC (rev 6678)
@@ -19,7 +19,7 @@
All you need to run this project is Java 5.0 (Java SDK 1.5) or greator and
Maven 2.0.10 or greater. This application is setup to be run on a Java EE 6
- application server. We've tested it on GlassFish 3 and JBoss AS 6.0.
+ application server. We've tested it on GlassFish 3.0.1 and JBoss AS 6.0.0.M3.
Please note that Maven 2 project needs to use the JBoss Nexus Maven repository
because there are certain Java EE API JARs that are not yet publised to the
@@ -66,8 +66,12 @@
mvn package jboss:hard-deploy
This will deploy two artifacts, target/jboss-javaee6-webapp-src.war and
- default-ds.xml. The latter installs a data source named jdbc/__default,
- so both JBoss AS and GlassFish have a data source with the same name.
+ default-ds.xml.
+
+ NOTE:
+ If you deploy the WAR manually, don't forget to also deploy default-ds.xml!
+ The default-ds.xml file installs a data source named jdbc/__default, so both
+ JBoss AS and GlassFish have a data source with the same name.
You can also set jboss.home on the commandline:
@@ -75,12 +79,8 @@
Start JBoss AS. The application will be running at the following URL:
- http://localhost:8080/jboss-javaee6-webapp-src/home.jsf
+ http://localhost:8080/jboss-javaee6-webapp-src/
- Note: If you are using JBoss AS 6.0.0.M3, you may encounter the exception
- described in https://jira.jboss.org/browse/WELD-448 if you attempt to access
- to root context path (i.e., /).
-
To undeploy from JBoss AS, run this command:
mvn jboss:hard-undeploy
@@ -153,15 +153,22 @@
Select File > Import... and select "Existing Maven Projects" and navigate to
your project directory. Click Finish and m2eclipse will take it from there.
- Once in the IDE, you can execute the Maven commands through the IDE controls
- to deploy the application to a container.
+ Additional configuration is required to get Eclipse to generate the JPA
+ metamodel. The archetype includes the necessary Eclipse config files in your project.
+ To enable this feature, right click on the project and select:
- NOTE: If the project shows a compile error after import, it's likely that the
- generated sources are not on the Eclipse project classpath. Right click the
- project and select:
+ Properties > Java Compiler > Annotation Processing
- Maven > Update Project Configuration
+ Check "Enable annotation processing" then click OK and OK again when your are
+ prompted to run a project build.
+ You can verify your configuration by referring to the Hibernate JPA documentation.
+
+ http://docs.jboss.org/hibernate/stable/jpamodelgen/reference/en-US/html_s...
+
+ Once the project is imported into the IDE, you can execute the Maven commands
+ through the IDE controls to deploy the application to a container.
+
Downloading the sources and Javadocs
====================================
Modified: archetypes/javaee6-webapp/trunk/src/main/java/com/mycompany/MemberListProducer.java
===================================================================
--- archetypes/javaee6-webapp/trunk/src/main/java/com/mycompany/MemberListProducer.java 2010-07-17 06:53:03 UTC (rev 6677)
+++ archetypes/javaee6-webapp/trunk/src/main/java/com/mycompany/MemberListProducer.java 2010-07-17 06:54:04 UTC (rev 6678)
@@ -40,8 +40,9 @@
{
CriteriaBuilder cb = em.getCriteriaBuilder();
CriteriaQuery<Member> criteria = cb.createQuery(Member.class);
- Root<Member> widget = criteria.from(Member.class);
- criteria.select(widget).orderBy(cb.asc(widget.get(Member_.name)));
+ Root<Member> member = criteria.from(Member.class);
+ // replace "name" with Member_.name if the JPA metamodel has been generated
+ criteria.select(member).orderBy(cb.asc(member.get("name")));
members = em.createQuery(criteria).getResultList();
}
}
15 years, 9 months
Weld SVN: r6677 - archetypes/javaee6-webapp/trunk.
by weld-commits@lists.jboss.org
Author: dan.j.allen
Date: 2010-07-17 02:53:03 -0400 (Sat, 17 Jul 2010)
New Revision: 6677
Modified:
archetypes/javaee6-webapp/trunk/pom.xml
Log:
bump embedded glassfish version
Modified: archetypes/javaee6-webapp/trunk/pom.xml
===================================================================
--- archetypes/javaee6-webapp/trunk/pom.xml 2010-07-17 04:09:07 UTC (rev 6676)
+++ archetypes/javaee6-webapp/trunk/pom.xml 2010-07-17 06:53:03 UTC (rev 6677)
@@ -248,7 +248,7 @@
<dependency>
<groupId>org.glassfish.extras</groupId>
<artifactId>glassfish-embedded-all</artifactId>
- <version>3.0.1-b19</version>
+ <version>3.0.1-b20</version>
<scope>provided</scope>
</dependency>
</dependencies>
15 years, 9 months