You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Davy Toch (JIRA)" <ji...@codehaus.org> on 2005/09/15 00:12:03 UTC
[jira] Commented: (MPPOM-5) pom:validate doesn't work in maven-1.1-beta-1
[ http://jira.codehaus.org/browse/MPPOM-5?page=comments#action_46388 ]
Davy Toch commented on MPPOM-5:
-------------------------------
The case can be closed.
I noticed that you now need a namespace "http://maven.apache.org/POM/3.0.0" in the root of the POM xml document. After adding this I still had a little problem because the genapp wizard creates an element <package>, while in POM 3.0.0 <packageName> is declared. From other posts on the Maven user/dev mailing lists, it seems the latter is incorrect and will be corrected in the final 1.1 version of Maven.
So sorry for wasting your time.
> 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
> Assignee: Arnaud Heritier
> 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: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org