I'd like to figure out the best way to handle this in upstream Maven. The
dependency resolution in this use case (transitive import scope dependency), is
already fixed in Maven 3. But as Carlo says, there is the issue of a circular
dependency.
Maven will not allow circular dependencies of actual artifacts (e.g. jar files),
but it will allow certain circular references on pom-only dependencies such as
this case.
One way to better handle this IMO would be if Maven had two different poms. You
have a build pom, which is the existing pom, and then you have a repository pom
which is generated at build time. This repository pom would do things like
resolve information from other imported POMs, so in this case it would replace
the import scope dependency with the actual dependency management information
that is imported. This generated pom would then be the one deployed to the
repository.
Carlo de Wolf wrote:
Apart from the fact that the build is broken. Why do we have a
circular
dependency from jbossts to component-matrix?
https://repository.jboss.org/nexus/content/groups/public//org/jboss/jboss...
Carlo
====8<====
[INFO] ------------------------------------------------------------------------
[INFO] Building JBoss Application Server IIOP
[INFO] task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [buildnumber:create {execution: set-build-properties}]
[INFO] [build-helper:maven-version {execution: default}]
Downloading:http://repository.jboss.org/maven2/org/jboss/jbossas/jboss-as...
[INFO] Unable to find resource
'org.jboss.jbossas:jboss-as-component-matrix:pom:6.0.0.20100429-M3' in repository
repository.jboss.org (
http://repository.jboss.org/maven2)
Downloading:http://repo1.maven.org/maven2/org/jboss/jbossas/jboss-as-comp...
[INFO] Unable to find resource
'org.jboss.jbossas:jboss-as-component-matrix:pom:6.0.0.20100429-M3' in repository
central (
http://repo1.maven.org/maven2)
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).
Project ID: org.jboss.jbossas:jboss-as-component-matrix
Reason: POM 'org.jboss.jbossas:jboss-as-component-matrix' not found in
repository: Unable to download the artifact from any repository
org.jboss.jbossas:jboss-as-component-matrix:pom:6.0.0.20100429-M3
from the specified remote repositories:
central (
http://repo1.maven.org/maven2),
repository.jboss.org (
http://repository.jboss.org/maven2),
snapshots.jboss.org (
http://snapshots.jboss.org/maven2)
for project org.jboss.jbossas:jboss-as-component-matrix
_______________________________________________
jboss-development mailing list
jboss-development(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-development