pom:validate doesn't work in maven-1.1-beta-1
---------------------------------------------
Key: MPPOM-5
URL: http://jira.codehaus.org/browse/MPPOM-5
Project: maven-pom-plugin
Type: Bug
Versions: 1.4.1
Environment: Windows 2000, JDK 1.4.2_07
Reporter: Davy Toch
Attachments: project.xml
Using the genapp plugin (2.2) of Maven-1.1-beta-1, I created a simple jar
project.
Running pom:validate on the POM gave errors due to the fact that project.xml
generated by the genapp plugin isn't a model-3.0.0 POM, because e.g. the
<package> element generated by the genapp wizard isn't defined in the
model-3.0.0 xsd. So I modified project.xml in order to be conform with the
model-3.0.0 xsd. However running pom:validate still gives the following error:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$maven -e pom:validate
__ __
| \/ |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \ ~ intelligent projects ~
|_| |_\__,_|\_/\___|_||_| v. 1.1-beta-1
build:start:
pom:verify-version:
pom:validate:
[echo] ====== CUSTOM ADDED IN POM PLUGIN ====
[echo] XSD file : c:\devtools\maven-1.1-beta-1/maven-project-3.xsd
[echo] POM file : C:\tmp\myapp\project.xml
[echo] =======================================
[java] C:\tmp\myapp\project.xml:19:10: error: cvc-elt.1: Cannot find the
declaration of element 'project'.
[java] [ERROR] Java Result: 1
BUILD SUCCESSFUL
Total time : 4 seconds
Finished at : zondag 31 juli 2005 12:58:49 CEST
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The POM file project.xml is included as attachment.
Additional question : is the pom plugin still necessary from maven-1.1-beta-1
onwards, because I thought the Maven core would verify more strictly the POM
itself (cf http://maven.apache.org/reference/backwards-compatibility.html)?
Regards,
Davy Toch
--
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
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]