Looks like the activemq trunk is not really setup to deploy to Nexus
yet, as they are still using the old apache-4.pom....
Here is a quick diff that will allow deploying to nexus, but it requires
someone with activemq committer rights :-)
Index: pom.xml
===================================================================
--- pom.xml (revision 785685)
+++ pom.xml (working copy)
@@ -19,7 +19,7 @@
<parent>
<groupId>org.apache</groupId>
<artifactId>apache</artifactId>
- <version>4</version>
+ <version>6</version>
</parent>
<modelVersion>4.0.0</modelVersion>
@@ -114,6 +114,16 @@
<url>${staging.siteURL}/${siteId}/maven/${activemq-version}</url>
<!--<url>${site-repo-url}</url>-->
</site>
+ <repository>
+ <id>apache.releases.https</id>
+ <name>Apache Release Distribution Repository</name>
+
<url>https://repository.apache.org/service/local/staging/deploy/maven2</url>
+ </repository>
+ <snapshotRepository>
+ <id>apache.snapshots.https</id>
+ <name>${distMgmtSnapshotsName}</name>
+ <url>${distMgmtSnapshotsUrl}</url>
+ </snapshotRepository>
</distributionManagement>
<modules>
@@ -967,10 +977,15 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
- <version>2.0-beta-7</version>
+ <version>2.0-beta-9</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-deploy-plugin</artifactId>
+ <version>2.4</version>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-remote-resources-plugin</artifactId>
<version>1.0</version>
<executions>
@@ -1266,9 +1281,9 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
+ <version>2.4</version>
<inherited>true</inherited>
<configuration>
-
<altDeploymentRepository>${staging.altRepository}/${siteId}</altDeploymentRepository>
<updateReleaseInfo>true</updateReleaseInfo>
</configuration>
</plugin>
David Jencks wrote:
Geroniomo is having problems getting up to date activemq snapshots from
the repo. I think the problem might be that the metadata from the
people.apache.org files based repo and the metadata from the nexus based
repo aren't getting merged properly:
nexus hosted repo:
https://repository.apache.org/content/repositories/snapshots/org/apache/activemq/activemq-camel/5.3-SNAPSHOT/maven-metadata.xml
has
<?xml version="1.0" encoding="UTF-8"?><metadata>
<groupId>org.apache.activemq</groupId>
<artifactId>activemq-camel</artifactId>
<version>5.3-SNAPSHOT</version>
<versioning>
<snapshot>
<buildNumber>1</buildNumber>
</snapshot>
<lastUpdated>20090615193531</lastUpdated>
</versioning>
</metadata>
antique file based repo:
https://repository.apache.org/content/repositories/apache-legacy-snapshots/org/apache/activemq/activemq-core/5.3-SNAPSHOT/maven-metadata.xml
has
<?xml version="1.0" encoding="UTF-8"?><metadata>
<groupId>org.apache.activemq</groupId>
<artifactId>activemq-core</artifactId>
<version>5.3-SNAPSHOT</version>
<versioning>
<snapshot>
<timestamp>20090417.072917</timestamp>
<buildNumber>167</buildNumber>
</snapshot>
<lastUpdated>20090417073310</lastUpdated>
</versioning>
</metadata>
merged repo
https://repository.apache.org/content/groups/snapshots-group/org/apache/activemq/activemq-core/5.3-SNAPSHOT/maven-metadata.xml
has
<?xml version="1.0" encoding="UTF-8"?>
<metadata xsi:schemaLocation="http://maven.apache.org/METADATA/1.0.0
http://maven.apache.org/xsd/metadata-1.0.0.xsd"
xmlns="http://maven.apache.org/METADATA/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<groupId>org.apache.activemq</groupId>
<artifactId>activemq-core</artifactId>
<version>5.3-SNAPSHOT</version>
<versioning>
<snapshot>
<timestamp>20090417.072917</timestamp>
<buildNumber>167</buildNumber>
</snapshot>
<lastUpdated>20090417073310</lastUpdated>
</versioning>
</metadata>
which matches the older version better.
Note that activemq is using non-unique snapshots.
What is the best way to fix this?
- remove obsolete snapshots from peopel.apache.org repo?
- use unique (timestamped) snapshots ?
- both ?
- something else ???
thanks
david jencks
Index: pom.xml
===================================================================
--- pom.xml (revision 785685)
+++ pom.xml (working copy)
@@ -19,7 +19,7 @@
<parent>
<groupId>org.apache</groupId>
<artifactId>apache</artifactId>
- <version>4</version>
+ <version>6</version>
</parent>
<modelVersion>4.0.0</modelVersion>
@@ -114,6 +114,16 @@
<url>${staging.siteURL}/${siteId}/maven/${activemq-version}</url>
<!--<url>${site-repo-url}</url>-->
</site>
+ <repository>
+ <id>apache.releases.https</id>
+ <name>Apache Release Distribution Repository</name>
+
<url>https://repository.apache.org/service/local/staging/deploy/maven2</url>
+ </repository>
+ <snapshotRepository>
+ <id>apache.snapshots.https</id>
+ <name>${distMgmtSnapshotsName}</name>
+ <url>${distMgmtSnapshotsUrl}</url>
+ </snapshotRepository>
</distributionManagement>
<modules>
@@ -967,10 +977,15 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
- <version>2.0-beta-7</version>
+ <version>2.0-beta-9</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-deploy-plugin</artifactId>
+ <version>2.4</version>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-remote-resources-plugin</artifactId>
<version>1.0</version>
<executions>
@@ -1266,9 +1281,9 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
+ <version>2.4</version>
<inherited>true</inherited>
<configuration>
-
<altDeploymentRepository>${staging.altRepository}/${siteId}</altDeploymentRepository>
<updateReleaseInfo>true</updateReleaseInfo>
</configuration>
</plugin>