[Building Sakai] SAK-21390: Maven 3 related pom changes breaks all Jenkins trunk builds/snapshot deployments
Anthony Whyte
arwhyte at umich.edu
Mon Nov 21 10:21:35 PST 2011
SAK-21390 introduced a change to the Maven <distributionManagement> repository <url> of purepoms and a couple of other indies (e.g., common, profile2) in order to support scp as a transport protocol, a protocol that now requires the associated wagon to be declared explictly as a build extension (it can also be declared as a dependency of the maven-deploy-plugin) [1]. For more details see Apache's Maven 3 compatibility notes [2].
This change has broken all other indie trunk builds/snapshot deployments despite the fact that builds are being performed by Jenkins using Maven 2.2.1. Broken builds disrupt the refreshing of trunk snapshots.
The fix is actually a straightforward one and involves slimming the <dependencyManagement> element of all trunk indies, eliminating the entries for sakai-maven-snapshots-scp and sakai-maven2-scp as both elements are overriding the parent purepom entries unnecessarily. The <build> extension need not be added as it's also inherited from purepoms [4].
I've fixed site and will jam through the other indie poms in order to stop Jenkins filling the inbox of affected developers (including myself) with failure notices of the following type:
[INFO] Error retrieving previous build number for artifact 'org.sakaiproject.polls:polls:pom': repository metadata for: 'snapshot org.sakaiproject.polls:polls:1.5-SNAPSHOT' could not be retrieved from repository: sakai-maven-snapshots-scp due to an error: Unsupported Protocol: 'scp': Cannot find wagon which supports the requested protocol: scp.
Cheers,
Anth
[1] https://jira.sakaiproject.org/browse/SAK-21390
[2] https://cwiki.apache.org/MAVEN/maven-3x-compatibility-notes.html
[3] http://builds.sakaiproject.org:8080/.
[4]https://jira.sakaiproject.org/browse/SAK-21443
SAK-21390 modifications:
<url>scp://source.sakaiproject.org/var/www/html/maven2-snapshots</url>
to
<url>scpexe://source.sakaiproject.org/var/www/html/maven2-snapshots</url>
and
<build>
<extensions>
<!-- Enabling the use of external ssh -->
<extension>
<groupId>org.apache.maven.wagon</groupId>
<artifactId>wagon-ssh-external</artifactId>
<version>2.0</version>
</extension>
</extensions>
<build>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20111121/dd963765/attachment.html
More information about the sakai-dev
mailing list