You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by ganji <he...@gmail.com> on 2007/12/13 17:09:02 UTC

Steps involved in migrating to maven 1.1 from maven 1.0.2

Hi all,

We have a requirement to migrate from maven 1.0.2 to maven 1.1 in our
application. Can anyone share the knowledge on "Steps involved in do so" for
the smoother and easier migration.?

I appreciate your suggestions.

tx,
ganji
-- 
View this message in context: http://www.nabble.com/Steps-involved-in-migrating-to-maven-1.1-from-maven-1.0.2-tp14319004s177p14319004.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: Refresh local repository SNAPSHOTS every morning

Posted by Bl...@ubs.com.
It's our own SNAPSHOTS.  We're using Artifactory for both our internal artifacts and as a proxy to external repos.

I disabled our nightly builds so SNAPSHOTS aren't pulled down unnecessarily - crisis averted.

> One thing to keep in mind when it comes to the transition from ant to maven is maven works really really well when your codebase is highly modularized and not so well when you try to make maven work just like ant. 

My main driver for moving to Maven was to facilitate the eventual modularization of our bigger EAR project.

Thanks all,
-Blue

-----Original Message-----
From: Mark Struberg [mailto:struberg@yahoo.de] 
Sent: Friday, December 14, 2007 5:05 AM
To: Maven Users List
Subject: RE: Refresh local repository SNAPSHOTS every morning

Thomas, do you know what exactly causes the time delays? Your own snapshots or the snapshots you take from external repositories?

for the 2nd case there is another option for you:

What if you use a maven-proxy for your company?

This way only the first guy in the morning (or much better the cruisecontrol or continuum server) triggers the maven-proxy to look for new modules. 
All other colleagues will get the artifacts from the maven-proxy with almost no delay!


LieGrü,
strub


--- Blue.Thomas@ubs.com schrieb:

> It's not a problem as much as a curiosity.  We just moved from Ant to 
> Maven, and I want to reduce any increase of build times to ease the 
> transition for the team - most of which have yet to migrate from the 
> Ant branches of the projects to the new Maven-ized main line.  
> Building our main ear pulls down every SNAPSHOT war dependency, which 
> takes >10 mins to package on the day's first run.  I have our CIS 
> server doing builds on SCM changes + nightly, but I suppose I could 
> remove nightly condition to eliminate this side effect.
> 
> Regards,
> -Blue
> 
> -----Original Message-----
> From: Wayne Fay [mailto:waynefay@gmail.com]
> Sent: Thursday, December 13, 2007 11:42 AM
> To: Maven Users List
> Subject: Re: Refresh local repository SNAPSHOTS every morning
> 
> You could probably use "mvn dependency:go-offline"... but as you said, 
> it will act on all dependencies, not just SNAPSHOTs. (Why is this a 
> problem for you?)
> 
> Wayne
> 
> On 12/13/07, Blue.Thomas@ubs.com <Bl...@ubs.com> wrote:
> > Hi all,
> >
> > Is there a way to refresh the SNAPSHOTS in your local repository?  
> > We have nightly builds for all of our projects, and every morning 
> > there are new SNAPSHOTS in our internal repository to pull down, 
> > whether they contain changes or not. I'd like to be able to update 
> > all of my local SNAPSHOTS every morning, instead of when I build a 
> > project for the first time of the day.
> >
> > Alternatively, if there's a mojo I can run while inside each project 
> > that will pull down their SNAPSHOT dependencies _without_ compiling, 
> > packaging, etc, I could run that as well, but I'm at a loss on what 
> > to
> 
> > use.  I thought I could attach dependency:purge-local-repository to 
> > phase 'validate' on a non-default profile, but that will act on all 
> > dependencies, not just SNAPSHOTS.
> >
> > Thanks,
> > -Blue
> >
> > Visit our website at http://www.ubs.com
> >
> > This message contains confidential information and is intended only 
> > for the individual named.  If you are not the named addressee you 
> > should not disseminate, distribute or copy this e-mail.  Please 
> > notify
> 
> > the sender immediately by e-mail if you have received this e-mail by 
> > mistake and delete this e-mail from your system.
> >
> > E-mail transmission cannot be guaranteed to be secure or error-free 
> > as
> 
> > information could be intercepted, corrupted, lost, destroyed, arrive 
> > late or incomplete, or contain viruses.  The sender therefore does 
> > not
> 
> > accept liability for any errors or omissions in the contents of this 
> > message which arise as a result of e-mail transmission.  If 
> > verification is required please request a hard-copy version.  This 
> > message is provided for informational purposes and should not be 
> > construed as a solicitation or offer to buy or sell any securities 
> > or related financial instruments.
> >


      Machen Sie Yahoo! zu Ihrer Startseite. Los geht's: 
http://de.yahoo.com/set

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


Visit our website at http://www.ubs.com

This message contains confidential information and is intended only 
for the individual named.  If you are not the named addressee you 
should not disseminate, distribute or copy this e-mail.  Please 
notify the sender immediately by e-mail if you have received this 
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free 
as information could be intercepted, corrupted, lost, destroyed, 
arrive late or incomplete, or contain viruses.  The sender therefore 
does not accept liability for any errors or omissions in the contents 
of this message which arise as a result of e-mail transmission.  If 
verification is required please request a hard-copy version.  This 
message is provided for informational purposes and should not be 
construed as a solicitation or offer to buy or sell any securities or 
related financial instruments.


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


RE: Refresh local repository SNAPSHOTS every morning

Posted by EJ Ciramella <ej...@upromise.com>.
One thing to keep in mind when it comes to the transition from ant to
maven is maven works really really well when your codebase is highly
modularized and not so well when you try to make maven work just like
ant. 

-----Original Message-----
From: Tomislav Stojcevich [mailto:stojcevicht@gmail.com] 
Sent: Thursday, December 13, 2007 12:36 PM
To: Maven Users List
Subject: Re: Refresh local repository SNAPSHOTS every morning

mvn dependency:resolve should do the trick, add -U to force the update
if you want to use it again after maven did it's daily check

---------------------------------------------------------------------
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: Refresh local repository SNAPSHOTS every morning

Posted by Tomislav Stojcevich <st...@gmail.com>.
mvn dependency:resolve should do the trick, add -U to force the update
if you want to use it again after maven did it's daily check

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


RE: Refresh local repository SNAPSHOTS every morning

Posted by Mark Struberg <st...@yahoo.de>.
Thomas, do you know what exactly causes the time delays? Your own snapshots or the snapshots you
take from external repositories?

for the 2nd case there is another option for you:

What if you use a maven-proxy for your company?

This way only the first guy in the morning (or much better the cruisecontrol or continuum server)
triggers the maven-proxy to look for new modules. 
All other colleagues will get the artifacts from the maven-proxy with almost no delay!


LieGrü,
strub


--- Blue.Thomas@ubs.com schrieb:

> It's not a problem as much as a curiosity.  We just moved from Ant to
> Maven, and I want to reduce any increase of build times to ease the
> transition for the team - most of which have yet to migrate from the Ant
> branches of the projects to the new Maven-ized main line.  Building our
> main ear pulls down every SNAPSHOT war dependency, which takes >10 mins
> to package on the day's first run.  I have our CIS server doing builds
> on SCM changes + nightly, but I suppose I could remove nightly condition
> to eliminate this side effect.
> 
> Regards,
> -Blue
> 
> -----Original Message-----
> From: Wayne Fay [mailto:waynefay@gmail.com] 
> Sent: Thursday, December 13, 2007 11:42 AM
> To: Maven Users List
> Subject: Re: Refresh local repository SNAPSHOTS every morning
> 
> You could probably use "mvn dependency:go-offline"... but as you said,
> it will act on all dependencies, not just SNAPSHOTs. (Why is this a
> problem for you?)
> 
> Wayne
> 
> On 12/13/07, Blue.Thomas@ubs.com <Bl...@ubs.com> wrote:
> > Hi all,
> >
> > Is there a way to refresh the SNAPSHOTS in your local repository?  We 
> > have nightly builds for all of our projects, and every morning there 
> > are new SNAPSHOTS in our internal repository to pull down, whether 
> > they contain changes or not. I'd like to be able to update all of my 
> > local SNAPSHOTS every morning, instead of when I build a project for 
> > the first time of the day.
> >
> > Alternatively, if there's a mojo I can run while inside each project 
> > that will pull down their SNAPSHOT dependencies _without_ compiling, 
> > packaging, etc, I could run that as well, but I'm at a loss on what to
> 
> > use.  I thought I could attach dependency:purge-local-repository to 
> > phase 'validate' on a non-default profile, but that will act on all 
> > dependencies, not just SNAPSHOTS.
> >
> > Thanks,
> > -Blue
> >
> > Visit our website at http://www.ubs.com
> >
> > This message contains confidential information and is intended only 
> > for the individual named.  If you are not the named addressee you 
> > should not disseminate, distribute or copy this e-mail.  Please notify
> 
> > the sender immediately by e-mail if you have received this e-mail by 
> > mistake and delete this e-mail from your system.
> >
> > E-mail transmission cannot be guaranteed to be secure or error-free as
> 
> > information could be intercepted, corrupted, lost, destroyed, arrive 
> > late or incomplete, or contain viruses.  The sender therefore does not
> 
> > accept liability for any errors or omissions in the contents of this 
> > message which arise as a result of e-mail transmission.  If 
> > verification is required please request a hard-copy version.  This 
> > message is provided for informational purposes and should not be 
> > construed as a solicitation or offer to buy or sell any securities or 
> > related financial instruments.
> >


      Machen Sie Yahoo! zu Ihrer Startseite. Los geht's: 
http://de.yahoo.com/set

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


RE: Refresh local repository SNAPSHOTS every morning

Posted by Bl...@ubs.com.
It's not a problem as much as a curiosity.  We just moved from Ant to
Maven, and I want to reduce any increase of build times to ease the
transition for the team - most of which have yet to migrate from the Ant
branches of the projects to the new Maven-ized main line.  Building our
main ear pulls down every SNAPSHOT war dependency, which takes >10 mins
to package on the day's first run.  I have our CIS server doing builds
on SCM changes + nightly, but I suppose I could remove nightly condition
to eliminate this side effect.

Regards,
-Blue

-----Original Message-----
From: Wayne Fay [mailto:waynefay@gmail.com] 
Sent: Thursday, December 13, 2007 11:42 AM
To: Maven Users List
Subject: Re: Refresh local repository SNAPSHOTS every morning

You could probably use "mvn dependency:go-offline"... but as you said,
it will act on all dependencies, not just SNAPSHOTs. (Why is this a
problem for you?)

Wayne

On 12/13/07, Blue.Thomas@ubs.com <Bl...@ubs.com> wrote:
> Hi all,
>
> Is there a way to refresh the SNAPSHOTS in your local repository?  We 
> have nightly builds for all of our projects, and every morning there 
> are new SNAPSHOTS in our internal repository to pull down, whether 
> they contain changes or not. I'd like to be able to update all of my 
> local SNAPSHOTS every morning, instead of when I build a project for 
> the first time of the day.
>
> Alternatively, if there's a mojo I can run while inside each project 
> that will pull down their SNAPSHOT dependencies _without_ compiling, 
> packaging, etc, I could run that as well, but I'm at a loss on what to

> use.  I thought I could attach dependency:purge-local-repository to 
> phase 'validate' on a non-default profile, but that will act on all 
> dependencies, not just SNAPSHOTS.
>
> Thanks,
> -Blue
>
> Visit our website at http://www.ubs.com
>
> This message contains confidential information and is intended only 
> for the individual named.  If you are not the named addressee you 
> should not disseminate, distribute or copy this e-mail.  Please notify

> the sender immediately by e-mail if you have received this e-mail by 
> mistake and delete this e-mail from your system.
>
> E-mail transmission cannot be guaranteed to be secure or error-free as

> information could be intercepted, corrupted, lost, destroyed, arrive 
> late or incomplete, or contain viruses.  The sender therefore does not

> accept liability for any errors or omissions in the contents of this 
> message which arise as a result of e-mail transmission.  If 
> verification is required please request a hard-copy version.  This 
> message is provided for informational purposes and should not be 
> construed as a solicitation or offer to buy or sell any securities or 
> related financial instruments.
>
>
> ---------------------------------------------------------------------
> 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


Visit our website at http://www.ubs.com

This message contains confidential information and is intended only 
for the individual named.  If you are not the named addressee you 
should not disseminate, distribute or copy this e-mail.  Please 
notify the sender immediately by e-mail if you have received this 
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free 
as information could be intercepted, corrupted, lost, destroyed, 
arrive late or incomplete, or contain viruses.  The sender therefore 
does not accept liability for any errors or omissions in the contents 
of this message which arise as a result of e-mail transmission.  If 
verification is required please request a hard-copy version.  This 
message is provided for informational purposes and should not be 
construed as a solicitation or offer to buy or sell any securities or 
related financial instruments.


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


Re: Refresh local repository SNAPSHOTS every morning

Posted by Wayne Fay <wa...@gmail.com>.
You could probably use "mvn dependency:go-offline"... but as you said,
it will act on all dependencies, not just SNAPSHOTs. (Why is this a
problem for you?)

Wayne

On 12/13/07, Blue.Thomas@ubs.com <Bl...@ubs.com> wrote:
> Hi all,
>
> Is there a way to refresh the SNAPSHOTS in your local repository?  We
> have nightly builds for all of our projects, and every morning there are
> new SNAPSHOTS in our internal repository to pull down, whether they
> contain changes or not. I'd like to be able to update all of my local
> SNAPSHOTS every morning, instead of when I build a project for the first
> time of the day.
>
> Alternatively, if there's a mojo I can run while inside each project
> that will pull down their SNAPSHOT dependencies _without_ compiling,
> packaging, etc, I could run that as well, but I'm at a loss on what to
> use.  I thought I could attach dependency:purge-local-repository to
> phase 'validate' on a non-default profile, but that will act on all
> dependencies, not just SNAPSHOTS.
>
> Thanks,
> -Blue
>
> Visit our website at http://www.ubs.com
>
> This message contains confidential information and is intended only
> for the individual named.  If you are not the named addressee you
> should not disseminate, distribute or copy this e-mail.  Please
> notify the sender immediately by e-mail if you have received this
> e-mail by mistake and delete this e-mail from your system.
>
> E-mail transmission cannot be guaranteed to be secure or error-free
> as information could be intercepted, corrupted, lost, destroyed,
> arrive late or incomplete, or contain viruses.  The sender therefore
> does not accept liability for any errors or omissions in the contents
> of this message which arise as a result of e-mail transmission.  If
> verification is required please request a hard-copy version.  This
> message is provided for informational purposes and should not be
> construed as a solicitation or offer to buy or sell any securities or
> related financial instruments.
>
>
> ---------------------------------------------------------------------
> 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: Refresh local repository SNAPSHOTS every morning

Posted by Mark Struberg <st...@yahoo.de>.
humm, I'm not sure, but this sounds like 

$> mvn dependency:go-offline

could do the job for you.

LieGrü,
strub

--- Blue.Thomas@ubs.com schrieb:

> Hi all,
> 
> Is there a way to refresh the SNAPSHOTS in your local repository?  We
> have nightly builds for all of our projects, and every morning there are
> new SNAPSHOTS in our internal repository to pull down, whether they
> contain changes or not. I'd like to be able to update all of my local
> SNAPSHOTS every morning, instead of when I build a project for the first
> time of the day.
> 
> Alternatively, if there's a mojo I can run while inside each project
> that will pull down their SNAPSHOT dependencies _without_ compiling,
> packaging, etc, I could run that as well, but I'm at a loss on what to
> use.  I thought I could attach dependency:purge-local-repository to
> phase 'validate' on a non-default profile, but that will act on all
> dependencies, not just SNAPSHOTS.
> 
> Thanks,
> -Blue
> 
> Visit our website at http://www.ubs.com
> 
> This message contains confidential information and is intended only
> for the individual named.  If you are not the named addressee you
> should not disseminate, distribute or copy this e-mail.  Please
> notify the sender immediately by e-mail if you have received this
> e-mail by mistake and delete this e-mail from your system.
> 
> E-mail transmission cannot be guaranteed to be secure or error-free
> as information could be intercepted, corrupted, lost, destroyed,
> arrive late or incomplete, or contain viruses.  The sender therefore
> does not accept liability for any errors or omissions in the contents
> of this message which arise as a result of e-mail transmission.  If
> verification is required please request a hard-copy version.  This
> message is provided for informational purposes and should not be
> construed as a solicitation or offer to buy or sell any securities or
> related financial instruments.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 



      Machen Sie Yahoo! zu Ihrer Startseite. Los geht's: 
http://de.yahoo.com/set

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


Refresh local repository SNAPSHOTS every morning

Posted by Bl...@ubs.com.
Hi all,

Is there a way to refresh the SNAPSHOTS in your local repository?  We
have nightly builds for all of our projects, and every morning there are
new SNAPSHOTS in our internal repository to pull down, whether they
contain changes or not. I'd like to be able to update all of my local
SNAPSHOTS every morning, instead of when I build a project for the first
time of the day.

Alternatively, if there's a mojo I can run while inside each project
that will pull down their SNAPSHOT dependencies _without_ compiling,
packaging, etc, I could run that as well, but I'm at a loss on what to
use.  I thought I could attach dependency:purge-local-repository to
phase 'validate' on a non-default profile, but that will act on all
dependencies, not just SNAPSHOTS.

Thanks,
-Blue

Visit our website at http://www.ubs.com

This message contains confidential information and is intended only 
for the individual named.  If you are not the named addressee you 
should not disseminate, distribute or copy this e-mail.  Please 
notify the sender immediately by e-mail if you have received this 
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free 
as information could be intercepted, corrupted, lost, destroyed, 
arrive late or incomplete, or contain viruses.  The sender therefore 
does not accept liability for any errors or omissions in the contents 
of this message which arise as a result of e-mail transmission.  If 
verification is required please request a hard-copy version.  This 
message is provided for informational purposes and should not be 
construed as a solicitation or offer to buy or sell any securities or 
related financial instruments.


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


Re: Steps involved in migrating to maven 1.1 from maven 1.0.2

Posted by Lukas Theussl <lt...@apache.org>.
Maven 1.1 is mostly backwards compatible with 1.0.2, the few issues to 
consider are listed here:

http://maven.apache.org/maven-1.x/reference/backwards-compatibility.html

If you encounter any problems not mentioned there, please let us know!

Cheers,
-Lukas


ganji wrote:
> Hi all,
> 
> We have a requirement to migrate from maven 1.0.2 to maven 1.1 in our
> application. Can anyone share the knowledge on "Steps involved in do so" for
> the smoother and easier migration.?
> 
> I appreciate your suggestions.
> 
> tx,
> ganji

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