[jboss-cvs] JBossAS SVN: r88818 - in projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment: injection and 1 other directory.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Wed May 13 10:44:38 EDT 2009


Author: pgier
Date: 2009-05-13 10:44:38 -0400 (Wed, 13 May 2009)
New Revision: 88818

Modified:
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/injection/pom.xml
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/pom.xml
Log:
Add exec plugin config for running examples.

Modified: projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/injection/pom.xml
===================================================================
--- projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/injection/pom.xml	2009-05-13 14:27:03 UTC (rev 88817)
+++ projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/injection/pom.xml	2009-05-13 14:44:38 UTC (rev 88818)
@@ -5,6 +5,7 @@
     <groupId>org.jboss.microcontainer.examples</groupId>
     <artifactId>pojoDev</artifactId>
     <version>1.0.0</version>
+    <relativePath>..</relativePath>
   </parent>
 
   <modelVersion>4.0.0</modelVersion>
@@ -13,9 +14,10 @@
   <packaging>jar</packaging>
   <version>1.0.0</version>
   <name>Injection</name>
-  <description></description>
+  <description>Injection Example</description>
 
   <properties>
-    <parent.relative.dir>..</parent.relative.dir>
+    <parent.relative.dir>${project.parent.relativePath}</parent.relative.dir>
   </properties>
+  
 </project>

Modified: projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/pom.xml
===================================================================
--- projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/pom.xml	2009-05-13 14:27:03 UTC (rev 88817)
+++ projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/pom.xml	2009-05-13 14:44:38 UTC (rev 88818)
@@ -48,13 +48,27 @@
     <dependency>
       <groupId>org.jboss.microcontainer</groupId>
       <artifactId>jboss-kernel</artifactId>
-      <scope>runtime</scope>
     </dependency>
   </dependencies>
 
   <build>
     <plugins> 
+      <!-- Used for running the examples -->
       <plugin>
+        <groupId>org.codehaus.mojo</groupId>
+        <artifactId>exec-maven-plugin</artifactId>
+        <version>1.1.1</version>
+        <inherited>true</inherited>
+        <configuration>
+          <executable>java</executable>
+          <arguments>
+            <argument>-classpath</argument>
+            <classpath/>
+            <mainClass>org.jboss.kernel.plugins.bootstrap.standalone.StandaloneBootstrap</mainClass>
+          </arguments>
+        </configuration>
+      </plugin>
+      <plugin>
         <artifactId>maven-compiler-plugin</artifactId>
         <configuration>
           <source>1.5</source>




More information about the jboss-cvs-commits mailing list