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

Non-resolvable parent POM: Could not find artifact #44

Open
Hanan2 opened this issue Jul 26, 2018 · 8 comments
Open

Non-resolvable parent POM: Could not find artifact #44

Hanan2 opened this issue Jul 26, 2018 · 8 comments

Comments

@Hanan2
Copy link

Hanan2 commented Jul 26, 2018

Hello there

i downloaded Pellet zip folder and I tried to run the maven project but I could not choose "main class".
Also, when I run the project, I got the following run error.

The build could not read 1 project -> [Help 1]

The project com.clarkparsia.pellet:pellet-owlapi:2.4.0-SNAPSHOT (/Users/han/NetBeansProjects/pellet-master/owlapi/pom.xml) has 1 error
Non-resolvable parent POM: Could not find artifact com.clarkparsia.pellet:pellet-parent:pom:2.4.0-SNAPSHOT and 'parent.relativePath' points at wrong local POM @ line 4, column 10 -> [Help 2]

To see the full stack trace of the errors, re-run Maven with the -e switch.
Re-run Maven using the -X switch to enable full debug logging.

For more information about the errors and possible solutions, please read the following articles:
[Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException

How can I solve this problem in order to run the project properly?

@ignazio1977
Copy link
Contributor

I don't get the same failure. I had an error saying a certain OWLAPI version was not available.

In the root pom, locate this line:

    <owlapi.version>[4.0.2,4.2)</owlapi.version>

This is a range version number, and is not resolved properly. Set it to a specified version, such as 4.2.8 (that's the OWLAPI version used in many Protege versions). That worked for me, compiling from the command line with

mvn clean test

@Hanan2
Copy link
Author

Hanan2 commented Jul 26, 2018

when you download Pellet master folder, which maven project did you run?
because the folder has several maven projects.
also, when I select for example "owlapi" maven project to open and run in netbeans, I got "unloadable" text next to "owlapi" in projects list.
There is any problem with opening the project? or are there any specific way to open and run the project.?

@ignazio1977
Copy link
Contributor

when you download Pellet master folder, which maven project did you run?

There is a pom.xml file in the root. That's the root project, the rest are its modules. You cannot build one module outside the context of the root project.

@Hanan2
Copy link
Author

Hanan2 commented Jul 26, 2018

Sorry for this question but I am new to maven projects and this projects have several sub maven projects. I searched in Pellet-master folder about "pom.xml" file and I found 14 pom.xml files.
I am confused, Could you please tell me thankfully in which directory/folder the root pom.xml is available?

@ignazio1977
Copy link
Contributor

The root (or parent) pom.xml file is in the pellet-master folder - same folder as the owlapi folder.

@Hanan2
Copy link
Author

Hanan2 commented Jul 30, 2018

when I run root POM, I got this error. How can I fix it.

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project pellet-core: Compilation failure
[ERROR] /Users/ha/git/pellet2/core/src/main/java/org/mindswap/pellet/utils/MultiValueMap.java:[70,20] name clash: remove(K,V) in org.mindswap.pellet.utils.MultiValueMap and remove(java.lang.Object,java.lang.Object) in java.util.HashMap have the same erasure, yet neither overrides the other
[ERROR] -> [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/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn -rf :pellet-core

@ignazio1977
Copy link
Contributor

That compile issue existed in an ancient Pellet version. The current master has:

 public boolean remove(Object key, Object value) {
    boolean removed = false;
	
    Set<V> values = get( key );

This will compile successfully.

@Hanan2
Copy link
Author

Hanan2 commented Jul 31, 2018

thanks for your suggestion. The project has been built successfully in Eclipse.

I have a question plz, I would like to run one file at a time from example module.
how could I run/compile a specific java file in the project.?

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

2 participants