You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commons-dev@ws.apache.org by "Andreas Veithen (JIRA)" <ji...@apache.org> on 2009/09/25 21:05:16 UTC
[jira] Commented: (WSCOMMONS-505) Build Error when creating source
jar fie on modules that do not have source directory
[ https://issues.apache.org/jira/browse/WSCOMMONS-505?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12759703#action_12759703 ]
Andreas Veithen commented on WSCOMMONS-505:
-------------------------------------------
The route cause of this issue is that the Axiom POMs don't specify the versions for all plugins. The super POM in Maven >= 2.0.9 will default the version of the maven-source-plugin to 2.0.4, which doesn't produce this error. Maven <= 2.0.8 will pick up the latest version of this plugin, namely 2.1, and the behavior of this version is different when there are no source files.
I will change the POMs to specify plugin versions, so that the build will be predictable with Maven <= 2.0.8, but your are strongly advised to upgrade to a more recent version of Maven.
> Build Error when creating source jar fie on modules that do not have source directory
> -------------------------------------------------------------------------------------
>
> Key: WSCOMMONS-505
> URL: https://issues.apache.org/jira/browse/WSCOMMONS-505
> Project: WS-Commons
> Issue Type: Bug
> Components: AXIOM
> Environment: Windows XP
> Reporter: Richard Slade
> Assignee: Andreas Veithen
> Attachments: diff.txt
>
> Original Estimate: 1h
> Remaining Estimate: 1h
>
> When building axiom modules that do not have the source directory, an error occurs with the maven-source-plugin with the error
> " Error creating source archive: You must set at least one file"
> This occurs in the axiom-tests and axiom-osgi modules since they do not have source files.
> The solution is in the maven-source-plugin configuration to indicate that the pom.xml is always to be included
> <configuration>
> <includePom>true</includePom>
> </configuration>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.