[ http://jira.codehaus.org/browse/MAVEN-1410?page=comments#action_72713 ]
Dennis Lundberg commented on MAVEN-1410:
----------------------------------------
Here are my findings after testing this.
First I nuked my maven-1.0.2 installation and ${user.home}/.maven
Then I installed a fresh maven-1.0.2 without upgrading anything
Tried validating the project.xml for commons-logging after adding a project
element (the long version) with namespace, as given on the validation page on
the plugin's site. It complained that the pom was missing the id element.
Installed maven-pom-plugin-1.5.1-SNAPSHOT from source
Tried validating again
{code}
BUILD FAILED
File...... C:\Documents and
Settings\dlg01\.maven\cache\maven-pom-plugin-1.5\plugin.jelly
Element... assert:assertPluginAvailable
Line...... 69
Column.... 42
java.lang.NullPointerException
{code}
After a while I figured out that I needed plugin-plugin-1.7. That should be
noted somewhere on the site. A better error message would be nice too...
Installed maven-plugin-plugin-1.7
Tried validating again
{code}
Using xsd file: C:\Documents and
Settings\dlg01\.maven\cache\maven-pom-plugin-1.5.1-SNAPSHOT\plugin-resources/xsd/pom-strict-3.xsd
ERROR on line 20 of file project.xml,
XPath location /project:
namespace URI of tag "project" is wrong. It must be
"http://maven.apache.org/POM/3.0.0"
G:\apache\jakarta\commons-logging\project.xml is NOT valid!
BUILD SUCCESSFUL
{code}
I double and tripple checked the project element and the url and they are the
same as the ones that are described in the validation.xml document.
I don't know if the BUILD SUCCESSFUL indicates that the validation succeded or
not.
> pom.artifactId is missing from XML schema and pom.id should be removed
> ----------------------------------------------------------------------
>
> Key: MAVEN-1410
> URL: http://jira.codehaus.org/browse/MAVEN-1410
> Project: Maven
> Issue Type: Bug
> Components: model
> Affects Versions: 1.0
> Reporter: Dennis Lundberg
> Assigned To: Lukas Theussl
> Fix For: 1.1-rc1
>
> Attachments: maven-project-3.xsd.patch,
> maven-project.xsd-1_0-BRANCH.patch, xdocs-artifactId-version2.patch,
> xdocs-artifactId.patch
>
>
> After some discussion on the dev-list "pom.id versus pom.artifactId - which
> is correct?" there seems to be some inconsistencies in the 1.0 release.
> The discussion resulted in the following conclusions:
> 1. The element project.id should be removed from the XML schema
> 2. The element project.artifactId should be added to the XML schema
> 3. Documentation needs to be updated to reflect the above issues
> 1 and 2 should probably be done by one of the core developers, including
> decisions regarding version numbers for the XML schema. I can make a patch
> for it if you think that's ok.
> I can make patches for the xdocs to fix 3. On which branch should I create
> the patches?
--
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