[
https://issues.apache.org/jira/browse/SLING-1036?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12728003#action_12728003
]
Carsten Ziegeler commented on SLING-1036:
-----------------------------------------
The problem seems to be caused by the remote-resources plugin; if that is
removed from the config, the source jar contains the files again.
One difference between 2.0.x and 2.1 is the handling of the default
configuration for plugins:
while this:
<plugin>
<!-- overwrite the default location -->
<artifactId>maven-remote-resources-plugin</artifactId>
<configuration>
<outputDirectory>${remote.res.tmp}</outputDirectory>
</configuration>
</plugin>
applies the config to the default phase (process) in 2.1, it doesn't do this
for 2.0.x
I've changed this to:
<plugin>
<!-- overwrite the default location -->
<artifactId>maven-remote-resources-plugin</artifactId>
<executions>
<execution>
<goals><goal>process</goal></goals>
<configuration>
<outputDirectory>${remote.res.tmp}</outputDirectory>
</configuration>
</execution></executions>
</plugin>
and the output directory configuration seems to be handled correctly in 2.0.x
Although this doesn't solve the problem :(
Easy fix would be to set the minimum mvn version to 2.1 (or 2.2?) - but I'm not
sure if we want to go this way.
> launchpad/base build fails with mvn 2.0.10, "Artifact does not contain any
> legal files"
> ---------------------------------------------------------------------------------------
>
> Key: SLING-1036
> URL: https://issues.apache.org/jira/browse/SLING-1036
> Project: Sling
> Issue Type: Bug
> Components: Launchpad
> Reporter: Bertrand Delacretaz
>
> With mvn 2.0.10 the launchpad/base build fails with
> "Artifact does not contain any legal files:
> org.apache.sling.launchpad.base-2.0.5-SNAPSHOT-sources.jar"
> which is correct as the jar file does not contain the LICENSE and NOTICE
> files in this case.
> Build works with mvn 2.1.0.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.