You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Jason van Zyl (JIRA)" <ji...@codehaus.org> on 2009/12/30 03:38:56 UTC
[jira] Commented: (MNG-3028) plugin configuration issue
(DefaultPluginManager.mergeMojoConfiguration)
[ http://jira.codehaus.org/browse/MNG-3028?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=204503#action_204503 ]
Jason van Zyl commented on MNG-3028:
------------------------------------
Reopen if this is still an issue.
> plugin configuration issue (DefaultPluginManager.mergeMojoConfiguration)
> ------------------------------------------------------------------------
>
> Key: MNG-3028
> URL: http://jira.codehaus.org/browse/MNG-3028
> Project: Maven 2 & 3
> Issue Type: Bug
> Components: Embedding
> Affects Versions: 3.0
> Reporter: Cliff Resnick
> Assignee: Jason van Zyl
> Priority: Blocker
> Fix For: 3.x
>
> Attachments: sample-ejb-config.zip
>
>
> The embedder is throwing an error while configuring the xdoclet-maven-plugin.
> The error message I get is:
> "on the command line, specify: '-DdummyExpression=VALUE' Cause: Class 'org.codehaus.classworlds.ClassRealm' cannot be instantiated"
> In debugging, I noticed that the "dummyExpression" is being introduced in DefaultPluginManager.mergeMojoConfiguration, which takes two parameters (pomConfiguration, mojoDescriptor)
> pomConfiguration (DOM)=
> <configuration>
> <tasks>
> <ejbdoclet excludedtags="@version,@author" destdir="${project.build.directory}/generated-sources/xdoclet" ejbspec="2.0">
> <fileset dir="src/main/java">
> <include name="**/*Bean.java"/>
> </fileset>
> <utilobject destdir="${project.build.directory}/generated-sources/xdoclet"></utilobject>
> <mdb destdir="${project.build.directory}/generated-sources/xdoclet"></mdb>
> <localinterface destdir="${project.build.directory}/generated-sources/xdoclet"/>
> <localhomeinterface destdir="${project.build.directory}/generated-sources/xdoclet"/>
> <remoteinterface destdir="${project.build.directory}/generated-sources/xdoclet"/>
> <homeinterface destdir="${project.build.directory}/generated-sources/xdoclet"/>
> <deploymentdescriptor destdir="${project.build.directory}/classes/META-INF"></deploymentdescriptor>
> <jboss destdir="${project.build.directory}/classes/META-INF" version="4.0"></jboss>
> </ejbdoclet>
> </tasks>
> <classRealm/>
> <generatedSourcesDirectory/>
> <project/>
> <sourceDirectory/>
> </configuration>
> mojoDescriptor =
> org.apache.maven.plugin.descriptor.MojoDescriptor [role: 'org.apache.maven.plugin.Mojo', hint: 'org.codehaus.mojo:xdoclet-maven-plugin:1.0-alpha-2:xdoclet' realm: 'org.codehaus.mojo:xdoclet-maven-plugin']
> what is returned is:
> <?xml version="1.0" encoding="UTF-8"?>
> <configuration>
> <!-- where did this come from?: -->
> <classRealm implementation="org.codehaus.classworlds.ClassRealm">${dummyExpression}</classRealm>
> <generatedSourcesDirectory implementation="java.lang.String">${project.build.directory}/generated-sources/xdoclet</generatedSourcesDirectory>
> <project implementation="org.apache.maven.project.MavenProject">${project}</project>
> <sourceDirectory implementation="java.lang.String">${basedir}/src/main/java</sourceDirectory>
> <tasks implementation="org.apache.tools.ant.Target">
> <ejbdoclet excludedtags="@version,@author" destdir="${project.build.directory}/generated-sources/xdoclet" ejbspec="2.0">
> <fileset dir="src/main/java">
> <include name="**/*Bean.java"/>
> </fileset>
> <utilobject destdir="${project.build.directory}/generated-sources/xdoclet"></utilobject>
> <mdb destdir="${project.build.directory}/generated-sources/xdoclet"></mdb>
> <localinterface destdir="${project.build.directory}/generated-sources/xdoclet"/>
> <localhomeinterface destdir="${project.build.directory}/generated-sources/xdoclet"/>
> <remoteinterface destdir="${project.build.directory}/generated-sources/xdoclet"/>
> <homeinterface destdir="${project.build.directory}/generated-sources/xdoclet"/>
> <deploymentdescriptor destdir="${project.build.directory}/classes/META-INF"></deploymentdescriptor>
> <jboss destdir="${project.build.directory}/classes/META-INF" version="4.0"></jboss>
> </ejbdoclet>${tasks}</tasks>
> </configuration>
> The top-level stack trace is kind of misleading:
> org.apache.maven.lifecycle.LifecycleExecutionException: Error configuring: org.codehaus.mojo:xdoclet-maven-plugin. Reason: Unable to parse the created DOM for plugin configuration
> If it helps, here is the original plugin config from my pom:
> <plugin>
> <groupId>org.codehaus.mojo</groupId>
> <artifactId>xdoclet-maven-plugin</artifactId>
> <executions>
> <execution>
> <phase>generate-sources</phase>
> <goals>
> <goal>xdoclet</goal>
> </goals>
> <configuration>
> <tasks>
> <ejbdoclet excludedtags="@version,@author" destdir="${project.build.directory}/generated-sources/xdoclet" ejbspec="2.0">
> <fileset dir="src/main/java">
> <include name="**/*Bean.java" />
> </fileset>
> <utilobject destdir="${project.build.directory}/generated-sources/xdoclet">
> </utilobject>
> <mdb destdir="${project.build.directory}/generated-sources/xdoclet">
> </mdb>
> <localinterface destdir="${project.build.directory}/generated-sources/xdoclet" />
> <localhomeinterface destdir="${project.build.directory}/generated-sources/xdoclet" />
> <remoteinterface destdir="${project.build.directory}/generated-sources/xdoclet" />
> <homeinterface destdir="${project.build.directory}/generated-sources/xdoclet" />
> <deploymentdescriptor destdir="${project.build.directory}/classes/META-INF">
> </deploymentdescriptor>
> <jboss destdir="${project.build.directory}/classes/META-INF" version="4.0">
> </jboss>
> </ejbdoclet>
> </tasks>
> </configuration>
> </execution>
> </executions>
> </plugin>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira