[weld-commits] Weld SVN: r6683 - examples/trunk/jsf/pastecode.

weld-commits at lists.jboss.org weld-commits at lists.jboss.org
Sat Jul 17 09:25:50 EDT 2010


Author: pete.muir at 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>
 



More information about the weld-commits mailing list