Configuring source plugin to skip execution

3 messages Options
Embed this post
Permalink
Stevo Slavić

Configuring source plugin to skip execution

Reply Threaded More More options
Print post
Permalink
Hello Maven users,

Is there a way to configure source plugin to skip execution for a single
module, or at least not to fail build because module doesn't contain any
sources?

In my project source plugin is being run by release plugin's perform goal
(with default useReleaseProfile=test parameter value), and it fails a build
because a war module has no sources. That war module just depends on a jar
module and is used to start spring application context from that jar in web
application container.

Temporary workaround was to set useReleaseProfile to false but this skips
releasing source and javadoc for all modules. Not sure if configuring
release plugin not to useReleaseProfile for that war module only would do
the trick.

Regards,
Stevo.
Jesse Farinacci

Re: Configuring source plugin to skip execution

Reply Threaded More More options
Print post
Permalink
Hello Stevo,

I can see that you're feeling very lazy..

On Fri, Nov 6, 2009 at 4:55 AM, Stevo Slavić <[hidden email]> wrote:
>
> Is there a way to configure source plugin to skip execution for a single
> module, or at least not to fail build because module doesn't contain any
> sources?

The most casual of examinations of the documentation would have
revealed this, but to answer: no. This sounds like a great and easy
feature request!

> In my project source plugin is being run by release plugin's perform goal
> (with default useReleaseProfile=test parameter value), and it fails a build
> because a war module has no sources.

http://jira.codehaus.org/browse/MSOURCES-44

-Jesse

--
There are 10 types of people in this world, those
that can read binary and those that can not.

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

Stevo Slavić

Re: Configuring source plugin to skip execution

Reply Threaded More More options
Print post
Permalink
Thanks Jesse,

I examined documentation before posting here, but decided to post because
documentation doesn't always document all goals and all of their
configuration parameters. When your reply arrived I was analyzing plugin
sources to look for any hidden parameters. JIRA was next to check. Upgraded
from 2.1 to 2.1.1, it works now. Not sure how I missed announcement of
recent source plugin release. Thanks once more!

Regards,
Stevo.

On Fri, Nov 6, 2009 at 2:14 PM, Jesse Farinacci <[hidden email]> wrote:

> Hello Stevo,
>
> I can see that you're feeling very lazy..
>
> On Fri, Nov 6, 2009 at 4:55 AM, Stevo Slavić <[hidden email]> wrote:
> >
> > Is there a way to configure source plugin to skip execution for a single
> > module, or at least not to fail build because module doesn't contain any
> > sources?
>
> The most casual of examinations of the documentation would have
> revealed this, but to answer: no. This sounds like a great and easy
> feature request!
>
> > In my project source plugin is being run by release plugin's perform goal
> > (with default useReleaseProfile=test parameter value), and it fails a
> build
> > because a war module has no sources.
>
> http://jira.codehaus.org/browse/MSOURCES-44
>
> -Jesse
>
> --
> There are 10 types of people in this world, those
> that can read binary and those that can not.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>