Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: osgi-1.0
    • Fix Version/s: None
    • Component/s: OSGi Core
    • Labels:
      None
    • Number of attachments :
      0

      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

        Hide
        Cristiano Gavião added a comment -

        Alexander,

        are you sure that you did the following steps before build jbehave-osgi?

        • cloned jbehave-core
        • moved to branch jbehave-4.x
        • run mvn -s settings.xml clean install

        couldn't reproduce your error.

        Show
        Cristiano Gavião added a comment - Alexander, are you sure that you did the following steps before build jbehave-osgi? cloned jbehave-core moved to branch jbehave-4.x run mvn -s settings.xml clean install couldn't reproduce your error.
        Hide
        Alexander Njemz added a comment -

        Hi Cristiano,

        I did now, at least. But I'm still getting the same error.

        Show
        Alexander Njemz added a comment - Hi Cristiano, I did now, at least. But I'm still getting the same error.
        Hide
        Cristiano Gavião added a comment -

        could you please open the console, go to the jbehave-core folder and type:

        git status

        and show me the result ?

        Show
        Cristiano Gavião added a comment - could you please open the console, go to the jbehave-core folder and type: git status and show me the result ?
        Hide
        Cristiano Gavião added a comment -

        Ah, I found the problem. There are some missing committed files.

        Going to push it now.

        thanks for reporting...

        Show
        Cristiano Gavião added a comment - Ah, I found the problem. There are some missing committed files. Going to push it now. thanks for reporting...
        Cristiano Gavião made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Assignee Cristiano Gavião [ cvgaviao ]
        Resolution Fixed [ 1 ]
        Hide
        Alexander Njemz added a comment -

        thanks for fixing.

        Show
        Alexander Njemz added a comment - thanks for fixing.

          People

          • Assignee:
            Cristiano Gavião
            Reporter:
            Alexander Njemz
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: