Maven1.x中的Maven Jelly插件异常

时间:2016-01-12 06:02:18

标签: maven

maven jelly插件可以与Java 1.7一起使用吗? 我需要使用1.7 jvm从maven1.x调用ant build脚本。我使用maven jelly插件但我得到以下例外 java.lang.NoSuchMethodError:weblogic.wsee.tools.anttasks.DelegatingJavacTask $ ExposingJavac.getTempdir()Ljava / io / File;         在weblogic.wsee.tools.anttasks.DelegatingJavacTask.getTempdir(DelegatingJavacTask.java:170)         在weblogic.wsee.tools.anttasks.JwsModule.initialize(JwsModule.java:315)         在weblogic.wsee.tools.anttasks.JwsModule.build(JwsModule.java:254)         在weblogic.wsee.tools.anttasks.JwscTask.execute(JwscTask.java:229)         at org.apache.tools.ant.Task.perform(Task.java:341)         在org.apache.tools.ant.Target.execute(Target.java:309)         在org.apache.tools.ant.Target.performTasks(Target.java:336)         在org.apache.tools.ant.Project.executeTarget(Project.java:1339)         在org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:397)         at org.apache.tools.ant.Task.perform(Task.java:341)         在org.apache.commons.jelly.tags.ant.AntTag.doTag(AntTag.java:185)         在org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)         在org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)         在org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(MavenGoalTag.java:79)         在org.apache.maven.jelly.tags.werkz.MavenGoalTag $ MavenGoalAction.performAction(MavenGoalTag.java:110)         在com.werken.werkz.Goal.fire(Goal.java:639)         在com.werken.werkz.Goal.attain(Goal.java:575)         在org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:671)         在org.apache.maven.MavenSession.attainGoals(MavenSession.java:263)         在org.apache.maven.jelly.tags.maven.ReactorTag.doTag(ReactorTag.java:368)         在org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)         在org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)         在org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(MavenGoalTag.java:79)         在org.apache.maven.jelly.tags.werkz.MavenGoalTag $ MavenGoalAction.performAction(MavenGoalTag.java:110)         在com.werken.werkz.Goal.fire(Goal.java:639)         在com.werken.werkz.Goal.attain(Goal.java:575)         在org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:671)         在org.apache.maven.MavenSession.attainGoals(MavenSession.java:263)         在org.apache.maven.cli.App.doMain(App.java:488)         在org.apache.maven.cli.App.main(App.java:1239)         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)         at java.lang.reflect.Method.invoke(Method.java:606)         在com.werken.forehead.Forehead.run(Forehead.java:551)         在com.werken.forehead.Forehead.main(Forehead.java:581)

Build脚本与ant单独运行。

1 个答案:

答案 0 :(得分:0)

Maven1.x Jelly插件不适用于java 1.7所以我必须将我的maven构建脚本更改为外部调用ant。