[
http://jira.codehaus.org/browse/MNG-3028?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Brett Porter updated MNG-3028:
------------------------------
Priority: Blocker
Fix Version/s: (was: Reviewed Pending Version Assignment)
2.1.x
Component/s: Embedding
> plugin configuration issue (DefaultPluginManager.mergeMojoConfiguration)
> ------------------------------------------------------------------------
>
> Key: MNG-3028
> URL: http://jira.codehaus.org/browse/MNG-3028
> Project: Maven 2
> Issue Type: Bug
> Components: Embedding
> Affects Versions: 2.1.x
> Reporter: Cliff Resnick
> Assignee: Jason van Zyl
> Priority: Blocker
> Fix For: 2.1.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