I didn't try it yet, but I'll try it now.

I think this will not solve the problem. If you write mvn deploy, you will probably have the compile, test etc. phases executed. What I need is, to not run any of these phases, but immediately print out "this is not supported" and end the execution. The only way to do is, as far as I know, is to create my own lifecycle.

Csaba


On 1.12.2010 12:31, Simone Tripodi wrote:
take a look at the maven deploy plugin configuration[1] and set
<skip>true</skip>
hope this helps
Simo

[1] http://maven.apache.org/plugins/maven-deploy-plugin/deploy-mojo.html

http://people.apache.org/~simonetripodi/
http://www.99soft.org/



On Wed, Dec 1, 2010 at 12:18 PM, Gajo Csaba<csaba.g...@cosylab.com>  wrote:
I want to delete the deploy goal. Make it exist as much as "mvn apple" does

On 1.12.2010 12:14, Antonio Petrelli wrote:
It's best to tell us what you want to accomplish.
Fighting Maven is always a bad thing.

Antonio

2010/12/1 Gajo Csaba<csaba.g...@cosylab.com>:
Hello,

I'm trying to create a custom lifecycle. In this case, I don't mean
providing custom classes for one of the defined phases, but redefining
the
phases themselves. For example, the DefaultLifecycleMapping seems to
support
clean, compile, test etc...

How can I, for example, make it so that the phases are deploy, clean,
compile, install, test? Which component should I override to be able to
do
this?

I see that there are 3 cases where this is done: clean, site and default.

I've created by own class which implements LifecycleMapping. I wrote a
components.xml and lifecycle.xml for it. When I observe the
getPhases(String
lifecycle) method, I see that the value of "lifecycle" is always
"default".
I'm guessing that I need to define something so that this wouldn't be
"default", but my own lifecycle, for example "apple". How to do this?

Thanks, Csaba



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


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


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


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



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

Reply via email to