Hide Forgot
Description of problem: [sbunciak@sbunciak-ntb project-service-impl]$ mvn -Pdemo clean deploy [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building DTGov Demos: Project - Service Implementation 1.0.1.Final-redhat-5 [INFO] ------------------------------------------------------------------------ [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2.238s [INFO] Finished at: Thu Dec 12 15:29:35 CET 2013 [INFO] Final Memory: 24M/341M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal on project project-service-impl: Could not resolve dependencies for project org.overlord.dtgov.demos.project:project-service-impl:jar:1.0.1.Final-redhat-5: Failed to collect dependencies for [org.overlord.dtgov.demos.project:project-service-api:jar:1.0.1.Final-redhat-5 (compile), junit:junit:jar:4.11 (test)]: Failed to read artifact descriptor for org.overlord.dtgov.demos.project:project-service-api:jar:1.0.1.Final-redhat-5: Failure to find org.overlord.dtgov.demos.project:dtgov-demos-project:pom:1.0.1.Final-redhat-5 in file:///home/sbunciak/.m2/fsw-6.0.0.ER7-redhat-1-repository was cached in the local repository, resolution will not be reattempted until the update interval of jboss-ip-repository has elapsed or updates are forced -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException [sbunciak@sbunciak-ntb project-service-impl]$ pwd /home/sbunciak/runtimes/fsw-6.0.0-ER7/jboss-eap-6.1/quickstarts/overlord/dtgov/dtgov-demos-project/project-service-impl Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. follow dtgov-demos-project quickstart 2. 3. Actual results: Expected results: Additional info:
Hi Stefan, are you going in order of 1. project-requirements 2. project-service-api 3. project-service-impl?
(In reply to Kurt T Stam from comment #1) > Hi Stefan, are you going in order of > > 1. project-requirements > 2. project-service-api > 3. project-service-impl? Yes.
OK so really the ERROR is: Failure to find org.overlord.dtgov.demos.project:dtgov-demos-project:pom:1.0.1.Final-redhat-5 This pom lives in: quickstarts/overlord/dtgov/ the tree is like follows ├── dtgov-demos-project │ ├── pom.xml │ ├── project-requirements │ ├── project-service-api │ ├── project-service-impl each pom contains a <relativePath>../pom.xml</relativePath> The project-service-impl depends on the project-service-api; when it goes to travel the dependency 1. it uses the repository to get the project-service-api/pom.xml; which it finds. 2. it tries to resolve the parent, which is finds, but 3. it then tries to resolve its parent, which is NOT in the repository. and it clearly does try to use the relatives paths at this point. Can we add the quickstarts/overlord/dtgov/pom.xml to the repository? Not sure how else we go about fixing this.
I meant to say that is NOT using relative paths at that point.
Assigning to Julian so that we can get the missing pom.xml included in the repo
The problem is not in the repository zip, but only in your local repository. I've reproduced the problem by installing project-service-api in local repository but nothing else. Then it when you try to compile/test/intall/deploy project-service-impl, it finds the api in your local repository but not its parent as it is the one which is missing ("Failure to find org.overlord.dtgov.demos.project:dtgov-demos-project:pom:1.0.1.Final-redhat-5"). It is also parent of the project you are builkding but it is not in local repository and the relative path in api's pom doesn't help as it resolves into bad path in your local repository. The correct way how to build the DTGov quickstarts ONE BY ONE (which is what you are trying to do) is to run "mvn install" in the top quickstarts' directory first and then every contained module will be available in your local repository and it should work. The bad thing about this is that there is BZ1040812 which prevents running the mvn install in root. It is fixed in ER8. To workaround this you can remove the maven-assembly-plugin execution from the quickstart's root pom.
With BZ-1049812 fixed, it's now possible to build either from: quickstarts/overlord/dtgov/dtgov-demos-project/ or: quickstarts/overlord/dtgov/ Running mvn at another directory level will probably not work, as all the required dependencies from the other directories might not have been installed to the local repository (as per earlier comments).
With this workaround the quickstart loses sense I would say. Createing new BZ to fix the readme BZ #1054685 Verified in FSW 6.0.0.CR1