felix-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Allen Lau <allen....@gmail.com>
Subject Re: Maven Bundle Plugin incompatible with SVN revision bundles
Date Wed, 03 Oct 2012 22:19:30 GMT
buildnumber-maven-plugin definitely works.  Use maven-jar-plugin or
maven-bundle-plugin depending on your package type.  Don't mix them up.   I
would recommend that you use the "bundle" type and the maven-bundle-plugin
for building OSGi apps.  Try turning on debug with mvn -X to see what's
going on.

On Wed, Oct 3, 2012 at 5:43 AM, Benoît Thiébault <thiebault@artenum.com>wrote:

> Hi everyone,
> I don't know if this mailing list is the right place to post my question...
> I am developing OSGi applications that are managed by Maven (and
> maven-bundle-plugin in particular) and I would like to provide the SVN
> revision number in the bundle MANIFEST.
> There are two Maven plugins that I am aware of that provide this
> functionality. They are namely:
> - maven-svn-revision-number-**plugin, http://code.google.com/p/**
> maven-svn-revision-number-**plugin/<http://code.google.com/p/maven-svn-revision-number-plugin/>
> - buildnumber-maven-plugin, http://mojo.codehaus.org/**
> buildnumber-maven-plugin/<http://mojo.codehaus.org/buildnumber-maven-plugin/>
> While both of them work perfectly on standard <package>jar</package> Maven
> modules, they both fail with <package>bundle</package> Maven modules.
> How do you do this in OSGi context? Are there other Maven plugins
> available that work well with BND? If this is a BND bug, can it be fixed?
> I have asked questions on the subject here http://stackoverflow.com/**
> questions/12604161/error-**while-adding-svn-revision-in-**
> jar-manifest-with-maven-and-**maven-bundle-plug<http://stackoverflow.com/questions/12604161/error-while-adding-svn-revision-in-jar-manifest-with-maven-and-maven-bundle-plug>and
> https://groups.google.com/**forum/?fromgroups=#!topic/**
> maven-svn-revision-number-**plugin/yvHvn1tS_2M<https://groups.google.com/forum/?fromgroups=#!topic/maven-svn-revision-number-plugin/yvHvn1tS_2M>without
success so far.
> Kind regards,
> Benoît

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message