| Summary: | Build fails for dtgov-demos-project/project-service-impl | ||
|---|---|---|---|
| Product: | [JBoss] JBoss Fuse Service Works 6 | Reporter: | Stefan Bunciak <sbunciak> |
| Component: | DT Governance | Assignee: | Julian Coleman <jcoleman> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Stefan Bunciak <sbunciak> |
| Severity: | urgent | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 6.0.0 GA | CC: | kconner, ncross, pkocandr, sbunciak, soa-p-jira |
| Target Milestone: | ER8 | ||
| Target Release: | 6.0.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2014-02-06 15:26:34 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Stefan Bunciak
2013-12-12 14:32:06 UTC
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 |