I am having some problems (annoyingly) with the ANT editor in Eclipse, where it displays me the warning “Reference build.classpath not found”. on the next block:
<target name="generate" depends="..., mvn-depends"> <taskdef name="xjc" classname="com.sun.tools.xjc.XJCTask"> <classpath refid="build.classpath" /> </taskdef> ... </target>
For the purpose, mvn-depends as follows:
<target name="mvn-depends"> <artifact:dependencies pathId="build.classpath"> <pom refid="my.pom" /> </artifact:dependencies> </target>
The rest of the links to build.classpath in the assembly file do not throw any warnings, and the assemblies and assemblies work fine without any errors, so this seems to be not so much.
However, ignoring the warning makes me feel dirty every time I have to edit this file. In particular, not knowing if this is a bug in the Eclipse ANT assembly file verification code or a potential problem in how the assembly file is structured that Eclipse identified.
If anyone has ideas on why this warning is displayed, and whether it is possible to ignore or even turn off preferences and want to share this knowledge, I would definitely be grateful for the knowledge.
Edit:
As requested, here is an example of a link to build.classpath that does not raise any warnings:
<javac deprecation="off" debug="on" source="1.7" target="1.7" encoding="UTF-8" includeantruntime="false" memoryMaximumSize="512M" fork="true"> <classpath refid="build.classpath" /> </javac>
source share