Hi,

It seems Maven source plugin 2.1 changed the behavior for a case when
there are no files to package:

[INFO] [source:test-jar-no-fork {execution: package-sources}]
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Error creating source archive: You must set at least one file.

However, the v2.0.4 of this plugin was not aborting the build and the
empty jar file (containing just the Manifest file) was created.

I couldn't find the configuration parameter for the plugin to ignore the
failures. Am I missing anything?

P.S. As a workaround, I am using this configuration option, though I
don't really need the pom in the test sources:
<includePom>true</includePom>

Thanks,
Seva

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to