You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Graham Leggett <mi...@sharp.fm> on 2007/03/13 18:39:12 UTC

maven ignores resources phase

Hi all,

I have a pom file, that using ant generates a C++ library, which is then
packaged as a jar.

The ant build is attached to the generate-resources phase, and when you
run "mvn resources:resources" the library is correctly copied to
target/classes.

However: when you run "mvn install", the resources, although generated,
are ignored by the resources plugin, or the resources phase is just not
being run. The result is an empty jar file.

Are there circumstances where phases are skipped?

Regards,
Graham
--



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


Re: maven ignores resources phase

Posted by Graham Leggett <mi...@sharp.fm>.
On Tue, March 13, 2007 7:44 pm, Brett Porter wrote:

> Sounds like a great question to ask users@maven.apache.org! :)
>
> (and with over 3 times as many subscribers, your odds of an answer
> are much, much better)

I have posted a number of questions to the users lists recently, none of
which have received any replies.

Those, like this query, were very technical in nature, and it seems the
dev list is more qualified to answer them.

I am trying to unravel a number of bugs in maven when used in conjunction
with classifiers, and don't know enough of the internals to be able to
distinguish between "it works that way by design" or "it's broken".

Regards,
Graham
--



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


Re: maven ignores resources phase

Posted by Brett Porter <br...@apache.org>.
Sounds like a great question to ask users@maven.apache.org! :)

(and with over 3 times as many subscribers, your odds of an answer  
are much, much better)

On 13/03/2007, at 10:39 AM, Graham Leggett wrote:

> Hi all,
>
> I have a pom file, that using ant generates a C++ library, which is  
> then
> packaged as a jar.
>
> The ant build is attached to the generate-resources phase, and when  
> you
> run "mvn resources:resources" the library is correctly copied to
> target/classes.
>
> However: when you run "mvn install", the resources, although  
> generated,
> are ignored by the resources plugin, or the resources phase is just  
> not
> being run. The result is an empty jar file.
>
> Are there circumstances where phases are skipped?
>
> Regards,
> Graham
> --
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org

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