[jboss-cvs] JBossAS SVN: r66910 - in projects/microcontainer/trunk/docs/examples/User_Guide/gettingStarted: auditAspect and 9 other directories.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Fri Nov 9 06:00:03 EST 2007


Author: newtonm
Date: 2007-11-09 06:00:03 -0500 (Fri, 09 Nov 2007)
New Revision: 66910

Added:
   projects/microcontainer/trunk/docs/examples/User_Guide/gettingStarted/distributions/dist.xml
   projects/microcontainer/trunk/docs/examples/User_Guide/gettingStarted/distributions/run.sh
   projects/microcontainer/trunk/docs/examples/User_Guide/gettingStarted/pom.xml
Removed:
   projects/microcontainer/trunk/docs/examples/User_Guide/gettingStarted/distributions/client/src/main/assembly/
   projects/microcontainer/trunk/docs/examples/User_Guide/gettingStarted/distributions/client/src/main/config/run.sh
   projects/microcontainer/trunk/docs/examples/User_Guide/gettingStarted/distributions/clientAOP/src/main/assembly/
   projects/microcontainer/trunk/docs/examples/User_Guide/gettingStarted/distributions/clientAOP/src/main/config/run.sh
Modified:
   projects/microcontainer/trunk/docs/examples/User_Guide/gettingStarted/auditAspect/pom.xml
   projects/microcontainer/trunk/docs/examples/User_Guide/gettingStarted/commandLineClient/pom.xml
   projects/microcontainer/trunk/docs/examples/User_Guide/gettingStarted/distributions/client/pom.xml
   projects/microcontainer/trunk/docs/examples/User_Guide/gettingStarted/distributions/clientAOP/pom.xml
   projects/microcontainer/trunk/docs/examples/User_Guide/gettingStarted/distributions/pom.xml
   projects/microcontainer/trunk/docs/examples/User_Guide/gettingStarted/humanResourcesService/pom.xml
Log:
Added parent POMs for dependency management.

Modified: projects/microcontainer/trunk/docs/examples/User_Guide/gettingStarted/auditAspect/pom.xml
===================================================================
--- projects/microcontainer/trunk/docs/examples/User_Guide/gettingStarted/auditAspect/pom.xml	2007-11-09 10:51:59 UTC (rev 66909)
+++ projects/microcontainer/trunk/docs/examples/User_Guide/gettingStarted/auditAspect/pom.xml	2007-11-09 11:00:03 UTC (rev 66910)
@@ -1,6 +1,12 @@
 <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">
 
+  <parent>
+    <groupId>org.jboss.microcontainer.examples</groupId>
+    <artifactId>gettingStarted</artifactId>
+    <version>1.0.0</version>
+  </parent>
+
   <modelVersion>4.0.0</modelVersion>
   <groupId>org.jboss.microcontainer.examples</groupId>
   <artifactId>auditAspect</artifactId>
@@ -13,31 +19,11 @@
     <dependency>
       <groupId>org.jboss.aop</groupId>
       <artifactId>jboss-aop</artifactId>
-      <version>2.0.0-SNAPSHOT</version>
-      <scope>compile</scope>
     </dependency>
     <dependency>
       <groupId>junit</groupId>
       <artifactId>junit</artifactId>
-      <version>3.8.1</version>
-      <scope>test</scope>
     </dependency>
   </dependencies>
     
-  <build>
-    <plugins> 
-      <plugin>
-        <artifactId>maven-compiler-plugin</artifactId>
-        <configuration>
-          <source>1.5</source>
-          <target>1.5</target>
-          <debug>true</debug>
-          <showDeprecation>true</showDeprecation>
-          <showWarnings>true</showWarnings>
-          <optimize>true</optimize>
-        </configuration>
-      </plugin>  
-    </plugins>
-  </build>
-
 </project>

Modified: projects/microcontainer/trunk/docs/examples/User_Guide/gettingStarted/commandLineClient/pom.xml
===================================================================
--- projects/microcontainer/trunk/docs/examples/User_Guide/gettingStarted/commandLineClient/pom.xml	2007-11-09 10:51:59 UTC (rev 66909)
+++ projects/microcontainer/trunk/docs/examples/User_Guide/gettingStarted/commandLineClient/pom.xml	2007-11-09 11:00:03 UTC (rev 66910)
@@ -1,6 +1,12 @@
 <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">
 
+  <parent>
+    <groupId>org.jboss.microcontainer.examples</groupId>
+    <artifactId>gettingStarted</artifactId>
+    <version>1.0.0</version>
+  </parent>
+
   <modelVersion>4.0.0</modelVersion>
   <groupId>org.jboss.microcontainer.examples</groupId>
   <artifactId>client</artifactId>
@@ -13,37 +19,21 @@
     <dependency>
       <groupId>org.jboss.microcontainer</groupId>
       <artifactId>jboss-kernel</artifactId>
-      <version>2.0.0-SNAPSHOT</version>
-      <scope>compile</scope>      
     </dependency>
     <dependency>
       <groupId>org.jboss.microcontainer.examples</groupId>
       <artifactId>humanResourcesService</artifactId>
       <version>1.0.0</version>
-      <scope>compile</scope>
     </dependency>
     <dependency>
       <groupId>junit</groupId>
       <artifactId>junit</artifactId>
-      <version>3.8.1</version>
-      <scope>test</scope>
     </dependency>
   </dependencies>
     
   <build>
     <plugins>
       <plugin>
-        <artifactId>maven-compiler-plugin</artifactId>
-        <configuration>
-          <source>1.5</source>
-          <target>1.5</target>
-          <debug>true</debug>
-          <showDeprecation>true</showDeprecation>
-          <showWarnings>true</showWarnings>
-          <optimize>true</optimize>
-        </configuration>
-      </plugin> 
-      <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-jar-plugin</artifactId>
         <configuration>

Modified: projects/microcontainer/trunk/docs/examples/User_Guide/gettingStarted/distributions/client/pom.xml
===================================================================
--- projects/microcontainer/trunk/docs/examples/User_Guide/gettingStarted/distributions/client/pom.xml	2007-11-09 10:51:59 UTC (rev 66909)
+++ projects/microcontainer/trunk/docs/examples/User_Guide/gettingStarted/distributions/client/pom.xml	2007-11-09 11:00:03 UTC (rev 66910)
@@ -15,17 +15,4 @@
   <name>Client Distribution</name>
   <description>A simple command line client that uses the Human Resources Service.</description>
 
-  <build>
-    <plugins>
-      <plugin>
-        <artifactId>maven-assembly-plugin</artifactId>
-        <configuration>
-          <descriptors>
-            <descriptor>src/main/assembly/dist.xml</descriptor>
-          </descriptors>
-        </configuration>
-      </plugin> 
-    </plugins>
-  </build>
-
 </project>

Deleted: projects/microcontainer/trunk/docs/examples/User_Guide/gettingStarted/distributions/client/src/main/config/run.sh
===================================================================
--- projects/microcontainer/trunk/docs/examples/User_Guide/gettingStarted/distributions/client/src/main/config/run.sh	2007-11-09 10:51:59 UTC (rev 66909)
+++ projects/microcontainer/trunk/docs/examples/User_Guide/gettingStarted/distributions/client/src/main/config/run.sh	2007-11-09 11:00:03 UTC (rev 66910)
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-java -Djava.ext.dirs=`pwd`/lib -cp .:client-1.0.0.jar org.jboss.example.client.Client

Modified: projects/microcontainer/trunk/docs/examples/User_Guide/gettingStarted/distributions/clientAOP/pom.xml
===================================================================
--- projects/microcontainer/trunk/docs/examples/User_Guide/gettingStarted/distributions/clientAOP/pom.xml	2007-11-09 10:51:59 UTC (rev 66909)
+++ projects/microcontainer/trunk/docs/examples/User_Guide/gettingStarted/distributions/clientAOP/pom.xml	2007-11-09 11:00:03 UTC (rev 66910)
@@ -19,34 +19,15 @@
     <dependency>
       <groupId>org.jboss.aop</groupId>
       <artifactId>jboss-aop</artifactId>
-      <version>2.0.0-SNAPSHOT</version>
-      <scope>runtime</scope>
     </dependency>
     <dependency>
       <groupId>org.jboss.microcontainer</groupId>
       <artifactId>jboss-aop-mc-int</artifactId>
-      <version>2.0.0-SNAPSHOT</version>
-      <scope>runtime</scope>
     </dependency>
     <dependency>
       <groupId>org.jboss.microcontainer.examples</groupId>
       <artifactId>auditAspect</artifactId>
-      <version>1.0.0</version>
-      <scope>runtime</scope>
     </dependency>
   </dependencies>
   
-  <build>
-    <plugins>
-      <plugin>
-        <artifactId>maven-assembly-plugin</artifactId>
-        <configuration>
-          <descriptors>
-            <descriptor>src/main/assembly/dist.xml</descriptor>
-          </descriptors>
-        </configuration>
-      </plugin> 
-    </plugins>
-  </build>
-
 </project>

Deleted: projects/microcontainer/trunk/docs/examples/User_Guide/gettingStarted/distributions/clientAOP/src/main/config/run.sh
===================================================================
--- projects/microcontainer/trunk/docs/examples/User_Guide/gettingStarted/distributions/clientAOP/src/main/config/run.sh	2007-11-09 10:51:59 UTC (rev 66909)
+++ projects/microcontainer/trunk/docs/examples/User_Guide/gettingStarted/distributions/clientAOP/src/main/config/run.sh	2007-11-09 11:00:03 UTC (rev 66910)
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-java -Djava.ext.dirs=`pwd`/lib -cp .:client-1.0.0.jar org.jboss.example.client.Client

Added: projects/microcontainer/trunk/docs/examples/User_Guide/gettingStarted/distributions/dist.xml
===================================================================
--- projects/microcontainer/trunk/docs/examples/User_Guide/gettingStarted/distributions/dist.xml	                        (rev 0)
+++ projects/microcontainer/trunk/docs/examples/User_Guide/gettingStarted/distributions/dist.xml	2007-11-09 11:00:03 UTC (rev 66910)
@@ -0,0 +1,34 @@
+<assembly>
+  <id>dist</id>
+  <formats>
+    <format>dir</format>
+  </formats>
+  <includeBaseDirectory>false</includeBaseDirectory>
+  <files>
+    <file>
+      <source>src/main/config/service-beans.xml</source>
+    </file>
+    <file>
+      <source>../run.sh</source>
+      <fileMode>0744</fileMode>
+    </file>
+  </files>
+  <dependencySets>
+    <dependencySet>
+      <outputDirectory>/lib</outputDirectory>
+      <unpack>false</unpack>
+      <scope>runtime</scope>
+       <excludes>
+        <exclude>org.jboss.microcontainer.examples:client</exclude>
+      </excludes>
+    </dependencySet>
+    <dependencySet>
+      <outputDirectory/>
+      <unpack>false</unpack>
+      <scope>runtime</scope>
+      <includes>
+        <include>org.jboss.microcontainer.examples:client</include>
+      </includes>
+    </dependencySet>
+  </dependencySets>
+</assembly>

Modified: projects/microcontainer/trunk/docs/examples/User_Guide/gettingStarted/distributions/pom.xml
===================================================================
--- projects/microcontainer/trunk/docs/examples/User_Guide/gettingStarted/distributions/pom.xml	2007-11-09 10:51:59 UTC (rev 66909)
+++ projects/microcontainer/trunk/docs/examples/User_Guide/gettingStarted/distributions/pom.xml	2007-11-09 11:00:03 UTC (rev 66910)
@@ -9,25 +9,82 @@
   <name>Distributions</name>
   <description>Common dependencies for the getting started distributions.</description>
 
+  <dependencyManagement>
+    <dependencies>
+      <dependency>
+        <groupId>org.jboss.microcontainer</groupId>
+        <artifactId>jboss-kernel</artifactId>
+        <version>2.0.0-SNAPSHOT</version>
+        <scope>runtime</scope>
+      </dependency>
+      <dependency>
+        <groupId>org.jboss.microcontainer.examples</groupId>
+        <artifactId>humanResourcesService</artifactId>
+        <version>1.0.0</version>
+        <scope>runtime</scope>
+      </dependency>
+      <dependency>
+        <groupId>org.jboss.microcontainer.examples</groupId>
+        <artifactId>client</artifactId>
+        <version>1.0.0</version>
+        <scope>runtime</scope>
+      </dependency>
+      <dependency>
+        <groupId>org.jboss.aop</groupId>
+        <artifactId>jboss-aop</artifactId>
+        <version>2.0.0-SNAPSHOT</version>
+        <scope>runtime</scope>
+      </dependency>
+      <dependency>
+        <groupId>org.jboss.microcontainer</groupId>
+        <artifactId>jboss-aop-mc-int</artifactId>
+        <version>2.0.0-SNAPSHOT</version>
+        <scope>runtime</scope>
+      </dependency>
+      <dependency>
+        <groupId>org.jboss.microcontainer.examples</groupId>
+        <artifactId>auditAspect</artifactId>
+        <version>1.0.0</version>
+        <scope>runtime</scope>
+      </dependency>
+    </dependencies>
+  </dependencyManagement>
+
   <dependencies>
     <dependency>
       <groupId>org.jboss.microcontainer</groupId>
       <artifactId>jboss-kernel</artifactId>
-      <version>2.0.0-SNAPSHOT</version>
-      <scope>runtime</scope>      
     </dependency>
     <dependency>
       <groupId>org.jboss.microcontainer.examples</groupId>
       <artifactId>humanResourcesService</artifactId>
-      <version>1.0.0</version>
-      <scope>runtime</scope>
     </dependency>
     <dependency>
       <groupId>org.jboss.microcontainer.examples</groupId>
       <artifactId>client</artifactId>
-      <version>1.0.0</version>
-      <scope>runtime</scope>
     </dependency>
   </dependencies>
 
+  <build>
+    <plugins>
+      <plugin>
+        <artifactId>maven-assembly-plugin</artifactId>
+        <configuration>
+          <descriptors>
+            <descriptor>../dist.xml</descriptor>
+          </descriptors>
+          <finalName>${pom.artifactId}</finalName>
+        </configuration>
+        <executions>
+          <execution>
+            <phase>package</phase>
+            <goals>
+              <goal>attached</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
+  </build>
+
 </project>

Added: projects/microcontainer/trunk/docs/examples/User_Guide/gettingStarted/distributions/run.sh
===================================================================
--- projects/microcontainer/trunk/docs/examples/User_Guide/gettingStarted/distributions/run.sh	                        (rev 0)
+++ projects/microcontainer/trunk/docs/examples/User_Guide/gettingStarted/distributions/run.sh	2007-11-09 11:00:03 UTC (rev 66910)
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+java -Djava.ext.dirs=`pwd`/lib -cp .:client-1.0.0.jar org.jboss.example.client.Client


Property changes on: projects/microcontainer/trunk/docs/examples/User_Guide/gettingStarted/distributions/run.sh
___________________________________________________________________
Name: svn:executable
   + *

Modified: projects/microcontainer/trunk/docs/examples/User_Guide/gettingStarted/humanResourcesService/pom.xml
===================================================================
--- projects/microcontainer/trunk/docs/examples/User_Guide/gettingStarted/humanResourcesService/pom.xml	2007-11-09 10:51:59 UTC (rev 66909)
+++ projects/microcontainer/trunk/docs/examples/User_Guide/gettingStarted/humanResourcesService/pom.xml	2007-11-09 11:00:03 UTC (rev 66910)
@@ -1,6 +1,12 @@
 <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">
 
+  <parent>
+    <groupId>org.jboss.microcontainer.examples</groupId>
+    <artifactId>gettingStarted</artifactId>
+    <version>1.0.0</version>
+  </parent>
+
   <modelVersion>4.0.0</modelVersion>
   <groupId>org.jboss.microcontainer.examples</groupId>
   <artifactId>humanResourcesService</artifactId>
@@ -13,14 +19,11 @@
     <dependency>
       <groupId>org.jboss.microcontainer</groupId>
       <artifactId>jboss-kernel</artifactId>
-      <version>2.0.0-SNAPSHOT</version>
       <scope>test</scope>      
     </dependency>
     <dependency>
       <groupId>junit</groupId>
       <artifactId>junit</artifactId>
-      <version>3.8.1</version>
-      <scope>test</scope>
     </dependency>
   </dependencies>
 
@@ -33,19 +36,6 @@
     	</excludes>
       </resource>
     </resources>
-    
-    <plugins>
-      <plugin>
-        <artifactId>maven-compiler-plugin</artifactId>
-        <configuration>
-          <source>1.5</source>
-          <target>1.5</target>
-          <showDeprecation>true</showDeprecation>
-          <showWarnings>true</showWarnings>
-          <optimize>true</optimize>
-        </configuration>
-      </plugin>
-    </plugins>
   </build>
 
 </project>

Added: projects/microcontainer/trunk/docs/examples/User_Guide/gettingStarted/pom.xml
===================================================================
--- projects/microcontainer/trunk/docs/examples/User_Guide/gettingStarted/pom.xml	                        (rev 0)
+++ projects/microcontainer/trunk/docs/examples/User_Guide/gettingStarted/pom.xml	2007-11-09 11:00:03 UTC (rev 66910)
@@ -0,0 +1,52 @@
+<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.microcontainer.examples</groupId>
+  <artifactId>gettingStarted</artifactId>
+  <packaging>pom</packaging>
+  <version>1.0.0</version>
+  <name></name>
+  <description></description>
+
+  <dependencyManagement>
+    <dependencies>
+      <dependency>
+        <groupId>org.jboss.microcontainer</groupId>
+        <artifactId>jboss-kernel</artifactId>
+        <version>2.0.0-SNAPSHOT</version>
+      </dependency>
+      <dependency>
+        <groupId>org.jboss.aop</groupId>
+        <artifactId>jboss-aop</artifactId>
+        <version>2.0.0-SNAPSHOT</version>
+      </dependency>
+      <dependency>
+        <groupId>junit</groupId>
+        <artifactId>junit</artifactId>
+        <version>3.8.1</version>
+        <scope>test</scope>
+      </dependency>
+    </dependencies>
+  </dependencyManagement>
+
+  <dependencies>
+  </dependencies>
+
+  <build>
+    <plugins> 
+      <plugin>
+        <artifactId>maven-compiler-plugin</artifactId>
+        <configuration>
+          <source>1.5</source>
+          <target>1.5</target>
+          <debug>true</debug>
+          <showDeprecation>true</showDeprecation>
+          <showWarnings>true</showWarnings>
+          <optimize>true</optimize>
+        </configuration>
+      </plugin>  
+    </plugins>
+  </build>
+
+</project>




More information about the jboss-cvs-commits mailing list