You have just hit MSOURCES-44. http://jira.codehaus.org/browse/MSOURCES-44
Hth, Nick Stolwijk ~Java Developer~ Iprofs BV. Claus Sluterweg 125 2012 WS Haarlem www.iprofs.nl On Wed, Apr 29, 2009 at 10:06 PM, Seva Popov <[email protected]> wrote: > 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] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
