[ http://issues.apache.org/jira/browse/FELIXM2-10?page=all ]

Felix Meschberger updated FELIXM2-10:
-------------------------------------

    Attachment: FELIXM2-10.diff

Here is the patch. Some more notes here:

  * Is the explicit mention of the Include-Resource needed for the plugin ? 
Doesn't the maven 2 copy-resources phase copy the resources to the outputdir ? 
Or is it that the Include-Resource header is needed ? In this case, the 
respective pom resource structure should probably be used as the default ? 
Anyway, the patch just checks for the availability of the src/main/resources 
folder before setting the header default value.
   * Another issues is fixed by the patch: The Project.getOrganization() method 
returns an Organization object which does not seem to implement a toSring() 
method. The patch just calls getName() here.

> maven-bundle-plugin: Failures if src or parts of it are missing
> ---------------------------------------------------------------
>
>                 Key: FELIXM2-10
>                 URL: http://issues.apache.org/jira/browse/FELIXM2-10
>             Project: Felix M2 Plugin
>          Issue Type: Bug
>            Reporter: Felix Meschberger
>         Assigned To: Timothy Bennett
>         Attachments: FELIXM2-10.diff
>
>
> When using the maven-bundle-plugin to build bundles from existing jar files, 
> three issues exist:
>    * If nothing is copied into the project output directory (target/classes), 
> the folder does not exist and the BundlePlugin.getClassPath fails for the 
> line "new Jar(".", outputDirectory)"
>    * If no resources exist, an exception is logged for the missing 
> src/main/resources folder. I suggest to only place a default 
> Include-Resources header if the src/main/resources folder exists.
>    * If no maven build phase generates output the target folder does not 
> exist at the time the BundlePluing.execute method tries to write the JAR File.
> I will attach a patch for the three issues.

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

        

Reply via email to