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

Unable to build lastest version #29

Open
oersted opened this issue Sep 7, 2016 · 9 comments
Open

Unable to build lastest version #29

oersted opened this issue Sep 7, 2016 · 9 comments

Comments

@oersted
Copy link

oersted commented Sep 7, 2016

Got this error message after executing the mvn -DskipTests assembly:assembly command I'm not familiar with Maven so I couldn't dig any further.

[INFO] Scanning for projects...
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-resolvable parent POM for edu.isi.bmkeg:lapdftext:1.7.6-SNAPSHOT: Could not find artifact edu.isi.bmkeg:bmkeg-parent:pom:1.2.0-SNAPSHOT and 'parent.relativePath' points at wrong local POM @ line 9, column 10
 @ 
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]   
[ERROR]   The project edu.isi.bmkeg:lapdftext:1.7.6-SNAPSHOT (/home/oersted/temp/lapdftext/pom.xml) has 1 error
[ERROR]     Non-resolvable parent POM for edu.isi.bmkeg:lapdftext:1.7.6-SNAPSHOT: Could not find artifact edu.isi.bmkeg:bmkeg-parent:pom:1.2.0-SNAPSHOT and 'parent.relativePath' points at wrong local POM @ line 9, column 10 -> [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
@UntoterOstgote
Copy link

Same problem here. Which is sad because the project looks promising.

@nasagfunaro
Copy link

Same errors. I guess I will have to fix it myself. I hope the code isn't buggy.

@awhillas
Copy link

hey @nasagfunaro did you fix the bug? Not looking forward to digging in the Java hole :(

@nasagfunaro
Copy link

nasagfunaro commented Jun 12, 2017 via email

@sebastianlutter
Copy link

sebastianlutter commented Aug 8, 2017

Well, the repos here are indeed confusing . . . I guess a build would look like this (did not get it to build successful :( )

  • Build and install bmkeg-as-parent-1.1.5-SNAPSHOT locally
git clone https://github.com/BMKEG/bmkeg-as-parent.git
cd bmkeg-as-parent
mvn install
  • clone vpdmfCore
https://github.com/BMKEG/vpdmfCore.git
  • repair pom.xml
diff --git a/pom.xml b/pom.xml
index 3e7eca9..144cf73 100644
--- a/pom.xml
+++ b/pom.xml
@@ -9,9 +9,9 @@
 
        <parent>
                <groupId>edu.isi.bmkeg</groupId>
-               <artifactId>bmkeg-parent</artifactId>
-               <version>1.2.0-SNAPSHOT</version>
-               <relativePath>../bmkeg-parent</relativePath>
+               <artifactId>bmkeg-as-parent</artifactId>
+               <version>1.1.5-SNAPSHOT</version>
+               <relativePath>../bmkeg-as-parent</relativePath>
        </parent>
 
        <name>VPDMf</name>
  • Build and install, but fails due to spring jars that are not found :(

  • clone vpdmfGenerator

https://github.com/BMKEG/vpdmfGenerator.git
  • repair pom.xml
diff --git a/pom.xml b/pom.xml
index eea1148..a801495 100644
--- a/pom.xml
+++ b/pom.xml
@@ -8,9 +8,9 @@
        <packaging>jar</packaging>
        <parent>
                <groupId>edu.isi.bmkeg</groupId>
-               <artifactId>bmkeg-parent</artifactId>
-               <version>1.2.0-SNAPSHOT</version>
-               <relativePath>../bmkeg-parent</relativePath>
+               <artifactId>bmkeg-as-parent</artifactId>
+               <version>1.1.5-SNAPSHOT</version>
+               <relativePath>../bmkeg-as-parent</relativePath>
        </parent>
 
        <name>VPDMf Generator System</name>
  • Cannot be build because of missing bmkegCore build :(

  • clone vpdmf-parent

git clone https://github.com/BMKEG/vpdmf-parent.git
cd vpdmf-parent
  • repair pom.xml file
diff --git a/pom.xml b/pom.xml
index 5d61835..4ff01e4 100644
--- a/pom.xml
+++ b/pom.xml
@@ -9,7 +9,7 @@
 
        <parent>
                <groupId>edu.isi.bmkeg</groupId>
-               <artifactId>bmkeg-parent</artifactId>
+               <artifactId>bmkeg-as-parent</artifactId>
                <version>1.1.5-SNAPSHOT</version>
                <relativePath>../bmkeg-parent</relativePath>
        </parent>
  • Cannot be build due to missing build of bmkeq-as-parent

This is where I gave up. Don't know why the repo owner do not mention how to build anywhere :(

@sebastianlutter
Copy link

This article mentiones install builds as well as an installation instructions, but both are not working :(

The installers are dead links

@TanujRohatgi
Copy link

I was able to fix this issue by adding a second pom.xml as the parent POM and providing its relative path in the actual pom.xml which is throwing the mentioned error.

The reference in the POM.xml

screenshot from 2017-10-23 21-40-28

I added the parent pom.xml under src , hence the relative path in the above mentioned pom.xml

screenshot from 2017-10-23 21-41-06_1

Here's the path to the parent POM.xml

https://github.com/BMKEG/bmkeg-parent/blob/d6a5649d5214e3c43b86ee9bd372ecba4c2ac1d3/pom.xml

@smacm
Copy link

smacm commented Jan 17, 2018

If you're still pursuing this, I got the build to work without changing any pom files. Starting with:
Fork the parent project: https://github.com/BMKEG/bmkeg-parent
Fork the lapdftext repo: https://github.com/BMKEG/lapdftext

Then, in bmkeg-parent, run mvn install
Then, in lapdftext, run mvn compile.

It ran to completion with no errors. FYI, the build took 2 hrs and 42 minutes on a macbook air.

@anupamsingh610
Copy link

I was able to fix this issue by adding a second pom.xml as the parent POM and providing its relative path in the actual pom.xml which is throwing the mentioned error.

The reference in the POM.xml

screenshot from 2017-10-23 21-40-28

I added the parent pom.xml under src , hence the relative path in the above mentioned pom.xml

screenshot from 2017-10-23 21-41-06_1

Here's the path to the parent POM.xml

https://github.com/BMKEG/bmkeg-parent/blob/d6a5649d5214e3c43b86ee9bd372ecba4c2ac1d3/pom.xml

In my case this pom.xml worked!
https://raw.githubusercontent.com/BMKEG/bmkeg-parent/master/pom.xml

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

8 participants