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

[master] mvn -T4 clean install -DskipTests fails #2527

Closed
fbiville opened this issue Jun 7, 2014 · 8 comments
Closed

[master] mvn -T4 clean install -DskipTests fails #2527

fbiville opened this issue Jun 7, 2014 · 8 comments

Comments

@fbiville
Copy link
Contributor

fbiville commented Jun 7, 2014

After a fresh clone of Neo4j repository, I tried to build Neo from the root module and I got:

[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:12 min (Wall Clock)
[INFO] Finished at: 2014-06-07T07:49:38+01:00
[INFO] Final Memory: 34M/298M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project neo4j-kernel: Could not resolve dependencies for project org.neo4j:neo4j-kernel:jar:2.2-SNAPSHOT: The following artifacts could not be resolved: org.jacorb:jacorb:jar:2.2.3-jonas-patch-20071018, org.jacorb:jacorb-idl:jar:2.2.3-jonas-patch-20071018: Could not find artifact org.jacorb:jacorb:jar:2.2.3-jonas-patch-20071018 in central (http://repo.maven.apache.org/maven2) -> [Help 1]
[ERROR] 1 KB   
[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] 1 KB   
[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/DependencyResolutionException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :neo4j-kernel

Are you guys using an undocumented settings.xml configuration or is there maybe a missing repository configuration on the kernel module POM?

@fbiville
Copy link
Contributor Author

fbiville commented Jun 7, 2014

FYI

➜  neo4j git:(master) mvn -version
Apache Maven 3.2.1 (ea8b2b07643dbb1b84b6d16e1f08391b666bc1e9; 2014-02-14T18:37:52+01:00)
Maven home: xxx/maven
Java version: 1.7.0_55, vendor: Oracle Corporation
Java home: xxx/jdk1.7.0_55/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.11.0-22-generic", arch: "amd64", family: "unix"

@chrisvest
Copy link
Contributor

I don't do anything special to make it work. It looks like jotm-core has an unversioned dependency on carol, which in turn has an unversioned dependency on jacorb, which for some reason resolves to the jonas-patch version.

My installation finds it in this repository: http://m2.neo4j.org/content/repositories/ow2-leagcy/ -- but I don't know why it wants that version in the first place.

Does it work if you add org.jacorb:jacorb:2.3.1 and org.jacorb:jacorb-idl:2.3.1 to dependency-management?
https://github.com/neo4j/neo4j/blob/master/pom.xml#L509

@fbiville
Copy link
Contributor Author

fbiville commented Jun 7, 2014

Hmmm, nope, the build is still failing on kernel module. However, the error slightly changed:
I also forgot (although it should not really matter here), I run mvn -T4.

[ERROR] Failed to execute goal on project neo4j-kernel: Could not resolve dependencies for project org.neo4j:neo4j-kernel:jar:2.2-SNAPSHOT: Failed to collect dependencies at org.ow2.jotm:jotm-core:jar:2.2.3 -> org.ow2.carol:carol:jar:3.0.8 -> org.jacorb:jacorb:jar:2.3.1 -> nanocontainer:nanocontainer-remoting:jar:1.0-RC-1 -> picocontainer:picocontainer:jar:${picocontainer.version}: Failed to read artifact descriptor for picocontainer:picocontainer:jar:${picocontainer.version}: Could not transfer artifact picocontainer:picocontainer:pom:${picocontainer.version} from/to central (http://repo.maven.apache.org/maven2): Illegal character in path at index 65: http://repo.maven.apache.org/maven2/picocontainer/picocontainer/${picocontainer.version}/picocontainer-${picocontainer.version}.pom -> [Help 1]

@fbiville fbiville changed the title [master] mvn clean install -DskipTests fails [master] mvn -T4 clean install -DskipTests fails Jun 7, 2014
@jotomo
Copy link
Contributor

jotomo commented Jun 7, 2014

Without having anything in settings.xml and removing jacorb files from the maven cache, they're resolved to http://maven.ow2.org/maven2/org/jacorb/jacorb-idl/2.2.3-jonas-patch-20071018/jacorb-idl-2.2.3-jonas-patch-20071018.jar for me.
I've seen maven fail in all sorts of ways, including having corrupted files in the cache without noticing, producing the strangest errors. If you've tried everything else and got the bandwith you could try wiping/moving ~/.m2/repository.

@fbiville
Copy link
Contributor Author

fbiville commented Jun 8, 2014

Hmmm, I just deleted my whole repository but that's not getting any better, unfortunately.

[ERROR] Failed to execute goal on project neo4j-kernel: Could not resolve dependencies for project org.neo4j:neo4j-kernel:jar:2.2-SNAPSHOT: Failed to collect dependencies at org.ow2.jotm:jotm-core:jar:2.2.3 -> org.ow2.carol:carol:jar:3.0.8 -> org.jacorb:jacorb:jar:2.3.1 -> nanocontainer:nanocontainer-remoting:jar:1.0-RC-1 -> picocontainer:picocontainer:jar:${picocontainer.version}: Failed to read artifact descriptor for picocontainer:picocontainer:jar:${picocontainer.version}: Could not transfer artifact picocontainer:picocontainer:pom:${picocontainer.version} from/to central (http://repo.maven.apache.org/maven2): Illegal character in path at index 65: http://repo.maven.apache.org/maven2/picocontainer/picocontainer/${picocontainer.version}/picocontainer-${picocontainer.version}.pom -> [Help 1]

@jotomo
Copy link
Contributor

jotomo commented Jun 8, 2014

Running mvn dependency:tree:

[INFO] --- maven-dependency-plugin:2.8:tree (default-cli) @ neo4j-kernel ---
[INFO] org.neo4j:neo4j-kernel:jar:2.2-SNAPSHOT
[INFO] +- org.neo4j:neo4j-primitive-collections:jar:2.2-SNAPSHOT:compile
[INFO] +- org.neo4j:neo4j-io:jar:2.2-SNAPSHOT:compile
[INFO] +- org.apache.geronimo.specs:geronimo-jta_1.1_spec:jar:1.1.1:compile
[INFO] +- ch.qos.logback:logback-classic:jar:1.1.2:compile
[INFO] |  +- ch.qos.logback:logback-core:jar:1.1.2:compile
[INFO] |  \- org.slf4j:slf4j-api:jar:1.6.2:compile
[INFO] +- org.neo4j:neo4j-io:test-jar:tests:2.2-SNAPSHOT:test
[INFO] +- junit:junit:jar:4.11:test
[INFO] |  \- org.hamcrest:hamcrest-core:jar:1.3:test
[INFO] +- org.hamcrest:hamcrest-all:jar:1.3:test
[INFO] +- com.google.code.gson:gson:jar:2.2.2:test
[INFO] +- org.mockito:mockito-all:jar:1.9.0:test
[INFO] +- org.powermock:powermock-module-junit4:jar:1.4.12:test
[INFO] |  \- org.powermock:powermock-module-junit4-common:jar:1.4.12:test
[INFO] |     +- org.powermock:powermock-core:jar:1.4.12:test
[INFO] |     |  \- org.javassist:javassist:jar:3.16.1-GA:test
[INFO] |     \- org.powermock:powermock-reflect:jar:1.4.12:test
[INFO] |        \- org.objenesis:objenesis:jar:1.2:test
[INFO] +- org.powermock:powermock-api-mockito:jar:1.4.12:test
[INFO] |  \- org.powermock:powermock-api-support:jar:1.4.12:test
[INFO] +- org.ow2.jotm:jotm-core:jar:2.2.3:test
[INFO] |  +- org.ow2.spec.ee:ow2-jta-1.1-spec:jar:1.0.8:test
[INFO] |  +- org.ow2.carol:carol:jar:3.0.8:test
[INFO] |  |  +- commons-logging:commons-logging:jar:1.1:test
[INFO] |  |  |  +- log4j:log4j:jar:1.2.16:test
[INFO] |  |  |  +- logkit:logkit:jar:1.0.1:test
[INFO] |  |  |  \- javax.servlet:servlet-api:jar:2.3:test
[INFO] |  |  +- org.ow2.carol:carol-interceptors:jar:1.0.1:test
[INFO] |  |  +- org.ow2.carol.irmi:irmi:jar:1.1.2:test
[INFO] |  |  |  \- commons-collections:commons-collections:jar:3.2:test
[INFO] |  |  +- org.jacorb:jacorb:jar:2.2.3-jonas-patch-20071018:test
[INFO] |  |  |  \- avalon-framework:avalon-framework:jar:4.1.5:test
[INFO] |  |  \- org.jacorb:jacorb-idl:jar:2.2.3-jonas-patch-20071018:test
[INFO] |  +- commons-logging:commons-logging-api:jar:1.1:test
[INFO] |  \- org.objectweb.howl:howl:jar:1.0.1-1:test
[INFO] +- geronimo-spec:geronimo-spec-j2ee:jar:1.4-rc4:test
[INFO] +- commons-codec:commons-codec:jar:1.7:test
[INFO] \- com.sun.tools:tools:jar:1.7:system

And running the build as per your command completes successfully (skipping the browser module)
It seems that, in your setup, the dependency org.ow2.carol:carol pulls in org.jacorb:jacorb in version 2.3.1 rather than 2.2.3-jonas-patch-xxx ...
I'm running maven 3.0.4. There are some incompatibilities in >=3.1 I've heard. Maybe try running with 3.0.x, otherwise I'm out of ideas.

@jotomo
Copy link
Contributor

jotomo commented Jun 8, 2014

Forget that part about 2.3.1 vs 2.2.3 version, I missed that that's the explicit version you selected based on Chris' suggestion.

@jakewins
Copy link
Contributor

jakewins commented Dec 6, 2015

The JOTM dependency has been removed from the kernel tests.

@jakewins jakewins closed this as completed Dec 6, 2015
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