maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benoît Thiébault <thieba...@artenum.com>
Subject Re: Compiling error with Maven Ant Tasks, not Maven
Date Fri, 09 Sep 2011 15:57:38 GMT
Thank you for your answer,
I tried that and the compilation worked.
I however have plenty of warnings about invalid pom files (see below).
Should I worry?

[artifact:mvn] [WARNING] POM for
'org.osgi:org.osgi.core:pom:4.3.0:compile' is invalid. It will be
ignored for artifact resolution. Reason: Not a v4.0.0 POM. for project
org.osgi:org.osgi.core
at /home/ben/.m2/repository/org/osgi/org.osgi.core/4.3.0/org.osgi.core-4.3.0.pom
[artifact:mvn] [WARNING] POM for
'org.osgi:org.osgi.core:pom:4.3.0:compile' is invalid. It will be
ignored for artifact resolution. Reason: Not a v4.0.0 POM. for project
org.osgi:org.osgi.core
at /home/ben/.m2/repository/org/osgi/org.osgi.core/4.3.0/org.osgi.core-4.3.0.pom


Le vendredi 09 septembre 2011 à 16:51 +0100, Stephen Connolly a écrit :
> try turning on fork.
> 
> 2011/9/9 Benoît Thiébault <thiebault@artenum.com>:
> > I everyone,
> >
> > I am using Maven Ant Tasks to call Maven to compile my code.
> >
> > When I compile it with Maven directly from command line, it works
> > perfectly well. My version of Maven is: Apache Maven 3.0.3
> > (rNON-CANONICAL_2011-06-28_15-20_mockbuild; 2011-06-28 17:20:31+0200)
> >
> > But when I use Maven Ant Tasks (version 2.1.3) the embedded Maven seems
> > to have trouble with Xerces.
> >
> > I have read similar problems here:
> > http://blog.infinitechaos.com/2008/12/30/another-m2eclipse-tip/
> > and there:
> > http://jira.codehaus.org/browse/MNGECLIPSE-716
> >
> > But couldn't make their workaround work.
> >
> > The ant script is:
> > <artifact:mvn>
> >        <arg value="install" />
> >        <arg value="-DskipTests=true" />
> > </artifact:mvn>
> >
> > The error message:
> >
> > [artifact:mvn] [WARNING] POM for 'biz.aQute:bndlib:pom:1.43.0:runtime'
> > is invalid. It will be ignored for artifact resolution. Reason: Not a
> > v4.0.0 POM. for project biz.aQute:bndlib
> > at /home/ben/.m2/repository/biz/aQute/bndlib/1.43.0/bndlib-1.43.0.pom
> > [artifact:mvn] [WARNING] POM for 'biz.aQute:bndlib:pom:1.43.0:runtime'
> > is invalid. It will be ignored for artifact resolution. Reason: Not a
> > v4.0.0 POM. for project biz.aQute:bndlib
> > at /home/ben/.m2/repository/biz/aQute/bndlib/1.43.0/bndlib-1.43.0.pom
> > [artifact:mvn] [INFO] [bundle:bundle]
> > [artifact:mvn] ERREUR :  'Provider
> > org.apache.xerces.jaxp.SAXParserFactoryImpl not found'
> > [artifact:mvn] ERREUR BLOQUANTE :  'Impossible de compiler la feuille de
> > style'
> > [artifact:mvn] ERREUR :  'Provider
> > org.apache.xerces.jaxp.SAXParserFactoryImpl not found'
> > [artifact:mvn] ERREUR BLOQUANTE :  'Impossible de compiler la feuille de
> > style'
> > [artifact:mvn] javax.xml.transform.TransformerConfigurationException:
> > Impossible de compiler la feuille de style
> > [artifact:mvn]  at
> > com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:828)
> > [artifact:mvn]  at
> > com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:617)
> > [artifact:mvn]  at
> > aQute.lib.spring.XMLType.getTransformer(XMLType.java:106)
> > [artifact:mvn]  at aQute.lib.spring.XMLType.<init>(XMLType.java:24)
> > [artifact:mvn]  at
> > aQute.lib.spring.XMLTypeProcessor.process(XMLTypeProcessor.java:28)
> > [artifact:mvn]  at
> > aQute.lib.spring.SpringXMLType.getTypes(SpringXMLType.java:23)
> > [artifact:mvn]  at
> > aQute.lib.spring.XMLTypeProcessor.analyzeJar(XMLTypeProcessor.java:11)
> > [artifact:mvn]  at aQute.lib.osgi.Analyzer.analyze(Analyzer.java:124)
> > [artifact:mvn]  at aQute.lib.osgi.Builder.analyze(Builder.java:304)
> > [artifact:mvn]  at
> > aQute.lib.osgi.Analyzer.calcManifest(Analyzer.java:295)
> > [artifact:mvn]  at aQute.lib.osgi.Builder.build(Builder.java:70)
> > [artifact:mvn]  at
> > org.apache.felix.bundleplugin.BundlePlugin.buildOSGiBundle(BundlePlugin.java:480)
> > [artifact:mvn]  at
> > org.apache.felix.bundleplugin.BundlePlugin.execute(BundlePlugin.java:344)
> > [artifact:mvn]  at
> > org.apache.felix.bundleplugin.BundlePlugin.execute(BundlePlugin.java:261)
> > [artifact:mvn]  at
> > org.apache.felix.bundleplugin.BundlePlugin.execute(BundlePlugin.java:252)
> > [artifact:mvn]  at
> > org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:453)
> > [artifact:mvn]  at
> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559)
> > [artifact:mvn]  at
> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:500)
> > [artifact:mvn]  at
> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:479)
> > [artifact:mvn]  at
> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:331)
> > [artifact:mvn]  at
> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:292)
> > [artifact:mvn]  at
> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
> > [artifact:mvn]  at
> > org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
> > [artifact:mvn]  at
> > org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
> > [artifact:mvn]  at org.apache.maven.cli.MavenCli.main(MavenCli.java:301)
> > [artifact:mvn]  at org.apache.maven.cli.MavenCli.main(MavenCli.java:93)
> > [artifact:mvn]  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> > Method)
> > [artifact:mvn]  at
> > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> > [artifact:mvn]  at
> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> > [artifact:mvn]  at java.lang.reflect.Method.invoke(Method.java:597)
> > [artifact:mvn]  at
> > org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:217)
> > [artifact:mvn]  at
> > org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:152)
> > [artifact:mvn]  at org.apache.tools.ant.taskdefs.Java.run(Java.java:771)
> > [artifact:mvn]  at
> > org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:221)
> > [artifact:mvn]  at
> > org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:135)
> > [artifact:mvn]  at
> > org.apache.tools.ant.taskdefs.Java.execute(Java.java:108)
> > [artifact:mvn]  at
> > org.apache.maven.artifact.ant.Mvn.execute(Mvn.java:91)
> > [artifact:mvn]  at
> > org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
> > [artifact:mvn]  at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown
> > Source)
> > [artifact:mvn]  at
> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> > [artifact:mvn]  at java.lang.reflect.Method.invoke(Method.java:597)
> > [artifact:mvn]  at
> > org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
> > [artifact:mvn]  at org.apache.tools.ant.Task.perform(Task.java:348)
> > [artifact:mvn]  at org.apache.tools.ant.Target.execute(Target.java:390)
> > [artifact:mvn]  at
> > org.apache.tools.ant.Target.performTasks(Target.java:411)
> > [artifact:mvn]  at
> > org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
> > [artifact:mvn]  at
> > org.apache.tools.ant.Project.executeTarget(Project.java:1368)
> > [artifact:mvn]  at
> > org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
> > [artifact:mvn]  at
> > org.apache.tools.ant.Project.executeTargets(Project.java:1251)
> > [artifact:mvn]  at org.apache.tools.ant.Main.runBuild(Main.java:809)
> > [artifact:mvn]  at org.apache.tools.ant.Main.startAnt(Main.java:217)
> > [artifact:mvn]  at
> > org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
> > [artifact:mvn]  at
> > org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
> > [artifact:mvn] [ERROR] Bundle
> > org.keridwen.core:org-keridwen-core-data-model:bundle:0.0.1-SNAPSHOT :
> > Problem loading the plugin:
> > org.apache.felix.bundleplugin.BlueprintPlugin exception:
> > (javax.xml.transform.TransformerConfigurationException: Impossible de
> > compiler la feuille de style)
> > [artifact:mvn] [ERROR] Bundle
> > org.keridwen.core:org-keridwen-core-data-model:bundle:0.0.1-SNAPSHOT :
> > Plugin Analyzer aQute.lib.spring.SpringXMLType@24226649 throws exception
> > javax.xml.transform.TransformerConfigurationException: Impossible de
> > compiler la feuille de style
> > [artifact:mvn] [ERROR] Error(s) found in bundle configuration
> > [artifact:mvn] [INFO]
> > ------------------------------------------------------------------------
> > [artifact:mvn] [ERROR] BUILD ERROR
> >
> >
> >
> > ---------------------------------------------------------------------
> > 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
> 


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


Mime
View raw message