geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pra...@apache.org
Subject svn commit: r547702 - /geronimo/samples/trunk/samples/pom.xml
Date Fri, 15 Jun 2007 14:51:17 GMT
Author: prasad
Date: Fri Jun 15 07:51:12 2007
New Revision: 547702

URL: http://svn.apache.org/viewvc?view=rev&rev=547702
Log:
* deleting the "user" profile
* adding the "create" profile to create sample template from archetype

Modified:
    geronimo/samples/trunk/samples/pom.xml

Modified: geronimo/samples/trunk/samples/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/pom.xml?view=diff&rev=547702&r1=547701&r2=547702
==============================================================================
--- geronimo/samples/trunk/samples/pom.xml (original)
+++ geronimo/samples/trunk/samples/pom.xml Fri Jun 15 07:51:12 2007
@@ -30,215 +30,193 @@
     <description>
         Geronimo Samples.
     </description>
-    <modules>
-        <module>calculator-stateless-pojo</module>
-        <module>dbtester</module>
-  </modules>
-    <dependencies>
-        <dependency>
-            <groupId>org.apache.geronimo.specs</groupId>
-            <artifactId>geronimo-jsp_2.1_spec</artifactId>
-            <version>1.0-SNAPSHOT</version>
-            <scope>provided</scope>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.geronimo.specs</groupId>
-            <artifactId>geronimo-ejb_3.0_spec</artifactId>
-            <version>1.0</version>
-            <scope>provided</scope>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.geronimo.specs</groupId>
-            <artifactId>geronimo-servlet_2.5_spec</artifactId>
-            <version>1.1-SNAPSHOT</version>
-            <scope>provided</scope>
-        </dependency>
-    </dependencies>
-
-    <build>
-        <resources>
-            <resource>
-                <directory>${pom.basedir}/src/main/resources</directory>
-                <filtering>true</filtering>
-            </resource>
-        </resources>
-
-        <pluginManagement>
-            <plugins>
-                <plugin>
-                    <groupId>org.apache.maven.plugins</groupId>
-                    <artifactId>maven-war-plugin</artifactId>
-                    <version>2.0.2</version>
-                    <configuration>
-                      <!--
-                        <archiveClasses>true</archiveClasses>
-                        -->
-                        <archive>
-                            <!-- Do not include META-INF/maven to avoid long file problems
on windows -->
-                            <addMavenDescriptor>false</addMavenDescriptor>
-                        </archive>
-                    </configuration>
-                </plugin>
-                
-                <plugin>
-                    <groupId>org.apache.maven.plugins</groupId>
-                    <artifactId>maven-ear-plugin</artifactId>
-                    <configuration>
-                      <resourcesDir>${project.build.outputDirectory}</resourcesDir>
-                        <archive>
-                            <!-- Do not include META-INF/maven to avoid long file problems
on windows -->
-                            <addMavenDescriptor>false</addMavenDescriptor>
-                        </archive>
-                    </configuration>
-                </plugin>
-                <plugin>
-                    <groupId>org.apache.maven.plugins</groupId>
-                    <artifactId>maven-jar-plugin</artifactId>
-                    <configuration>
-                        <archive>
-                            <!-- Do not include META-INF/maven to avoid long file problems
on windows -->
-                            <addMavenDescriptor>false</addMavenDescriptor>
-                        </archive>
-                    </configuration>
-                </plugin>
-            </plugins>
-        </pluginManagement>
-    </build>
-
-    <reporting>
-        <plugins>
-            <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-project-info-reports-plugin</artifactId>
-                <version>2.0.1</version>
-                <reportSets>
-                    <reportSet>
-                        <reports/>
-                    </reportSet>
-                </reportSets>
-            </plugin>
-            <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-javadoc-plugin</artifactId>
-                <version>2.2-SNAPSHOT</version>
-                <configuration>
-                    <aggregate>true</aggregate>
-                    <minmemory>128m</minmemory>
-                    <maxmemory>512</maxmemory>
-                    <breakiterator>true</breakiterator>
-                    <quiet>true</quiet>
-                    <verbose>false</verbose>
-                    <source>1.5</source>
-                    <linksource>true</linksource>
-                    <links>
-                        <!-- JSE -->
-                        <link>http://java.sun.com/j2se/1.5.0/docs/api/</link>
-                        <link>http://java.sun.com/j2se/1.4.2/docs/api/</link>
-                        <link>http://java.sun.com/j2se/1.3/docs/api/</link>
+
+            <modules>
+                <module>calculator-stateless-pojo</module>
+                <module>dbtester</module>
+            </modules>
+            <dependencies>
+                <dependency>
+                    <groupId>org.apache.geronimo.specs</groupId>
+                    <artifactId>geronimo-jsp_2.1_spec</artifactId>
+                    <version>1.0-SNAPSHOT</version>
+                    <scope>provided</scope>
+                </dependency>
+                <dependency>
+                    <groupId>org.apache.geronimo.specs</groupId>
+                    <artifactId>geronimo-ejb_3.0_spec</artifactId>
+                    <version>1.0</version>
+                    <scope>provided</scope>
+                </dependency>
+                <dependency>
+                    <groupId>org.apache.geronimo.specs</groupId>
+                    <artifactId>geronimo-servlet_2.5_spec</artifactId>
+                    <version>1.1-SNAPSHOT</version>
+                    <scope>provided</scope>
+                </dependency>
+            </dependencies>
+
+            <build>
+                <resources>
+                    <resource>
+                        <directory>${pom.basedir}/src/main/resources</directory>
+                        <filtering>true</filtering>
+                    </resource>
+                </resources>
+
+                <pluginManagement>
+                    <plugins>
+                        <plugin>
+                            <groupId>org.apache.maven.plugins</groupId>
+                            <artifactId>maven-war-plugin</artifactId>
+                            <version>2.0.2</version>
+                            <configuration>
+                                <!--
+                                  <archiveClasses>true</archiveClasses>
+                                  -->
+                                <archive>
+                                    <!-- Do not include META-INF/maven to avoid long file
problems on windows -->
+                                    <addMavenDescriptor>false</addMavenDescriptor>
+                                </archive>
+                            </configuration>
+                        </plugin>
+
+                        <plugin>
+                            <groupId>org.apache.maven.plugins</groupId>
+                            <artifactId>maven-ear-plugin</artifactId>
+                            <configuration>
+                                <resourcesDir>${project.build.outputDirectory}</resourcesDir>
+                                <archive>
+                                    <!-- Do not include META-INF/maven to avoid long file
problems on windows -->
+                                    <addMavenDescriptor>false</addMavenDescriptor>
+                                </archive>
+                            </configuration>
+                        </plugin>
+                        <plugin>
+                            <groupId>org.apache.maven.plugins</groupId>
+                            <artifactId>maven-jar-plugin</artifactId>
+                            <configuration>
+                                <archive>
+                                    <!-- Do not include META-INF/maven to avoid long file
problems on windows -->
+                                    <addMavenDescriptor>false</addMavenDescriptor>
+                                </archive>
+                            </configuration>
+                        </plugin>
+                    </plugins>
+                </pluginManagement>
+            </build>
+
+            <reporting>
+                <plugins>
+                    <plugin>
+                        <groupId>org.apache.maven.plugins</groupId>
+                        <artifactId>maven-project-info-reports-plugin</artifactId>
+                        <version>2.0.1</version>
+                        <reportSets>
+                            <reportSet>
+                                <reports/>
+                            </reportSet>
+                        </reportSets>
+                    </plugin>
+                    <plugin>
+                        <groupId>org.apache.maven.plugins</groupId>
+                        <artifactId>maven-javadoc-plugin</artifactId>
+                        <version>2.2-SNAPSHOT</version>
+                        <configuration>
+                            <aggregate>true</aggregate>
+                            <minmemory>128m</minmemory>
+                            <maxmemory>512</maxmemory>
+                            <breakiterator>true</breakiterator>
+                            <quiet>true</quiet>
+                            <verbose>false</verbose>
+                            <source>1.5</source>
+                            <linksource>true</linksource>
+                            <links>
+                                <!-- JSE -->
+                                <link>http://java.sun.com/j2se/1.5.0/docs/api/</link>
+                                <link>http://java.sun.com/j2se/1.4.2/docs/api/</link>
+                                <link>http://java.sun.com/j2se/1.3/docs/api/</link>
                         
-                        <!-- JEE -->
-                        <link>http://java.sun.com/j2ee/1.4/docs/api/</link>
-                        <link>http://java.sun.com/j2ee/sdk_1.3/techdocs/api/</link>
+                                <!-- JEE -->
+                                <link>http://java.sun.com/j2ee/1.4/docs/api/</link>
+                                <link>http://java.sun.com/j2ee/sdk_1.3/techdocs/api/</link>
                         
-                        <!-- Libraries -->
-                        <link>http://jakarta.apache.org/commons/collections/apidocs</link>
-                        <link>http://jakarta.apache.org/commons/logging/apidocs/</link>
-                        <link>http://www.junit.org/junit/javadoc/</link>
-                        <link>http://logging.apache.org/log4j/docs/api/</link>
-                        <link>http://jakarta.apache.org/regexp/apidocs/</link>
-                        <link>http://jakarta.apache.org/velocity/api/</link>
-                    </links>
-                </configuration>
-            </plugin>
-            <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-jxr-plugin</artifactId>
-                <version>2.0</version>
-                <configuration>
-                    <aggregate>true</aggregate>
-                </configuration>
-            </plugin>
-            <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-surefire-report-plugin</artifactId>
-                <inherited>false</inherited>
-            </plugin>
-            <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-pmd-plugin</artifactId>
-                <inherited>false</inherited>
-            </plugin>
-            <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-checkstyle-plugin</artifactId>
-                <inherited>false</inherited>
-            </plugin>
-        </plugins>
-    </reporting>
+                                <!-- Libraries -->
+                                <link>http://jakarta.apache.org/commons/collections/apidocs</link>
+                                <link>http://jakarta.apache.org/commons/logging/apidocs/</link>
+                                <link>http://www.junit.org/junit/javadoc/</link>
+                                <link>http://logging.apache.org/log4j/docs/api/</link>
+                                <link>http://jakarta.apache.org/regexp/apidocs/</link>
+                                <link>http://jakarta.apache.org/velocity/api/</link>
+                            </links>
+                        </configuration>
+                    </plugin>
+                    <plugin>
+                        <groupId>org.apache.maven.plugins</groupId>
+                        <artifactId>maven-jxr-plugin</artifactId>
+                        <version>2.0</version>
+                        <configuration>
+                            <aggregate>true</aggregate>
+                        </configuration>
+                    </plugin>
+                    <plugin>
+                        <groupId>org.apache.maven.plugins</groupId>
+                        <artifactId>maven-surefire-report-plugin</artifactId>
+                        <inherited>false</inherited>
+                    </plugin>
+                    <plugin>
+                        <groupId>org.apache.maven.plugins</groupId>
+                        <artifactId>maven-pmd-plugin</artifactId>
+                        <inherited>false</inherited>
+                    </plugin>
+                    <plugin>
+                        <groupId>org.apache.maven.plugins</groupId>
+                        <artifactId>maven-checkstyle-plugin</artifactId>
+                        <inherited>false</inherited>
+                    </plugin>
+                </plugins>
+            </reporting>
 
-    <profiles>
+      <profiles>
+        <!-- This profile creates a sample template.
+              Use -DsampleName to specify the name of your sample.
+              Use -DsampleVersion to specify the version for your sample
+        -->
         <profile>
-            <id>user</id>
+            <id>create</id>
             <build>
-                <pluginManagement>
                     <plugins>
-                        
                         <plugin>
-                            <groupId>org.apache.geronimo.plugins</groupId>
-                            <artifactId>geronimo-maven-plugin</artifactId>
+                            <artifactId>maven-antrun-plugin</artifactId>
+                            <inherited>false</inherited>
                             <executions>
                                 <execution>
-                                    <id>start-server</id>
                                     <phase>install</phase>
-                                    <goals>
-                                        <goal>start</goal>
-                                    </goals>
                                     <configuration>
-                                        <assemblies>
-                                            <assembly>
-                                                <id>jetty</id>
-                                                <groupId>org.apache.geronimo.assemblies</groupId>
-                                                <artifactId>geronimo-jetty6-jee5</artifactId>
-                                                <version>${version}</version>
-                                                <classifier>bin</classifier>
-                                                <type>zip</type>
-                                            </assembly>
-                                            <assembly>
-                                                <id>tomcat</id>
-                                                <groupId>org.apache.geronimo.assemblies</groupId>
-                                                <artifactId>geronimo-tomcat6-jee5</artifactId>
-                                                <version>${version}</version>
-                                                <classifier>bin</classifier>
-                                                <type>zip</type>
-                                            </assembly>
-                                        </assemblies>
-                                        <defaultAssemblyId>jetty</defaultAssemblyId>
-                                        <optionSets>
-                                            <optionSet>
-                                                <id>debug</id>
-                                                <options>
-                                                    <option>-Xdebug</option>
-                                                    <option>-Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n</option>
-                                                </options>
-                                            </optionSet>
-                                        </optionSets>
-                                        <background>true</background>
+                                        <tasks>
+                                          <condition property="mvn.exe" value="mvn.bat"
else="mvn">
+                                              <os family="windows"/>
+                                          </condition>
+                                            <exec executable="${mvn.exe}">
+                                                <arg value="archetype:create"/>
+                                                <arg value="-DarchetypeGroupId=org.apache.geronimo.samples"/>
+                                                <arg value="-DarchetypeArtifactId=geronimo-samples-archetype"/>
+                                                <arg value="-DarchetypeVersion=2.0-SNAPSHOT"/>
+                                                <arg value="-DartifactId=${sampleName}"/>
+                                                <arg value="-Dversion=${sampleVersion}"/>
+                                            </exec>
+                                            <move file="${sampleName}/sample-ear" tofile="${sampleName}/${sampleName}-ear"/>
+                                            <move file="${sampleName}/sample-ejb" tofile="${sampleName}/${sampleName}-ejb"/>
+                                            <move file="${sampleName}/sample-war" tofile="${sampleName}/${sampleName}-war"/>
+                                        </tasks>
                                     </configuration>
-                                </execution>
-                                <execution>
-                                    <id>deploy-ears</id>
-                                    <phase>install</phase>
                                     <goals>
-                                        <goal>deploy-module</goal>
+                                        <goal>run</goal>
                                     </goals>
-                                    <configuration>
-                                        <moduleArchive>${project.build.directory}/${artifactId}-${version}.ear</moduleArchive>
-                                    </configuration>
                                 </execution>
                             </executions>
                         </plugin>
                     </plugins>
-                </pluginManagement>
             </build>
         </profile>
     </profiles>



Mime
View raw message