Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maven build tweaks to enable clean build #1361

Merged
merged 1 commit into from Jun 25, 2019

Conversation

@qpointsystems
Copy link

commented Jun 25, 2019

I work on OSX (10.14.5) and use maven 3.5.2 Java 1.8.0_144.
Was getting a couple errors on an initial build keeping it from getting very far. Here was the mvn output:

[INFO] Scanning for projects...
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-resolvable parent POM for ca.uhn.hapi.fhir:hapi-fhir-test-utilities:[unknown-version]: Could not find artifact ca.uhn.hapi.fhir:hapi-deployable-pom:pom:4.0.0-SNAPSHOT and 'parent.relativePath' points at wrong local POM @ line 4, column 13
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: javax.annotation:javax.annotation-api:jar -> duplicate declaration of version (?) @ ca.uhn.hapi.fhir:hapi-fhir-testpage-overlay:[unknown-version], /Users/gary/repos/hapi-fhir/hapi-fhir-testpage-overlay/pom.xml, line 97, column 15
[WARNING] 'build.plugins.plugin.version' for org.owasp:dependency-check-maven is missing. @ ca.uhn.hapi.fhir:hapi-fhir-jpaserver-cds-example:[unknown-version], /Users/gary/repos/hapi-fhir/example-projects/hapi-fhir-jpaserver-cds-example/pom.xml, line 246, column 12
 @ 
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]   
[ERROR]   The project ca.uhn.hapi.fhir:hapi-fhir-test-utilities:[unknown-version] (/Users/gary/repos/hapi-fhir/hapi-fhir-test-utilities/pom.xml) has 1 error
[ERROR]     Non-resolvable parent POM for ca.uhn.hapi.fhir:hapi-fhir-test-utilities:[unknown-version]: Could not find artifact ca.uhn.hapi.fhir:hapi-deployable-pom:pom:4.0.0-SNAPSHOT and 'parent.relativePath' points at wrong local POM @ line 4, column 13 -> [Help 2]
[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/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException


Loaded the project into NetBeans and the IDE pointed out the issues pretty quickly. I tweaked the 2 POM files for 2 sub-projects to stop the IDE from complaining on the builds. After these changes, the build went flawlessly.

The first change to hapi-fhir-testpage-overlay/pom.xml was to remove a redundant dependency to javax.annotation.
The second change to hapi-fhir-test-utilities/pom.xml was to add a relativePath tag to the parent tag so that the project could build.

Cheers!

Tweaked a couple POM files for 2 sub-projects to stop the IDE from co…
…mplaining on the builds. After these changes, the build went flawlessly.

The first change to hapi-fhir-testpage-overlay/pom.xml was to remove a redundant dependency to javax.annotation.
The second change to hapi-fhir-test-utilities/pom.xml was to add a <relativePath> tag to the <parent> tag so that the project could build.

@jamesagnew jamesagnew merged commit 5509e5c into jamesagnew:master Jun 25, 2019

0 of 2 checks passed

continuous-integration/appveyor/pr Waiting for AppVeyor build to complete
Details
continuous-integration/travis-ci/pr The Travis CI build is in progress
Details
@jamesagnew

This comment has been minimized.

Copy link
Owner

commented Jun 25, 2019

Looks great! Thanks!

jamesagnew added a commit that referenced this pull request Jun 25, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.