You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pluto-scm@portals.apache.org by at...@apache.org on 2010/06/02 00:56:38 UTC
svn commit: r950294 - in /portals/pluto: branches/pluto-2.0.x/pom.xml
trunk/pom.xml
Author: ate
Date: Tue Jun 1 22:56:38 2010
New Revision: 950294
URL: http://svn.apache.org/viewvc?rev=950294&view=rev
Log:
Fix for org.apache.felix maven-bundle-plugin error during a release:prepare where it cannot find (just build) dependent artifacts like the pluto-container-api to determine needed OSGi imports.
By changing the default maven-release-plugin preparationGoals from "clean verify" to "clean install" the just build dependent artifacts become visible for the maven-bundle-plugin.
Modified:
portals/pluto/branches/pluto-2.0.x/pom.xml
portals/pluto/trunk/pom.xml
Modified: portals/pluto/branches/pluto-2.0.x/pom.xml
URL: http://svn.apache.org/viewvc/portals/pluto/branches/pluto-2.0.x/pom.xml?rev=950294&r1=950293&r2=950294&view=diff
==============================================================================
--- portals/pluto/branches/pluto-2.0.x/pom.xml (original)
+++ portals/pluto/branches/pluto-2.0.x/pom.xml Tue Jun 1 22:56:38 2010
@@ -505,6 +505,18 @@ TODO: Check if we need all of them. -->
</instructions>
</configuration>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-release-plugin</artifactId>
+ <configuration>
+ <!-- During release (prepare) the org.apache.felix maven-bundle-plugin needs classpath access to just build dependent artifacts
+ like the pluto-container-api to determine the needed OSGi imports.
+ However, the default maven-release-plugin goals (clean verify) somehow don't provide those.
+ To fix that, the default release plugin set of preparationGoals is changed to do an "install" instead of just "verify".
+ -->
+ <preparationGoals>clean install</preparationGoals>
+ </configuration>
+ </plugin>
</plugins>
</pluginManagement>
Modified: portals/pluto/trunk/pom.xml
URL: http://svn.apache.org/viewvc/portals/pluto/trunk/pom.xml?rev=950294&r1=950293&r2=950294&view=diff
==============================================================================
--- portals/pluto/trunk/pom.xml (original)
+++ portals/pluto/trunk/pom.xml Tue Jun 1 22:56:38 2010
@@ -505,6 +505,18 @@ TODO: Check if we need all of them. -->
</instructions>
</configuration>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-release-plugin</artifactId>
+ <configuration>
+ <!-- During release (prepare) the org.apache.felix maven-bundle-plugin needs classpath access to just build dependent artifacts
+ like the pluto-container-api to determine the needed OSGi imports.
+ However, the default maven-release-plugin goals (clean verify) somehow don't provide those.
+ To fix that, the default release plugin set of preparationGoals is changed to do an "install" instead of just "verify".
+ -->
+ <preparationGoals>clean install</preparationGoals>
+ </configuration>
+ </plugin>
</plugins>
</pluginManagement>