[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_46404 ] Arnaud Heritier commented on MPPOM-5: - Yes I'll do it > 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 > 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]
[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_46391 ] Davy Toch commented on MPPOM-5: --- I suppose the best solution is to modify the maven genapp plugin so it can create Maven projects with v3.0.0 POM's (instead of adding a workaround in the maven pom plugin). > 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 > 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]
[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_46390 ] Arnaud Heritier commented on MPPOM-5: - packageName isn't an attribute but an element :-) > 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 > 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]
[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_46389 ] Arnaud Heritier commented on MPPOM-5: - I also noticed the namespace problem. I'm checking to see if it's not possible to have a workaround. For the packageName attribute, I fixed the xsd today on the web site. You can download it. > 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 > 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]
[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 , while in POM 3.0.0 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 > 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]