maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Matthijs <li...@selckin.be>
Subject Re: xlint compiler arguments & release plugin
Date Tue, 12 Mar 2013 11:35:18 GMT
http://jira.codehaus.org/browse/MRELEASE-828


On Tue, Mar 12, 2013 at 12:28 PM, Stephen Connolly <
stephen.alan.connolly@gmail.com> wrote:

> please open a JIRA issue against the Maven release plugin
>
>
> On 12 March 2013 11:27, Stephen Connolly <stephen.alan.connolly@gmail.com
> >wrote:
>
> > smells like a bit of an edge case bug... you might be able to work around
> > by changing <configuration> to <configuration xmlns:Xlint="xlint"> though
> > that may break other things
> >
> >
> > On 12 March 2013 11:17, Thomas Matthijs <lists@selckin.be> wrote:
> >
> >> Hey,
> >>
> >> The compiler plugins states to use something like this to pass xlint
> >> arguments:
> >>            <plugin>
> >>                     <groupId>org.apache.maven.plugins</groupId>
> >>                     <artifactId>maven-compiler-plugin</artifactId>
> >>                     <version>2.4</version>
> >>                     <configuration>
> >>                         <compilerArguments>
> >>                             <Xlint:varargs/>
> >>                         </compilerArguments>
> >>                     </configuration>
> >>                 </plugin>
> >>
> >> See
> >>
> >>
> http://maven.apache.org/plugins/maven-compiler-plugin/compile-mojo.html#compilerArguments
> >>
> >> However if you use maven-release-plugin on a pom with this it fails: The
> >> prefix "Xlint" for element "Xlint:varargs" is not bound.
> >>
> >> Am i doing it wrong, is this a bug? is there a way to specify this that
> >> works?
> >>
> >>
> >>
> >> mavenExecutionResult exceptions not empty
> >> message : Failed to execute goal
> >> org.apache.maven.plugins:maven-release-plugin:2.4:prepare
> >> (default-cli) on project actonomy-parent: Error reading POM: Error on
> >> line 96: The prefix "Xlint" for element "Xlint:varargs" is not bound.
> >> cause : Error reading POM: Error on line 96: The prefix "Xlint" for
> >> element "Xlint:varargs" is not bound.
> >> Stack trace :
> >> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
> >> execute goal org.apache.maven.plugins:maven-release-plugin:2.4:prepare
> >> (default-cli) on project actonomy-parent: Error reading POM: Error on
> >> line 96: The prefix "Xlint" for element "Xlint:varargs" is not bound.
> >>         at
> >>
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
> >>         at
> >>
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
> >>         at
> >>
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
> >>         at
> >>
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
> >>         at
> >>
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
> >>         at
> >>
> org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
> >>         at
> >>
> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
> >>         at
> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
> >>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
> >>         at
> >>
> org.jvnet.hudson.maven3.launcher.Maven3Launcher.main(Maven3Launcher.java:79)
> >>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >>         at
> >>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> >>         at
> >>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> >>         at java.lang.reflect.Method.invoke(Method.java:597)
> >>         at
> >>
> org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:329)
> >>         at
> >>
> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:239)
> >>         at
> >> org.jvnet.hudson.maven3.agent.Maven3Main.launch(Maven3Main.java:158)
> >>         at hudson.maven.Maven3Builder.call(Maven3Builder.java:100)
> >>         at hudson.maven.Maven3Builder.call(Maven3Builder.java:66)
> >>         at hudson.remoting.UserRequest.perform(UserRequest.java:118)
> >>         at hudson.remoting.UserRequest.perform(UserRequest.java:48)
> >>         at hudson.remoting.Request$2.run(Request.java:326)
> >>         at
> >>
> hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
> >>         at
> >> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
> >>         at java.util.concurrent.FutureTask.run(FutureTask.java:138)
> >>         at
> >>
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
> >>         at
> >>
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
> >>         at java.lang.Thread.run(Thread.java:662)
> >> Caused by: org.apache.maven.plugin.MojoExecutionException: Error
> >> reading POM: Error on line 96: The prefix "Xlint" for element
> >> "Xlint:varargs" is not bound.
> >>         at
> >>
> org.apache.maven.plugins.release.PrepareReleaseMojo.prepareRelease(PrepareReleaseMojo.java:281)
> >>         at
> >>
> org.apache.maven.plugins.release.PrepareReleaseMojo.execute(PrepareReleaseMojo.java:232)
> >>         at
> >>
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
> >>         at
> >>
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
> >>         ... 27 more
> >> Caused by: org.apache.maven.shared.release.ReleaseExecutionException:
> >> Error reading POM: Error on line 96: The prefix "Xlint" for element
> >> "Xlint:varargs" is not bound.
> >>         at
> >>
> org.apache.maven.shared.release.phase.AbstractRewritePomsPhase.transformProject(AbstractRewritePomsPhase.java:200)
> >>         at
> >>
> org.apache.maven.shared.release.phase.AbstractRewritePomsPhase.transform(AbstractRewritePomsPhase.java:131)
> >>         at
> >>
> org.apache.maven.shared.release.phase.AbstractRewritePomsPhase.execute(AbstractRewritePomsPhase.java:116)
> >>         at
> >>
> org.apache.maven.shared.release.DefaultReleaseManager.prepare(DefaultReleaseManager.java:234)
> >>         at
> >>
> org.apache.maven.shared.release.DefaultReleaseManager.prepare(DefaultReleaseManager.java:169)
> >>         at
> >>
> org.apache.maven.shared.release.DefaultReleaseManager.prepare(DefaultReleaseManager.java:146)
> >>         at
> >>
> org.apache.maven.shared.release.DefaultReleaseManager.prepare(DefaultReleaseManager.java:107)
> >>         at
> >>
> org.apache.maven.plugins.release.PrepareReleaseMojo.prepareRelease(PrepareReleaseMojo.java:277)
> >>         ... 30 more
> >> Caused by: org.jdom.input.JDOMParseException: Error on line 96: The
> >> prefix "Xlint" for element "Xlint:varargs" is not bound.
> >>         at org.jdom.input.SAXBuilder.build(SAXBuilder.java:468)
> >>         at org.jdom.input.SAXBuilder.build(SAXBuilder.java:851)
> >>         at
> >>
> org.apache.maven.shared.release.phase.AbstractRewritePomsPhase.transformProject(AbstractRewritePomsPhase.java:151)
> >>         ... 37 more
> >> Caused by: org.xml.sax.SAXParseException: The prefix "Xlint" for
> >> element "Xlint:varargs" is not bound.
> >>         at
> >>
> com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195)
> >>         at
> >>
> com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:174)
> >>         at
> >>
> com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:388)
> >>         at
> >>
> com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:318)
> >>         at
> >>
> com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:310)
> >>         at
> >>
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2756)
> >>         at
> >>
> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:647)
> >>         at
> >>
> com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)
> >>         at
> >>
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:511)
> >>         at
> >>
> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808)
> >>         at
> >>
> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
> >>         at
> >>
> com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119)
> >>         at
> >>
> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
> >>         at
> >>
> com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
> >>         at org.jdom.input.SAXBuilder.build(SAXBuilder.java:453)
> >>         ... 39 more
> >>
> >
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message