You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Stadelmann Josef <jo...@axa-winterthur.ch> on 2011/01/18 15:39:36 UTC

org.codehaus.modello.ModelloCli fails parsing maven.mdo on OpenVMS

I am about to build apache-maven-2.2.1 on OpenVMS using either ant 1.7
or ant 1.6.5 from the NetBeans IDE 6.5.1

Just substituted M2_HOME by MVN_HOME for convenient.

I managed that ant <get> could download the artifacts from central
repository straigth into OpenVMS; for that to work, for that to pass my
firewall, I added the follwing logical to OpenVMS.
$ define/process "-Dhttp.authpreference=Basic
-Dhttp.proxyhost=myprocx.com -Dhttp.proxyport=8080
-Dhttp.proxyuser=mydomainusername -Dhttp.proxypassword=mydoaminpassword"

So the only thing one can not do with <setproxy> in ant is to give a
AuthenticationSchema preference, but as we access via http we can use it
like from maven, and since there is no more needs for any <setproxy> in
the build.xml file.


After doing so the pull target of the bootstrap-build.xml was working
properly and all dependent artifacts are now downloaded straigth into
the OpenVMS maven repository; 


hence I did the next command line


$ ant "-v" "-Dmaven.home=/dkb3/stadelma/apache-maven-2_2_1" "-f"
"bootstrap-build.xml" "generate-sources"

And that gives me an error which you migth be able to give me a bit
advise. See to verbos output (few overides deleted)

I toke out java fork="fork" from bootstratp-build.xml setting up the
macrodef for modello, but no effect; so I changed this back.

I checked out by an editor that maven.mdo file for  proper formats; BUT
I can't see anything wrong with it; also the same files build perfect on
the windows system, just not on openVMS.

Could it be a parser problem?

If yes is there a way to exchange the parser for the source generating
step ?

Josef


Apache Ant version 1.6.5 compiled on July 14 2006
Buildfile:
/INTEG1$DKB3/stadelma/sw-projekte/asf/maven/maven-2/tags/maven-2_2_1/boo
tstrap-build.xml
Detected Java version: 1.5 in: /ide$java_root/jre
Detected OS: OpenVMS
parsing buildfile
/INTEG1$DKB3/stadelma/sw-projekte/asf/maven/maven-2/tags/maven-2_2_1/boo
tstrap-build.xml with URI =
file:///INTEG1$DKB3/stadelma/sw-projekte/asf/maven/maven-2/tags/maven-2_
2_1/bootstrap-build.xml
Project base dir set to:
/INTEG1$DKB3/stadelma/sw-projekte/asf/maven/maven-2/tags/maven-2_2_1
Build sequence for target(s) `generate-sources' is [initTaskDefs,
isMavenHomeSet, initLocalRepo, init, read-poms, pull, generate-sources]
Complete build sequence is [initTaskDefs, isMavenHomeSet, initLocalRepo,
init, read-poms, pull, generate-sources, clean-bootstrap, compile-boot,
maven-compile, maven-assembly, extract-assembly, all, its-setup,
its-win32, its-unix, run-its, with-its, set-temp-maven-home, ]
initTaskDefs:
Loading
/INTEG1$DKB3/stadelma/sw-projekte/asf/maven/maven-2/tags/maven-2_2_1/pom
.xml
parsing buildfile
jar:file:/INTEG1$DKB3/stadelma/sw-projekte/asf/maven/maven-2/tags/maven-
2_2_1/maven-ant-tasks-2.0.8.jar!/org/apache/maven/artifact/ant/antlib.xm
l with URI =
jar:file:/INTEG1$DKB3/stadelma/sw-projekte/asf/maven/maven-2/tags/maven-
2_2_1/maven-ant-tasks-2.0.8.jar!/org/apache/maven/artifact/ant/antlib.xm
l
isMavenHomeSet:
Loading Environment env.
Property ${env.MVN_HOME} has not been set
Using Maven home at: /dkb3/stadelma/apache-maven-2_2_1
initLocalRepo:
Using the local repository at: /dkb3/stadelma/.m2/repository
init:
Loading
/INTEG1$DKB3/stadelma/sw-projekte/asf/maven/maven-2/tags/maven-2_2_1/pom
.xml
maven.home = /dkb3/stadelma/apache-maven-2_2_1
maven.assembly =
/INTEG1$DKB3/stadelma/sw-projekte/asf/maven/maven-2/tags/maven-2_2_1/apa
che-maven/target/apache-maven-2.2.1-bin.zip
read-poms:
Copying 1 file to
/INTEG1$DKB3/stadelma/sw-projekte/asf/maven/maven-2/tags/maven-2_2_1
Copying
/INTEG1$DKB3/stadelma/sw-projekte/asf/maven/maven-2/tags/maven-2_2_1/pom
.xml to
/INTEG1$DKB3/stadelma/sw-projekte/asf/maven/maven-2/tags/maven-2_2_1/dep
endencies.xml
Replacing in
/INTEG1$DKB3/stadelma/sw-projekte/asf/maven/maven-2/tags/maven-2_2_1/dep
endencies.xml: <!--start--> --> <!--
Replacing in
/INTEG1$DKB3/stadelma/sw-projekte/asf/maven/maven-2/tags/maven-2_2_1/dep
endencies.xml: <!--end--> --> -->
Loading Maven settings file: /dkb3/stadelma/.m2/settings.xml
Using remote repositories:
  - id=central, url=http://repo.exist.com/maven2, releases=enabled,
snapshots=disabled, proxy=bcproxyserver.ch.winterthur.com
Deleting:
/INTEG1$DKB3/stadelma/sw-projekte/asf/maven/maven-2/tags/maven-2_2_1/dep
endencies.xml
Loading Maven settings file: /dkb3/stadelma/.m2/settings.xml
pull:
Loading Maven settings file: /dkb3/stadelma/.m2/settings.xml
Maven Ant Tasks version: 2.0.8
Using local repository: /dkb3/stadelma/.m2/repository
Resolving dependencies...
Using remote repositories:
  - id=apache.snapshots, url=http://repository.apache.org/snapshots,
releases=disabled, snapshots=enabled,
proxy=bcproxyserver.ch.winterthur.com
  - id=central, url=http://repo.exist.com/maven2, releases=enabled,
snapshots=disabled, proxy=bcproxyserver.ch.winterthur.com
org.apache.maven:maven:pom:2.2.1 (selected)
  commons-cli:commons-cli:jar:1.2:compile (selected)
  org.apache.maven.doxia:doxia-sink-api:jar:1.1:compile (selected)
    org.apache.maven.doxia:doxia-logging-api:jar:1.1:compile (selected)
 
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-30:compile
(selected)
        junit:junit:jar:3.8.1:compile (selected)
        org.codehaus.plexus:plexus-utils:jar:1.4.5:compile (selected)
        org.codehaus.plexus:plexus-classworlds:jar:1.2-alpha-9:compile
(selected)
          junit:junit:jar:3.8.1:compile (removed - nearer found: 3.8.1)
  org.apache.maven.doxia:doxia-logging-api:jar:1.1:compile (removed -
nearer found: 1.1)
  org.apache.maven.doxia:doxia-logging-api:jar:1.1:compile (selected)
 
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-30:compile
(selected)
      junit:junit:jar:3.8.1:compile (selected)
      org.codehaus.plexus:plexus-utils:jar:1.4.5:compile (selected)
      org.codehaus.plexus:plexus-classworlds:jar:1.2-alpha-9:compile
(selected)
        junit:junit:jar:3.8.1:compile (removed - nearer found: 3.8.1)
  org.codehaus.plexus:plexus-interpolation:jar:1.11:compile (selected)
  org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-30:compile
(removed - nearer found: 1.0-alpha-9-stable-1)
 
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1:co
mpile (selected)
    junit:junit:jar:3.8.1:compile (selected)
    org.codehaus.plexus:plexus-utils:jar:1.0.4:compile (selected)
    classworlds:classworlds:jar:1.1-alpha-2:compile (selected)
  org.codehaus.plexus:plexus-utils:jar:1.0.4:compile (removed - nearer
found: 1.5.15)
  org.codehaus.plexus:plexus-utils:jar:1.5.15:compile (selected)
  org.sonatype.plexus:plexus-sec-dispatcher:jar:1.3:compile (selected)
    org.codehaus.plexus:plexus-utils:jar:1.5.5:compile (removed - nearer
found: 1.5.15)
    org.sonatype.plexus:plexus-cipher:jar:1.4:compile (selected)
  org.apache.maven.wagon:wagon-provider-api:jar:1.0-beta-6:compile
(selected)
    org.codehaus.plexus:plexus-utils:jar:1.4.2:compile (removed - nearer
found: 1.5.15)
  org.apache.maven.wagon:wagon-ssh:jar:1.0-beta-6:compile (selected)
    org.apache.maven.wagon:wagon-provider-api:jar:1.0-beta-6:compile
(removed - nearer found: 1.0-beta-6)
    org.apache.maven.wagon:wagon-ssh-common:jar:1.0-beta-6:compile
(selected)
      org.apache.maven.wagon:wagon-provider-api:jar:1.0-beta-6:compile
(removed - nearer found: 1.0-beta-6)
      org.codehaus.plexus:plexus-utils:jar:1.4.2:compile (removed -
nearer found: 1.5.15)
 
org.codehaus.plexus:plexus-interactivity-api:jar:1.0-alpha-6:compile
(selected)
        org.codehaus.plexus:plexus-utils:jar:1.4:compile (removed -
nearer found: 1.5.15)
    com.jcraft:jsch:jar:0.1.38:compile (selected)
    org.codehaus.plexus:plexus-utils:jar:1.4.2:compile (removed - nearer
found: 1.5.15)
  org.apache.maven.wagon:wagon-ssh-external:jar:1.0-beta-6:compile
(selected)
    org.apache.maven.wagon:wagon-provider-api:jar:1.0-beta-6:compile
(removed - nearer found: 1.0-beta-6)
    org.apache.maven.wagon:wagon-ssh-common:jar:1.0-beta-6:compile
(removed - nearer found: 1.0-beta-6)
    org.codehaus.plexus:plexus-utils:jar:1.4.2:compile (removed - nearer
found: 1.5.15)
  org.apache.maven.wagon:wagon-file:jar:1.0-beta-6:compile (selected)
    org.apache.maven.wagon:wagon-provider-api:jar:1.0-beta-6:compile
(removed - nearer found: 1.0-beta-6)
  org.apache.maven.wagon:wagon-webdav-jackrabbit:jar:1.0-beta-6:compile
(selected)
    org.apache.maven.wagon:wagon-provider-api:jar:1.0-beta-6:compile
(removed - nearer found: 1.0-beta-6)
    org.apache.maven.wagon:wagon-http-shared:jar:1.0-beta-6:compile
(selected)
      org.apache.maven.wagon:wagon-provider-api:jar:1.0-beta-6:compile
(removed - nearer found: 1.0-beta-6)
      nekohtml:xercesMinimal:jar:1.9.6.2:compile (selected)
      nekohtml:nekohtml:jar:1.9.6.2:compile (selected)
      commons-httpclient:commons-httpclient:jar:3.1:compile (selected)
        commons-logging:commons-logging:jar:1.0.4:compile (selected)
        commons-codec:commons-codec:jar:1.2:compile (selected)
    org.apache.jackrabbit:jackrabbit-webdav:jar:1.5.0:compile (selected)
      org.apache.jackrabbit:jackrabbit-jcr-commons:jar:1.5.0:compile
(selected)
      org.slf4j:slf4j-api:jar:1.5.3:compile (selected)
      commons-httpclient:commons-httpclient:jar:3.0:compile (removed -
nearer found: 3.1)
    org.slf4j:slf4j-nop:jar:1.5.3:runtime (selected)
      org.slf4j:slf4j-api:jar:1.5.3:runtime (removed - nearer found:
1.5.3)
  org.apache.maven.wagon:wagon-http:jar:1.0-beta-6:compile (selected)
    org.apache.maven.wagon:wagon-provider-api:jar:1.0-beta-6:compile
(removed - nearer found: 1.0-beta-6)
    org.apache.maven.wagon:wagon-http-shared:jar:1.0-beta-6:compile
(removed - nearer found: 1.0-beta-6)
  org.apache.maven.wagon:wagon-http-lightweight:jar:1.0-beta-6:compile
(selected)
    org.apache.maven.wagon:wagon-provider-api:jar:1.0-beta-6:compile
(removed - nearer found: 1.0-beta-6)
    org.apache.maven.wagon:wagon-http-shared:jar:1.0-beta-6:compile
(removed - nearer found: 1.0-beta-6)
  org.slf4j:slf4j-jdk14:jar:1.5.6:compile (selected)
    org.slf4j:slf4j-api:jar:1.5.3:compile (removed - nearer found:
1.5.6)
    org.slf4j:slf4j-api:jar:1.5.6:compile (selected)
  org.slf4j:jcl-over-slf4j:jar:1.5.6:compile (selected)
  backport-util-concurrent:backport-util-concurrent:jar:3.1:compile
(selected)
  easymock:easymock:jar:1.2_Java1.3:test (selected)
  classworlds:classworlds:jar:1.1-alpha-2:compile (removed - nearer
found: 1.1)
  classworlds:classworlds:jar:1.1:compile (selected)
Loading Maven settings file: /dkb3/stadelma/.m2/settings.xml
Maven Ant Tasks version: 2.0.8
Using local repository: /dkb3/stadelma/.m2/repository
Resolving dependencies...
Using remote repositories:
  - id=central, url=http://repo.exist.com/maven2, releases=enabled,
snapshots=disabled, proxy=bcproxyserver.ch.winterthur.com
org.apache.maven:super-pom:jar:2.0 (selected)
  org.codehaus.modello:modello-maven-plugin:jar:1.0:compile (selected)
    org.apache.maven:maven-plugin-api:jar:2.0.7:compile (selected)
    org.codehaus.modello:modello-core:jar:1.0:compile (selected)
 
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-30:compile
(selected)
        junit:junit:jar:3.8.1:compile (selected)
        org.codehaus.plexus:plexus-utils:jar:1.4.5:compile (selected)
        org.codehaus.plexus:plexus-classworlds:jar:1.2-alpha-9:compile
(selected)
          junit:junit:jar:3.8.1:compile (removed - nearer found: 3.8.1)
    org.apache.maven:maven-project:jar:2.0.7:compile (selected)
      org.apache.maven:maven-settings:jar:2.0.7:compile (selected)
        org.apache.maven:maven-model:jar:2.0.7:compile (selected)
          org.codehaus.plexus:plexus-utils:jar:1.4.1:compile (removed -
nearer found: 1.4.5)
        org.codehaus.plexus:plexus-utils:jar:1.4.1:compile (removed -
nearer found: 1.4.5)
 
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1:co
mpile (removed - nearer found: 1.0-alpha-30)
      org.apache.maven:maven-profile:jar:2.0.7:compile (selected)
        org.apache.maven:maven-model:jar:2.0.7:compile (removed - nearer
found: 2.0.7)
        org.codehaus.plexus:plexus-utils:jar:1.4.1:compile (removed -
nearer found: 1.4.5)
 
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1:co
mpile (removed - nearer found: 1.0-alpha-30)
      org.apache.maven:maven-model:jar:2.0.7:compile (removed - nearer
found: 2.0.7)
      org.apache.maven:maven-model:jar:2.0.7:compile (selected)
        org.codehaus.plexus:plexus-utils:jar:1.4.1:compile (removed -
nearer found: 1.4.5)
      org.apache.maven:maven-artifact-manager:jar:2.0.7:compile
(selected)
        org.apache.maven:maven-repository-metadata:jar:2.0.7:compile
(selected)
          org.codehaus.plexus:plexus-utils:jar:1.4.1:compile (removed -
nearer found: 1.4.5)
        org.codehaus.plexus:plexus-utils:jar:1.4.1:compile (removed -
nearer found: 1.4.5)
        org.apache.maven:maven-artifact:jar:2.0.7:compile (selected)
          org.codehaus.plexus:plexus-utils:jar:1.4.1:compile (removed -
nearer found: 1.4.5)
 
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1:co
mpile (removed - nearer found: 1.0-alpha-30)
        org.apache.maven.wagon:wagon-provider-api:jar:1.0-beta-2:compile
(selected)
          org.codehaus.plexus:plexus-utils:jar:1.0.4:compile (removed -
nearer found: 1.4.5)
      org.apache.maven:maven-plugin-registry:jar:2.0.7:compile
(selected)
        org.codehaus.plexus:plexus-utils:jar:1.4.1:compile (removed -
nearer found: 1.4.5)
 
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1:co
mpile (removed - nearer found: 1.0-alpha-30)
      org.codehaus.plexus:plexus-utils:jar:1.4.5:compile (removed -
nearer found: 1.4.1)
      org.codehaus.plexus:plexus-utils:jar:1.4.1:compile (selected)
      org.apache.maven:maven-artifact:jar:2.0.7:compile (removed -
nearer found: 2.0.7)
      org.apache.maven:maven-artifact:jar:2.0.7:compile (selected)
        org.codehaus.plexus:plexus-utils:jar:1.4.1:compile (removed -
nearer found: 1.4.1)
 
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1:co
mpile (removed - nearer found: 1.0-alpha-30)
 
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-30:compile
(removed - nearer found: 1.0-alpha-30)
 
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-30:compile
(selected)
      junit:junit:jar:3.8.1:compile (selected)
      org.codehaus.plexus:plexus-utils:jar:1.4.5:compile (removed -
nearer found: 1.4.1)
      org.codehaus.plexus:plexus-classworlds:jar:1.2-alpha-9:compile
(selected)
        junit:junit:jar:3.8.1:compile (removed - nearer found: 3.8.1)
    org.codehaus.plexus:plexus-utils:jar:1.4.1:compile (removed - nearer
found: 1.5.7)
    org.codehaus.plexus:plexus-utils:jar:1.5.7:compile (selected)
    org.codehaus.modello:modello-plugin-converters:jar:1.0:runtime
(selected)
 
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-30:runtime
(removed - nearer found: 1.0-alpha-30)
      org.codehaus.modello:modello-core:jar:1.0:runtime (removed -
nearer found: 1.0)
      org.codehaus.modello:modello-plugin-java:jar:1.0:runtime
(selected)
 
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-30:runtime
(removed - nearer found: 1.0-alpha-30)
        org.codehaus.modello:modello-core:jar:1.0:runtime (removed -
nearer found: 1.0)
    org.codehaus.modello:modello-plugin-dom4j:jar:1.0:runtime (selected)
 
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-30:runtime
(removed - nearer found: 1.0-alpha-30)
      org.codehaus.modello:modello-core:jar:1.0:runtime (removed -
nearer found: 1.0)
      org.codehaus.modello:modello-plugin-java:jar:1.0:runtime (removed
- nearer found: 1.0)
      org.codehaus.modello:modello-plugin-xml:jar:1.0:runtime (selected)
 
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-30:runtime
(removed - nearer found: 1.0-alpha-30)
        org.codehaus.modello:modello-core:jar:1.0:runtime (removed -
nearer found: 1.0)
    org.codehaus.modello:modello-plugin-java:jar:1.0:runtime (removed -
nearer found: 1.0)
    org.codehaus.modello:modello-plugin-java:jar:1.0:compile (selected)
 
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-30:compile
(removed - nearer found: 1.0-alpha-30)
      org.codehaus.modello:modello-core:jar:1.0:compile (removed -
nearer found: 1.0)
    org.codehaus.modello:modello-plugin-jdom:jar:1.0:runtime (selected)
 
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-30:runtime
(removed - nearer found: 1.0-alpha-30)
      org.codehaus.modello:modello-core:jar:1.0:runtime (removed -
nearer found: 1.0)
      org.codehaus.modello:modello-plugin-java:jar:1.0:runtime (removed
- nearer found: 1.0)
      org.codehaus.plexus:plexus-utils:jar:1.5.7:runtime (removed -
nearer found: 1.5.7)
      org.codehaus.modello:modello-plugin-xml:jar:1.0:runtime (removed -
nearer found: 1.0)
    org.codehaus.modello:modello-plugin-stax:jar:1.0:runtime (selected)
 
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-30:runtime
(removed - nearer found: 1.0-alpha-30)
      org.codehaus.modello:modello-core:jar:1.0:runtime (removed -
nearer found: 1.0)
      org.codehaus.modello:modello-plugin-xml:jar:1.0:runtime (removed -
nearer found: 1.0)
      org.codehaus.modello:modello-plugin-java:jar:1.0:runtime (removed
- nearer found: 1.0)
    org.codehaus.modello:modello-plugin-xdoc:jar:1.0:runtime (selected)
 
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-30:runtime
(removed - nearer found: 1.0-alpha-30)
      org.codehaus.modello:modello-core:jar:1.0:runtime (removed -
nearer found: 1.0)
      org.codehaus.modello:modello-plugin-xml:jar:1.0:runtime (removed -
nearer found: 1.0)
    org.codehaus.modello:modello-plugin-xpp3:jar:1.0:runtime (selected)
 
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-30:runtime
(removed - nearer found: 1.0-alpha-30)
      org.codehaus.modello:modello-core:jar:1.0:runtime (removed -
nearer found: 1.0)
      org.codehaus.modello:modello-plugin-java:jar:1.0:runtime (removed
- nearer found: 1.0)
      org.codehaus.plexus:plexus-utils:jar:1.5.7:runtime (removed -
nearer found: 1.5.7)
      org.codehaus.modello:modello-plugin-xml:jar:1.0:runtime (removed -
nearer found: 1.0)
    org.codehaus.modello:modello-plugin-xsd:jar:1.0:runtime (selected)
 
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-30:runtime
(removed - nearer found: 1.0-alpha-30)
      org.codehaus.modello:modello-core:jar:1.0:runtime (removed -
nearer found: 1.0)
      org.codehaus.modello:modello-plugin-xml:jar:1.0:runtime (removed -
nearer found: 1.0)
  org.codehaus.modello:modello-core:jar:1.0:compile (removed - nearer
found: 1.0)
  org.codehaus.modello:modello-core:jar:1.0:compile (selected)
 
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-30:compile
(removed - nearer found: 1.0-alpha-30)
Overriding previous definition of property
org.codehaus.plexus:plexus-container-default:jar
Overriding previous definition of property junit:junit:jar
Overriding previous definition of property
org.codehaus.plexus:plexus-utils:jar
Overriding previous definition of property
org.apache.maven.wagon:wagon-provider-api:jar
generate-sources:
Generating sources for maven-model/src/main/mdo/maven.mdo
running org.codehaus.modello.ModelloCli with default permissions (exit
forbidden)
Running in same VM Executing 'org.codehaus.modello.ModelloCli' with
arguments:
'/INTEG1$DKB3/stadelma/sw-projekte/asf/maven/maven-2/tags/maven-2_2_1/ma
ven-model/src/main/mdo/maven.mdo'
'java'
'/INTEG1$DKB3/stadelma/sw-projekte/asf/maven/maven-2/tags/maven-2_2_1/bo
otstrap/target/generated-sources'
'4.0.0'
'false'
'true'
'UTF-8'
The ' characters around the executable and arguments are
not part of the command.
BUILD FAILED
bootstrap-build.xml [147:2] The following error occurred while executing
this line: 
bootstrap-build.xml [141:2] The following error occurred while executing
this line: 
bootstrap-build.xml [123:2] org.codehaus.modello.ModelloException: Error
parsing the model. 
        at
org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHe
lper.java:539)
        at
org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:3
80)
        at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
        at org.apache.tools.ant.Task.perform(Task.java:364)
        at org.apache.tools.ant.Target.execute(Target.java:341)
        at org.apache.tools.ant.Target.performTasks(Target.java:369)
        at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
        at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecut
or.java:40)
        at
org.apache.tools.ant.Project.executeTargets(Project.java:1068)
        at org.apache.tools.ant.Main.runBuild(Main.java:668)
        at org.apache.tools.ant.Main.startAnt(Main.java:187)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
Caused by:
/INTEG1$DKB3/stadelma/sw-projekte/asf/maven/maven-2/tags/maven-2_2_1/boo
tstrap-build.xml:141: The following error occurred while executing this
line:
bootstrap-build.xml [123:2] org.codehaus.modello.ModelloException: Error
parsing the model. 
        at
org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHe
lper.java:539)
        at
org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:3
80)
        at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
        at org.apache.tools.ant.Task.perform(Task.java:364)
        at
org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:64)
        at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
        at org.apache.tools.ant.Task.perform(Task.java:364)
        at
org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:3
78)
        ... 12 more
Caused by:
/INTEG1$DKB3/stadelma/sw-projekte/asf/maven/maven-2/tags/maven-2_2_1/boo
tstrap-build.xml:123: org.codehaus.modello.ModelloException: Error
parsing the model.
        at
org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:180)
        at org.apache.tools.ant.taskdefs.Java.run(Java.java:712)
        at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:180)
        at org.apache.tools.ant.taskdefs.Java.execute(Java.java:86)
        at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
        at org.apache.tools.ant.Task.perform(Task.java:364)
        at
org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:64)
        at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
        at org.apache.tools.ant.Task.perform(Task.java:364)
        at
org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:3
78)
        ... 18 more
Caused by: org.codehaus.modello.ModelloException: Error parsing the
model.
        at
org.codehaus.modello.core.io.ModelReader.loadModel(ModelReader.java:103)
        at
org.codehaus.modello.core.DefaultModelloCore.loadModel(DefaultModelloCor
e.java:170)
        at org.codehaus.modello.Modello.generate(Modello.java:64)
        at org.codehaus.modello.ModelloCli.main(ModelloCli.java:50)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:592)
        at
org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:202)
        at
org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:134)
        ... 27 more
Caused by: org.codehaus.plexus.util.xml.pull.XmlPullParserException: end
tag name </field> must match start tag name <fields> from line 79
(position: TEXT seen ...</field>        </field>... @103:33) 
        at
org.codehaus.plexus.util.xml.pull.MXParser.parseEndTag(MXParser.java:168
6)
        at
org.codehaus.plexus.util.xml.pull.MXParser.nextImpl(MXParser.java:1131)
        at
org.codehaus.plexus.util.xml.pull.MXParser.next(MXParser.java:1093)
        at
org.codehaus.plexus.util.xml.pull.MXParser.nextTag(MXParser.java:1080)
        at
org.codehaus.modello.core.io.ModelReader.parseFields(ModelReader.java:32
5)
        at
org.codehaus.modello.core.io.ModelReader.parseClasses(ModelReader.java:2
84)
        at
org.codehaus.modello.core.io.ModelReader.parseModel(ModelReader.java:137
)
        at
org.codehaus.modello.core.io.ModelReader.loadModel(ModelReader.java:93)
        ... 36 more
--- Nested Exception ---
bootstrap-build.xml [141:2] The following error occurred while executing
this line: 
bootstrap-build.xml [123:2] org.codehaus.modello.ModelloException: Error
parsing the model. 
        at
org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHe
lper.java:539)
        at
org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:3
80)
        at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
        at org.apache.tools.ant.Task.perform(Task.java:364)
        at
org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:64)
        at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
        at org.apache.tools.ant.Task.perform(Task.java:364)
        at
org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:3
78)
        at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
        at org.apache.tools.ant.Task.perform(Task.java:364)
        at org.apache.tools.ant.Target.execute(Target.java:341)
        at org.apache.tools.ant.Target.performTasks(Target.java:369)
        at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
        at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecut
or.java:40)
        at
org.apache.tools.ant.Project.executeTargets(Project.java:1068)
        at org.apache.tools.ant.Main.runBuild(Main.java:668)
        at org.apache.tools.ant.Main.startAnt(Main.java:187)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
Caused by:
/INTEG1$DKB3/stadelma/sw-projekte/asf/maven/maven-2/tags/maven-2_2_1/boo
tstrap-build.xml:123: org.codehaus.modello.ModelloException: Error
parsing the model.
        at
org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:180)
        at org.apache.tools.ant.taskdefs.Java.run(Java.java:712)
        at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:180)
        at org.apache.tools.ant.taskdefs.Java.execute(Java.java:86)
        at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
        at org.apache.tools.ant.Task.perform(Task.java:364)
        at
org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:64)
        at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
        at org.apache.tools.ant.Task.perform(Task.java:364)
        at
org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:3
78)
        ... 18 more
Caused by: org.codehaus.modello.ModelloException: Error parsing the
model.
        at
org.codehaus.modello.core.io.ModelReader.loadModel(ModelReader.java:103)
        at
org.codehaus.modello.core.DefaultModelloCore.loadModel(DefaultModelloCor
e.java:170)
        at org.codehaus.modello.Modello.generate(Modello.java:64)
        at org.codehaus.modello.ModelloCli.main(ModelloCli.java:50)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:592)
        at
org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:202)
        at
org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:134)
        ... 27 more
Caused by: org.codehaus.plexus.util.xml.pull.XmlPullParserException: end
tag name </field> must match start tag name <fields> from line 79
(position: TEXT seen ...</field>        </field>... @103:33) 
        at
org.codehaus.plexus.util.xml.pull.MXParser.parseEndTag(MXParser.java:168
6)
        at
org.codehaus.plexus.util.xml.pull.MXParser.nextImpl(MXParser.java:1131)
        at
org.codehaus.plexus.util.xml.pull.MXParser.next(MXParser.java:1093)
        at
org.codehaus.plexus.util.xml.pull.MXParser.nextTag(MXParser.java:1080)
        at
org.codehaus.modello.core.io.ModelReader.parseFields(ModelReader.java:32
5)
        at
org.codehaus.modello.core.io.ModelReader.parseClasses(ModelReader.java:2
84)
        at
org.codehaus.modello.core.io.ModelReader.parseModel(ModelReader.java:137
)
        at
org.codehaus.modello.core.io.ModelReader.loadModel(ModelReader.java:93)
        ... 36 more
--- Nested Exception ---
bootstrap-build.xml [123:2] org.codehaus.modello.ModelloException: Error
parsing the model. 
        at
org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:180)
        at org.apache.tools.ant.taskdefs.Java.run(Java.java:712)
        at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:180)
        at org.apache.tools.ant.taskdefs.Java.execute(Java.java:86)
        at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
        at org.apache.tools.ant.Task.perform(Task.java:364)
        at
org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:64)
        at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
        at org.apache.tools.ant.Task.perform(Task.java:364)
        at
org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:3
78)
        at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
        at org.apache.tools.ant.Task.perform(Task.java:364)
        at
org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:64)
        at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
        at org.apache.tools.ant.Task.perform(Task.java:364)
        at
org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:3
78)
        at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
        at org.apache.tools.ant.Task.perform(Task.java:364)
        at org.apache.tools.ant.Target.execute(Target.java:341)
        at org.apache.tools.ant.Target.performTasks(Target.java:369)
        at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
        at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecut
or.java:40)
        at
org.apache.tools.ant.Project.executeTargets(Project.java:1068)
        at org.apache.tools.ant.Main.runBuild(Main.java:668)
        at org.apache.tools.ant.Main.startAnt(Main.java:187)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
Caused by: org.codehaus.modello.ModelloException: Error parsing the
model.
        at
org.codehaus.modello.core.io.ModelReader.loadModel(ModelReader.java:103)
        at
org.codehaus.modello.core.DefaultModelloCore.loadModel(DefaultModelloCor
e.java:170)
        at org.codehaus.modello.Modello.generate(Modello.java:64)
        at org.codehaus.modello.ModelloCli.main(ModelloCli.java:50)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:592)
        at
org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:202)
        at
org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:134)
        ... 27 more
Caused by: org.codehaus.plexus.util.xml.pull.XmlPullParserException: end
tag name </field> must match start tag name <fields> from line 79
(position: TEXT seen ...</field>        </field>... @103:33) 
        at
org.codehaus.plexus.util.xml.pull.MXParser.parseEndTag(MXParser.java:168
6)
        at
org.codehaus.plexus.util.xml.pull.MXParser.nextImpl(MXParser.java:1131)
        at
org.codehaus.plexus.util.xml.pull.MXParser.next(MXParser.java:1093)
        at
org.codehaus.plexus.util.xml.pull.MXParser.nextTag(MXParser.java:1080)
        at
org.codehaus.modello.core.io.ModelReader.parseFields(ModelReader.java:32
5)
        at
org.codehaus.modello.core.io.ModelReader.parseClasses(ModelReader.java:2
84)
        at
org.codehaus.modello.core.io.ModelReader.parseModel(ModelReader.java:137
)
        at
org.codehaus.modello.core.io.ModelReader.loadModel(ModelReader.java:93)
        ... 36 more
--- Nested Exception ---
org.codehaus.modello.ModelloException: Error parsing the model.
        at
org.codehaus.modello.core.io.ModelReader.loadModel(ModelReader.java:103)
        at
org.codehaus.modello.core.DefaultModelloCore.loadModel(DefaultModelloCor
e.java:170)
        at org.codehaus.modello.Modello.generate(Modello.java:64)
        at org.codehaus.modello.ModelloCli.main(ModelloCli.java:50)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:592)
        at
org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:202)
        at
org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:134)
        at org.apache.tools.ant.taskdefs.Java.run(Java.java:712)
        at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:180)
        at org.apache.tools.ant.taskdefs.Java.execute(Java.java:86)
        at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
        at org.apache.tools.ant.Task.perform(Task.java:364)
        at
org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:64)
        at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
        at org.apache.tools.ant.Task.perform(Task.java:364)
        at
org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:3
78)
        at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
        at org.apache.tools.ant.Task.perform(Task.java:364)
        at
org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:64)
        at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
        at org.apache.tools.ant.Task.perform(Task.java:364)
        at
org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:3
78)
        at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
        at org.apache.tools.ant.Task.perform(Task.java:364)
        at org.apache.tools.ant.Target.execute(Target.java:341)
        at org.apache.tools.ant.Target.performTasks(Target.java:369)
        at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
        at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecut
or.java:40)
        at
org.apache.tools.ant.Project.executeTargets(Project.java:1068)
        at org.apache.tools.ant.Main.runBuild(Main.java:668)
        at org.apache.tools.ant.Main.startAnt(Main.java:187)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
Caused by: org.codehaus.plexus.util.xml.pull.XmlPullParserException: end
tag name </field> must match start tag name <fields> from line 79
(position: TEXT seen ...</field>        </field>... @103:33) 
        at
org.codehaus.plexus.util.xml.pull.MXParser.parseEndTag(MXParser.java:168
6)
        at
org.codehaus.plexus.util.xml.pull.MXParser.nextImpl(MXParser.java:1131)
        at
org.codehaus.plexus.util.xml.pull.MXParser.next(MXParser.java:1093)
        at
org.codehaus.plexus.util.xml.pull.MXParser.nextTag(MXParser.java:1080)
        at
org.codehaus.modello.core.io.ModelReader.parseFields(ModelReader.java:32
5)
        at
org.codehaus.modello.core.io.ModelReader.parseClasses(ModelReader.java:2
84)
        at
org.codehaus.modello.core.io.ModelReader.parseModel(ModelReader.java:137
)
        at
org.codehaus.modello.core.io.ModelReader.loadModel(ModelReader.java:93)
        ... 36 more
Total time: 15 seconds
Finished (maven-2-2-1 (bootstrap-build.xml))


Conclusion; Generating sources from mdo files does not yet work on
OpenVMS for unknown reasons.

Josef.Stadelmann
@axa-winterthur.ch

Re: AW: AW: org.codehaus.modello.ModelloCli fails parsing maven.mdo on OpenVMS

Posted by Hervé BOUTEMY <he...@free.fr>.
Modello uses XPP3 parser from plexus-utils, without any way to use another 
parser (see [1])

AFAIK, Maven models are very simple XML documents, without any non-ascii 
characters that could make parsing a little bit tricky.

Can you zip maven.mdo taken from your OpenVMS machine and send it to me 
please, so I can check if there is any surprising thing in it?
Please add "ant -diagnostics" output to the zip file, please, so I can have 
information on your environment.

I'm very interested in such "exotic" configuration, since I want to check that 
encoding is working properly everywhere.

Regards,

Hervé

[1] http://fisheye.codehaus.org/browse/modello/trunk/modello-
core/src/main/java/org/codehaus/modello/core/io/ModelReader.java?r=1436#l91

Le mercredi 19 janvier 2011, Stadelmann Josef a écrit :
> That is what I think as well. In this case I would need to know
> 
> Looking at the xml below, its clearly the "generate-sources" target
> which fails and in that the line with java fork="fork" ... which
> gets executed and fails in turn parsing the model file .mdo.
> 
> How does the "class org.codehaus.modello.ModelloCli" select which parser
> to use and how can I check that the proper parser is used?
> 
> How can I enforce that this class uses a different parser?
> 
> Josef
> 
>   <target name="generate-sources" depends="pull" description="generates
> Java sources from Modello mdo model files"> <mkdir
> dir="bootstrap/target"/>
>     <mkdir dir="bootstrap/target/generated-sources"/>
> 
>     <macrodef name="modello-single-mode">
>       <attribute name="file"/>
>       <attribute name="mode"/>
>       <attribute name="version"/>
>       <sequential>
>         <java fork="fork" classname="org.codehaus.modello.ModelloCli"
> failonerror="true"> <classpath refid="modello.pathid"/>
>           <arg file="@{file}"/> <!-- model file -->
>           <arg value="@{mode}"/> <!-- output type -->
>           <arg file="bootstrap/target/generated-sources"/> <!-- output
> directory --> <arg value="@{version}"/> <!-- model version -->
>           <arg value="false"/> <!-- package with version -->
>           <arg value="true"/> <!-- use Java 5 -->
>           <arg value="UTF-8"/> <!-- encoding -->
>         </java>
>       </sequential>
>     </macrodef>
> 
>     <macrodef name="modello">
>       <attribute name="file"/>
>       <attribute name="version" default="1.0.0"/>
>       <sequential>
>         <echo taskname="modello" message="Generating sources for @{file}"/>
>         <modello-single-mode file="@{file}" version="@{version}"
> mode="java"/> <modello-single-mode file="@{file}" version="@{version}"
> mode="xpp3-reader"/> <modello-single-mode file="@{file}"
> version="@{version}" mode="xpp3-writer"/> </sequential>
>     </macrodef>
> 
>     <modello file="maven-model/src/main/mdo/maven.mdo" version="4.0.0"/>
>     <modello file="maven-plugin-descriptor/src/main/mdo/lifecycle.mdo"/>
>     <modello file="maven-plugin-registry/plugin-registry.mdo"/>
>     <modello
> file="maven-plugin-parameter-documenter/src/main/mdo/paramdoc.mdo"/>
> <modello file="maven-profile/src/main/mdo/profiles.mdo"/>
>     <modello file="maven-settings/src/main/mdo/settings.mdo"/>
>     <modello file="maven-repository-metadata/src/main/mdo/metadata.mdo"/>
>     <modello file="maven-toolchain/src/main/mdo/toolchains.mdo"/>
> 
>   </target>
> 
> -----Ursprüngliche Nachricht-----
> Von: Kristian Rosenvold [mailto:kristian.rosenvold@gmail.com]
> Gesendet: Mittwoch, 19. Januar 2011 08:30
> An: Maven Users List
> Betreff: Re: AW: org.codehaus.modello.ModelloCli fails parsing maven.mdo on
> OpenVMS
> 
> Den 18.01.2011 17:16, skrev Stadelmann Josef:
> > Maybe you have another advise for me.
> 
>  From the general smell of it I would suspect this is somehow related to
> your xml parsers/versions or some kind of inappropriate
>   version mix. I know this is probably not too helpful....
> 
> Kristian
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


AW: AW: org.codehaus.modello.ModelloCli fails parsing maven.mdo on OpenVMS

Posted by Stadelmann Josef <jo...@axa-winterthur.ch>.
That is what I think as well. In this case I would need to know 

Looking at the xml below, its clearly the "generate-sources" target 
which fails and in that the line with java fork="fork" ... which 
gets executed and fails in turn parsing the model file .mdo.

How does the "class org.codehaus.modello.ModelloCli" select which parser 
to use and how can I check that the proper parser is used? 

How can I enforce that this class uses a different parser?

Josef

  <target name="generate-sources" depends="pull" description="generates Java sources from Modello mdo model files">
    <mkdir dir="bootstrap/target"/>
    <mkdir dir="bootstrap/target/generated-sources"/>

    <macrodef name="modello-single-mode">
      <attribute name="file"/>
      <attribute name="mode"/>
      <attribute name="version"/>
      <sequential>
        <java fork="fork" classname="org.codehaus.modello.ModelloCli" failonerror="true">
          <classpath refid="modello.pathid"/>
          <arg file="@{file}"/> <!-- model file -->
          <arg value="@{mode}"/> <!-- output type -->
          <arg file="bootstrap/target/generated-sources"/> <!-- output directory -->
          <arg value="@{version}"/> <!-- model version -->
          <arg value="false"/> <!-- package with version -->
          <arg value="true"/> <!-- use Java 5 -->
          <arg value="UTF-8"/> <!-- encoding -->
        </java>
      </sequential>
    </macrodef>

    <macrodef name="modello">
      <attribute name="file"/>
      <attribute name="version" default="1.0.0"/>
      <sequential>
        <echo taskname="modello" message="Generating sources for @{file}"/>
        <modello-single-mode file="@{file}" version="@{version}" mode="java"/>
        <modello-single-mode file="@{file}" version="@{version}" mode="xpp3-reader"/>
        <modello-single-mode file="@{file}" version="@{version}" mode="xpp3-writer"/>
      </sequential>
    </macrodef>

    <modello file="maven-model/src/main/mdo/maven.mdo" version="4.0.0"/>
    <modello file="maven-plugin-descriptor/src/main/mdo/lifecycle.mdo"/>
    <modello file="maven-plugin-registry/plugin-registry.mdo"/>
    <modello file="maven-plugin-parameter-documenter/src/main/mdo/paramdoc.mdo"/>
    <modello file="maven-profile/src/main/mdo/profiles.mdo"/>
    <modello file="maven-settings/src/main/mdo/settings.mdo"/>
    <modello file="maven-repository-metadata/src/main/mdo/metadata.mdo"/>
    <modello file="maven-toolchain/src/main/mdo/toolchains.mdo"/>

  </target>

-----Ursprüngliche Nachricht-----
Von: Kristian Rosenvold [mailto:kristian.rosenvold@gmail.com] 
Gesendet: Mittwoch, 19. Januar 2011 08:30
An: Maven Users List
Betreff: Re: AW: org.codehaus.modello.ModelloCli fails parsing maven.mdo on OpenVMS


Den 18.01.2011 17:16, skrev Stadelmann Josef:
> Maybe you have another advise for me.
>
 From the general smell of it I would suspect this is somehow related to 
your xml parsers/versions or some kind of inappropriate
  version mix. I know this is probably not too helpful....

Kristian




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: AW: org.codehaus.modello.ModelloCli fails parsing maven.mdo on OpenVMS

Posted by Kristian Rosenvold <kr...@gmail.com>.
Den 18.01.2011 17:16, skrev Stadelmann Josef:
> Maybe you have another advise for me.
>
 From the general smell of it I would suspect this is somehow related to 
your xml parsers/versions or some kind of inappropriate
  version mix. I know this is probably not too helpful....

Kristian




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


AW: org.codehaus.modello.ModelloCli fails parsing maven.mdo on OpenVMS

Posted by Stadelmann Josef <jo...@axa-winterthur.ch>.
I am using NetBeans IDE with distributed NetBeans Plugin from HP to connect to OpenVMS

That way I can say that any .mdo file is an ASCII file to be sent/received by the FTP
File cabinet to/from openVMS.

So over all I have avery convenient way to put or get files to from my OpenVMS FTP
File cabinet. And I just did a get from server and then applied a local PC based 
Build of the target "generate-sources" and all went OK.

I doubble checkk with the EDT on OpenVMS and it seams a plain vanilla XML file.
Because NetBeans said the file type is unknown I assigned it a Mime type of
(application/xml)

I took NetBeans and I applied an xml check and an xml validation and all went Ok.

I went online to connect via FTP to my OpenVMS system and I did "put file to server"

I toke my plain old OpenVMS EDT and I could edit it without any troubles.

and I marked line 79 with EDT and went down to line 103 with EDT and the look all the same
in OpenVMS EDIT EDT and in NetBeans, guess there is a parser problem maybe with encoding
as in OpenVMS we normally use ISO-8895-1 not UTF-8.

We can say it is the same content. 

And you want beleave it ... after I toke out the content of the first 4 <description>
</description>

In particular the CDATA sections but left 
	<description>Test
	</description>

the parsing went well over maven.mdo (all 3 gen-sets), lifecycle.mdo (all 3 gen sets), 
but failed again for the plugin-registry.mdo with the java gen set.

Maybe you have another advise for me.

Josef


...
  <classes>
    <class rootElement="true" xml.tagName="project">
      <name>Model</name>
      <superClass>ModelBase</superClass>
      <description>
        <![CDATA[
        The <code>&lt;project&gt;</code> element is the root of the descriptor.
        The following table lists all of the possible child elements.
        ]]>
      </description>
      <version>3.0.0+</version>
      <fields> ......................................... this is line 79 in OpenVMS EDT

        <!-- ====================================================================== -->
        <!-- Model Version                                                          -->
        <!-- ====================================================================== -->

        <field>
          <name>pomVersion</name>
          <version>3.0.0</version>
          <required>true</required>
          <type>String</type>
          <description>
            <![CDATA[
            Declares to which version of project descriptor this POM conforms.
            The only valid value is <code>3</code>.
            ]]>
          </description>
        </field>
        <field>
          <name>modelVersion</name>
          <version>4.0.0</version>
          <required>true</required>
          <description>Declares to which version of project descriptor this POM conforms.</description>
          <type>String</type>
        </field> .....and this is line 103 in openVMS EDT and the same is shown in NetBeans IDE Editor

        <!-- ====================================================================== -->
        <!-- Parent Model                                                           -->
        <!-- ====================================================================== -->



-----Ursprüngliche Nachricht-----
Von: Wayne Fay [mailto:waynefay@gmail.com] 
Gesendet: Dienstag, 18. Januar 2011 16:10
An: Maven Users List
Betreff: Re: org.codehaus.modello.ModelloCli fails parsing maven.mdo on OpenVMS

> Caused by: org.codehaus.plexus.util.xml.pull.XmlPullParserException: end
> tag name </field> must match start tag name <fields> from line 79
> (position: TEXT seen ...</field>        </field>... @103:33)

Did you check around line 79, the </field> and </fields> etc? Are you
certain this is exactly the same file that is processed with no errors
on Windows with zero edits or modifications, the same revision number,
etc?

Wayne

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: org.codehaus.modello.ModelloCli fails parsing maven.mdo on OpenVMS

Posted by Wayne Fay <wa...@gmail.com>.
> Caused by: org.codehaus.plexus.util.xml.pull.XmlPullParserException: end
> tag name </field> must match start tag name <fields> from line 79
> (position: TEXT seen ...</field>        </field>... @103:33)

Did you check around line 79, the </field> and </fields> etc? Are you
certain this is exactly the same file that is processed with no errors
on Windows with zero edits or modifications, the same revision number,
etc?

Wayne

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org