This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 250242 - Speedup nbm-maven-plugin:nbm jar repacking
Summary: Speedup nbm-maven-plugin:nbm jar repacking
Status: NEW
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Stupka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-05 17:27 UTC by sirmax
Modified: 2015-06-30 16:00 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
suggested patch (1.19 KB, application/octet-stream)
2015-02-05 17:27 UTC, sirmax
Details

Note You need to log in before you can comment on or make changes to this bug.
Description sirmax 2015-02-05 17:27:26 UTC
Created attachment 151835 [details]
suggested patch

When nbm-maven-plugin:nbm creates an NBM for a module with plain-jar dependencies it repacks the original jar since it has to update the manifest [1][2].

As of now the jar entries are copied byte-by-byte. The copying can be considerably sped-up using a buffer.

Attached is a suggested patch against http://svn.codehaus.org/mojo/trunk/mojo/nbm-maven/nbm-maven-plugin/

[1] http://jira.codehaus.org/browse/MNBMODULE-132
[2] http://jira.codehaus.org/browse/MNBMODULE-132

PS. Sorry for not reporting this to the codehaus JIRA. I didn't find a simple way to create an account there.
Comment 1 skygo 2015-03-25 17:08:51 UTC
Hi sirmax,
 the nbm module is independant of netbeans dev. Owner of this module are no more netbeans dev, you need to make your suggestion on codehaus.org. (Owners are not listening to netbeans bugzilla directly)

Signup is there http://xircles.codehaus.org/ 

Regards

PS
Codehaus is about too close.

Maven mojo plugins including nbm will be soon migrated elsewhere. Depending on date you look to this comment strategy may change
Comment 2 skygo 2015-06-30 16:00:06 UTC
Hi the new home of nbm-maven-plugin is on github [1]

may be easy to contribute if still need this fix.

Regards

[1] https://github.com/mojohaus/nbm-maven-plugin