Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » XML and Maven properties(How do i make Eclipse recognize a XML file as valid which I first edit with Maven)
XML and Maven properties [message #903271] Wed, 22 August 2012 19:16 Go to next message
Rafael W. is currently offline Rafael W.Friend
Messages: 2
Registered: August 2012
Junior Member
Hey everybody,
I am wondering about a cosmetic thing. I have an XML file - a web.xml - which is edited by maven depending on a build-profile. So far, I have this (shortened) invalid xml file:

<web-app>
${webxml.myconfig}
</web-app>

which will be rendered by maven during the build cycle. How can I tell Eclipse to ignore this one property. Besides I really like getting hints about mistakes in my XMLs, even in the web.xml which is actually significantly longer.

Or even better: how can I wrap such a maven-specific command to be valid XML?
Thank you for help, Rafael

PS: This is a repost. I originally asked this question in the XML forum but was referred to rather ask this question here.

[Updated on: Wed, 22 August 2012 19:17]

Report message to a moderator

Re: XML and Maven properties [message #903999 is a reply to message #903271] Mon, 27 August 2012 14:21 Go to previous message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4430
Registered: July 2009
Senior Member

You should be able to exclude the file from XML Validation as shown on http://www.eclipse.org/webtools/releases/3.0.0/newandnoteworthy/common.php . Although it may become valid once Maven is done populating its contents, in this form it is invalid.

_
Nitin Dahyabhai
Eclipse Web Tools Platform
Previous Topic:git jsdt connection reset
Next Topic:My validatorV2 extension disables XML source validation
Goto Forum:
  


Current Time: Thu Mar 28 21:49:11 GMT 2024

Powered by FUDForum. Page generated in 0.03331 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top