I know this is an Eclipse problem, but I'm wondering if anybody else
using m2 and Eclipse+WTP is seeing this problem, and if they've found
a workaround.
Normally my pom.xml file is associated with the XML editor from the
Web Tools Project (WTP) plugin. However, it seems to get "taken over"
by the Ant Editor when I add a the line: <target>1.4</target> in
build/plugins/configuration section.
In other words, the following uses the XML Editor (which is what I want):
<project>
<build>
<plugins>
<plugin>
<configuration>
<source>1.4</source>
</configuration>
</plugin>
</plugins>
</build>
</project>
But the following makes it switch to the Ant Editor:
<project>
<build>
<plugins>
<plugin>
<configuration>
<source>1.4</source>
<target>1.4</target>
</configuration>
</plugin>
</plugins>
</build>
</project>
It appears that Eclipse tries to analyze and XML file, and if it
contains a 'target' element within a 'project' element (no matter how
nested...) it treats it as an Ant file...
--
Stephen Duncan Jr
www.stephenduncanjr.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]