Missing artifact error in Maven

Posted by abhin4v on Stack Overflow See other posts from Stack Overflow or by abhin4v
Published on 2010-05-31T12:37:43Z Indexed on 2010/05/31 12:42 UTC
Read the original article Hit count: 322

Filed under:
|
|

I get a missing artifact error during Maven build because one of the dependencies declares it's parent artifact using a property for the version. Now the property itself is declared in the parent pom and my project's build fails giving this error:

[ERROR] Failed to execute goal on project abc: Unable to get dependency
information for xyz:pqr:jar:SNAPSHOT: Failed to process POM for 
xyz:pqr:jar:SNAPSHOT: Non-resolvable parent POM xyz:pqr-parent:${someversion}
for xyz:pqr:${someversion}: Failed to resolve POM for 
xyz:pqr-parent:${someversion} due to Missing:
----------
1) xyz:pqr-parent:pom:${someversion}
----------
1 required artifact is missing.

for artifact:
xyz:pqr-parent:pom:${someversion}

I have verified that the artifacts are present in correct location in the repository.

Is there a way to specify the value of someversion property used in the dependency pom? If not, how should the dependency pom be changed to resolve the error?

© Stack Overflow or respective owner

Related posts about dependencies

Related posts about maven