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

how to build 0.5 version with maven #49

Open
czjczj20 opened this issue Apr 9, 2020 · 5 comments
Open

how to build 0.5 version with maven #49

czjczj20 opened this issue Apr 9, 2020 · 5 comments

Comments

@czjczj20
Copy link

czjczj20 commented Apr 9, 2020

when I try to build source code into jar with maven and 0.5 verson fcrepo, it show me some errors:
G:\fcrepo-java-client-master\fcrepo-java-client-master>mvn clean install
[INFO] Scanning for projects...
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-resolvable parent POM for org.fcrepo.client:fcrepo-java-client:0.5.0-SNAPSHOT: Failure to find org.fcrepo:fcrepo-parent:pom:5.0.0-SNAPSHOT in http://oss.sonatype.org/content/repositories/snapshots was cached in the local repository, resolution will not be reattempted until the update interval of snapshots-repo has elapsed or updates are forced and 'parent.relativePath' points at wrong local POM @ line 6, column 11
@
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project org.fcrepo.client:fcrepo-java-client:0.5.0-SNAPSHOT (G:\fcrepo-java-client-master\fcrepo-java-client-master\pom.xml) has 1 error
[ERROR] Non-resolvable parent POM for org.fcrepo.client:fcrepo-java-client:0.5.0-SNAPSHOT: Failure to find org.fcrepo:fcrepo-parent:pom:5.0.0-SNAPSHOT in http://oss.sonatype.org/content/repositories/snapshots was cached in the local repository, resolution will not be reattempted until the update interval of snapshots-repo has elapsed or updates are forced and 'parent.relativePath' points at wrong local POM @ line 6, column 11 -> [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

@bseeger
Copy link

bseeger commented Apr 10, 2020

HI @czjczj20 - I'm seeing the same thing.

If you remove SNAPSHOT from the pom.xml files where fcrepo 5.0.0 is reference it will build for you. I don't think SNAPSHOT is available on maven, for whatever reason, and that needs to be fixed. Taking out SNAPSHOT from the pom file will get you up and running though.

@bseeger
Copy link

bseeger commented Apr 10, 2020

my diff of the pom.xml file with changes:

$ git diff
diff --git a/pom.xml b/pom.xml
index b7106e4..b622971 100644
--- a/pom.xml
+++ b/pom.xml
@@ -6,7 +6,7 @@
   <parent>
     <groupId>org.fcrepo</groupId>
     <artifactId>fcrepo-parent</artifactId>
-    <version>5.0.0-SNAPSHOT</version>
+    <version>5.0.0</version>
   </parent>

   <groupId>org.fcrepo.client</groupId>
@@ -37,7 +37,7 @@
     <github.global.server>github</github.global.server>

     <!-- dependencies -->
-    <fcrepo.version>5.0.0-SNAPSHOT</fcrepo.version>
+    <fcrepo.version>5.0.0</fcrepo.version>
     <commons.io.version>2.6</commons.io.version>
     <commons.lang3.version>3.7</commons.lang3.version>
     <grizzly.version>2.4.3</grizzly.version>

@bseeger
Copy link

bseeger commented Apr 10, 2020

Ticket created: https://jira.lyrasis.org/browse/FCREPO-3275

@awoods
Copy link

awoods commented Apr 10, 2020

We should probably bump the fcrepo.version up to 5.1.0.

@bbpennel
Copy link
Contributor

This should now be resolved by:
#53

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants