Maven2 changes to pom in repository not downloaded.

2008-12-26 Thread Stephen More
In November, maven 2.0.9 downloaded a jar and a pom into my local repository.
In the remote repository, the jar has not changed, but the pom has.
When I run maven today, the latest and greatest pom is not getting downloaded.
Is this a bug ? How can I make sure I always get the latest pom version ?

-Thanks

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



Re: Maven2 changes to pom in repository not downloaded.

2008-12-26 Thread Wendy Smoak
On Fri, Dec 26, 2008 at 10:51 AM, Stephen More stephen.m...@gmail.com wrote:
 In November, maven 2.0.9 downloaded a jar and a pom into my local repository.
 In the remote repository, the jar has not changed, but the pom has.
 When I run maven today, the latest and greatest pom is not getting downloaded.
 Is this a bug ? How can I make sure I always get the latest pom version ?

If it was a released version then this is the default behavior.
Released artifacts should never change and once it's in your local
repo, Maven will not look for updates.  If you know something has
changed, deleting it from your local repo will cause Maven to go
download it again.

If it's a snapshot, then by default Maven should check once a day for
updates.  You can add -U on the command line to force it to check.

If you want to override the default behavior, you can change the
update policies for each repository (usually in settings.xml).

-- 
Wendy

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



Re: Maven2 changes to pom in repository not downloaded.

2008-12-26 Thread Stephen More
On Fri, Dec 26, 2008 at 1:01 PM, Wendy Smoak  wrote:
 On Fri, Dec 26, 2008 at 10:51 AM, Stephen More  wrote:
 In November, maven 2.0.9 downloaded a jar and a pom into my local repository.
 In the remote repository, the jar has not changed, but the pom has.
 When I run maven today, the latest and greatest pom is not getting 
 downloaded.
 Is this a bug ? How can I make sure I always get the latest pom version ?

 If it was a released version then this is the default behavior.
 Released artifacts should never change and once it's in your local
 repo, Maven will not look for updates.  If you know something has
 changed, deleting it from your local repo will cause Maven to go
 download it again.

 If it's a snapshot, then by default Maven should check once a day for
 updates.  You can add -U on the command line to force it to check.

 If you want to override the default behavior, you can change the
 update policies for each repository (usually in settings.xml).

This is a released plugin.
I added:
 releases
updatePolicyalways/updatePolicy
 /releases

to my pluginRepository but my old pom is still there.

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



Re: Maven2 changes to pom in repository not downloaded.

2008-12-26 Thread Baptiste MATHUS
Really, you should never never update a released artifact...
Did you put the updatePolicy inside the right repo? Namely the
pluginRepository...

Cheers

2008/12/26 Stephen More stephen.m...@gmail.com

 On Fri, Dec 26, 2008 at 1:01 PM, Wendy Smoak  wrote:
  On Fri, Dec 26, 2008 at 10:51 AM, Stephen More  wrote:
  In November, maven 2.0.9 downloaded a jar and a pom into my local
 repository.
  In the remote repository, the jar has not changed, but the pom has.
  When I run maven today, the latest and greatest pom is not getting
 downloaded.
  Is this a bug ? How can I make sure I always get the latest pom version
 ?
 
  If it was a released version then this is the default behavior.
  Released artifacts should never change and once it's in your local
  repo, Maven will not look for updates.  If you know something has
  changed, deleting it from your local repo will cause Maven to go
  download it again.
 
  If it's a snapshot, then by default Maven should check once a day for
  updates.  You can add -U on the command line to force it to check.
 
  If you want to override the default behavior, you can change the
  update policies for each repository (usually in settings.xml).

 This is a released plugin.
 I added:
 releases
updatePolicyalways/updatePolicy
 /releases

 to my pluginRepository but my old pom is still there.

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




-- 
Baptiste Batmat MATHUS - http://batmat.net
Sauvez un arbre,
Mangez un castor !


Re: Maven2 changes to pom in repository not downloaded.

2008-12-26 Thread Stephen More
On Fri, Dec 26, 2008 at 1:58 PM, Baptiste MATHUS  wrote:
 Really, you should never never update a released artifact...

Thats what I believe, but I have no control over the remote repository.

 Did you put the updatePolicy inside the right repo? Namely the
 pluginRepository...

Yes, I added it to the pluginRepository.

I see it checking for updates for the jars the plugin depends on,
but it does not check for an update of the pom of the plugin.

-Steve


 2008/12/26 Stephen More stephen.m...@gmail.com

 On Fri, Dec 26, 2008 at 1:01 PM, Wendy Smoak  wrote:
  On Fri, Dec 26, 2008 at 10:51 AM, Stephen More  wrote:
  In November, maven 2.0.9 downloaded a jar and a pom into my local
 repository.
  In the remote repository, the jar has not changed, but the pom has.
  When I run maven today, the latest and greatest pom is not getting
 downloaded.
  Is this a bug ? How can I make sure I always get the latest pom version
 ?
 
  If it was a released version then this is the default behavior.
  Released artifacts should never change and once it's in your local
  repo, Maven will not look for updates.  If you know something has
  changed, deleting it from your local repo will cause Maven to go
  download it again.
 
  If it's a snapshot, then by default Maven should check once a day for
  updates.  You can add -U on the command line to force it to check.
 
  If you want to override the default behavior, you can change the
  update policies for each repository (usually in settings.xml).

 This is a released plugin.
 I added:
 releases
updatePolicyalways/updatePolicy
 /releases

 to my pluginRepository but my old pom is still there.

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




 --
 Baptiste Batmat MATHUS - http://batmat.net
 Sauvez un arbre,
 Mangez un castor !


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



Re: Maven2 changes to pom in repository not downloaded.

2008-12-26 Thread Baptiste MATHUS
Well, so why don't you just wipe out your local repository?
Do it manually so that everything gets downloaded from scratch properly, or
use the more selective mvn dependency:purge-local-repository goal.

Cheers

2008/12/26 Stephen More stephen.m...@gmail.com

 On Fri, Dec 26, 2008 at 1:58 PM, Baptiste MATHUS  wrote:
  Really, you should never never update a released artifact...

 Thats what I believe, but I have no control over the remote repository.

  Did you put the updatePolicy inside the right repo? Namely the
  pluginRepository...

 Yes, I added it to the pluginRepository.

 I see it checking for updates for the jars the plugin depends on,
 but it does not check for an update of the pom of the plugin.

 -Steve

 
  2008/12/26 Stephen More stephen.m...@gmail.com
 
  On Fri, Dec 26, 2008 at 1:01 PM, Wendy Smoak  wrote:
   On Fri, Dec 26, 2008 at 10:51 AM, Stephen More  wrote:
   In November, maven 2.0.9 downloaded a jar and a pom into my local
  repository.
   In the remote repository, the jar has not changed, but the pom has.
   When I run maven today, the latest and greatest pom is not getting
  downloaded.
   Is this a bug ? How can I make sure I always get the latest pom
 version
  ?
  
   If it was a released version then this is the default behavior.
   Released artifacts should never change and once it's in your local
   repo, Maven will not look for updates.  If you know something has
   changed, deleting it from your local repo will cause Maven to go
   download it again.
  
   If it's a snapshot, then by default Maven should check once a day for
   updates.  You can add -U on the command line to force it to check.
  
   If you want to override the default behavior, you can change the
   update policies for each repository (usually in settings.xml).
 
  This is a released plugin.
  I added:
  releases
 updatePolicyalways/updatePolicy
  /releases
 
  to my pluginRepository but my old pom is still there.
 
  -
  To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
  For additional commands, e-mail: users-h...@maven.apache.org
 
 
 
 
  --
  Baptiste Batmat MATHUS - http://batmat.net
  Sauvez un arbre,
  Mangez un castor !
 

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




-- 
Baptiste Batmat MATHUS - http://batmat.net
Sauvez un arbre,
Mangez un castor !


Re: Maven2 changes to pom in repository not downloaded.

2008-12-26 Thread Stephen More
On Fri, Dec 26, 2008 at 6:15 PM, Baptiste MATHUS  wrote:
 Well, so why don't you just wipe out your local repository?
 Do it manually so that everything gets downloaded from scratch properly, or
 use the more selective mvn dependency:purge-local-repository goal.

I have imported many artifacts that are not part of any repository,
simply wiping out my local cache could create many hours of needless
work.

This is not the first time this type of problem has come up. It only
occurs with 1 specific repository. It takes time just debugging the
problem.

Does anyone know if Integrity Reports from Archiva would find this
type of error ?




 2008/12/26 Stephen More

 On Fri, Dec 26, 2008 at 1:58 PM, Baptiste MATHUS  wrote:
  Really, you should never never update a released artifact...

 Thats what I believe, but I have no control over the remote repository.

  Did you put the updatePolicy inside the right repo? Namely the
  pluginRepository...

 Yes, I added it to the pluginRepository.

 I see it checking for updates for the jars the plugin depends on,
 but it does not check for an update of the pom of the plugin.

 -Steve

 
  2008/12/26 Stephen More
 
  On Fri, Dec 26, 2008 at 1:01 PM, Wendy Smoak  wrote:
   On Fri, Dec 26, 2008 at 10:51 AM, Stephen More  wrote:
   In November, maven 2.0.9 downloaded a jar and a pom into my local
  repository.
   In the remote repository, the jar has not changed, but the pom has.
   When I run maven today, the latest and greatest pom is not getting
  downloaded.
   Is this a bug ? How can I make sure I always get the latest pom
 version
  ?
  
   If it was a released version then this is the default behavior.
   Released artifacts should never change and once it's in your local
   repo, Maven will not look for updates.  If you know something has
   changed, deleting it from your local repo will cause Maven to go
   download it again.
  
   If it's a snapshot, then by default Maven should check once a day for
   updates.  You can add -U on the command line to force it to check.
  
   If you want to override the default behavior, you can change the
   update policies for each repository (usually in settings.xml).
 
  This is a released plugin.
  I added:
  releases
 updatePolicyalways/updatePolicy
  /releases
 
  to my pluginRepository but my old pom is still there.
 
  -
  To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
  For additional commands, e-mail: users-h...@maven.apache.org
 
 
 
 
  --
  Baptiste Batmat MATHUS - http://batmat.net
  Sauvez un arbre,
  Mangez un castor !
 

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




 --
 Baptiste Batmat MATHUS - http://batmat.net
 Sauvez un arbre,
 Mangez un castor !


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



Re: Maven2 changes to pom in repository not downloaded.

2008-12-26 Thread Wendy Smoak
On Fri, Dec 26, 2008 at 5:48 PM, Stephen More stephen.m...@gmail.com wrote:

 I have imported many artifacts that are not part of any repository,
 simply wiping out my local cache could create many hours of needless
 work.

You don't have to delete your *entire* local repo, just the artifact
that you want Maven to re-download.  Deleting the directory is easiest
because that will also get the metadata.

(Consider running a repository manager (Archiva, Nexus, Artifactory)
locally to make this a non-issue.)

-- 
Wendy

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