Hi,

I have a project A using a parent project which is defined like that

<parent>
  <groupId>foo</groupId>
  <artifactId>bar</artifactId>
  <version>RELEASE</version>
</parent>

The intention of the RELEASE version is that the latest release is used.
I would expect that the latest release of my local repository is used if I do not call maven with option -U or with an updatePolicy "always".

So when I start my work in the morning and try to compile project A with "mvn compile" I get the error message

org.apache.maven.artifact.resolver.ArtifactNotFoundException: Unable to determine the release version

How does maven try to determine the release version?
Why does it not use the latest version from my local repository?

The default for the updatePolicy is "daily". But maven does not seem to check the remote repository on my first call in the morning.
How does maven know that it is a new day?

When I try "mvn compile" with updatePolicy set to "always" or option -U the latest version of the parent is resolved. The latest version already was in my local repository so no download was needed.

I thought the information about which artifact was already updated on a daily basis would be somewhere in the maven-metadata-local.xml of my parent project but this file did not change after the update.

I hope someone can answer some of my questions.

Best regards
Achim


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to