Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » XML Schema Definition (XSD) » Maven properties and XML in Eclipse(Making valid XML files when using Maven)
Maven properties and XML in Eclipse [message #903211] Wed, 22 August 2012 14:02 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
Re: Maven properties and XML in Eclipse [message #903225 is a reply to message #903211] Wed, 22 August 2012 14:29 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 26225
Registered: July 2009
Senior Member
Perhaps someone on the Web Tools forum can answer this.

On 22/08/2012 4:02 PM, Rafael W. wrote:
> 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
Previous Topic:Adding XSD to Catalog which includes and imports XSD
Next Topic:How to generate XSD from XML, by restricting all the values ?
Goto Forum:
  


Current Time: Wed Nov 26 13:06:54 GMT 2014

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

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