Configuring source plugin to skip execution

View: New views
3 Messages — Rating Filter:   Alert me  

Configuring source plugin to skip execution

by Stevo Slavic :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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.

Re: Configuring source plugin to skip execution

by Jesse Farinacci :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello Stevo,

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

On Fri, Nov 6, 2009 at 4:55 AM, Stevo Slavić <sslavic@...> 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: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: Configuring source plugin to skip execution

by Stevo Slavic :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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 <jieryn@...> wrote:

> Hello Stevo,
>
> I can see that you're feeling very lazy..
>
> On Fri, Nov 6, 2009 at 4:55 AM, Stevo Slavić <sslavic@...> 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: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>
>