Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » 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: 33113
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


Ed Merks
Professional Support: https://www.macromodeling.com/
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: Thu Mar 28 08:55:59 GMT 2024

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

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

Back to the top