[webbeans-commits] Webbeans SVN: r2443 - in examples/trunk/wicket: conversations/src/main/resources and 1 other directories.

webbeans-commits at lists.jboss.org webbeans-commits at lists.jboss.org
Thu Apr 16 15:07:53 EDT 2009


Author: cpopetz
Date: 2009-04-16 15:07:53 -0400 (Thu, 16 Apr 2009)
New Revision: 2443

Modified:
   examples/trunk/wicket/conversations/pom.xml
   examples/trunk/wicket/conversations/src/main/resources/beans.xml
   examples/trunk/wicket/numberguess/pom.xml
Log:
fix building a .war for these two, and make dependencies work for compiling from command line.


Modified: examples/trunk/wicket/conversations/pom.xml
===================================================================
--- examples/trunk/wicket/conversations/pom.xml	2009-04-16 18:24:09 UTC (rev 2442)
+++ examples/trunk/wicket/conversations/pom.xml	2009-04-16 19:07:53 UTC (rev 2443)
@@ -36,14 +36,12 @@
       <dependency>
          <groupId>org.jboss.webbeans.tomcat</groupId>
          <artifactId>webbeans-tomcat</artifactId>
-         <scope>runtime</scope>
       </dependency>
 
 	  <dependency>
 	  	<groupId>org.jboss.webbeans</groupId>
 	  	<artifactId>webbeans-wicket</artifactId>
 	    <version>1.0.0-SNAPSHOT</version>
-		  <scope>runtime</scope>
 	  </dependency>
 	  	
 		<dependency>
@@ -114,6 +112,22 @@
         <artifactId>maven-eclipse-plugin</artifactId> 
         <version>2.5.1</version> 
       </plugin> 
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-war-plugin</artifactId>
+        <configuration>
+          <webResources>
+            <resource>
+              <directory>src/main/webapp/WEB-INF</directory>
+              <targetPath>WEB-INF</targetPath>
+              <includes>
+                <include>**/beans.xml</include>
+                <include>**/web.xml</include>
+              </includes>
+            </resource>
+          </webResources>
+        </configuration>
+      </plugin>
 		</plugins>
 	</build>
 

Modified: examples/trunk/wicket/conversations/src/main/resources/beans.xml
===================================================================
--- examples/trunk/wicket/conversations/src/main/resources/beans.xml	2009-04-16 18:24:09 UTC (rev 2442)
+++ examples/trunk/wicket/conversations/src/main/resources/beans.xml	2009-04-16 19:07:53 UTC (rev 2443)
@@ -1,7 +0,0 @@
-<Beans xmlns="urn:java:ee" xmlns:conversations="urn:java:org.jboss.webbeans.examples.conversations">
-  <Deploy>
-    <Standard />
-    <Production />
-    <conversations:Example />
-  </Deploy>
-</Beans>

Modified: examples/trunk/wicket/numberguess/pom.xml
===================================================================
--- examples/trunk/wicket/numberguess/pom.xml	2009-04-16 18:24:09 UTC (rev 2442)
+++ examples/trunk/wicket/numberguess/pom.xml	2009-04-16 19:07:53 UTC (rev 2443)
@@ -43,7 +43,6 @@
 	  	<groupId>org.jboss.webbeans</groupId>
 	  	<artifactId>webbeans-wicket</artifactId>
 	    <version>1.0.0-SNAPSHOT</version>
-		  <scope>runtime</scope>
 	  </dependency>
 	  	
 		<dependency>
@@ -114,6 +113,22 @@
             <artifactId>maven-eclipse-plugin</artifactId> 
             <version>2.5.1</version> 
           </plugin> 
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-war-plugin</artifactId>
+        <configuration>
+          <webResources>
+            <resource>
+              <directory>src/main/webapp/WEB-INF</directory>
+              <targetPath>WEB-INF</targetPath>
+              <includes>
+                <include>**/beans.xml</include>
+                <include>**/web.xml</include>
+              </includes>
+            </resource>
+          </webResources>
+        </configuration>
+      </plugin>
 		</plugins>
 	</build>
 




More information about the weld-commits mailing list