You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Hervé BOUTEMY <he...@free.fr> on 2016/10/19 06:09:41 UTC
Re: svn commit: r1765195 - /maven/plugins/trunk/maven-compiler-plugin/src/site/apt/examples/set-compiler-source-and-target.apt.vm
good idea
when I see that, I think we should also talk about maven.compiler.source and
maven.compiler target properties in this focused page, isn't it?
Regards,
Hervé
Le dimanche 16 octobre 2016 22:38:01 gboue@apache.org a écrit :
> Author: gboue
> Date: Sun Oct 16 22:38:01 2016
> New Revision: 1765195
>
> URL: http://svn.apache.org/viewvc?rev=1765195&view=rev
> Log:
> Updating the "Setting the -source and -target of the Java Compiler"
> documentation page by referencing Java 8 features instead of Java 4. This
> closes #69.
>
> Modified:
>
> maven/plugins/trunk/maven-compiler-plugin/src/site/apt/examples/set-compile
> r-source-and-target.apt.vm
>
> Modified:
> maven/plugins/trunk/maven-compiler-plugin/src/site/apt/examples/set-compile
> r-source-and-target.apt.vm URL:
> http://svn.apache.org/viewvc/maven/plugins/trunk/maven-compiler-plugin/src/
> site/apt/examples/set-compiler-source-and-target.apt.vm?rev=1765195&r1=17651
> 94&r2=1765195&view=diff
> ===========================================================================
> === ---
> maven/plugins/trunk/maven-compiler-plugin/src/site/apt/examples/set-compile
> r-source-and-target.apt.vm (original) +++
> maven/plugins/trunk/maven-compiler-plugin/src/site/apt/examples/set-compile
> r-source-and-target.apt.vm Sun Oct 16 22:38:01 2016 @@ -33,9 +33,9 @@
> Setting the <<<-source>>> and <<<-target
> such command using <<<-source>>> and <<<-target>>>. The Compiler Plugin
> can also be configured to provide these options during compilation.
>
> - For example, if you want to enable assertions (<<<-source 1.4>>>) and
> also want the - compiled classes to be compatible with JVM 1.4 (<<<-target
> 1.4>>>), you can then - put:
> + For example, if you want to use the Java 8 language features (<<<-source
> 1.8>>>) + and also want the compiled classes to be compatible with JVM 1.8
> (<<<-target 1.8>>>), + you can then put:
>
> +-----
> <project>
> @@ -48,8 +48,8 @@ Setting the <<<-source>>> and <<<-target
> <artifactId>maven-compiler-plugin</artifactId>
> <version>${project.version}</version>
> <configuration>
> - <source>1.4</source>
> - <target>1.4</target>
> + <source>1.8</source>
> + <target>1.8</target>
> </configuration>
> </plugin>
> </plugins>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: svn commit: r1765195 - /maven/plugins/trunk/maven-compiler-plugin/src/site/apt/examples/set-compiler-source-and-target.apt.vm
Posted by Robert Scholte <rf...@apache.org>.
https://maven.apache.org/plugins/maven-compiler-plugin/examples/compile-using-different-jdk.html
this is for sure a pre-toolchains page and really needs to be rewritten
too.
Please have a look at other things regarding the maven-compiler-plugin, I
want to release it soon.
Robert
On Wed, 19 Oct 2016 19:39:55 +0200, Guillaume Boué <gb...@apache.org>
wrote:
> Yes that would be nice.
>
> Also, in the same way as there is a note for "target", I thought of
> adding a note about the usage of "source"; it doesn't guarantee that the
> code can compile with the specified JDK version. For that, you need to
> use toolchains (and we can link to the Toolchain Plugin).
>
> Guillaume,
>
>
> Le 19/10/2016 à 08:09, Hervé BOUTEMY a écrit :
>> good idea
>>
>> when I see that, I think we should also talk about
>> maven.compiler.source and
>> maven.compiler target properties in this focused page, isn't it?
>>
>> Regards,
>>
>> Hervé
>>
>> Le dimanche 16 octobre 2016 22:38:01 gboue@apache.org a écrit :
>>> Author: gboue
>>> Date: Sun Oct 16 22:38:01 2016
>>> New Revision: 1765195
>>>
>>> URL: http://svn.apache.org/viewvc?rev=1765195&view=rev
>>> Log:
>>> Updating the "Setting the -source and -target of the Java Compiler"
>>> documentation page by referencing Java 8 features instead of Java 4.
>>> This
>>> closes #69.
>>>
>>> Modified:
>>>
>>> maven/plugins/trunk/maven-compiler-plugin/src/site/apt/examples/set-compile
>>> r-source-and-target.apt.vm
>>>
>>> Modified:
>>> maven/plugins/trunk/maven-compiler-plugin/src/site/apt/examples/set-compile
>>> r-source-and-target.apt.vm URL:
>>> http://svn.apache.org/viewvc/maven/plugins/trunk/maven-compiler-plugin/src/
>>> site/apt/examples/set-compiler-source-and-target.apt.vm?rev=1765195&r1=17651
>>> 94&r2=1765195&view=diff
>>> ===========================================================================
>>> === ---
>>> maven/plugins/trunk/maven-compiler-plugin/src/site/apt/examples/set-compile
>>> r-source-and-target.apt.vm (original) +++
>>> maven/plugins/trunk/maven-compiler-plugin/src/site/apt/examples/set-compile
>>> r-source-and-target.apt.vm Sun Oct 16 22:38:01 2016 @@ -33,9 +33,9 @@
>>> Setting the <<<-source>>> and <<<-target
>>> such command using <<<-source>>> and <<<-target>>>. The Compiler
>>> Plugin
>>> can also be configured to provide these options during compilation.
>>>
>>> - For example, if you want to enable assertions (<<<-source 1.4>>>)
>>> and
>>> also want the - compiled classes to be compatible with JVM 1.4
>>> (<<<-target
>>> 1.4>>>), you can then - put:
>>> + For example, if you want to use the Java 8 language features
>>> (<<<-source
>>> 1.8>>>) + and also want the compiled classes to be compatible with
>>> JVM 1.8
>>> (<<<-target 1.8>>>), + you can then put:
>>>
>>> +-----
>>> <project>
>>> @@ -48,8 +48,8 @@ Setting the <<<-source>>> and <<<-target
>>> <artifactId>maven-compiler-plugin</artifactId>
>>> <version>${project.version}</version>
>>> <configuration>
>>> - <source>1.4</source>
>>> - <target>1.4</target>
>>> + <source>1.8</source>
>>> + <target>1.8</target>
>>> </configuration>
>>> </plugin>
>>> </plugins>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
>> For additional commands, e-mail: dev-help@maven.apache.org
>>
>
>
> ---
> L'absence de virus dans ce courrier électronique a été vérifiée par le
> logiciel antivirus Avast.
> https://www.avast.com/antivirus
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: svn commit: r1765195 -
/maven/plugins/trunk/maven-compiler-plugin/src/site/apt/examples/set-compiler-source-and-target.apt.vm
Posted by Guillaume Boué <gb...@apache.org>.
Yes that would be nice.
Also, in the same way as there is a note for "target", I thought of
adding a note about the usage of "source"; it doesn't guarantee that the
code can compile with the specified JDK version. For that, you need to
use toolchains (and we can link to the Toolchain Plugin).
Guillaume,
Le 19/10/2016 08:09, Herv BOUTEMY a crit :
> good idea
>
> when I see that, I think we should also talk about maven.compiler.source and
> maven.compiler target properties in this focused page, isn't it?
>
> Regards,
>
> Herv
>
> Le dimanche 16 octobre 2016 22:38:01 gboue@apache.org a crit :
>> Author: gboue
>> Date: Sun Oct 16 22:38:01 2016
>> New Revision: 1765195
>>
>> URL: http://svn.apache.org/viewvc?rev=1765195&view=rev
>> Log:
>> Updating the "Setting the -source and -target of the Java Compiler"
>> documentation page by referencing Java 8 features instead of Java 4. This
>> closes #69.
>>
>> Modified:
>>
>> maven/plugins/trunk/maven-compiler-plugin/src/site/apt/examples/set-compile
>> r-source-and-target.apt.vm
>>
>> Modified:
>> maven/plugins/trunk/maven-compiler-plugin/src/site/apt/examples/set-compile
>> r-source-and-target.apt.vm URL:
>> http://svn.apache.org/viewvc/maven/plugins/trunk/maven-compiler-plugin/src/
>> site/apt/examples/set-compiler-source-and-target.apt.vm?rev=1765195&r1=17651
>> 94&r2=1765195&view=diff
>> ===========================================================================
>> === ---
>> maven/plugins/trunk/maven-compiler-plugin/src/site/apt/examples/set-compile
>> r-source-and-target.apt.vm (original) +++
>> maven/plugins/trunk/maven-compiler-plugin/src/site/apt/examples/set-compile
>> r-source-and-target.apt.vm Sun Oct 16 22:38:01 2016 @@ -33,9 +33,9 @@
>> Setting the <<<-source>>> and <<<-target
>> such command using <<<-source>>> and <<<-target>>>. The Compiler Plugin
>> can also be configured to provide these options during compilation.
>>
>> - For example, if you want to enable assertions (<<<-source 1.4>>>) and
>> also want the - compiled classes to be compatible with JVM 1.4 (<<<-target
>> 1.4>>>), you can then - put:
>> + For example, if you want to use the Java 8 language features (<<<-source
>> 1.8>>>) + and also want the compiled classes to be compatible with JVM 1.8
>> (<<<-target 1.8>>>), + you can then put:
>>
>> +-----
>> <project>
>> @@ -48,8 +48,8 @@ Setting the <<<-source>>> and <<<-target
>> <artifactId>maven-compiler-plugin</artifactId>
>> <version>${project.version}</version>
>> <configuration>
>> - <source>1.4</source>
>> - <target>1.4</target>
>> + <source>1.8</source>
>> + <target>1.8</target>
>> </configuration>
>> </plugin>
>> </plugins>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
---
L'absence de virus dans ce courrier lectronique a t vrifie par le logiciel antivirus Avast.
https://www.avast.com/antivirus
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org