[
https://issues.apache.org/jira/browse/TINKERPOP3-636?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
stephen mallette closed TINKERPOP3-636.
---------------------------------------
Resolution: Won't Fix
Assignee: stephen mallette
[~dalaro] knew the problem almost immediately - the {{gremlin-shaded}} project
doesn't execute prior to the "package" phase and thus is not available to the
other modules that depend on it. unfortunately, the shade plugin does not
allow you to bind to a phase prior to "package". If you attempt that you get
this error:
{code}
[ERROR] - You have bound the goal to a lifecycle phase before "package". Please
[ERROR] remove this binding from your POM such that the goal will be run in
[ERROR] the proper phase.
{code}
Given that this works in aggregate with the more important {{mvn install}} and
that you can run {{mvn test}} against projects individually, I don't think
making big changes to our build structure to fix this is necessary. If someone
has a reasonable fix here to allow this to work without the hack, I'd be happy
to see a pull request.
> mvn test fails in GryoMapperTest
> --------------------------------
>
> Key: TINKERPOP3-636
> URL: https://issues.apache.org/jira/browse/TINKERPOP3-636
> Project: TinkerPop 3
> Issue Type: Bug
> Components: build-release
> Reporter: Matt Frantz
> Assignee: stephen mallette
> Priority: Minor
>
> {noformat}
> mvn test
> ...
> Running org.apache.tinkerpop.gremlin.structure.io.gryo.GryoMapperTest
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.001 sec <<<
> FAILURE! - in org.apache.tinkerpop.gremlin.structure.io.gryo.GryoMapperTest
> shouldGetMostRecentVersion(org.apache.tinkerpop.gremlin.structure.io.gryo.GryoMapperTest)
> Time elapsed: 0.001 sec <<< ERROR!
> java.lang.NoClassDefFoundError: org/apache/tinkerpop/shaded/kryo/StreamFactory
> at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
> at
> org.apache.tinkerpop.gremlin.structure.io.gryo.GryoMapperTest.shouldGetMostRecentVersion(GryoMapperTest.java:31)
> ...
> {noformat}
> The odd thing is that if you only run gremlin-core, the failure does not
> occur:
> {noformat}
> mvn --projects gremlin-core test
> ...
> Running org.apache.tinkerpop.gremlin.structure.io.gryo.GryoMapperTest
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec - in
> org.apache.tinkerpop.gremlin.structure.io.gryo.GryoMapperTest
> ...
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)