[ 
http://jira.codehaus.org/browse/MJAR-134?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=212080#action_212080
 ] 

Ron Gallagher commented on MJAR-134:
------------------------------------

The original patch did not include logic to create the 'basic' artifact which 
is attached to the project.  Not doing that kept the project pom file from 
being attached.  The updated patch (MJAR-multijar-002.patch) creates an empty 
'basic' artifact (myartifact-1.0.jar) so that the project's POM file is 
attached and deployed to the repository.  

> Provide the ability to generate multiple jar files rather than one huge jar 
> file.
> ---------------------------------------------------------------------------------
>
>                 Key: MJAR-134
>                 URL: http://jira.codehaus.org/browse/MJAR-134
>             Project: Maven 2.x Jar Plugin
>          Issue Type: New Feature
>    Affects Versions: 2.3
>            Reporter: Ron Gallagher
>         Attachments: MJAR-multijar-002.patch, MJAR-multijar.patch
>
>
> In the environment I work in, we have a Maven project that uses the XMLBeans 
> plugin to 'compile' over 1,300 schema files.  The jar file that's generated 
> by the JAR plugin contains well over 167,000 individual entries.  While it is 
> a 'valid' jar file, the tremendous number of entries in that file are causing 
> some obscure runtime errors.  We have determined that the number of entries 
> in the jar file is the cause of these errors because the errors do not occur 
> if we manually break up that one massive jar file into several smaller jar 
> files.
> The attached patch file contains updates to the maven-jar-plugin that provide 
> this jar-splitting capability within the Maven build environment.  This patch 
> basically adds a new parameter (jarFileCount) to the JarMojo.  If that 
> parameter is 1 or less, then the existing jar-creation logic is used.  
> However, if that parameter is greater than 1, then multiple jar files are 
> created, each with about the same number of files in them.  The classifier is 
> used to differentiate the various jar files that are crated when the 
> jarFileCount parameter is greater than one.  The sizes of these smaller jar 
> files may vary greatly, but the number of files in them will be relatively 
> consistent.
> The attached patch also contains several integration tests which exercise 
> this new capability.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to