maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sisb...@apache.org
Subject svn commit: r690075 - /maven/shared/trunk/maven-shared-model/src/main/java/org/apache/maven/shared/model/ModelMarshaller.java
Date Fri, 29 Aug 2008 02:30:16 GMT
Author: sisbell
Date: Thu Aug 28 19:30:16 2008
New Revision: 690075

URL: http://svn.apache.org/viewvc?rev=690075&view=rev
Log:
Some maven poms use namespaces that are not defined within the containing pom. This breaks
on parsing. Setting parser to be namespace unaware.

Modified:
    maven/shared/trunk/maven-shared-model/src/main/java/org/apache/maven/shared/model/ModelMarshaller.java

Modified: maven/shared/trunk/maven-shared-model/src/main/java/org/apache/maven/shared/model/ModelMarshaller.java
URL: http://svn.apache.org/viewvc/maven/shared/trunk/maven-shared-model/src/main/java/org/apache/maven/shared/model/ModelMarshaller.java?rev=690075&r1=690074&r2=690075&view=diff
==============================================================================
--- maven/shared/trunk/maven-shared-model/src/main/java/org/apache/maven/shared/model/ModelMarshaller.java
(original)
+++ maven/shared/trunk/maven-shared-model/src/main/java/org/apache/maven/shared/model/ModelMarshaller.java
Thu Aug 28 19:30:16 2008
@@ -78,6 +78,7 @@
         List<ModelProperty> modelProperties = new ArrayList<ModelProperty>();
         XMLInputFactory xmlInputFactory = XMLInputFactory.newInstance();
         xmlInputFactory.setProperty(XMLInputFactory.IS_REPLACING_ENTITY_REFERENCES, "false");
+        xmlInputFactory.setProperty(XMLInputFactory.IS_NAMESPACE_AWARE, "false");
 
         Uri uri = new Uri( baseUri );
         String tagName = baseUri;
@@ -259,7 +260,6 @@
             List<ModelProperty> attributes = new ArrayList<ModelProperty>();
             for(int peekIndex = modelProperties.indexOf( mp ) + 1; peekIndex < modelProperties.size();
peekIndex++)
             {
-                //int peekIndex = modelProperties.indexOf( mp ) + i;
                 if ( peekIndex <= modelProperties.size() - 1 )
                 {
                     ModelProperty peekProperty = modelProperties.get( peekIndex );



Mime
View raw message