2008/5/14 mraible <[EMAIL PROTECTED]>:
>
> I have a <packaging>war</packaging> project and I'm using the
> maven-bundle-plugin to generate the MANIFEST.MF. Everything is working
> fine
> and I can deploy my WAR in an OSGi container. I have <remoteOBR/> in the
> <properties> section of my pom.xml.
>
> However, when I run "mvn bundle:deploy", the repository.xml file in my OBR
> is not updated. It looks like it's updating, but my artifact doesn't show
> up
> in repository.xml.
>
If you're just running "mvn bundle:deploy" then you won't see any
update because Maven doesn't have an attached artifact to use.
(the artifact is attached during the install phase)
You'll see the same issue running the core Maven deploy goal
on its own (ie. "mvn deploy:deploy"). These life-cycle goals are
meant to be run as part of a complete build life-cycle, which you
get automatically as part of the "bundle" packaging*
(* as long as remoteOBR is set, otherwise the phase is skipped)
because you're using "war" packaging you don't have this phase
attached to your build life-cycle, so you can either add it as follows:
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>1.4.1</version>
<executions>
<execution>
<id>bundle-deploy</id>
<goals>
<goal>deploy</goal>
</goals>
<configuration>
<!-- deploy settings -->
</configuration>
</execution>
</executions>
</plugin>
or use "mvn install bundle:deploy" to attach the artifact before the deploy
HTH
PS. deploy-file, like all *-file goals, can be used outside the build
life-cycle...
Any ideas?
>
> Thanks,
>
> Matt
> --
> View this message in context:
> http://www.nabble.com/maven-bundle-plugin-not-writing-OBR-data-when-project-is-a-WAR-tp17219225p17219225.html
> Sent from the Apache Felix - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
Cheers, Stuart