Is the file readable/executable by your account? If so, perhaps it's the
plugin descriptor.

Go ahead and send me the
/home/joachim/.m2/repository/be/unid/Uni-d-generate/0.8-SNAPSHOT/Uni-
d-generate-0.8-SNAPSHOT.jar file (not to this group, though). I can take a
look.

Eric
[EMAIL PROTECTED]

On 10/30/06, Joachim Van der Auwera <[EMAIL PROTECTED]> wrote:

Ok, it first indicated that it is using a locally installed version,
then gives the error, the relevant bits seem to be (starting from the
plugin, continuing with the dependencies, and ending with the error
stacktrace :


[DEBUG] Uni-d-maven-plugin: resolved to version 0.8-SNAPSHOT from local
repository
[DEBUG] Skipping disabled repository central
[DEBUG] Uni-d-maven-plugin: using locally installed snapshot
[DEBUG] Retrieving parent-POM: be.unid:Uni-d::0.8-SNAPSHOT for project:
be.unid:Uni-d-maven-plugin:maven-plugin:0.8-SNAPSHOT from the repository.
[DEBUG] Skipping disabled repository central
[DEBUG] Uni-d: using locally installed snapshot
[DEBUG] Uni-d-maven-plugin: using locally installed snapshot
[DEBUG] be.unid:Uni-d-maven-plugin:maven-plugin:0.8-SNAPSHOT:runtime
(selected for runtime)
[DEBUG] Skipping disabled repository central
[DEBUG] Uni-d-generate: using locally installed snapshot
[DEBUG] Retrieving parent-POM: be.unid:Uni-d::0.8-SNAPSHOT for project:
be.unid:Uni-d-generate:jar:0.8-SNAPSHOT from the repository.
[DEBUG] Uni-d: using locally installed snapshot
[DEBUG]   be.unid:Uni-d-generate:jar:0.8-SNAPSHOT:runtime (selected for
runtime)
[DEBUG] Skipping disabled repository central
[DEBUG] Uni-d-util: using locally installed snapshot
[DEBUG] Retrieving parent-POM: be.unid:Uni-d::0.8-SNAPSHOT for project:
be.unid:Uni-d-util:jar:0.8-SNAPSHOT from the repository.
[DEBUG] Uni-d: using locally installed snapshot
[DEBUG]     be.unid:Uni-d-util:jar:0.8-SNAPSHOT:runtime (selected for
runtime)
[DEBUG]       org.jboss:jboss-common-jdbc-wrapper:jar:4.0.4:runtime
(selected for runtime)
[DEBUG]       org.javolution:javolution:jar:3.7.10:runtime (selected for
runtime)
[DEBUG]       net.sf.fscript:fscript:jar:1.17:runtime (selected for
runtime)
[DEBUG]       com.toedter:jcalendar:jar:1.3.2:runtime (selected for
runtime)
[DEBUG]       org.jboss:jboss-j2ee:jar:4.0.4:runtime (selected for
runtime)
[DEBUG]       commons-httpclient:commons-httpclient:jar:2.0.2:runtime
(selected for runtime)
[DEBUG]         commons-logging:commons-logging:jar:1.0.3:runtime
(selected for runtime)
[DEBUG]       org.jboss:jbosssx-client:jar:4.0.4:runtime (selected for
runtime)
[DEBUG]     xerces:xercesImpl:jar:2.4.0:runtime (selected for runtime)
[DEBUG]     velocity:velocity-dep:jar:1.4:runtime (selected for runtime)
[DEBUG]     jalopy:jalopy:jar:1.5rc3:runtime (selected for runtime)
[DEBUG]       log4j:log4j:jar:1.2.8:runtime (selected for runtime)
[DEBUG]     ant:ant:jar:1.6.5:runtime (selected for runtime)
[DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0.4 for
project: null:maven-project:jar:2.0.4 from the repository.
[DEBUG]   org.apache.maven:maven-project:jar:2.0.4:runtime (selected for
runtime)
[DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0.4 for
project: org.apache.maven:maven-artifact:jar:2.0.4 from the repository.
[DEBUG]     org.apache.maven:maven-artifact:jar:2.0.4:runtime (selected
for runtime)
[DEBUG]       org.codehaus.plexus:plexus-utils:jar:1.1:runtime (selected
for runtime)
[DEBUG] Retrieving parent-POM:
org.codehaus.plexus:plexus-containers::1.0.3 for project:
null:plexus-container-default:jar:1.0-alpha-9 from the repository.
[DEBUG] Retrieving parent-POM: org.codehaus.plexus:plexus::1.0.4 for
project: org.codehaus.plexus:plexus-containers:pom:1.0.3 from the
repository.
[DEBUG]
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9:runtime
(selected for runtime)
[DEBUG]       org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime
(removed - nearer found: 1.1)
[DEBUG]       classworlds:classworlds:jar:1.1-alpha-2:runtime (selected
for runtime)
[DEBUG]       junit:junit:jar:3.8.1:runtime (selected for runtime)
[DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0.4 for
project: null:maven-settings:jar:2.0.4 from the repository.
[DEBUG]     org.apache.maven:maven-settings:jar:2.0.4:runtime (selected
for runtime)
[DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0.4 for
project: org.apache.maven:maven-model:jar:2.0.4 from the repository.
[DEBUG]       org.apache.maven:maven-model:jar:2.0.4:runtime (selected
for runtime)
[DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0.4 for
project: org.apache.maven:maven-artifact-manager:jar:2.0.4 from the
repository.
[DEBUG]     org.apache.maven:maven-artifact-manager:jar:2.0.4:runtime
(selected for runtime)
[DEBUG] Retrieving parent-POM: org.apache.maven.wagon:wagon::1.0-alpha-6
for project: null:wagon-provider-api:jar:1.0-alpha-6 from the repository.
[DEBUG]
org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-6:runtime
(selected for runtime)
[DEBUG]         org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime
(removed - nearer found: 1.1)
[DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0.4 for
project: org.apache.maven:maven-repository-metadata:jar:2.0.4 from the
repository.
[DEBUG]
org.apache.maven:maven-repository-metadata:jar:2.0.4:runtime (selected
for runtime)
[DEBUG]     org.codehaus.plexus:plexus-utils:jar:1.1:runtime (selected
for runtime)
[DEBUG]     org.apache.maven:maven-model:jar:2.0.4:runtime (selected for
runtime)
[DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0.4 for
project: null:maven-profile:jar:2.0.4 from the repository.
[DEBUG]     org.apache.maven:maven-profile:jar:2.0.4:runtime (selected
for runtime)
[DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0.4 for
project: org.apache.maven:maven-plugin-api:jar:2.0.4 from the repository.
[DEBUG]   org.apache.maven:maven-plugin-api:jar:2.0.4:runtime (selected
for runtime)
[DEBUG] Uni-d-util: using locally installed snapshot
[DEBUG] Uni-d-generate: using locally installed snapshot
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Internal error in the plugin manager executing goal
'be.unid:Uni-d-maven-plugin:0.8-SNAPSHOT:generate': Error adding plugin
dependency 'be.unid:Uni-d-generate:jar' into plugin manager: Cannot add
jar resource:
/home/joachim/.m2/repository/be/unid/Uni-d-generate/0.8-SNAPSHOT/Uni-
d-generate-0.8-SNAPSHOT.jar
(error discovering new components)
input contained no data
[INFO]
------------------------------------------------------------------------
[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Internal error
in the plugin manager executing goal
'be.unid:Uni-d-maven-plugin:0.8-SNAPSHOT:generate': Error adding plugin
dependency 'be.unid:Uni-d-generate:jar' into plugin manager: Cannot add
jar resource:
/home/joachim/.m2/repository/be/unid/Uni-d-generate/0.8-SNAPSHOT/Uni-
d-generate-0.8-SNAPSHOT.jar
(error discovering new components)
    at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
DefaultLifecycleExecutor.java:538)
    at

org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
(DefaultLifecycleExecutor.java:475)
    at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
DefaultLifecycleExecutor.java:454)
    at

org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
(DefaultLifecycleExecutor.java:306)
    at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
DefaultLifecycleExecutor.java:273)
    at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
DefaultLifecycleExecutor.java:140)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
    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: Error adding
plugin dependency 'be.unid:Uni-d-generate:jar' into plugin manager:
Cannot add jar resource:
/home/joachim/.m2/repository/be/unid/Uni-d-generate/0.8-SNAPSHOT/Uni-
d-generate-0.8-SNAPSHOT.jar
(error discovering new components)
    at

org.apache.maven.plugin.DefaultPluginManager.ensurePluginContainerIsComplete
(DefaultPluginManager.java:630)
    at
org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(
DefaultPluginManager.java:519)
    at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(
DefaultPluginManager.java:390)
    at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
DefaultLifecycleExecutor.java:534)
    ... 16 more
Caused by: org.codehaus.plexus.PlexusContainerException: Cannot add jar
resource:
/home/joachim/.m2/repository/be/unid/Uni-d-generate/0.8-SNAPSHOT/Uni-
d-generate-0.8-SNAPSHOT.jar
(error discovering new components)
    at
org.codehaus.plexus.DefaultPlexusContainer.addJarResource(
DefaultPlexusContainer.java:1405)
    at

org.apache.maven.plugin.DefaultPluginManager.ensurePluginContainerIsComplete
(DefaultPluginManager.java:626)
    ... 19 more
Caused by:
org.codehaus.plexus.configuration.PlexusConfigurationException: Error
creating configuration
    at

org.apache.maven.plugin.descriptor.PluginDescriptorBuilder.buildConfiguration
(PluginDescriptorBuilder.java:306)
    at
org.apache.maven.plugin.descriptor.PluginDescriptorBuilder.build(
PluginDescriptorBuilder.java:31)
    at
org.apache.maven.plugin.MavenPluginDiscoverer.createComponentDescriptors(
MavenPluginDiscoverer.java:49)
    at

org.codehaus.plexus.component.discovery.AbstractComponentDiscoverer.findComponents
(AbstractComponentDiscoverer.java:78)
    at
org.codehaus.plexus.DefaultPlexusContainer.discoverComponents(
DefaultPlexusContainer.java:717)
    at
org.codehaus.plexus.DefaultPlexusContainer.addJarResource(
DefaultPlexusContainer.java:1396)
    ... 20 more
Caused by: java.io.EOFException: input contained no data
    at
org.codehaus.plexus.util.xml.pull.MXParser.fillBuf(MXParser.java:2979)
    at org.codehaus.plexus.util.xml.pull.MXParser.more(MXParser.java:3022)
    at
org.codehaus.plexus.util.xml.pull.MXParser.parseProlog(MXParser.java:1407)
    at
org.codehaus.plexus.util.xml.pull.MXParser.nextImpl(MXParser.java:1392)
    at org.codehaus.plexus.util.xml.pull.MXParser.next(MXParser.java:1090)
    at
org.codehaus.plexus.util.xml.Xpp3DomBuilder.build(Xpp3DomBuilder.java:172)
    at
org.codehaus.plexus.util.xml.Xpp3DomBuilder.build(Xpp3DomBuilder.java:83)
    at
org.codehaus.plexus.util.xml.Xpp3DomBuilder.build(Xpp3DomBuilder.java:48)
    at

org.apache.maven.plugin.descriptor.PluginDescriptorBuilder.buildConfiguration
(PluginDescriptorBuilder.java:302)
    ... 25 more


Thanks for looking into this,
Joachim

Eric Redmond wrote:
> Try running it in debug mode with the -X attribute.
>
> On 10/30/06, Joachim Van der Auwera <[EMAIL PROTECTED]> wrote:
>>
>> I am trying to write a custom plugin, but when I try to use it, I get
>> the following exception :
>>
>> [INFO] Internal error in the plugin manager executing goal
>> 'be.unid:Uni-d-maven-plugin:0.8-SNAPSHOT:generate': Error adding plugin
>> dependency 'be.unid:Uni-d-generate:jar' into plugin manager: Cannot add
>> jar resource:
>> /home/joachim/.m2/repository/be/unid/Uni-d-generate/0.8-SNAPSHOT/Uni-
>> d-generate-0.8-SNAPSHOT.jar
>> (error discovering new components)
>> input contained no data
>>
>> However, the jar file mentioned in the message exists at the given
>> location.
>> I am using maven 2.0.4
>>
>> Any ideas what if wrong or how I can fix/work around this?
>>
>> Thanks for the help,
>> Joachim
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
Eric Redmond
http://codehaus.org/~eredmond

Reply via email to