Wednesday, November 4, 2009

maven appfuse m2eclipse disable auto-build

The auto-build feature in eclipse is a pain, for more reasons than one. 
1)With every save maven kicks off its build.
2)It also starts downloading stuff from the internet everytime you start.

To avoid 1) turn off build automatically on your eclipse project by right clicking on the project.

 To avoid 2)

You can turn the 'automatic download feature' off by

Window>Preferences>Maven>

turn on offline, and turn off download repository
index updates.


Vinay.

appfuse eclipse The markup in the document following the root element must be well-formed. login.xml

Rename login.xml to login.xmlf indicating it is a XML fragment.

Sometimes the error tends to stick, delete the error message and restart eclipse.

To further reflect the change in the dtd, see here:

http://old.nabble.com/login.xml-not-well-formed-td12566966s2369.html

Vinay.

Appfuse Eclipse Invalid Character Constant Header.jsp

This occured when I imported a Maven project into eclipse after doing a mvn eclipse:eclipse.

Solution that worked for me:

Change: c:if test="${pageContext.request.locale.language != 'en'}"


To:
c:if test='${pageContext.request.locale.language != "en"}'


If you are looking for alternate solutions:

http://old.nabble.com/Eclipse-issue-with-header.jsp-EL-syntax-td13001614s2369.html

Vinay.