Details
-
Type: Bug
-
Status: Resolved
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: osgi-1.0
-
Fix Version/s: None
-
Component/s: OSGi Core
-
Labels:None
-
Number of attachments :
Description
When cloning jbehave-osgi from github 'mvn clean install -P bundles'
fails with the following error:
[ERROR] Failed to execute goal on project org.jbehave.osgi.core: Could not resolve dependencies for project org.jbehave.osgi:org.jbehave.osgi.core:bundle:1.0.0-SNAPSHOT: Could not find artifact org.jbehave:jbehave-core:jar:4.0-SNAPSHOT -> [Help 1]
After adding an appropriate snapshot repository the build fails with the following error:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project org.jbehave.osgi.core: Compilation failure: Compilation failure:
[ERROR] /other/dev/java/osgi/github/jbehave-osgi/jbehave-osgi-bundles/org.jbehave.osgi.core/src/main/java/org/jbehave/osgi/core/io/LoadFromBundleClasspath.java:[24,30] classLoader has private access in org.jbehave.core.io.LoadFromClasspath
[ERROR] /other/dev/java/osgi/github/jbehave-osgi/jbehave-osgi-bundles/org.jbehave.osgi.core/src/main/java/org/jbehave/osgi/core/io/LoadFromBundleClasspath.java:[26,59] classLoader has private access in org.jbehave.core.io.LoadFromClasspath
[ERROR] /other/dev/java/osgi/github/jbehave-osgi/jbehave-osgi-bundles/org.jbehave.osgi.core/src/main/java/org/jbehave/osgi/core/embedder/EmbedderOsgi.java:[18,17] no suitable constructor found for Embedder(org.jbehave.core.embedder.StoryMapper,org.jbehave.core.embedder.PerformableTree,org.jbehave.core.embedder.PrintStreamEmbedderMonitor,org.jbehave.osgi.core.configuration.ConfigurationOsgi)
[ERROR] constructor org.jbehave.core.embedder.Embedder.Embedder(org.jbehave.core.embedder.StoryMapper,org.jbehave.core.embedder.PerformableTree,org.jbehave.core.embedder.EmbedderMonitor) is not applicable
[ERROR] (actual and formal argument lists differ in length)
[ERROR] constructor org.jbehave.core.embedder.Embedder.Embedder() is not applicable
[ERROR] (actual and formal argument lists differ in length)
[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 <goals> -rf :org.jbehave.osgi.core
Activity
Field | Original Value | New Value |
---|---|---|
Status | Open [ 1 ] | Resolved [ 5 ] |
Assignee | Cristiano Gavião [ cvgaviao ] | |
Resolution | Fixed [ 1 ] |
Alexander,
are you sure that you did the following steps before build jbehave-osgi?
couldn't reproduce your error.