Re: Parse error reading POM. Reason: parser must be on START_TAG or TEXT

2006-07-10 Thread ben short

mvn validate

On 7/9/06, Eric Redmond [EMAIL PROTECTED] wrote:

There is an XML validator incubating in Mojo:
http://svn.codehaus.org/mojo/trunk/mojo/mojo-sandbox/xml-maven-plugin/

I have no idea how active it is, however.

Thanks;
Eric

On 7/9/06, Dennis Lundberg [EMAIL PROTECTED] wrote:

 Wendy Smoak wrote:
  On 7/8/06, Aron Smith [EMAIL PROTECTED] wrote:
  It appears mavens site builder doesnt read my pom.xml - though all the
  other
  utilities (compiles, package, filter etc.) are fine.  It *is* valid XML
  (pom.xml follows stacktrace)
 
  It doesn't validate against the schema.  The filters element is out
  of place, move it outside of the resources element.
 
  * http://maven.apache.org/ref/current/maven-model/maven.html

 Is there a feature in M2 to explicitly validate the pom against the
 schema? In M1 you could do:
maven pom:validate

 --
 Dennis Lundberg

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Parse error reading POM. Reason: parser must be on START_TAG or TEXT

2006-07-09 Thread Dennis Lundberg

Wendy Smoak wrote:

On 7/8/06, Aron Smith [EMAIL PROTECTED] wrote:
It appears mavens site builder doesnt read my pom.xml - though all the 
other

utilities (compiles, package, filter etc.) are fine.  It *is* valid XML
(pom.xml follows stacktrace)


It doesn't validate against the schema.  The filters element is out
of place, move it outside of the resources element.

* http://maven.apache.org/ref/current/maven-model/maven.html


Is there a feature in M2 to explicitly validate the pom against the 
schema? In M1 you could do:

  maven pom:validate

--
Dennis Lundberg

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Parse error reading POM. Reason: parser must be on START_TAG or TEXT

2006-07-09 Thread Eric Redmond

There is an XML validator incubating in Mojo:
http://svn.codehaus.org/mojo/trunk/mojo/mojo-sandbox/xml-maven-plugin/

I have no idea how active it is, however.

Thanks;
Eric

On 7/9/06, Dennis Lundberg [EMAIL PROTECTED] wrote:


Wendy Smoak wrote:
 On 7/8/06, Aron Smith [EMAIL PROTECTED] wrote:
 It appears mavens site builder doesnt read my pom.xml - though all the
 other
 utilities (compiles, package, filter etc.) are fine.  It *is* valid XML
 (pom.xml follows stacktrace)

 It doesn't validate against the schema.  The filters element is out
 of place, move it outside of the resources element.

 * http://maven.apache.org/ref/current/maven-model/maven.html

Is there a feature in M2 to explicitly validate the pom against the
schema? In M1 you could do:
   maven pom:validate

--
Dennis Lundberg

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Parse error reading POM. Reason: parser must be on START_TAG or TEXT

2006-07-08 Thread Aron Smith
It appears mavens site builder doesnt read my pom.xml - though all the other 
utilities (compiles, package, filter etc.) are fine.  It *is* valid XML 
(pom.xml follows stacktrace)


C:\myproject\build\registrationmvn site
[INFO] Scanning for projects...
[INFO] 
-

---
[ERROR] FATAL ERROR
[INFO] 
-

---
[INFO] Error building POM (may not be this project's POM).


Project ID: unknown
POM Location: C:\myproject\build\registration\pom.xml

Reason: Parse error reading POM. Reason: parser must be on START_TAG or TEXT 
to
read text (position: START_TAG seen ...resources\r\n
filtersfilter... @

31:22)


[INFO] 
-

---
[INFO] Trace
org.apache.maven.reactor.MavenExecutionException: Parse error reading POM. 
Reaso
n: parser must be on START_TAG or TEXT to read text (position: START_TAG 
seen ..

..resources\r\nfiltersfilter... @31:22)
   at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:365)
   at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:278)
   at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
   at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.

java:39)
   at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces

sorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:585)
   at 
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)

   at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
   at 
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)


   at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.project.InvalidProjectModelException: Parse 
error re
ading POM. Reason: parser must be on START_TAG or TEXT to read text 
(position: S

TART_TAG seen ...resources\r\nfiltersfilter... @31:22)
   at 
org.apache.maven.project.DefaultMavenProjectBuilder.readModel(Default

MavenProjectBuilder.java:1134)
   at 
org.apache.maven.project.DefaultMavenProjectBuilder.readModel(Default

MavenProjectBuilder.java:1094)
   at 
org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFi

le(DefaultMavenProjectBuilder.java:289)
   at 
org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMave

nProjectBuilder.java:274)
   at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:515)
   at 
org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:447)

   at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:351)
   ... 11 more
Caused by: org.codehaus.plexus.util.xml.pull.XmlPullParserException: parser 
must
be on START_TAG or TEXT to read text (position: START_TAG seen 
resources\r

\nfiltersfilter... @31:22)
   at 
org.codehaus.plexus.util.xml.pull.MXParser.nextText(MXParser.java:106

8)
   at 
org.apache.maven.model.io.xpp3.MavenXpp3Reader.parseBuild(MavenXpp3Re

ader.java:682)
   at 
org.apache.maven.model.io.xpp3.MavenXpp3Reader.parseModel(MavenXpp3Re

ader.java:2284)
   at 
org.apache.maven.model.io.xpp3.MavenXpp3Reader.read(MavenXpp3Reader.j

ava:4548)
   at 
org.apache.maven.project.DefaultMavenProjectBuilder.readModel(Default

MavenProjectBuilder.java:1130)
   ... 17 more
[INFO] 
-

---
[INFO] Total time:  1 second
[INFO] Finished at: Sat Jul 08 14:15:44 EDT 2006
[INFO] Final Memory: 1M/2M
[INFO] 
-

---

C:\myproject\build\registrationmvn -version
Maven version: 2.0.2

C:\myproject\build\registrationmvn -e site
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] 
-

---
[ERROR] FATAL ERROR
[INFO] 
-

---
[INFO] Error building POM (may not be this project's POM).


Project ID: unknown
POM Location: C:\myproject\build\registration\pom.xml

Reason: Parse error reading POM. Reason: parser must be on START_TAG or TEXT 
to
read text (position: START_TAG seen ...resources\r\n
filtersfilter... @

31:22)


[INFO] 
-

---
[INFO] Trace
org.apache.maven.reactor.MavenExecutionException: Parse error reading POM. 
Reaso
n: parser must be on START_TAG or TEXT to read text (position: START_TAG 
seen ..

..resources\r\nfiltersfilter... @31:22)
   at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:365)
   at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:278