Hi Stuart,
Could you please check if this is the optimal and correct way to invoke
the command? I can then update the documentation.
~/software/apache-maven-2.2.1/bin/mvn \
org.apache.felix:maven-bundle-plugin:deploy-file \
-DremoteOBR=releases.xml \
-Durl=file:${obr} \
-DbundleUrl=http://repo1.maven.org/maven2/org/apache/felix/org.apache.felix.prefs/1.0.6/org.apache.felix.prefs-1.0.6.jar
\
-DpomFile=$HOME/WS/felix/dist/org.apache.felix.prefs-1.0.6.pom \
-Dfile=$HOME/WS/felix/dist/org.apache.felix.prefs-1.0.6.jar
After I run this command, I see a lot of diffs related to reordering of
XML attributes and quote character substitution (" by ') . I am assuming
I can safely ignore them and check in the updated the repository.xml.
Thanks,
Sahoo
On Tuesday 13 August 2013 01:03 PM, Stuart McCulloch wrote:
Use the bundle:deploy-file goal to upload details of an existing artifact.
On 13 Aug 2013, at 05:28, Sahoo <[email protected]> wrote:
It's the maven-bundle-plugin:deploy goal that takes care of updating obr, so I
would like to believe package phase would be sufficient. But, it's still not
clear how I am supposed to update obr using the artifacts that are already
created during release process? If I checkout from the svn tag and run the
following maven command:
mvn clean package\
org.apache.felix:maven-bundle-plugin:deploy\
-DprefixUrl=http://repo1.maven.org/maven2\
-DremoteOBR=releases.xml\
-DaltDeploymentRepository=apache.website::default::file:///${obr}
, it's going to generate new artifacts and use them to update the obr. Is that
not an issue?
Thanks,
Sahoo
On Monday 12 August 2013 01:00 PM, Felix Meschberger wrote:
Hi Sahoo
Good point.
I am not sure, whether the "package" build phase would be sufficient and you don't actually need
the "install" build phase. The actual repository.xml maintenance takes place in the
"org.apache.felix:maven-bundle-plugin:deploy" goal which just adds references to the maven
repository.
Regards
Felix
Am 12.08.2013 um 08:45 schrieb Sahoo:
Hi,
The process as documented in [1] to update obr is not clear to me. How
do I actually update repository.xml with released artifacts? Do I
checkout from the svn tag and run the maven command? It does not sound
correct, since it will lead to regeneration of artifacts. Ideally I
would like repository.xml to be updated with artifacts that are uploaded
to remote repository.
Thanks,
Sahoo
[1]
http://felix.apache.org/documentation/development/release-management-nexus.html