[ 
https://issues.apache.org/jira/browse/ONAMI-78?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13575123#comment-13575123
 ] 

Eric Charles commented on ONAMI-78:
-----------------------------------

Adding maven-source-plugin and tuning maven-jar-plugin in parent pom, I felt in 
the exact same issue described on 
http://markmail.org/message/mjsn2xozkcesethl

The question posted on maven-users ml is unanswered.

The error is:

[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-jar-plugin:2.4:jar (jar) on project 
org.apache.onami.parent: Error assembling JAR: Manifest file: 
/Users/eric/wrk/osa/onami.svn/parent/target/osgi/MANIFEST.MF does not exist. -> 
[Help 1]

I understand that maven-jar-plugin expects a osgi/MANIFEST which is not present 
because maven-bundel-plugin did not generate it (it is a module of type 'pom', 
without classes).

As workaround, I move the maven-jar-plugin in the pluginManagement, as side 
effect that all childs must declare the maven-jar-plugin usage.
                
> Enable the tests.jar sources.jar and test-sources.jar generation during 
> SNAPSHOT builds
> ---------------------------------------------------------------------------------------
>
>                 Key: ONAMI-78
>                 URL: https://issues.apache.org/jira/browse/ONAMI-78
>             Project: Apache Onami
>          Issue Type: Improvement
>          Components: parent
>    Affects Versions: parent-3
>            Reporter: Eric Charles
>             Fix For: parent-3
>
>         Attachments: ONAMI-78.patch
>
>
> I would be great to enable the generation of all test and source artifacts 
> when building a snapshot (not only release).
> This has the advantages that these artifacts will be deployed to maven 
> snapshot repositories (source resolved in ide) and than any module has access 
> to test code (for mocks for example).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to