maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Karl Heinz Marbaise (JIRA)" <>
Subject [jira] (MASSEMBLY-671) Cryptic debug warning message needs improvement and/or documentation
Date Fri, 07 Mar 2014 19:27:59 GMT


Karl Heinz Marbaise closed MASSEMBLY-671.

    Resolution: Not A Bug

I have create a [sample github project|]
with Bensons suggestions. 
The question is in this case if a non existings directory should produce a warning or fail.
The example just produces an zip which does not contain the given directory {{something}}
as i would expect it. So from my point of view this looks like correct behaviour. I someone
has supplementals to the example just fork and send pull request so we have a based on which
we can discuss this issue. From my current point of view i can't reproduce a wrong behaviour
so i will close the issue. If you have objections please don't hesitate to reopen the issue.

> Cryptic debug warning message needs improvement and/or documentation
> --------------------------------------------------------------------
>                 Key: MASSEMBLY-671
>                 URL:
>             Project: Maven Assembly Plugin
>          Issue Type: Bug
>          Components: component descriptor
>    Affects Versions: 2.2.1, 2.4
>         Environment: irrelevant
>            Reporter: Steve Cohen
> I have used the assembly plugin both versions 2.4 and 2.2.1.  While the plugin basically
works, I have some problems with it, (see MASSEMBLY-670), which I suspect may be related to
the following message that shows up when running Maven in debug mode (-X):
> {noformat}
> [DEBUG] All known ContainerDescriptorHandler components: [plexus, metaInf-spring, metaInf-services,
> [DEBUG] Cannot find ArtifactResolver with hint: project-cache-aware
> org.codehaus.plexus.component.repository.exception.ComponentLookupException: java.util.NoSuchElementException
>       role: org.apache.maven.artifact.resolver.ArtifactResolver
>   roleHint: project-cache-aware
>         at org.codehaus.plexus.DefaultPlexusContainer.lookup(
>         at org.codehaus.plexus.DefaultPlexusContainer.lookup(
>         at org.apache.maven.shared.repository.DefaultRepositoryAssembler.contextualize(
>         at org.sonatype.guice.plexus.lifecycles.PlexusLifecycleManager.contextualize(
>         at org.sonatype.guice.plexus.lifecycles.PlexusLifecycleManager.manageLifecycle(
>         at org.sonatype.guice.plexus.lifecycles.PlexusLifecycleManager.onProvision(
>         at$Provision.provision(
>         at
>         at
>         at
>         at$
>         at
>         at
>         at$1$1.get(
>         at
>         at$3$
>         at
>         at$3.get(
>         at org.sonatype.guice.bean.locators.LazyBeanEntry.getValue(
>         at org.sonatype.guice.plexus.locators.LazyPlexusBean.getValue(
>         at org.sonatype.guice.bean.locators.EntryListAdapter$
>         at org.apache.maven.plugin.assembly.archive.DefaultAssemblyArchiver.createArchive(
>         at org.apache.maven.plugin.assembly.mojos.AbstractAssemblyMojo.execute(
>         at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(
>         at org.apache.maven.lifecycle.internal.MojoExecutor.execute(
>         at org.apache.maven.lifecycle.internal.MojoExecutor.execute(
>         at org.apache.maven.lifecycle.internal.MojoExecutor.execute(
>         at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(
>         at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(
>         at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(
>         at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(
>         at org.apache.maven.DefaultMaven.doExecute(
>        at org.apache.maven.DefaultMaven.execute(
>         at org.apache.maven.cli.MavenCli.execute(
>         at org.apache.maven.cli.MavenCli.doMain(
>         at org.apache.maven.cli.MavenCli.main(
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(
>         at java.lang.reflect.Method.invoke(
>         at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(
>         at org.codehaus.plexus.classworlds.launcher.Launcher.launch(
>         at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(
>         at org.codehaus.plexus.classworlds.launcher.Launcher.main(
> Caused by: java.util.NoSuchElementException
>         at java.util.Collections$EmptySet$
>         at org.codehaus.plexus.DefaultPlexusContainer.lookup(
>         ... 43 more
> {noformat}
> This message is singularly unhelpful.  Evidently there is something that the plugin doesn't
like about my deployment descriptor, but this message tells me nothing that would help me
get to the bottom of what that is.  And despite this message, the plugin goes on to give me
essentially what I want for an assembly (with the exception of the problem in MASSEMBLY-670).
> Users should have better help here in creating assembly descriptors.  Regardless of what
is "wrong" (what unwritten law was violated) with my assembly descriptor, a more informative
error message or at least documentation should be available.
> I am not alone, here.  Google "Cannot find ArtifactResolver with hint: project-cache-aware"
and many hits will be found, most of them unanswered.

This message was sent by Atlassian JIRA

View raw message