maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jethrik (JIRA)" <j...@codehaus.org>
Subject [jira] Created: (MANTRUN-111) Error related to running XSLT - v 1.3
Date Thu, 11 Jun 2009 01:45:42 GMT
Error related to running XSLT - v 1.3
-------------------------------------

                 Key: MANTRUN-111
                 URL: http://jira.codehaus.org/browse/MANTRUN-111
             Project: Maven 2.x Antrun Plugin
          Issue Type: Bug
    Affects Versions: 1.3
         Environment: Windows XP
Maven 2.1.0
            Reporter: Jethrik


The best thing for me to do is probably just try using one of the Maven XSLT plugins, which
is what I'll do next, but I figured I'd report this.  My POM looks like this:

			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-antrun-plugin</artifactId>
				<version>1.3</version>
				<executions>
					<execution>
						<id>generate-custom-pom</id>
						<phase>pre-integration-test</phase>
						<goals>
							<goal>run</goal>
						</goals>
						<configuration>						
							<tasks>
								<xslt in="${basedir}/pom.xml" out="${basedir}/target/pom.xml" style="${basedir}/src/strip-pom-parent.xslt"
/>
							</tasks>						
						</configuration>
					</execution>
				</executions>
			</plugin>

And running it generates this error:

[INFO] [antrun:run {execution: generate-custom-pom}] 
[INFO] Executing tasks 
java.lang.ClassNotFoundException: org.apache.tools.ant.taskdefs.optional.TraXLia ison 
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200) 
        at java.security.AccessController.doPrivileged(Native Method) 
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188) 
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307) 
        at org.codehaus.classworlds.RealmClassLoader.loadClassDirect(RealmClassL oader.java:195)

        at org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassReal m.java:255)

        at org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassReal m.java:274)

        at org.codehaus.classworlds.RealmClassLoader.loadClass(RealmClassLoader. java:214)

        at java.lang.ClassLoader.loadClass(ClassLoader.java:252) 
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) 
        at java.lang.Class.forName0(Native Method) 
        at java.lang.Class.forName(Class.java:169) 
        at org.apache.tools.ant.taskdefs.XSLTProcess.loadClass(XSLTProcess.java: 548) 
        at org.apache.tools.ant.taskdefs.XSLTProcess.resolveProcessor(XSLTProces s.java:533)

        at org.apache.tools.ant.taskdefs.XSLTProcess.getLiaison(XSLTProcess.java :785) 
        at org.apache.tools.ant.taskdefs.XSLTProcess.execute(XSLTProcess.java:30 0) 
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288) 
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25)

        at java.lang.reflect.Method.invoke(Method.java:597) 
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav a:106) 
        at org.apache.tools.ant.Task.perform(Task.java:348) 
        at org.apache.tools.ant.Target.execute(Target.java:357) 
        at org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractA ntMojo.java:118)

        at org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:98) 
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi nManager.java:483)

        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa ultLifecycleExecutor.java:678)

        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi fecycle(DefaultLifecycleExecutor.java:540)

        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau ltLifecycleExecutor.java:519)

        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan dleFailures(DefaultLifecycleExecutor.java:371)

        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen ts(DefaultLifecycleExecutor.java:332)

        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi fecycleExecutor.java:181)

        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:356) 
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:137) 
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:356) 
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25)

        at java.lang.reflect.Method.invoke(Method.java:597) 
        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)

-- 
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

        

Mime
View raw message