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/07/31 13:13:15 UTC

[jira] Created: (MPPOM-5) pom:validate doesn't work in maven-1.1-beta-1

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: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Commented: (MPPOM-5) pom:validate doesn't work in maven-1.1-beta-1

Posted by "Arnaud Heritier (JIRA)" <ji...@codehaus.org>.
    [ 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 <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


[jira] Commented: (MPPOM-5) pom:validate doesn't work in maven-1.1-beta-1

Posted by "Arnaud Heritier (JIRA)" <ji...@codehaus.org>.
    [ 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 <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


[jira] Updated: (MPPOM-5) pom:validate doesn't work in maven-1.1-beta-1

Posted by "Lukas Theussl (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MPPOM-5?page=all ]

Lukas Theussl updated MPPOM-5:
------------------------------

    Fix Version: 1.4.2

> 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: Lukas Theussl
>      Fix For: 1.4.2
>  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


[jira] Commented: (MPPOM-5) pom:validate doesn't work in maven-1.1-beta-1

Posted by "Davy Toch (JIRA)" <ji...@codehaus.org>.
    [ 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 <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


[jira] Closed: (MPPOM-5) pom:validate doesn't work in maven-1.1-beta-1

Posted by "Lukas Theussl (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MPPOM-5?page=all ]
     
Lukas Theussl closed MPPOM-5:
-----------------------------

     Resolution: Fixed
    Fix Version:     (was: 1.4.2)
                 1.5

> 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: Lukas Theussl
>      Fix For: 1.5
>  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


[jira] Commented: (MPPOM-5) pom:validate doesn't work in maven-1.1-beta-1

Posted by "Davy Toch (JIRA)" <ji...@codehaus.org>.
    [ 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


[jira] Commented: (MPPOM-5) pom:validate doesn't work in maven-1.1-beta-1

Posted by "Arnaud Heritier (JIRA)" <ji...@codehaus.org>.
    [ 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 <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


[jira] Reopened: (MPPOM-5) pom:validate doesn't work in maven-1.1-beta-1

Posted by "Lukas Theussl (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MPPOM-5?page=all ]
     
Lukas Theussl reopened MPPOM-5:
-------------------------------


Reopen to change fix version

> 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: Lukas Theussl
>      Fix For: 1.5
>  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


[jira] Closed: (MPPOM-5) pom:validate doesn't work in maven-1.1-beta-1

Posted by "Lukas Theussl (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MPPOM-5?page=all ]
     
Lukas Theussl closed MPPOM-5:
-----------------------------

    Resolution: Fixed

> 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: Lukas Theussl
>      Fix For: 1.4.2
>  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