You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by Stuart McCulloch <mc...@gmail.com> on 2014/06/16 12:14:39 UTC

Getting ready for the next release of the maven-bundle-plugin

Hi,

There have been a number of fixes and features added to the
maven-bundle-plugin, as well as a recent upgrade to bnd 2.3.0, and it would
be great if people could perform some early smoke testing on the current
snapshot before we stage the next release.

To test the latest snapshot, either build the plugin from source or add the
following to your pom.xml and set the version in your maven-bundle-plugin
declaration to 2.4.1-SNAPSHOT:

    <pluginRepositories>
        <pluginRepository>
            <id>apache.snapshots</id>
            <name>snapshot plugins</name>
            <url>http://repository.apache.org/snapshots</url>
            <releases>
                <enabled>false</enabled>
            </releases>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
        </pluginRepository>
    </pluginRepositories>

Let me know if you spot any regressions or bugs!

-- 
Cheers, Stuart

Re: Getting ready for the next release of the maven-bundle-plugin

Posted by Mark Derricutt <ma...@talios.com>.
On 19 Jun 2014, at 10:59, Stuart McCulloch wrote:

> What version of java?  I’ve just built successfully using both 
> 1.6.0_65 and 1.7.0_51

JDK 8 ( as mentioned in the followup post ). The problem is the usage of 
*'s in the import statements now pulling in the new Base64 JDK class.

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Re: Getting ready for the next release of the maven-bundle-plugin

Posted by Stuart McCulloch <mc...@gmail.com>.
What version of java?  I’ve just built successfully using both 1.6.0_65 and 1.7.0_51

On 18 Jun 2014, at 23:56, Mark Derricutt <ma...@talios.com> wrote:

> Stuart,
> 
> Just tried building this from source:
> 
> [ERROR] /Users/amrk/temp/felix-trunk/bundleplugin/src/main/java/aQute/bnd/osgi/Verifier.java:[1160,15] error: reference to Base64 is ambiguous
> [INFO] 1 error
> 
> Is there a specific branch I should have cloned from svn or?
> 
> Mark
> 
> On 16 Jun 2014, at 22:14, Stuart McCulloch wrote:
> 
>> Hi,
>> 
>> There have been a number of fixes and features added to the
>> maven-bundle-plugin, as well as a recent upgrade to bnd 2.3.0, and it would
>> be great if people could perform some early smoke testing on the current
>> snapshot before we stage the next release.
>> 
>> To test the latest snapshot, either build the plugin from source or add the
>> following to your pom.xml and set the version in your maven-bundle-plugin
>> declaration to 2.4.1-SNAPSHOT:
>> 
>>  <pluginRepositories>
>>      <pluginRepository>
>>          <id>apache.snapshots</id>
>>          <name>snapshot plugins</name>
>>          <url>http://repository.apache.org/snapshots</url>
>>          <releases>
>>              <enabled>false</enabled>
>>          </releases>
>>          <snapshots>
>>              <enabled>true</enabled>
>>          </snapshots>
>>      </pluginRepository>
>>  </pluginRepositories>
>> 
>> Let me know if you spot any regressions or bugs!
>> 
>> -- 
>> Cheers, Stuart
> 
> ---------------------------------------------------------------------
> 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: Getting ready for the next release of the maven-bundle-plugin

Posted by Mark Derricutt <ma...@talios.com>.
Stuart,

Just tried building this from source:

[ERROR] 
/Users/amrk/temp/felix-trunk/bundleplugin/src/main/java/aQute/bnd/osgi/Verifier.java:[1160,15] 
error: reference to Base64 is ambiguous
[INFO] 1 error

Is there a specific branch I should have cloned from svn or?

Mark

On 16 Jun 2014, at 22:14, Stuart McCulloch wrote:

> Hi,
>
> There have been a number of fixes and features added to the
> maven-bundle-plugin, as well as a recent upgrade to bnd 2.3.0, and it 
> would
> be great if people could perform some early smoke testing on the 
> current
> snapshot before we stage the next release.
>
> To test the latest snapshot, either build the plugin from source or 
> add the
> following to your pom.xml and set the version in your 
> maven-bundle-plugin
> declaration to 2.4.1-SNAPSHOT:
>
>   <pluginRepositories>
>       <pluginRepository>
>           <id>apache.snapshots</id>
>           <name>snapshot plugins</name>
>           <url>http://repository.apache.org/snapshots</url>
>           <releases>
>               <enabled>false</enabled>
>           </releases>
>           <snapshots>
>               <enabled>true</enabled>
>           </snapshots>
>       </pluginRepository>
>   </pluginRepositories>
>
> Let me know if you spot any regressions or bugs!
>
> -- 
> Cheers, Stuart

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Re: Getting ready for the next release of the maven-bundle-plugin

Posted by Stuart McCulloch <mc...@gmail.com>.
On 23 Jun 2014, at 03:30, "Mark Derricutt" <ma...@talios.com> wrote:

> Just did an svn update and see we're now on 2.5.1-SNAPSHOT. I don't spot any threads regarding the release vote on here or dev@?

The release vote is on dev: http://www.mail-archive.com/dev@felix.apache.org/msg33345.html

> On 23 Jun 2014, at 12:09, Stuart McCulloch wrote:
> 
>> Log an issue and I'll schedule it for 2.5.1 (the vote for 2.5.0 is already
> 
> ---------------------------------------------------------------------
> 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: Getting ready for the next release of the maven-bundle-plugin

Posted by Mark Derricutt <ma...@talios.com>.
Just did an svn update and see we're now on 2.5.1-SNAPSHOT. I don't spot 
any threads regarding the release vote on here or dev@?

On 23 Jun 2014, at 12:09, Stuart McCulloch wrote:

> Log an issue and I'll schedule it for 2.5.1 (the vote for 2.5.0 is 
> already

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Re: Getting ready for the next release of the maven-bundle-plugin

Posted by Stuart McCulloch <mc...@gmail.com>.
FYI, vote has been restarted: http://www.mail-archive.com/dev@felix.apache.org/msg33376.html

General consensus was to re-stage the fixed build as 2.5.0

On 23 Jun 2014, at 12:41, Stuart McCulloch <mc...@gmail.com> wrote:

> On 23 Jun 2014, at 08:11, Stuart McCulloch <mc...@gmail.com> wrote:
> 
>> On 23 Jun 2014, at 03:25, "Mark Derricutt" <ma...@talios.com> wrote:
>> 
>>> 2.5.0?  What happened to to 2.4.1-SNAPSHOT that we're testing here? Or has 2.4.1-SNAPSHOT turned into 2.5.0-SNAPSHOT?
>> 
>> It was staged as 2.5.0 following this discussion on the dev list: http://www.mail-archive.com/dev@felix.apache.org/msg33273.html since it contains new features
>> 
>>> Sounds like this is a rather fundamentally breaking bug which should probably halt the release...
>> 
>> Versions are cheap - if we decide to restage then I'd still lean towards staging this bugfix as 2.5.1 unless anyone had any strong objections
>> 
>> And if we decide to release 2.5.0 (depends how many use cases this affects) then 2.5.1 won't be far away.
> 
> I’ve recreated the issue with a basic project, so have cancelled the release vote until this is fixed. 
> 
>>> On 23 Jun 2014, at 12:09, Stuart McCulloch wrote:
>>> 
>>>> Log an issue and I'll schedule it for 2.5.1 (the vote for 2.5.0 is already
>>> 
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
>>> For additional commands, e-mail: users-help@felix.apache.org


Re: Getting ready for the next release of the maven-bundle-plugin

Posted by Stuart McCulloch <mc...@gmail.com>.
On 23 Jun 2014, at 08:11, Stuart McCulloch <mc...@gmail.com> wrote:

> On 23 Jun 2014, at 03:25, "Mark Derricutt" <ma...@talios.com> wrote:
> 
>> 2.5.0?  What happened to to 2.4.1-SNAPSHOT that we're testing here? Or has 2.4.1-SNAPSHOT turned into 2.5.0-SNAPSHOT?
> 
> It was staged as 2.5.0 following this discussion on the dev list: http://www.mail-archive.com/dev@felix.apache.org/msg33273.html since it contains new features
> 
>> Sounds like this is a rather fundamentally breaking bug which should probably halt the release...
> 
> Versions are cheap - if we decide to restage then I'd still lean towards staging this bugfix as 2.5.1 unless anyone had any strong objections
> 
> And if we decide to release 2.5.0 (depends how many use cases this affects) then 2.5.1 won't be far away.

I’ve recreated the issue with a basic project, so have cancelled the release vote until this is fixed. 

>> On 23 Jun 2014, at 12:09, Stuart McCulloch wrote:
>> 
>>> Log an issue and I'll schedule it for 2.5.1 (the vote for 2.5.0 is already
>> 
>> ---------------------------------------------------------------------
>> 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: Getting ready for the next release of the maven-bundle-plugin

Posted by Mark Derricutt <ma...@talios.com>.
> It was staged as 2.5.0 following this discussion on the dev list: 
> http://www.mail-archive.com/dev@felix.apache.org/msg33273.html since 
> it contains new features

+1 weird, someone I must have unsubbed from dev@felix - resubbed.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Re: Getting ready for the next release of the maven-bundle-plugin

Posted by Stuart McCulloch <mc...@gmail.com>.
On 23 Jun 2014, at 03:25, "Mark Derricutt" <ma...@talios.com> wrote:

> 2.5.0?  What happened to to 2.4.1-SNAPSHOT that we're testing here? Or has 2.4.1-SNAPSHOT turned into 2.5.0-SNAPSHOT?

It was staged as 2.5.0 following this discussion on the dev list: http://www.mail-archive.com/dev@felix.apache.org/msg33273.html since it contains new features

> Sounds like this is a rather fundamentally breaking bug which should probably halt the release...

Versions are cheap - if we decide to restage then I'd still lean towards staging this bugfix as 2.5.1 unless anyone had any strong objections

And if we decide to release 2.5.0 (depends how many use cases this affects) then 2.5.1 won't be far away.

> On 23 Jun 2014, at 12:09, Stuart McCulloch wrote:
> 
>> Log an issue and I'll schedule it for 2.5.1 (the vote for 2.5.0 is already
> 
> ---------------------------------------------------------------------
> 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: Getting ready for the next release of the maven-bundle-plugin

Posted by Mark Derricutt <ma...@talios.com>.
2.5.0?  What happened to to 2.4.1-SNAPSHOT that we're testing here? Or 
has 2.4.1-SNAPSHOT turned into 2.5.0-SNAPSHOT?

Sounds like this is a rather fundamentally breaking bug which should 
probably halt the release...

On 23 Jun 2014, at 12:09, Stuart McCulloch wrote:

> Log an issue and I'll schedule it for 2.5.1 (the vote for 2.5.0 is 
> already

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Re: Getting ready for the next release of the maven-bundle-plugin

Posted by Stuart McCulloch <mc...@gmail.com>.
Sure, looks like the change over to the nicer manifest writer omitted the
call to mkdirs for the target location.

Log an issue and I'll schedule it for 2.5.1 (the vote for 2.5.0 is already
in progress)
 On 23 Jun 2014 00:48, "Mark Derricutt" <ma...@talios.com> wrote:

> On 16 Jun 2014, at 22:14, Stuart McCulloch wrote:
>
>  bnd 2.3.0, and it would
>> be great if people could perform some early smoke testing on the current
>> snapshot before we stage the next release.
>>
>
> In the one project I bumped to this I'm seeing the following:
>
> [ERROR] Error trying to write Manifest to file /Users/amrk/IdeaProjects/
> securemx/smx3/com.smxemail.rest/target/classes/META-INF/MANIFEST.MF
> java.io.FileNotFoundException: /Users/amrk/IdeaProjects/
> securemx/smx3/com.smxemail.rest/target/classes/META-INF/MANIFEST.MF (No
> such file or directory)
>         at java.io.FileOutputStream.open(Native Method)
>         at java.io.FileOutputStream.<init>(FileOutputStream.java:206)
>         at java.io.FileOutputStream.<init>(FileOutputStream.java:156)
>         at org.apache.felix.bundleplugin.BundlePlugin.execute(
> BundlePlugin.java:431)
>         at org.apache.felix.bundleplugin.BundlePlugin.execute(
> BundlePlugin.java:291)
>         at org.apache.felix.bundleplugin.BundlePlugin.execute(
> BundlePlugin.java:282)
>         at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(
> DefaultBuildPluginManager.java:132)
>         at org.apache.maven.lifecycle.internal.MojoExecutor.execute(
> MojoExecutor.java:208)
>         at org.apache.maven.lifecycle.internal.MojoExecutor.execute(
> MojoExecutor.java:153)
>         at org.apache.maven.lifecycle.internal.MojoExecutor.execute(
> MojoExecutor.java:145)
>         at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.
> buildProject(LifecycleModuleBuilder.java:116)
>         at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.
> buildProject(LifecycleModuleBuilder.java:80)
>         at org.apache.maven.lifecycle.internal.builder.singlethreaded.
> SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
>         at org.apache.maven.lifecycle.internal.LifecycleStarter.
> execute(LifecycleStarter.java:120)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:347)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:154)
>         at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)
>         at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:213)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:157)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java:57)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:491)
>         at org.codehaus.plexus.classworlds.launcher.Launcher.
> launchEnhanced(Launcher.java:289)
>         at org.codehaus.plexus.classworlds.launcher.Launcher.
> launch(Launcher.java:229)
>         at org.codehaus.plexus.classworlds.launcher.Launcher.
> mainWithExitCode(Launcher.java:415)
>         at org.codehaus.plexus.classworlds.launcher.Launcher.
> main(Launcher.java:356)
>
> After a "clean install" the target/classes/META-INF directory doesn't
> exist - shall I raise this in JIRA somewhere?
>
> Mark
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>
>

Re: Getting ready for the next release of the maven-bundle-plugin

Posted by Mark Derricutt <ma...@talios.com>.
On 16 Jun 2014, at 22:14, Stuart McCulloch wrote:

> bnd 2.3.0, and it would
> be great if people could perform some early smoke testing on the 
> current
> snapshot before we stage the next release.

In the one project I bumped to this I'm seeing the following:

[ERROR] Error trying to write Manifest to file 
/Users/amrk/IdeaProjects/securemx/smx3/com.smxemail.rest/target/classes/META-INF/MANIFEST.MF
java.io.FileNotFoundException: 
/Users/amrk/IdeaProjects/securemx/smx3/com.smxemail.rest/target/classes/META-INF/MANIFEST.MF 
(No such file or directory)
	at java.io.FileOutputStream.open(Native Method)
	at java.io.FileOutputStream.<init>(FileOutputStream.java:206)
	at java.io.FileOutputStream.<init>(FileOutputStream.java:156)
	at 
org.apache.felix.bundleplugin.BundlePlugin.execute(BundlePlugin.java:431)
	at 
org.apache.felix.bundleplugin.BundlePlugin.execute(BundlePlugin.java:291)
	at 
org.apache.felix.bundleplugin.BundlePlugin.execute(BundlePlugin.java:282)
	at 
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132)
	at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
	at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
	at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
	at 
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
	at 
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
	at 
org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
	at 
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:120)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:347)
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:154)
	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)
	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:213)
	at org.apache.maven.cli.MavenCli.main(MavenCli.java:157)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:491)
	at 
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
	at 
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
	at 
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
	at 
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)

After a "clean install" the target/classes/META-INF directory doesn't 
exist - shall I raise this in JIRA somewhere?

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Re: Getting ready for the next release of the maven-bundle-plugin

Posted by Mark Derricutt <ma...@talios.com>.
Interesting,

Building under JDK7 builds fine, building under JDK8 trips up with that 
ambiguous Base64 reference.

Mark

On 16 Jun 2014, at 22:14, Stuart McCulloch wrote:

> Hi,
>
> There have been a number of fixes and features added to the
> maven-bundle-plugin, as well as a recent upgrade to bnd 2.3.0, and it 
> would
> be great if people could perform some early smoke testing on the 
> current
> snapshot before we stage the next release.
>
> To test the latest snapshot, either build the plugin from source or 
> add the
> following to your pom.xml and set the version in your 
> maven-bundle-plugin
> declaration to 2.4.1-SNAPSHOT:
>
>   <pluginRepositories>
>       <pluginRepository>
>           <id>apache.snapshots</id>
>           <name>snapshot plugins</name>
>           <url>http://repository.apache.org/snapshots</url>
>           <releases>
>               <enabled>false</enabled>
>           </releases>
>           <snapshots>
>               <enabled>true</enabled>
>           </snapshots>
>       </pluginRepository>
>   </pluginRepositories>
>
> Let me know if you spot any regressions or bugs!
>
> -- 
> Cheers, Stuart

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org