开发者

Maven and Ant Oddness

I'm trying to use the m开发者_JS百科aven-antrun-plugin to get ant to generate some code for me (wsdlc with WebLogic but this isn't particularly pertinent).

I've passed maven.compile.classpath to the plugin by doing:

in the pom.xml, but when I do:

Compile classpath: ${compile_classpath}

in the build.xml I'm getting:

Compile classpath: ${compile_classpath}

which suggests it hasn't been set.

I've tried adding:

to the pom by way of debug, this gives:

Compile classpath: ${maven.compile.classpath}

which suggests it's not set there either (though I'm not convinced this is the correct thing to do anyway).

Any idea appreciated.

Regards,

Nick


Please ignore this, the problem was caused by a combination of ignorance and typos.

Should anyone want to display the classpath in the pom you need to do something like:

<property name="compile_classpath" refid="${maven.compile.classpath}"/>
<echo message="Compile classpath: $compile_classpath"/>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜