[
https://issues.apache.org/jira/browse/DIR-246?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12726592#action_12726592
]
Aleksander Adamowski commented on DIR-246:
------------------------------------------
If you can't reproduce the problem, you should remove your local repository
from ~/.m2/repository, then make sure that your Maven configuration doesn't
include the remote snapshot repository of ApacheDS so that when it needs one of
ApacheDS artifacts, it must use the ones from the current build.
Then simply run the build.
BTW, the reason why this build shouldn't fail is that the it shouldn't ever
depend on previous builds of the project itself.
What if all copies of previously built binary artifacts are somehow lost? You
would be unable to recreate the artifacts from the source anymore.
> ApacheDS trunk build fails due to circular dependency between
> apacheds-xbean-spring <-> apacheds-server-xml
> -----------------------------------------------------------------------------------------------------------
>
> Key: DIR-246
> URL: https://issues.apache.org/jira/browse/DIR-246
> Project: Directory
> Issue Type: Bug
> Reporter: Aleksander Adamowski
> Assignee: Alex Karasulu
>
> I'm trying to build apacheds from the latest trunk revision, however the
> build fails due to missing dependency on apacheds-server-xml.
> When I try to build apacheds-server-xml by entering
> trunk-with-dependencies/apacheds/server-xml/ , I get a build error that
> mentions missing dependency on apacheds-xbean-spring:
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Failed to resolve artifact.
> Missing:
> ----------
> 1) org.apache.directory.server:apacheds-xbean-spring:jar:1.5.5-SNAPSHOT
> Try downloading the file manually from the project website.
> Then, install it using the command:
> mvn install:install-file -DgroupId=org.apache.directory.server
> -DartifactId=apacheds-xbean-spring -Dversion=1.5.5-SNAPSHOT -Dpackaging=jar
> -Dfile=/path/to/file
> Alternatively, if you host your own repository you can deploy the file
> there:
> mvn deploy:deploy-file -DgroupId=org.apache.directory.server
> -DartifactId=apacheds-xbean-spring -Dversion=1.5.5-SNAPSHOT -Dpackaging=jar
> -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
> Path to dependency:
> 1) org.apache.directory.server:apacheds-server-xml:jar:1.5.5-SNAPSHOT
> 2)
> org.apache.directory.server:apacheds-xbean-spring:jar:1.5.5-SNAPSHOT
> ----------
> 1 required artifact is missing.
> When I try to build apacheds-xbean-spring by entering
> trunk-with-dependencies/apacheds/xbean-spring/ , I get a build error that
> mentions missing dependency on apacheds-server-xml:
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Unable to find artifact.
> Embedded error: Unable to download the artifact from any repository
> Try downloading the file manually from the project website.
> Then, install it using the command:
> mvn install:install-file -DgroupId=org.apache.directory.server
> -DartifactId=apacheds-server-xml -Dversion=1.5.5-SNAPSHOT -Dpackaging=jar
> -Dfile=/path/to/file
> Alternatively, if you host your own repository you can deploy the file there:
> mvn deploy:deploy-file -DgroupId=org.apache.directory.server
> -DartifactId=apacheds-server-xml -Dversion=1.5.5-SNAPSHOT -Dpackaging=jar
> -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
> org.apache.directory.server:apacheds-server-xml:jar:1.5.5-SNAPSHOT
> This chicken-and-egg problem effectively prevents building ApacheDS at all.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.