You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Stephen Connolly <st...@gmail.com> on 2010/04/12 12:53:35 UTC

Re: Is it possible to execute just the deploy phase without executing all the other phases that precede deploy in the default build lifecycle?

Use nexus and staged deployment then you can do it in one go.

The artifacts produced in one maven execution are no longer in the reactor
when you run a second time.

Staged deployment is what you want, then you just do mvn deploy... run your
tests of the artifacts and either drop the staged deployment or promote
it...

If you cannot get the purchase of pro-Nexus, then you can do poor man's
staging with wagon-maven-plugin... or you can wait until staging is required
by me and I scratch my own itch and write an OSS plugin to provide staging
in Nexus Open Source ;-)

-Stephen

P.S. I do NOT work for Sonatype, but I like and use Nexus.

On 12 April 2010 10:52, Henika Tekwani <ht...@adobe.com> wrote:

>
> Hi All,
>
> Basically what I am trying to achieve is to break the default build
> lifecycle into two parts:
>
> 1.      mvn install.
> 2.      mvn deploy:deploy.
>
> The first step runs fine. But when I run "mvn deploy:deploy" it gives the
> following error:
>
> [INFO] [deploy:deploy {execution: default-cli}]
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] The packaging for this project did not assign a file to the build
> artifact
>
> What am I doing wrong?
>
> Please note that when I run "mvn deploy" on my project it successfully
> deploys my project's jar file.
>
> --
> View this message in context:
> http://old.nabble.com/Is-it-possible-to-execute-just-the-deploy-phase-without-executing-all-the-other-phases-that-precede-deploy-in-the-default-build-lifecycle--tp28215706p28215706.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: Is it possible to execute just the deploy phase without executing all the other phases that precede deploy in the default build lifecycle?

Posted by Garin Yan <ya...@gmail.com>.
Hi Henika,

That is exactly right. By default, the build process will halt if there are
fails or errors in tests.

On Mon, Apr 12, 2010 at 8:14 PM, Henika Tekwani <ht...@adobe.com> wrote:

>
> Do you mean that by default the build process halts if tests fail?
>
>
> justinedelson wrote:
> >
> > You're describing Maven's default behavior. Perhaps you have
> > configured surefire or Maven to react differently to a test failure.
> >
> > Justin
> >
> > On Apr 12, 2010, at 7:58 AM, Henika Tekwani <ht...@adobe.com> wrote:
> >
> >>
> >> Thanks for such a prompt response.
> >>
> >> I don't have much idea about how the staging feature of nexus works.
> >> I will
> >> have to understand first.
> >>
> >> But I wanted to know that is there a way that we can configure our
> >> deploy
> >> plugin such that it deploys only when the tests that were run in
> >> test phase
> >> pass with 100%?
> >> I mean that based on the outcome of the tests can we control the
> >> execution
> >> of the other build phases?
> >>
> >> So my case is that
> >>
> >> Stephen Connolly-2 wrote:
> >>>
> >>> Use nexus and staged deployment then you can do it in one go.
> >>>
> >>> The artifacts produced in one maven execution are no longer in the
> >>> reactor
> >>> when you run a second time.
> >>>
> >>> Staged deployment is what you want, then you just do mvn deploy...
> >>> run
> >>> your
> >>> tests of the artifacts and either drop the staged deployment or
> >>> promote
> >>> it...
> >>>
> >>> If you cannot get the purchase of pro-Nexus, then you can do poor
> >>> man's
> >>> staging with wagon-maven-plugin... or you can wait until staging is
> >>> required
> >>> by me and I scratch my own itch and write an OSS plugin to provide
> >>> staging
> >>> in Nexus Open Source ;-)
> >>>
> >>> -Stephen
> >>>
> >>> P.S. I do NOT work for Sonatype, but I like and use Nexus.
> >>>
> >>> On 12 April 2010 10:52, Henika Tekwani <ht...@adobe.com> wrote:
> >>>
> >>>>
> >>>> Hi All,
> >>>>
> >>>> Basically what I am trying to achieve is to break the default build
> >>>> lifecycle into two parts:
> >>>>
> >>>> 1.      mvn install.
> >>>> 2.      mvn deploy:deploy.
> >>>>
> >>>> The first step runs fine. But when I run "mvn deploy:deploy" it
> >>>> gives the
> >>>> following error:
> >>>>
> >>>> [INFO] [deploy:deploy {execution: default-cli}]
> >>>> [INFO]
> >>>> ---
> >>>> ---
> >>>> ------------------------------------------------------------------
> >>>> [ERROR] BUILD ERROR
> >>>> [INFO]
> >>>> ---
> >>>> ---
> >>>> ------------------------------------------------------------------
> >>>> [INFO] The packaging for this project did not assign a file to the
> >>>> build
> >>>> artifact
> >>>>
> >>>> What am I doing wrong?
> >>>>
> >>>> Please note that when I run "mvn deploy" on my project it
> >>>> successfully
> >>>> deploys my project's jar file.
> >>>>
> >>>> --
> >>>> View this message in context:
> >>>>
> http://old.nabble.com/Is-it-possible-to-execute-just-the-deploy-phase-without-executing-all-the-other-phases-that-precede-deploy-in-the-default-build-lifecycle--tp28215706p28215706.html
> >>>> Sent from the Maven - Users mailing list archive at Nabble.com.
> >>>>
> >>>>
> >>>> ---
> >>>> ------------------------------------------------------------------
> >>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >>>> For additional commands, e-mail: users-help@maven.apache.org
> >>>>
> >>>>
> >>>
> >>>
> >>
> >> --
> >> View this message in context:
> >>
> http://old.nabble.com/Is-it-possible-to-execute-just-the-deploy-phase-without-executing-all-the-other-phases-that-precede-deploy-in-the-default-build-lifecycle--tp28215706p28216800.html
> >> Sent from the Maven - Users mailing list archive at Nabble.com.
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >> For additional commands, e-mail: users-help@maven.apache.org
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
> >
>
> --
> View this message in context:
> http://old.nabble.com/Is-it-possible-to-execute-just-the-deploy-phase-without-executing-all-the-other-phases-that-precede-deploy-in-the-default-build-lifecycle--tp28215706p28216953.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


-- 
Garin Yan
________________________________________
Software Engineer, International Service
Founder International Co.,Ltd.
Address: Suzhou International Science Park (Phase V)
         328 Xinghu Rd., Suzhou, Jiangsu, P.R.China, 215123
Tel:+86 512 86665500-7063  Fax:+86 512 87183808  Cell:151 0621 9276
yanguoyu@gmail.com  ||  www.founderinternational.com
________________________________________
Enjoying 20 years of success satisfying global leaders with every IT need --
Founder’s 30,000 employees are committed to helping you succeed.

Re: Is it possible to execute just the deploy phase without executing all the other phases that precede deploy in the default build lifecycle?

Posted by Henika Tekwani <ht...@adobe.com>.
Do you mean that by default the build process halts if tests fail?


justinedelson wrote:
> 
> You're describing Maven's default behavior. Perhaps you have
> configured surefire or Maven to react differently to a test failure.
> 
> Justin
> 
> On Apr 12, 2010, at 7:58 AM, Henika Tekwani <ht...@adobe.com> wrote:
> 
>>
>> Thanks for such a prompt response.
>>
>> I don't have much idea about how the staging feature of nexus works.
>> I will
>> have to understand first.
>>
>> But I wanted to know that is there a way that we can configure our
>> deploy
>> plugin such that it deploys only when the tests that were run in
>> test phase
>> pass with 100%?
>> I mean that based on the outcome of the tests can we control the
>> execution
>> of the other build phases?
>>
>> So my case is that
>>
>> Stephen Connolly-2 wrote:
>>>
>>> Use nexus and staged deployment then you can do it in one go.
>>>
>>> The artifacts produced in one maven execution are no longer in the
>>> reactor
>>> when you run a second time.
>>>
>>> Staged deployment is what you want, then you just do mvn deploy...
>>> run
>>> your
>>> tests of the artifacts and either drop the staged deployment or
>>> promote
>>> it...
>>>
>>> If you cannot get the purchase of pro-Nexus, then you can do poor
>>> man's
>>> staging with wagon-maven-plugin... or you can wait until staging is
>>> required
>>> by me and I scratch my own itch and write an OSS plugin to provide
>>> staging
>>> in Nexus Open Source ;-)
>>>
>>> -Stephen
>>>
>>> P.S. I do NOT work for Sonatype, but I like and use Nexus.
>>>
>>> On 12 April 2010 10:52, Henika Tekwani <ht...@adobe.com> wrote:
>>>
>>>>
>>>> Hi All,
>>>>
>>>> Basically what I am trying to achieve is to break the default build
>>>> lifecycle into two parts:
>>>>
>>>> 1.      mvn install.
>>>> 2.      mvn deploy:deploy.
>>>>
>>>> The first step runs fine. But when I run "mvn deploy:deploy" it
>>>> gives the
>>>> following error:
>>>>
>>>> [INFO] [deploy:deploy {execution: default-cli}]
>>>> [INFO]
>>>> ---
>>>> ---
>>>> ------------------------------------------------------------------
>>>> [ERROR] BUILD ERROR
>>>> [INFO]
>>>> ---
>>>> ---
>>>> ------------------------------------------------------------------
>>>> [INFO] The packaging for this project did not assign a file to the
>>>> build
>>>> artifact
>>>>
>>>> What am I doing wrong?
>>>>
>>>> Please note that when I run "mvn deploy" on my project it
>>>> successfully
>>>> deploys my project's jar file.
>>>>
>>>> --
>>>> View this message in context:
>>>> http://old.nabble.com/Is-it-possible-to-execute-just-the-deploy-phase-without-executing-all-the-other-phases-that-precede-deploy-in-the-default-build-lifecycle--tp28215706p28215706.html
>>>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>>>
>>>>
>>>> ---
>>>> ------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>>> For additional commands, e-mail: users-help@maven.apache.org
>>>>
>>>>
>>>
>>>
>>
>> --
>> View this message in context:
>> http://old.nabble.com/Is-it-possible-to-execute-just-the-deploy-phase-without-executing-all-the-other-phases-that-precede-deploy-in-the-default-build-lifecycle--tp28215706p28216800.html
>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 
> 

-- 
View this message in context: http://old.nabble.com/Is-it-possible-to-execute-just-the-deploy-phase-without-executing-all-the-other-phases-that-precede-deploy-in-the-default-build-lifecycle--tp28215706p28216953.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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


Re: Is it possible to execute just the deploy phase without executing all the other phases that precede deploy in the default build lifecycle?

Posted by Justin Edelson <ju...@gmail.com>.
You're describing Maven's default behavior. Perhaps you have
configured surefire or Maven to react differently to a test failure.

Justin

On Apr 12, 2010, at 7:58 AM, Henika Tekwani <ht...@adobe.com> wrote:

>
> Thanks for such a prompt response.
>
> I don't have much idea about how the staging feature of nexus works.
> I will
> have to understand first.
>
> But I wanted to know that is there a way that we can configure our
> deploy
> plugin such that it deploys only when the tests that were run in
> test phase
> pass with 100%?
> I mean that based on the outcome of the tests can we control the
> execution
> of the other build phases?
>
> So my case is that
>
> Stephen Connolly-2 wrote:
>>
>> Use nexus and staged deployment then you can do it in one go.
>>
>> The artifacts produced in one maven execution are no longer in the
>> reactor
>> when you run a second time.
>>
>> Staged deployment is what you want, then you just do mvn deploy...
>> run
>> your
>> tests of the artifacts and either drop the staged deployment or
>> promote
>> it...
>>
>> If you cannot get the purchase of pro-Nexus, then you can do poor
>> man's
>> staging with wagon-maven-plugin... or you can wait until staging is
>> required
>> by me and I scratch my own itch and write an OSS plugin to provide
>> staging
>> in Nexus Open Source ;-)
>>
>> -Stephen
>>
>> P.S. I do NOT work for Sonatype, but I like and use Nexus.
>>
>> On 12 April 2010 10:52, Henika Tekwani <ht...@adobe.com> wrote:
>>
>>>
>>> Hi All,
>>>
>>> Basically what I am trying to achieve is to break the default build
>>> lifecycle into two parts:
>>>
>>> 1.      mvn install.
>>> 2.      mvn deploy:deploy.
>>>
>>> The first step runs fine. But when I run "mvn deploy:deploy" it
>>> gives the
>>> following error:
>>>
>>> [INFO] [deploy:deploy {execution: default-cli}]
>>> [INFO]
>>> ---
>>> ---
>>> ------------------------------------------------------------------
>>> [ERROR] BUILD ERROR
>>> [INFO]
>>> ---
>>> ---
>>> ------------------------------------------------------------------
>>> [INFO] The packaging for this project did not assign a file to the
>>> build
>>> artifact
>>>
>>> What am I doing wrong?
>>>
>>> Please note that when I run "mvn deploy" on my project it
>>> successfully
>>> deploys my project's jar file.
>>>
>>> --
>>> View this message in context:
>>> http://old.nabble.com/Is-it-possible-to-execute-just-the-deploy-phase-without-executing-all-the-other-phases-that-precede-deploy-in-the-default-build-lifecycle--tp28215706p28215706.html
>>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>>
>>>
>>> ---
>>> ------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>> For additional commands, e-mail: users-help@maven.apache.org
>>>
>>>
>>
>>
>
> --
> View this message in context: http://old.nabble.com/Is-it-possible-to-execute-just-the-deploy-phase-without-executing-all-the-other-phases-that-precede-deploy-in-the-default-build-lifecycle--tp28215706p28216800.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>

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


Re: Is it possible to execute just the deploy phase without executing all the other phases that precede deploy in the default build lifecycle?

Posted by Henika Tekwani <ht...@adobe.com>.
Thanks for such a prompt response.

I don't have much idea about how the staging feature of nexus works. I will
have to understand first. 

But I wanted to know that is there a way that we can configure our deploy
plugin such that it deploys only when the tests that were run in test phase
pass with 100%?
I mean that based on the outcome of the tests can we control the execution
of the other build phases?

So my case is that 

Stephen Connolly-2 wrote:
> 
> Use nexus and staged deployment then you can do it in one go.
> 
> The artifacts produced in one maven execution are no longer in the reactor
> when you run a second time.
> 
> Staged deployment is what you want, then you just do mvn deploy... run
> your
> tests of the artifacts and either drop the staged deployment or promote
> it...
> 
> If you cannot get the purchase of pro-Nexus, then you can do poor man's
> staging with wagon-maven-plugin... or you can wait until staging is
> required
> by me and I scratch my own itch and write an OSS plugin to provide staging
> in Nexus Open Source ;-)
> 
> -Stephen
> 
> P.S. I do NOT work for Sonatype, but I like and use Nexus.
> 
> On 12 April 2010 10:52, Henika Tekwani <ht...@adobe.com> wrote:
> 
>>
>> Hi All,
>>
>> Basically what I am trying to achieve is to break the default build
>> lifecycle into two parts:
>>
>> 1.      mvn install.
>> 2.      mvn deploy:deploy.
>>
>> The first step runs fine. But when I run "mvn deploy:deploy" it gives the
>> following error:
>>
>> [INFO] [deploy:deploy {execution: default-cli}]
>> [INFO]
>> ------------------------------------------------------------------------
>> [ERROR] BUILD ERROR
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] The packaging for this project did not assign a file to the build
>> artifact
>>
>> What am I doing wrong?
>>
>> Please note that when I run "mvn deploy" on my project it successfully
>> deploys my project's jar file.
>>
>> --
>> View this message in context:
>> http://old.nabble.com/Is-it-possible-to-execute-just-the-deploy-phase-without-executing-all-the-other-phases-that-precede-deploy-in-the-default-build-lifecycle--tp28215706p28215706.html
>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
> 
> 

-- 
View this message in context: http://old.nabble.com/Is-it-possible-to-execute-just-the-deploy-phase-without-executing-all-the-other-phases-that-precede-deploy-in-the-default-build-lifecycle--tp28215706p28216800.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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