[
https://jira.codehaus.org/browse/MANTRUN-131?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Benson Margulies closed MANTRUN-131.
------------------------------------
Resolution: Not A Bug
Fix Version/s: 1.6
To use tasks that require additional jars in the class path, list them as
dependencies of the plugin in your pom.
> maven-antrun-plugin with the ejbgen ant task
> ---------------------------------------------
>
> Key: MANTRUN-131
> URL: https://jira.codehaus.org/browse/MANTRUN-131
> Project: Maven 2.x Antrun Plugin
> Issue Type: Bug
> Affects Versions: 1.3
> Environment: Maven version: 2.0.10
> Java version: 1.5.0_14
> OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"
> Reporter: polireddy
> Fix For: 1.6
>
> Attachments: ejbgen-build-maven.xml, pom.xml
>
>
> When i am calling ant build.xml from maven to run ejbgen task, getting the
> following issue.
> [null] Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/j
> avadoc/Type
> [null] at com.bea.util.jam.provider.JamServiceFactoryImpl.createSourceB
> uilder(JamServiceFactoryImpl.java:205)
> [null] at com.bea.util.jam.provider.JamServiceFactoryImpl.createBuilder
> (JamServiceFactoryImpl.java:158)
> [null] at com.bea.util.jam.provider.JamServiceFactoryImpl.createClassLo
> ader(JamServiceFactoryImpl.java:137)
> [null] at com.bea.util.jam.provider.JamServiceFactoryImpl.createService
> (JamServiceFactoryImpl.java:78)
> [null] at com.bea.sgen.loader.JClassLoaderImpl.load(JClassLoaderImpl.ja
> va:107)
> [null] at com.bea.sgen.SGen.run(SGen.java:190)
> [null] at com.bea.wls.ejbgen.EJBGen.main(EJBGen.java:212)
> [null] at com.bea.wls.ejbgen.EJBGen.main(EJBGen.java:238)
> [ejbgen] Java returned: 1
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] An Ant BuildException has occured: The following error occurred while
> exe
> cuting this line:
> C:\apps-maven\sasejb\sasejb-ear\ejbgen-build-maven.xml:32: Java returned: 1
> If i run ant build.xml from command prompt, not getting any issue. it's
> working fine.
> Issue is comming if i do from Maven.
> Would you please me to fix this issue. it's very urgent for me
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira