maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dan Checkoway (JIRA)" <>
Subject [jira] Created: (MNG-5099) Issue with properties inherited from parent POM
Date Mon, 23 May 2011 17:25:22 GMT
Issue with properties inherited from parent POM

                 Key: MNG-5099
             Project: Maven 2 & 3
          Issue Type: Bug
          Components: Inheritance and Interpolation
    Affects Versions: 3.0.3
         Environment: java 1.6.0_24
            Reporter: Dan Checkoway

This worked absolutely fine in 2.2.1.  Fails in 3.0.3.

./deps/pom.xml has:

./library/pom.xml has:

./otherlib/pom.xml has:

cd library
mvn deploy (all good)

cd otherlib
mvn compile (fails)

[ERROR] Failed to execute goal on project mycompany-otherlib: Could not resolve dependencies
for project com.mycompany:mycompany-otherlib:jar:1.0: Failure to find mysql:mysql-connector-java:jar:${mysql.connector.version}
in was cached in the local repository, resolution will not be
reattempted until the update interval of central has elapsed or updates are forced -> [Help

It's as if it's treating the ${mysql.connector.version} in the runtime dependency literally,
instead of resolving that property.

I can work around this by adding this to library/pom.xml:

Please let me know if I'm missing something simple, but it worked fine without the workaround
in 2.2.1, and this looks like a bug to me!

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


View raw message