You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Seva Popov <se...@tvworks.com> on 2009/04/29 22:06:13 UTC

Maven source plugin 2.1

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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Maven source plugin 2.1

Posted by Nick Stolwijk <ni...@gmail.com>.
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 <se...@tvworks.com> 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: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org