FYI: for building OWB with the new checkstyle, you need to add a bit to your settings.xml due to a problem with multiple 'apache.snapshots' repositories.
LieGrue, strub --- On Mon, 6/7/10, Mark Struberg <[email protected]> wrote: > From: Mark Struberg <[email protected]> > Subject: apache.snapshots repository quirks mode > To: [email protected] > Date: Monday, June 7, 2010, 1:50 PM > Hi! > > Sadly there is some problem which got introduced by using > the same repositoryId 'apache.snapshots' for different > locations. > > The old snapshot repository location has been: > http://people.apache.org/repo/m2-snapshot-repository > > while the new one is: > http://repository.apache.org/snapshots/ > > Both are currently used in various poms and this leads to > the problem that the snapshot information cannot be > calculated correctly in a few cases. > > The problem I have is that maven in this case fails to > determine the correct timestamp from the metadata: > > [INFO] [remote-resources:process {execution: default}] > [INFO] [bundle:manifest {execution: bundle-manifest}] > [WARNING] Ignoring project type pom - supportedProjectTypes > = [jar, bundle, war] > [INFO] [site:attach-descriptor {execution: > default-attach-descriptor}] > [INFO] Parent project loaded from repository. > [INFO] Preparing source:jar > [WARNING] Removing: jar from forked lifecycle, to prevent > recursive invocation. > [INFO] No goals needed for project - skipping > [INFO] [source:jar {execution: default}] > [INFO] Preparing checkstyle:check > [INFO] snapshot > org.apache.openwebbeans.build-tools:checkstyle-rules:1.0.0-SNAPSHOT: > checking for updates from apache.snapshots > Downloading: > http://people.apache.org/repo/m2-snapshot-repository/org/apache/openwebbeans/build-tools/checkstyle-rules/1.0.0-SNAPSHOT/checkstyle-rules-1.0.0-SNAPSHOT.pom > [INFO] Unable to find resource > 'org.apache.openwebbeans.build-tools:checkstyle-rules:pom:1.0.0-SNAPSHOT' > in repository apache.snapshots > (http://people.apache.org/repo/m2-snapshot-repository) > Downloading: > http://repository.apache.org/snapshots/org/apache/openwebbeans/build-tools/checkstyle-rules/1.0.0-SNAPSHOT/checkstyle-rules-1.0.0-SNAPSHOT.pom > [INFO] Unable to find resource > 'org.apache.openwebbeans.build-tools:checkstyle-rules:pom:1.0.0-SNAPSHOT' > in repository apache.snapshots (http://repository.apache.org/snapshots) > Downloading: > http://people.apache.org/repo/m2-snapshot-repository/org/apache/openwebbeans/build-tools/checkstyle-rules/1.0.0-SNAPSHOT/checkstyle-rules-1.0.0-SNAPSHOT.jar > [INFO] Unable to find resource > 'org.apache.openwebbeans.build-tools:checkstyle-rules:jar:1.0.0-SNAPSHOT' > in repository apache.snapshots > (http://people.apache.org/repo/m2-snapshot-repository) > Downloading: > http://repository.apache.org/snapshots/org/apache/openwebbeans/build-tools/checkstyle-rules/1.0.0-SNAPSHOT/checkstyle-rules-1.0.0-SNAPSHOT.jar > [INFO] Unable to find resource > 'org.apache.openwebbeans.build-tools:checkstyle-rules:jar:1.0.0-SNAPSHOT' > in repository apache.snapshots (http://repository.apache.org/snapshots) > [INFO] > ------------------------------------------------------------------------ > [ERROR] BUILD ERROR > [INFO] > ------------------------------------------------------------------------ > [INFO] Failed to resolve artifact. > > > > > There exists a workaround but this requires that every user > has to add the following section into his > ~/.m2/settings.xml: > > <mirrors> > <mirror> > > <id>new.apache.snapshots</id> > <name>new apache snapshots > repository. We need this to skip the old ones</name> > <url>http://repository.apache.org/snapshots</url> > > <mirrorOf>apache.snapshots</mirrorOf> > </mirror> > </mirrors> > > So what shall we do with the 'old' apache.snapshots > repository? > > LieGrue, > strub > > > >
