You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Karl Heinz Marbaise (JIRA)" <ji...@apache.org> on 2015/05/28 11:44:17 UTC

[jira] [Closed] (MCOMPILER-243) Compiler Plugin's Documentation on Compiler Args Seems Wrong

     [ https://issues.apache.org/jira/browse/MCOMPILER-243?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Karl Heinz Marbaise closed MCOMPILER-243.
-----------------------------------------
    Resolution: Not A Problem
      Assignee: Karl Heinz Marbaise

This is not an error of the plugin it's error of the user cause for all configuration of plugins you have to use the <configuration> tag which is intended to configure the plugin. So this is not bug it is intended behaviour to give an error in case of wrong usage, cause compilerArgs is not allowed to use in a pom file. See the http://maven.apache.org/xsd/maven-4.0.0.xsd


> Compiler Plugin's Documentation on Compiler Args Seems Wrong
> ------------------------------------------------------------
>
>                 Key: MCOMPILER-243
>                 URL: https://issues.apache.org/jira/browse/MCOMPILER-243
>             Project: Maven Compiler Plugin
>          Issue Type: Bug
>            Reporter: Tim Stewart
>            Assignee: Karl Heinz Marbaise
>            Priority: Trivial
>              Labels: compiler, docuentation
>
> On this page: 
>     http://maven.apache.org/plugins/maven-compiler-plugin/examples/pass-compiler-arguments.html
> I'm instructed to express compilerArgs this way:
>     <plugins>
>       <plugin>
>         <groupId>org.apache.maven.plugins</groupId>
>         <artifactId>maven-compiler-plugin</artifactId>
>         <version>3.3</version>
>         <compilerArgs>
>             <arg>-verbose</arg>
>             <arg>-Xlint:all,-options,-path</arg>
>           </compilerArgs>
>       </plugin>
>     </plugins>
> When I do that I get an error:
>     Unrecognised tag: 'compilerArgs' (position: START_TAG seen ...</configuration>\n            <compilerArgs>... @21:27) 
> But when I tuck the compilerArgs XML element under the configuration element, it works:
>         <plugin>
>           <groupId>org.apache.maven.plugins</groupId>
>           <artifactId>maven-compiler-plugin</artifactId>
>           <version>3.3</version>
>           <configuration>
>             <compilerArgs>
>               <arg>-verbose</arg>
>               <arg>-Xlint:all,-options,-path</arg>
>             </compilerArgs>
>             <source>1.8</source>
>             <target>1.8</target>
>           </configuration>
>         </plugin>



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)