[Geoserver-devel] [jira] Created: (GEOS-3230) Avoid using getTextContent/setTextContent

Avoid using getTextContent/setTextContent
-----------------------------------------

                 Key: GEOS-3230
                 URL: http://jira.codehaus.org/browse/GEOS-3230
             Project: GeoServer
          Issue Type: Improvement
            Reporter: Andrea Aime
            Assignee: Andrea Aime
             Fix For: 2.0-beta2
         Attachments: GEOS-3230.patch

Maven eclipse plugin starting from version 2.6 generates the classpath in a different order than the previous versions, putting test dependencies first (and src/test before src/main in the tree).
This results in xml-apis jar being moved up in the classpath list, and breaks compilation under Eclipse, due to the getTextContent/setTextContent being used in the sources but not declared in such jar (neither in the version we're using, nor in version 2.0.2).

Getting rid of the xml-apis dependency does not seem to be easy (tried and failed, someone else may have better luck), but the two methods cites above can be simply avoided and replacements used instead.
The attached patch uses replacement to make GeoServer compile again xml-apis without breaking the build neither in maven nor in Eclipse.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira