You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Felix Meschberger (JIRA)" <ji...@apache.org> on 2008/06/13 14:50:46 UTC

[jira] Created: (SLING-532) Latest maven-sling-plugin fails to run due to missing dependencies

Latest maven-sling-plugin fails to run due to missing dependencies
------------------------------------------------------------------

                 Key: SLING-532
                 URL: https://issues.apache.org/jira/browse/SLING-532
             Project: Sling
          Issue Type: Bug
          Components: Maven Plugins
            Reporter: Felix Meschberger
            Assignee: Felix Meschberger
             Fix For: 2.0.1


Reported by Alex Klimetschek:

when I run the newest maven sling plugin (2.0.1-incbuator-SNAPSHOT,
built from current trunk), I get an error of a missing
commons-httpclient class, see below. I run it with the full
groupId/artifactId because the project does not contain the
maven-sling-plugin configuration.

After having a look at the maven-sling-plugin pom and recent changes,
I have no clue what's wrong here... I didn't see anything what affects
the dependency to commons-httpclient.

mvn -e -Dsling.url=http://localhost:8080/wcms/system/console
org.apache.sling:maven-sling-plugin:2.0.1-incubator-SNAPSHOT:install

[...]

[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Internal error in the plugin manager executing goal
'org.apache.sling:maven-sling-plugin:2.0.1-incubator-SNAPSHOT:install':
Unable to find the mojo
'org.apache.sling:maven-sling-plugin:2.0.1-incubator-SNAPSHOT:install'
in the plugin 'org.apache.sling:maven-sling-plugin'
org/apache/commons/httpclient/methods/multipart/PartSource
[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Internal error
in the plugin manager executing goal
'org.apache.sling:maven-sling-plugin:2.0.1-incubator-SNAPSHOT:install':
Unable to find the mojo
'org.apache.sling:maven-sling-plugin:2.0.1-incubator-SNAPSHOT:install'
in the plugin 'org.apache.sling:maven-sling-plugin'
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:543)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:493)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:463)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.PluginManagerException: Unable to
find the mojo 'org.apache.sling:maven-sling-plugin:2.0.1-incubator-SNAPSHOT:install'
in the plugin 'org.apache.sling:maven-sling-plugin'
        at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:571)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:421)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
        ... 16 more
Caused by: org.codehaus.plexus.component.repository.exception.ComponentLookupException:
Unable to lookup component
'org.apache.maven.plugin.Mojoorg.apache.sling:maven-sling-plugin:2.0.1-incubator-SNAPSHOT:install',
it could not be created
        at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:335)
        at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:440)
        at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:562)
        ... 18 more
Caused by: org.codehaus.plexus.component.factory.ComponentInstantiationException:
Could not instanciate component: role: 'null', implementation:
'org.apache.sling.maven.bundlesupport.BundleInstallMojo'
        at org.codehaus.plexus.component.factory.java.JavaComponentFactory.makeException(JavaComponentFactory.java:77)
        at org.codehaus.plexus.component.factory.java.JavaComponentFactory.newInstance(JavaComponentFactory.java:62)
        at org.codehaus.plexus.DefaultPlexusContainer.createComponentInstance(DefaultPlexusContainer.java:1464)
        at org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance(AbstractComponentManager.java:93)
        at org.codehaus.plexus.component.manager.PerLookupComponentManager.getComponent(PerLookupComponentManager.java:48)
        at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:331)
        ... 20 more
Caused by: java.lang.NoClassDefFoundError:
org/apache/commons/httpclient/methods/multipart/PartSource
        at java.lang.Class.getDeclaredConstructors0(Native Method)
        at java.lang.Class.privateGetDeclaredConstructors(Class.java:2357)
        at java.lang.Class.getConstructor0(Class.java:2671)
        at java.lang.Class.newInstance0(Class.java:321)
        at java.lang.Class.newInstance(Class.java:303)
        at org.codehaus.plexus.component.factory.java.JavaComponentFactory.newInstance(JavaComponentFactory.java:44)
        ... 24 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2 seconds
[INFO] Finished at: Thu Jun 12 17:44:11 CEST 2008
[INFO] Final Memory: 4M/7M
[INFO] ------------------------------------------------------------------------


The problem is the change in the default scope of the http client library as well as the exclusion of commons-logging as a transitive dependency.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (SLING-532) Latest maven-sling-plugin fails to run due to missing dependencies

Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SLING-532?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Felix Meschberger closed SLING-532.
-----------------------------------

    Resolution: Fixed

Fixed scope and missing dependency in Rev. 667511. Works now.

> Latest maven-sling-plugin fails to run due to missing dependencies
> ------------------------------------------------------------------
>
>                 Key: SLING-532
>                 URL: https://issues.apache.org/jira/browse/SLING-532
>             Project: Sling
>          Issue Type: Bug
>          Components: Maven Plugins
>            Reporter: Felix Meschberger
>            Assignee: Felix Meschberger
>             Fix For: 2.0.1
>
>
> Reported by Alex Klimetschek:
> when I run the newest maven sling plugin (2.0.1-incbuator-SNAPSHOT,
> built from current trunk), I get an error of a missing
> commons-httpclient class, see below. I run it with the full
> groupId/artifactId because the project does not contain the
> maven-sling-plugin configuration.
> After having a look at the maven-sling-plugin pom and recent changes,
> I have no clue what's wrong here... I didn't see anything what affects
> the dependency to commons-httpclient.
> mvn -e -Dsling.url=http://localhost:8080/wcms/system/console
> org.apache.sling:maven-sling-plugin:2.0.1-incubator-SNAPSHOT:install
> [...]
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Internal error in the plugin manager executing goal
> 'org.apache.sling:maven-sling-plugin:2.0.1-incubator-SNAPSHOT:install':
> Unable to find the mojo
> 'org.apache.sling:maven-sling-plugin:2.0.1-incubator-SNAPSHOT:install'
> in the plugin 'org.apache.sling:maven-sling-plugin'
> org/apache/commons/httpclient/methods/multipart/PartSource
> [INFO] ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: Internal error
> in the plugin manager executing goal
> 'org.apache.sling:maven-sling-plugin:2.0.1-incubator-SNAPSHOT:install':
> Unable to find the mojo
> 'org.apache.sling:maven-sling-plugin:2.0.1-incubator-SNAPSHOT:install'
> in the plugin 'org.apache.sling:maven-sling-plugin'
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:543)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:493)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:463)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>         at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>         at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>         at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: org.apache.maven.plugin.PluginManagerException: Unable to
> find the mojo 'org.apache.sling:maven-sling-plugin:2.0.1-incubator-SNAPSHOT:install'
> in the plugin 'org.apache.sling:maven-sling-plugin'
>         at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:571)
>         at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:421)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
>         ... 16 more
> Caused by: org.codehaus.plexus.component.repository.exception.ComponentLookupException:
> Unable to lookup component
> 'org.apache.maven.plugin.Mojoorg.apache.sling:maven-sling-plugin:2.0.1-incubator-SNAPSHOT:install',
> it could not be created
>         at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:335)
>         at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:440)
>         at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:562)
>         ... 18 more
> Caused by: org.codehaus.plexus.component.factory.ComponentInstantiationException:
> Could not instanciate component: role: 'null', implementation:
> 'org.apache.sling.maven.bundlesupport.BundleInstallMojo'
>         at org.codehaus.plexus.component.factory.java.JavaComponentFactory.makeException(JavaComponentFactory.java:77)
>         at org.codehaus.plexus.component.factory.java.JavaComponentFactory.newInstance(JavaComponentFactory.java:62)
>         at org.codehaus.plexus.DefaultPlexusContainer.createComponentInstance(DefaultPlexusContainer.java:1464)
>         at org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance(AbstractComponentManager.java:93)
>         at org.codehaus.plexus.component.manager.PerLookupComponentManager.getComponent(PerLookupComponentManager.java:48)
>         at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:331)
>         ... 20 more
> Caused by: java.lang.NoClassDefFoundError:
> org/apache/commons/httpclient/methods/multipart/PartSource
>         at java.lang.Class.getDeclaredConstructors0(Native Method)
>         at java.lang.Class.privateGetDeclaredConstructors(Class.java:2357)
>         at java.lang.Class.getConstructor0(Class.java:2671)
>         at java.lang.Class.newInstance0(Class.java:321)
>         at java.lang.Class.newInstance(Class.java:303)
>         at org.codehaus.plexus.component.factory.java.JavaComponentFactory.newInstance(JavaComponentFactory.java:44)
>         ... 24 more
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 2 seconds
> [INFO] Finished at: Thu Jun 12 17:44:11 CEST 2008
> [INFO] Final Memory: 4M/7M
> [INFO] ------------------------------------------------------------------------
> The problem is the change in the default scope of the http client library as well as the exclusion of commons-logging as a transitive dependency.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.