You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by Simon Chemouil <sc...@gmail.com> on 2015/09/23 11:26:31 UTC
Maven-bundle-plugin > 2.5.3 and Ipojo Maven Plugin
Hi,
Since version 2.5.4, maven-bundle-plugin has changed its behaviour and
using the ipojo-maven-plugin with it doesn't work anymore.
I'm using maven 3.3.3 and the settings that work fine with mbp 2.5.3
fail using 2.5.4.
org.apache.maven.plugin.MojoExecutionException: The input file
/home/git/babylon/babylon-rest/target/classes is not a Jar file
at
org.apache.felix.ipojo.plugin.ManipulatorMojo.execute(ManipulatorMojo.java:277)
~[na:na]
at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
~[maven-core-3.3.3.jar:3.3.3]
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
~[maven-core-3.3.3.jar:3.3.3]
This is due to project.getArtifact().getFile() now returning the
directory target/classes rather than a valid JAR file (in
ManipulatorMojo). I suppose this is set by mbp.
The IPojo manipulator is able to "pojoize" directories directly but
expects a JAR file instead and thus fails.
Does anyone know if it is possible to configure the maven-bundle-plugin
to keep its old behaviour? What is the reason for the change, and
against which component should I open a bug? :-)
I will test using the staged mbp 3.0.0 to see if the bug is still there
in case a quick fix is possible before the release.
Thanks,
Simon
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org
Re: Maven-bundle-plugin > 2.5.3 and Ipojo Maven Plugin
Posted by David Bosschaert <da...@gmail.com>.
Good to hear :)
Cheers,
David
On 23 September 2015 at 10:33, Simon Chemouil <sc...@gmail.com> wrote:
> Well, it works just fine with the staged version mbp 3.0.0. Should have
> started there :-)
>
> Cheers,
> Simon
>
> Le 23/09/2015 11:26, Simon Chemouil a écrit :
>> Hi,
>>
>> Since version 2.5.4, maven-bundle-plugin has changed its behaviour and
>> using the ipojo-maven-plugin with it doesn't work anymore.
>>
>> I'm using maven 3.3.3 and the settings that work fine with mbp 2.5.3
>> fail using 2.5.4.
>>
>> org.apache.maven.plugin.MojoExecutionException: The input file
>> /home/git/babylon/babylon-rest/target/classes is not a Jar file
>> at
>> org.apache.felix.ipojo.plugin.ManipulatorMojo.execute(ManipulatorMojo.java:277)
>> ~[na:na]
>> at
>> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
>> ~[maven-core-3.3.3.jar:3.3.3]
>> at
>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
>> ~[maven-core-3.3.3.jar:3.3.3]
>>
>>
>> This is due to project.getArtifact().getFile() now returning the
>> directory target/classes rather than a valid JAR file (in
>> ManipulatorMojo). I suppose this is set by mbp.
>>
>> The IPojo manipulator is able to "pojoize" directories directly but
>> expects a JAR file instead and thus fails.
>>
>> Does anyone know if it is possible to configure the maven-bundle-plugin
>> to keep its old behaviour? What is the reason for the change, and
>> against which component should I open a bug? :-)
>>
>> I will test using the staged mbp 3.0.0 to see if the bug is still there
>> in case a quick fix is possible before the release.
>>
>> Thanks,
>>
>> Simon
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
>> For additional commands, e-mail: users-help@felix.apache.org
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org
Re: Maven-bundle-plugin > 2.5.3 and Ipojo Maven Plugin
Posted by Simon Chemouil <sc...@gmail.com>.
Well, it works just fine with the staged version mbp 3.0.0. Should have
started there :-)
Cheers,
Simon
Le 23/09/2015 11:26, Simon Chemouil a écrit :
> Hi,
>
> Since version 2.5.4, maven-bundle-plugin has changed its behaviour and
> using the ipojo-maven-plugin with it doesn't work anymore.
>
> I'm using maven 3.3.3 and the settings that work fine with mbp 2.5.3
> fail using 2.5.4.
>
> org.apache.maven.plugin.MojoExecutionException: The input file
> /home/git/babylon/babylon-rest/target/classes is not a Jar file
> at
> org.apache.felix.ipojo.plugin.ManipulatorMojo.execute(ManipulatorMojo.java:277)
> ~[na:na]
> at
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
> ~[maven-core-3.3.3.jar:3.3.3]
> at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
> ~[maven-core-3.3.3.jar:3.3.3]
>
>
> This is due to project.getArtifact().getFile() now returning the
> directory target/classes rather than a valid JAR file (in
> ManipulatorMojo). I suppose this is set by mbp.
>
> The IPojo manipulator is able to "pojoize" directories directly but
> expects a JAR file instead and thus fails.
>
> Does anyone know if it is possible to configure the maven-bundle-plugin
> to keep its old behaviour? What is the reason for the change, and
> against which component should I open a bug? :-)
>
> I will test using the staged mbp 3.0.0 to see if the bug is still there
> in case a quick fix is possible before the release.
>
> Thanks,
>
> Simon
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org