You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by 陈思淼 <ch...@gmail.com> on 2008/10/07 07:39:06 UTC

how to remove de default task in the life phase?

for example. when I run"mvn deploy" I want to deploy the artifactory to my
own reposition use my own deploy-plugin ,but the phase must run the default
maven-delploy-plugin, is there any method I can replace the default plugin
and use my own plugin ?

Re: how to remove de default task in the life phase?

Posted by 陈思淼 <ch...@gmail.com>.
I know what's your guys meaning, I decide to bind my own plugin to instal
phase, that's more sensible.
2008/10/7 Nick Stolwijk <ni...@gmail.com>

> And if you really want to skip the normal execution of
> maven-deploy-plugin, you can use the skip parameter. [1]
>
> [1]
> http://maven.apache.org/plugins/maven-deploy-plugin/deploy-mojo.html#skip
>
> Hth,
>
> Nick Stolwijk
> ~Java Developer~
>
> Iprofs BV.
> Claus Sluterweg 125
> 2012 WS Haarlem
> www.iprofs.nl
>
>
>
> 2008/10/7 Arnaud HERITIER <ah...@gmail.com>:
> > In maven 1 projects you can use maven 2 ant tasks
> > http://maven.apache.org/ant-tasks.html
> >
> > cheers
> >
> > Arnaud
> >
> > 2008/10/7 陈思淼 <ch...@gmail.com>
> >
> >> our company have a own build tool derived from maven 1.0, and have lots
> of
> >> our own features, after few year we decide to transfer our works to
> maven
> >> 2.0 and contribute some tools to the community.
> >> now the maven 2.0 and our own build tool are exist togother, we must
> >> transfer project by project to the new maven 2.0 repository.
> >>
> >> but for maven project .we must to commit our artifactory to the old
> >> repository format and then use a tool to tranform all the repository to
> the
> >> maven repository. here is our situation.
> >>
> >> 2008/10/7 Brett Porter <br...@gmail.com>
> >>
> >> > it is not presently possible to remove lifecycle phases, other than
> >> > creating your own lifecycle, or disabling a plugin through
> >> > configuration (like as is done with the surefire plugin).
> >> >
> >> > Perhaps it would be better to discuss what your need is for a
> >> > different deployment plugin?
> >> >
> >> > - Brett
> >> >
> >> > 2008/10/7 陈思淼 <ch...@gmail.com>:
> >> > > for example. when I run"mvn deploy" I want to deploy the artifactory
> to
> >> > my
> >> > > own reposition use my own deploy-plugin ,but the phase must run the
> >> > default
> >> > > maven-delploy-plugin, is there any method I can replace the default
> >> > plugin
> >> > > and use my own plugin ?
> >> > >
> >> >
> >> >
> >> >
> >> > --
> >> > Brett Porter
> >> > Blog: http://blogs.exist.com/bporter/
> >> >
> >>
> >
> >
> >
> > --
> > ..........................................................
> > Arnaud HERITIER
> > ..........................................................
> > OCTO Technology - aheritier AT octo DOT com
> > www.octo.com | blog.octo.com
> > ..........................................................
> > ASF - aheritier AT apache DOT org
> > www.apache.org | maven.apache.org
> > ...........................................................
> >
>

Re: how to remove de default task in the life phase?

Posted by Nick Stolwijk <ni...@gmail.com>.
And if you really want to skip the normal execution of
maven-deploy-plugin, you can use the skip parameter. [1]

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

Hth,

Nick Stolwijk
~Java Developer~

Iprofs BV.
Claus Sluterweg 125
2012 WS Haarlem
www.iprofs.nl



2008/10/7 Arnaud HERITIER <ah...@gmail.com>:
> In maven 1 projects you can use maven 2 ant tasks
> http://maven.apache.org/ant-tasks.html
>
> cheers
>
> Arnaud
>
> 2008/10/7 陈思淼 <ch...@gmail.com>
>
>> our company have a own build tool derived from maven 1.0, and have lots of
>> our own features, after few year we decide to transfer our works to maven
>> 2.0 and contribute some tools to the community.
>> now the maven 2.0 and our own build tool are exist togother, we must
>> transfer project by project to the new maven 2.0 repository.
>>
>> but for maven project .we must to commit our artifactory to the old
>> repository format and then use a tool to tranform all the repository to the
>> maven repository. here is our situation.
>>
>> 2008/10/7 Brett Porter <br...@gmail.com>
>>
>> > it is not presently possible to remove lifecycle phases, other than
>> > creating your own lifecycle, or disabling a plugin through
>> > configuration (like as is done with the surefire plugin).
>> >
>> > Perhaps it would be better to discuss what your need is for a
>> > different deployment plugin?
>> >
>> > - Brett
>> >
>> > 2008/10/7 陈思淼 <ch...@gmail.com>:
>> > > for example. when I run"mvn deploy" I want to deploy the artifactory to
>> > my
>> > > own reposition use my own deploy-plugin ,but the phase must run the
>> > default
>> > > maven-delploy-plugin, is there any method I can replace the default
>> > plugin
>> > > and use my own plugin ?
>> > >
>> >
>> >
>> >
>> > --
>> > Brett Porter
>> > Blog: http://blogs.exist.com/bporter/
>> >
>>
>
>
>
> --
> ..........................................................
> Arnaud HERITIER
> ..........................................................
> OCTO Technology - aheritier AT octo DOT com
> www.octo.com | blog.octo.com
> ..........................................................
> ASF - aheritier AT apache DOT org
> www.apache.org | maven.apache.org
> ...........................................................
>

Re: how to remove de default task in the life phase?

Posted by Arnaud HERITIER <ah...@gmail.com>.
In maven 1 projects you can use maven 2 ant tasks
http://maven.apache.org/ant-tasks.html

cheers

Arnaud

2008/10/7 陈思淼 <ch...@gmail.com>

> our company have a own build tool derived from maven 1.0, and have lots of
> our own features, after few year we decide to transfer our works to maven
> 2.0 and contribute some tools to the community.
> now the maven 2.0 and our own build tool are exist togother, we must
> transfer project by project to the new maven 2.0 repository.
>
> but for maven project .we must to commit our artifactory to the old
> repository format and then use a tool to tranform all the repository to the
> maven repository. here is our situation.
>
> 2008/10/7 Brett Porter <br...@gmail.com>
>
> > it is not presently possible to remove lifecycle phases, other than
> > creating your own lifecycle, or disabling a plugin through
> > configuration (like as is done with the surefire plugin).
> >
> > Perhaps it would be better to discuss what your need is for a
> > different deployment plugin?
> >
> > - Brett
> >
> > 2008/10/7 陈思淼 <ch...@gmail.com>:
> > > for example. when I run"mvn deploy" I want to deploy the artifactory to
> > my
> > > own reposition use my own deploy-plugin ,but the phase must run the
> > default
> > > maven-delploy-plugin, is there any method I can replace the default
> > plugin
> > > and use my own plugin ?
> > >
> >
> >
> >
> > --
> > Brett Porter
> > Blog: http://blogs.exist.com/bporter/
> >
>



-- 
..........................................................
Arnaud HERITIER
..........................................................
OCTO Technology - aheritier AT octo DOT com
www.octo.com | blog.octo.com
..........................................................
ASF - aheritier AT apache DOT org
www.apache.org | maven.apache.org
...........................................................

Re: how to remove de default task in the life phase?

Posted by 陈思淼 <ch...@gmail.com>.
our company have a own build tool derived from maven 1.0, and have lots of
our own features, after few year we decide to transfer our works to maven
2.0 and contribute some tools to the community.
now the maven 2.0 and our own build tool are exist togother, we must
transfer project by project to the new maven 2.0 repository.

but for maven project .we must to commit our artifactory to the old
repository format and then use a tool to tranform all the repository to the
maven repository. here is our situation.

2008/10/7 Brett Porter <br...@gmail.com>

> it is not presently possible to remove lifecycle phases, other than
> creating your own lifecycle, or disabling a plugin through
> configuration (like as is done with the surefire plugin).
>
> Perhaps it would be better to discuss what your need is for a
> different deployment plugin?
>
> - Brett
>
> 2008/10/7 陈思淼 <ch...@gmail.com>:
> > for example. when I run"mvn deploy" I want to deploy the artifactory to
> my
> > own reposition use my own deploy-plugin ,but the phase must run the
> default
> > maven-delploy-plugin, is there any method I can replace the default
> plugin
> > and use my own plugin ?
> >
>
>
>
> --
> Brett Porter
> Blog: http://blogs.exist.com/bporter/
>

Re: how to remove de default task in the life phase?

Posted by Brett Porter <br...@gmail.com>.
it is not presently possible to remove lifecycle phases, other than
creating your own lifecycle, or disabling a plugin through
configuration (like as is done with the surefire plugin).

Perhaps it would be better to discuss what your need is for a
different deployment plugin?

- Brett

2008/10/7 陈思淼 <ch...@gmail.com>:
> for example. when I run"mvn deploy" I want to deploy the artifactory to my
> own reposition use my own deploy-plugin ,but the phase must run the default
> maven-delploy-plugin, is there any method I can replace the default plugin
> and use my own plugin ?
>



-- 
Brett Porter
Blog: http://blogs.exist.com/bporter/