[
https://issues.apache.org/jira/browse/OPENJPA-2088?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13164470#comment-13164470
]
Kevin Sutter commented on OPENJPA-2088:
---------------------------------------
Perfect timing, Mark! We just discovered this same issue. Although it was
discussed previously in our mailing list [1] -- we just didn't act on the
result. Since we are considering a 2.2.0 release, this JIRA is very pertinent.
Thanks.
[1]
http://openjpa.208410.n2.nabble.com/New-modules-for-OpenJPA-tools-tc5327294.html
> openjpa-maven-plugin IT tests try to resolve unbuilt repository
> ---------------------------------------------------------------
>
> Key: OPENJPA-2088
> URL: https://issues.apache.org/jira/browse/OPENJPA-2088
> Project: OpenJPA
> Issue Type: Bug
> Components: build / infrastructure
> Affects Versions: 2.0.2
> Reporter: Mark Struberg
>
> When building openjpa on a clean checkout and _after_ cleaning the local
> maven repo via
> $> rm -rf ~/.m2/repository/org/apache/openjpa/
> I get the following Exception
> {noformat}
> [ERROR] Failed to execute goal on project enhance: Could not resolve
> dependencies for project
> org.apache.openjpa.tools.openjpa-maven-plugin.testing:enhance:jar:1.0-SNAPSHOT:
> Could not find artifact org.apache.openjpa:openjpa:jar:2.2.0-SNAPSHOT in
> local.central (file:////Users/struberg/.m2/repository) -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
> goal on project enhance: Could not resolve dependencies for project
> org.apache.openjpa.tools.openjpa-maven-plugin.testing:enhance:jar:1.0-SNAPSHOT:
> Could not find artifact org.apache.openjpa:openjpa:jar:2.2.0-SNAPSHOT in
> local.central (file:////Users/struberg/.m2/repository)
> at
> org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:210)
> at
> org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies(LifecycleDependencyResolver.java:117)
> at
> org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved(MojoExecutor.java:258)
> {noformat}
> This indicates a cycle in our build structure.
> The openjpa-maven-plugin and all it's ITs should only directly use
> openjpa-kernel and similar fundamental parts.
> It seems that we already have the dependencies defined correctly, as maven
> perfectly unloops the needed parts already:
> [INFO] OpenJPA Parent POM ................................ SUCCESS [7.846s]
> [INFO] OpenJPA Utilities Library ......................... SUCCESS [12.714s]
> [INFO] OpenJPA Kernel .................................... SUCCESS [9.250s]
> [INFO] OpenJPA JDBC ...................................... SUCCESS [5.160s]
> [INFO] OpenJPA Persistence ............................... SUCCESS [4.125s]
> [INFO] OpenJPA Persistence JDBC .......................... SUCCESS
> [10:36.519s]
> [INFO] OpenJPA Persistence Locking Tests ................. SUCCESS
> [23:39.345s]
> [INFO] OpenJPA tools ..................................... SUCCESS [0.198s]
> [INFO] OpenJPA Maven Plugin .............................. FAILURE [20.854s]
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira