On May 20, 2008, at 11:27 AM, Daniel Kulp wrote:



The issue is how does it resolve:
<parent>
<groupId>org.apache.geronimo.samples</groupId>
<artifactId>samples</artifactId>
<version>2.2-SNAPSHOT</version>
</parent>

It needs to resolve that first to resolve the apache:apache:4

Without the snapshot repo defined, it won't resolve that.

Dan

Good point. So, it seems to me we have a 2-faced approach to the samples.... do we want them to be individual projects or one big project? I _think_ the main value of the parent pom is to define dependency management. I suggest that we either:

- figure it's one big project, and snapshot versions can only be built all together (first time): we leave out the apache-snapshots and rely on the on in apache v4 pom - figure they are individual projects, have the parent for each sample be genesis project-config, and use the new import feature in maven 2.0.9 to get the universal dependency management section from what is now the parent. I think this will involve releasing each sample individually.

Right now I lean slightly towards the first approach. I ___really___ think we should not be duplicating information already present in parent poms because we can't decide what the boundaries of an independently buildable project are.

thanks
david jencks






On May 20, 2008, at 11:10 AM, David Jencks wrote:

I'm confused.  This is in the apache pom v4:

  <repository>
    <id>apache.snapshots</id>
    <name>Apache Snapshot Repository</name>
    <url>http://people.apache.org/repo/m2-snapshot-repository</url>
    <releases>
      <enabled>false</enabled>
    </releases>
  </repository>


Why do we need to mention it again?

thanks
david jencks

On May 20, 2008, at 10:57 AM, Jarek Gawor wrote:

Joe,

These apache-snapshot entires were there so that a user could checkout
a particular sample from svn and build it (otherwise the user had to
checkout the entire samples directory).

Jarek

On Tue, May 20, 2008 at 10:47 AM,  <[EMAIL PROTECTED]> wrote:
Author: jbohn
Date: Tue May 20 07:47:33 2008
New Revision: 658264

URL: http://svn.apache.org/viewvc?rev=658264&view=rev
Log:
merge r658262 from branches/2.1 - remove references to apache- snapshot repo and one more harded version reference

Modified:
geronimo/samples/trunk/samples/CustomerService/pom.xml
geronimo/samples/trunk/samples/bank/pom.xml
geronimo/samples/trunk/samples/calculator-stateless-pojo/pom.xml
geronimo/samples/trunk/samples/dbtester/pom.xml
geronimo/samples/trunk/samples/inventory/pom.xml
geronimo/samples/trunk/samples/jaxws-calculator/pom.xml
geronimo/samples/trunk/samples/jms-mdb-sample/pom.xml
geronimo/samples/trunk/samples/ldap-sample-app/pom.xml
geronimo/samples/trunk/samples/myphonebook/pom.xml
geronimo/samples/trunk/samples/mytime/pom.xml
geronimo/samples/trunk/samples/pom.xml
geronimo/samples/trunk/samples/sendmail/pom.xml
geronimo/samples/trunk/samples/servlet-examples/pom.xml
geronimo/samples/trunk/samples/timereport/pom.xml

Modified: geronimo/samples/trunk/samples/CustomerService/pom.xml
URL: 
http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/CustomerService/pom.xml?rev=658264&r1=658263&r2=658264&view=diff
= = = = = = = = = = = =================================================================== --- geronimo/samples/trunk/samples/CustomerService/pom.xml (original) +++ geronimo/samples/trunk/samples/CustomerService/pom.xml Tue May 20 07:47:33 2008
@@ -81,22 +81,4 @@
         </plugin>
     </plugins>
 </build>
-
-    <repositories>
-        <repository>
-            <id>apache-snapshots</id>
-            <name>Apache Snapshots Repository</name>
- <url>http://people.apache.org/repo/m2-snapshot-repository </url>
-            <layout>default</layout>
-            <snapshots>
-                <enabled>true</enabled>
-                <updatePolicy>daily</updatePolicy>
-                <checksumPolicy>ignore</checksumPolicy>
-            </snapshots>
-            <releases>
-                <enabled>false</enabled>
-            </releases>
-        </repository>
-    </repositories>
-
</project>

Modified: geronimo/samples/trunk/samples/bank/pom.xml
URL: 
http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/bank/pom.xml?rev=658264&r1=658263&r2=658264&view=diff
= = = = = = = = = = = ===================================================================
--- geronimo/samples/trunk/samples/bank/pom.xml (original)
+++ geronimo/samples/trunk/samples/bank/pom.xml Tue May 20 07:47:33 2008
@@ -76,22 +76,4 @@
         </plugin>
     </plugins>
 </build>
-
-    <repositories>
-        <repository>
-            <id>apache-snapshots</id>
-            <name>Apache Snapshots Repository</name>
- <url>http://people.apache.org/repo/m2-snapshot-repository </url>
-            <layout>default</layout>
-            <snapshots>
-                <enabled>true</enabled>
-                <updatePolicy>daily</updatePolicy>
-                <checksumPolicy>ignore</checksumPolicy>
-            </snapshots>
-            <releases>
-                <enabled>false</enabled>
-            </releases>
-        </repository>
-    </repositories>
-
</project>

Modified: geronimo/samples/trunk/samples/calculator-stateless- pojo/pom.xml
URL: 
http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/calculator-stateless-pojo/pom.xml?rev=658264&r1=658263&r2=658264&view=diff
= = = = = = = = = = = =================================================================== --- geronimo/samples/trunk/samples/calculator-stateless-pojo/ pom.xml (original) +++ geronimo/samples/trunk/samples/calculator-stateless-pojo/ pom.xml Tue May 20 07:47:33 2008
@@ -54,22 +54,4 @@
         </plugin>
     </plugins>
 </build>
-
-    <repositories>
-        <repository>
-            <id>apache-snapshots</id>
-            <name>Apache Snapshots Repository</name>
- <url>http://people.apache.org/repo/m2-snapshot-repository </url>
-            <layout>default</layout>
-            <snapshots>
-                <enabled>true</enabled>
-                <updatePolicy>daily</updatePolicy>
-                <checksumPolicy>ignore</checksumPolicy>
-            </snapshots>
-            <releases>
-                <enabled>false</enabled>
-            </releases>
-        </repository>
-    </repositories>
-
</project>

Modified: geronimo/samples/trunk/samples/dbtester/pom.xml
URL: 
http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/dbtester/pom.xml?rev=658264&r1=658263&r2=658264&view=diff
= = = = = = = = = = = ===================================================================
--- geronimo/samples/trunk/samples/dbtester/pom.xml (original)
+++ geronimo/samples/trunk/samples/dbtester/pom.xml Tue May 20 07:47:33 2008
@@ -56,22 +56,4 @@
        </plugin>
    </plugins>
</build>
-
-    <repositories>
-        <repository>
-            <id>apache-snapshots</id>
-            <name>Apache Snapshots Repository</name>
- <url>http://people.apache.org/repo/m2-snapshot-repository </url>
-            <layout>default</layout>
-            <snapshots>
-                <enabled>true</enabled>
-                <updatePolicy>daily</updatePolicy>
-                <checksumPolicy>ignore</checksumPolicy>
-            </snapshots>
-            <releases>
-                <enabled>false</enabled>
-            </releases>
-        </repository>
-    </repositories>
-
</project>

Modified: geronimo/samples/trunk/samples/inventory/pom.xml
URL: 
http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/inventory/pom.xml?rev=658264&r1=658263&r2=658264&view=diff
= = = = = = = = = = = ===================================================================
--- geronimo/samples/trunk/samples/inventory/pom.xml (original)
+++ geronimo/samples/trunk/samples/inventory/pom.xml Tue May 20 07:47:33 2008
@@ -56,22 +56,4 @@
         </plugin>
     </plugins>
 </build>
-
-    <repositories>
-        <repository>
-            <id>apache-snapshots</id>
-            <name>Apache Snapshots Repository</name>
- <url>http://people.apache.org/repo/m2-snapshot-repository </url>
-            <layout>default</layout>
-            <snapshots>
-                <enabled>true</enabled>
-                <updatePolicy>daily</updatePolicy>
-                <checksumPolicy>ignore</checksumPolicy>
-            </snapshots>
-            <releases>
-                <enabled>false</enabled>
-            </releases>
-        </repository>
-    </repositories>
-
</project>

Modified: geronimo/samples/trunk/samples/jaxws-calculator/pom.xml
URL: 
http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/jaxws-calculator/pom.xml?rev=658264&r1=658263&r2=658264&view=diff
= = = = = = = = = = = =================================================================== --- geronimo/samples/trunk/samples/jaxws-calculator/pom.xml (original) +++ geronimo/samples/trunk/samples/jaxws-calculator/pom.xml Tue May 20 07:47:33 2008
@@ -56,22 +56,4 @@
         </plugin>
     </plugins>
 </build>
-
-    <repositories>
-        <repository>
-            <id>apache-snapshots</id>
-            <name>Apache Snapshots Repository</name>
- <url>http://people.apache.org/repo/m2-snapshot-repository </url>
-            <layout>default</layout>
-            <snapshots>
-                <enabled>true</enabled>
-                <updatePolicy>daily</updatePolicy>
-                <checksumPolicy>ignore</checksumPolicy>
-            </snapshots>
-            <releases>
-                <enabled>false</enabled>
-            </releases>
-        </repository>
-    </repositories>
-
</project>

Modified: geronimo/samples/trunk/samples/jms-mdb-sample/pom.xml
URL: 
http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/jms-mdb-sample/pom.xml?rev=658264&r1=658263&r2=658264&view=diff
= = = = = = = = = = = =================================================================== --- geronimo/samples/trunk/samples/jms-mdb-sample/pom.xml (original) +++ geronimo/samples/trunk/samples/jms-mdb-sample/pom.xml Tue May 20 07:47:33 2008
@@ -67,22 +67,4 @@
         </plugin>
     </plugins>
 </build>
-
-    <repositories>
-        <repository>
-            <id>apache-snapshots</id>
-            <name>Apache Snapshots Repository</name>
- <url>http://people.apache.org/repo/m2-snapshot-repository </url>
-            <layout>default</layout>
-            <snapshots>
-                <enabled>true</enabled>
-                <updatePolicy>daily</updatePolicy>
-                <checksumPolicy>ignore</checksumPolicy>
-            </snapshots>
-            <releases>
-                <enabled>false</enabled>
-            </releases>
-        </repository>
-    </repositories>
-
</project>

Modified: geronimo/samples/trunk/samples/ldap-sample-app/pom.xml
URL: 
http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/ldap-sample-app/pom.xml?rev=658264&r1=658263&r2=658264&view=diff
= = = = = = = = = = = =================================================================== --- geronimo/samples/trunk/samples/ldap-sample-app/pom.xml (original) +++ geronimo/samples/trunk/samples/ldap-sample-app/pom.xml Tue May 20 07:47:33 2008
@@ -56,22 +56,4 @@
         </plugin>
     </plugins>
 </build>
-
-    <repositories>
-        <repository>
-            <id>apache-snapshots</id>
-            <name>Apache Snapshots Repository</name>
- <url>http://people.apache.org/repo/m2-snapshot-repository </url>
-            <layout>default</layout>
-            <snapshots>
-                <enabled>true</enabled>
-                <updatePolicy>daily</updatePolicy>
-                <checksumPolicy>ignore</checksumPolicy>
-            </snapshots>
-            <releases>
-                <enabled>false</enabled>
-            </releases>
-        </repository>
-    </repositories>
-
</project>

Modified: geronimo/samples/trunk/samples/myphonebook/pom.xml
URL: 
http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/myphonebook/pom.xml?rev=658264&r1=658263&r2=658264&view=diff
= = = = = = = = = = = ===================================================================
--- geronimo/samples/trunk/samples/myphonebook/pom.xml (original)
+++ geronimo/samples/trunk/samples/myphonebook/pom.xml Tue May 20 07:47:33 2008
@@ -75,22 +75,4 @@
         </plugin>
     </plugins>
 </build>
-
-    <repositories>
-        <repository>
-            <id>apache-snapshots</id>
-            <name>Apache Snapshots Repository</name>
- <url>http://people.apache.org/repo/m2-snapshot-repository </url>
-            <layout>default</layout>
-            <snapshots>
-                <enabled>true</enabled>
-                <updatePolicy>daily</updatePolicy>
-                <checksumPolicy>ignore</checksumPolicy>
-            </snapshots>
-            <releases>
-                <enabled>false</enabled>
-            </releases>
-        </repository>
-    </repositories>
-
</project>

Modified: geronimo/samples/trunk/samples/mytime/pom.xml
URL: 
http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/mytime/pom.xml?rev=658264&r1=658263&r2=658264&view=diff
= = = = = = = = = = = ===================================================================
--- geronimo/samples/trunk/samples/mytime/pom.xml (original)
+++ geronimo/samples/trunk/samples/mytime/pom.xml Tue May 20 07:47:33 2008
@@ -57,22 +57,4 @@
         </plugin>
     </plugins>
 </build>
-
-    <repositories>
-        <repository>
-            <id>apache-snapshots</id>
-            <name>Apache Snapshots Repository</name>
- <url>http://people.apache.org/repo/m2-snapshot-repository </url>
-            <layout>default</layout>
-            <snapshots>
-                <enabled>true</enabled>
-                <updatePolicy>daily</updatePolicy>
-                <checksumPolicy>ignore</checksumPolicy>
-            </snapshots>
-            <releases>
-                <enabled>false</enabled>
-            </releases>
-        </repository>
-    </repositories>
-
</project>

Modified: geronimo/samples/trunk/samples/pom.xml
URL: 
http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/pom.xml?rev=658264&r1=658263&r2=658264&view=diff
= = = = = = = = = = = ===================================================================
--- geronimo/samples/trunk/samples/pom.xml (original)
+++ geronimo/samples/trunk/samples/pom.xml Tue May 20 07:47:33 2008
@@ -301,7 +301,7 @@
<arg value="archetype:create"/> <arg value="- DarchetypeGroupId=org.apache.geronimo.samples"/> <arg value="- DarchetypeArtifactId=geronimo-samples-archetype"/> - <arg value="- DarchetypeVersion=2.2-SNAPSHOT"/> + <arg value="- DarchetypeVersion=${version}"/> <arg value="-DartifactId= ${sampleName}"/> <arg value="-Dversion=$ {sampleVersion}"/>
                                     </exec>

Modified: geronimo/samples/trunk/samples/sendmail/pom.xml
URL: 
http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/sendmail/pom.xml?rev=658264&r1=658263&r2=658264&view=diff
= = = = = = = = = = = ===================================================================
--- geronimo/samples/trunk/samples/sendmail/pom.xml (original)
+++ geronimo/samples/trunk/samples/sendmail/pom.xml Tue May 20 07:47:33 2008
@@ -56,22 +56,4 @@
         </plugin>
     </plugins>
 </build>
-
-    <repositories>
-        <repository>
-            <id>apache-snapshots</id>
-            <name>Apache Snapshots Repository</name>
- <url>http://people.apache.org/repo/m2-snapshot-repository </url>
-            <layout>default</layout>
-            <snapshots>
-                <enabled>true</enabled>
-                <updatePolicy>daily</updatePolicy>
-                <checksumPolicy>ignore</checksumPolicy>
-            </snapshots>
-            <releases>
-                <enabled>false</enabled>
-            </releases>
-        </repository>
-    </repositories>
-
</project>

Modified: geronimo/samples/trunk/samples/servlet-examples/pom.xml
URL: 
http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/servlet-examples/pom.xml?rev=658264&r1=658263&r2=658264&view=diff
= = = = = = = = = = = =================================================================== --- geronimo/samples/trunk/samples/servlet-examples/pom.xml (original) +++ geronimo/samples/trunk/samples/servlet-examples/pom.xml Tue May 20 07:47:33 2008
@@ -43,22 +43,4 @@
     <module>servlet-examples-jetty</module>
     <module>servlet-examples-tomcat</module>
 </modules>
-
-    <repositories>
-        <repository>
-            <id>apache-snapshots</id>
-            <name>Apache Snapshots Repository</name>
- <url>http://people.apache.org/repo/m2-snapshot-repository </url>
-            <layout>default</layout>
-            <snapshots>
-                <enabled>true</enabled>
-                <updatePolicy>daily</updatePolicy>
-                <checksumPolicy>ignore</checksumPolicy>
-            </snapshots>
-            <releases>
-                <enabled>false</enabled>
-            </releases>
-        </repository>
-    </repositories>
-
</project>

Modified: geronimo/samples/trunk/samples/timereport/pom.xml
URL: 
http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/timereport/pom.xml?rev=658264&r1=658263&r2=658264&view=diff
= = = = = = = = = = = ===================================================================
--- geronimo/samples/trunk/samples/timereport/pom.xml (original)
+++ geronimo/samples/trunk/samples/timereport/pom.xml Tue May 20 07:47:33 2008
@@ -56,22 +56,4 @@
         </plugin>
     </plugins>
 </build>
-
-    <repositories>
-        <repository>
-            <id>apache-snapshots</id>
-            <name>Apache Snapshots Repository</name>
- <url>http://people.apache.org/repo/m2-snapshot-repository </url>
-            <layout>default</layout>
-            <snapshots>
-                <enabled>true</enabled>
-                <updatePolicy>daily</updatePolicy>
-                <checksumPolicy>ignore</checksumPolicy>
-            </snapshots>
-            <releases>
-                <enabled>false</enabled>
-            </releases>
-        </repository>
-    </repositories>
-
</project>





---
Daniel Kulp
[EMAIL PROTECTED]
http://www.dankulp.com/blog





Reply via email to