Hi
I am using Maven2 in my project to build the target. I am trying to use ant task in my pom.xml using the maven-antrun-plugin plugin Following is the snippet of my pom.xml <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-antrun-plugin</artifactId> <executions> <configuration> <tasks> <property name="compile_classpath" refid="maven.compile.classpath"/> <property name="runtime_classpath" refid="maven.runtime.classpath"/> <property name="test_classpath" refid="maven.test.classpath"/> <property name="plugin_classpath" refid="maven.plugin.classpath"/> <echo message="compile classpath: ${compile_classpath}"/> <echo message="runtime classpath: ${runtime_classpath}"/> <echo message="test classpath: ${test_classpath}"/> <echo message="plugin classpath: ${plugin_classpath}"/> </tasks> </configuration> <goals> <goal>run</goal> </goals> </executions> </plugin> </plugins> When I try to run my pom.xml, I am getting following error at the Command line D:\ossj\jsr091\troubleticket-1_2\workspace\spec>\maven\maven-2.0.7\bin\m vn [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [ERROR] FATAL ERROR [INFO] ------------------------------------------------------------------------ [INFO] Error building POM (may not be this project's POM). Project ID: unknown POM Location: D:\ossj\jsr091\troubleticket-1_2\workspace\spec\pom.xml Reason: Parse error reading POM. Reason: parser must be on START_TAG or TEXT to read text (position: START_TAG seen ...<configuration><tasks>... @58:43) for pr oject unknown at D:\ossj\jsr091\troubleticket-1_2\workspace\spec\pom.xml [INFO] ------------------------------------------------------------------------ [INFO] Trace org.apache.maven.reactor.MavenExecutionException: Parse error reading POM. Reaso n: parser must be on START_TAG or TEXT to read text (position: START_TAG seen .. .<configuration><tasks>... @58:43) for project unknown at D:\ossj\jsr091\troubl eticket-1_2\workspace\spec\pom.xml at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:378) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:290) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125) at org.apache.maven.cli.MavenCli.main(MavenCli.java:280) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.maven.project.InvalidProjectModelException: Parse error re ading POM. Reason: parser must be on START_TAG or TEXT to read text (position: S TART_TAG seen ...<configuration><tasks>... @58:43) for project unknown at D:\os sj\jsr091\troubleticket-1_2\workspace\spec\pom.xml at org.apache.maven.project.DefaultMavenProjectBuilder.readModel(Default MavenProjectBuilder.java:1422) at org.apache.maven.project.DefaultMavenProjectBuilder.readModel(Default MavenProjectBuilder.java:1379) at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFi leInternal(DefaultMavenProjectBuilder.java:477) at org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMave nProjectBuilder.java:200) at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:553) at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:467) at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:364) ... 11 more Caused by: org.codehaus.plexus.util.xml.pull.XmlPullParserException: parser must be on START_TAG or TEXT to read text (position: START_TAG seen ...<configuratio n><tasks>... @58:43) at org.codehaus.plexus.util.xml.pull.MXParser.nextText(MXParser.java:106 8) at org.apache.maven.model.io.xpp3.MavenXpp3Reader.parsePlugin(MavenXpp3R eader.java:2905) at org.apache.maven.model.io.xpp3.MavenXpp3Reader.parseBuild(MavenXpp3Re ader.java:753) at org.apache.maven.model.io.xpp3.MavenXpp3Reader.parseModel(MavenXpp3Re ader.java:2224) at org.apache.maven.model.io.xpp3.MavenXpp3Reader.read(MavenXpp3Reader.j ava:4422) at org.apache.maven.project.DefaultMavenProjectBuilder.readModel(Default MavenProjectBuilder.java:1418) ... 17 more [INFO] ------------------------------------------------------------------------ [INFO] Total time: < 1 second [INFO] Finished at: Thu Sep 06 14:49:57 IST 2007 [INFO] Final Memory: 1M/2M [INFO] ------------------------------------------------------------------------ Regards, Prabodh Mitra The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com