You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by John Fallows <jo...@gmail.com> on 2005/09/24 07:41:50 UTC

[m2] sources plugin

How does the sources plugin realize that it is part of a snapshot
build, and therefore not generate a sources JAR?

I didn't notice anything obvious in the source code for the Mojo at

http://svn.apache.org/viewcvs.cgi/maven/components/trunk/maven-plugins/maven-source-plugin/src/main/java/org/apache/maven/plugin/source/JarSourceMojo.java?rev=279318&view=markup

Kind Regards,
John Fallows.

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


Re: [m2] sources plugin

Posted by Brett Porter <br...@gmail.com>.
It only does so when the release profile (see the root POM) is activated.

- Brett

On 9/24/05, John Fallows <jo...@gmail.com> wrote:
> How does the sources plugin realize that it is part of a snapshot
> build, and therefore not generate a sources JAR?
>
> I didn't notice anything obvious in the source code for the Mojo at
>
> http://svn.apache.org/viewcvs.cgi/maven/components/trunk/maven-plugins/maven-source-plugin/src/main/java/org/apache/maven/plugin/source/JarSourceMojo.java?rev=279318&view=markup
>
> Kind Regards,
> John Fallows.
>
> ---------------------------------------------------------------------
> 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