[
https://jira.codehaus.org/browse/MANTRUN-124?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Michael Osipov closed MANTRUN-124.
----------------------------------
Resolution: Won't Fix
Please refer to
https://cwiki.apache.org/confluence/display/MAVEN/The+Great+JIRA+Cleanup+of+2014
if you're wondering why this issue was closed out.
> Plugin classloader don't use global classloader on ant task
> -----------------------------------------------------------
>
> Key: MANTRUN-124
> URL: https://jira.codehaus.org/browse/MANTRUN-124
> Project: Maven Antrun Plugin
> Issue Type: Bug
> Environment: Java version: 1.4.2_08
> OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"
> Reporter: Herve FARGETON
>
> I try to execute the Java2WsdlAntTask of Axis 1.4 Ant package.
> Using axis-ant, commons-logging and commons-discovery dependencies under
> plugin configuration (under
> <project><build><plugins><plugin><dependencies><dependency>), I find this
> exception : java.lang.NoClassDefFoundError:
> org/apache/axis/encoding/TypeMappingRegistry. It means that classes of Axis,
> put as global dependencies, are not visible while executing the Ant task.
> When I put axis-ant, commons-logging and commons-discovery as global
> dependencies (under <project><dependencies><dependency>, same level as axis
> API), it works well.
> POM extract to generate NoClassDefFoundError :
> ...
> <dependencies>
> <dependency>
> <groupId>axis</groupId>
> <artifactId>axis</artifactId>
> <version>1.4</version>
> </dependency>
> ...
> </dependencies>
> <build>
> <plugins>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-antrun-plugin</artifactId>
> <version>1.2</version>
> <dependencies>
> <dependency>
>
> <groupId>org.apache.axis</groupId>
>
> <artifactId>axis-ant</artifactId>
> <version>1.4</version>
> <scope></scope>
> </dependency>
> <dependency>
>
> <groupId>commons-logging</groupId>
>
> <artifactId>commons-logging</artifactId>
> <version>1.1.1</version>
> </dependency>
> <dependency>
>
> <groupId>commons-discovery</groupId>
>
> <artifactId>commons-discovery</artifactId>
> <version>0.4</version>
> </dependency>
> </dependencies>
> <executions>
> <execution>
> <id>generate-webservice</id>
> <phase>generate-sources</phase>
> <configuration>
> <tasks>
> <property
> name="compile_classpath" refid="maven.compile.classpath"/>
> <echo
> message="compile classpath: ${compile_classpath}"/>
> <echo
> message="Appel de la tache axis-wsdl2java" />
> <taskdef
> name="axis-wsdl2java"
> classname="org.apache.axis.tools.ant.wsdl.Java2WsdlAntTask">
>
> <classpath>
>
> <path location="maven.compile.classpath"/>
>
> </classpath>
> </taskdef>
>
> <axis-wsdl2java
> output="${project.output}" url="...">
>
> </axis-wsdl2java>
> </tasks>
> </configuration>
> <goals>
> <goal>run</goal>
> </goals>
> </execution>
> </executions>
> </plugin>
> </plugins>
> </build>
> ...
--
This message was sent by Atlassian JIRA
(v6.1.6#6162)