From users-return-143857-archive-asf-public=cust-asf.ponee.io@maven.apache.org Tue Feb 12 19:29:57 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 04BFD180675 for ; Tue, 12 Feb 2019 20:29:56 +0100 (CET) Received: (qmail 84750 invoked by uid 500); 12 Feb 2019 19:29:55 -0000 Mailing-List: contact users-help@maven.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Maven Users List" Reply-To: "Maven Users List" Delivered-To: mailing list users@maven.apache.org Received: (qmail 84738 invoked by uid 99); 12 Feb 2019 19:29:55 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Feb 2019 19:29:55 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 8B5FDC298D for ; Tue, 12 Feb 2019 19:29:54 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.502 X-Spam-Level: X-Spam-Status: No, score=-0.502 tagged_above=-999 required=6.31 tests=[DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, UNPARSEABLE_RELAY=0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=oracle.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id clqH-eHFrtko for ; Tue, 12 Feb 2019 19:29:51 +0000 (UTC) Received: from aserp2130.oracle.com (aserp2130.oracle.com [141.146.126.79]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 9E5B25F43C for ; Tue, 12 Feb 2019 19:29:51 +0000 (UTC) Received: from pps.filterd (aserp2130.oracle.com [127.0.0.1]) by aserp2130.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x1CJOKmp100616 for ; Tue, 12 Feb 2019 19:29:45 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : content-type : mime-version : subject : date : references : to : in-reply-to : message-id; s=corp-2018-07-02; bh=QAbYwnV5ggkh3anBe4vTrYwPm4Wq61nrOxnqGmKfKQQ=; b=07YtVoCubUOkIRBnZIbuPtBiCQPgjJWznWwreGQFBUGf0LejUN2fdopurpBsFI0LxSyV G7W8kz3DvNR5YbahuZ93gVG0D0g0H6LvDJc+Wm6tjnUCUNATWOSsd+Op2NejaBCpLPek V7023QNT2hdzWZ2qFon0HGNzhrNQJe6X6P3bTZUh4w3Eq0W3Q1a9u7KgDrUXaYkaQ5A6 3g7jtb1nxCt04DdEmGmc5t8i9ZRfMhYbg2G+X+TQzJCvuSRWWxgmDiK/fSGakTMuisbP JwF79Vfn3xo1CTeahVDaIXarxA/K0cNbf7l4x7bq53HUt7khqT4dRm3YRTozXfWMsX/u /g== Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by aserp2130.oracle.com with ESMTP id 2qhre5dyhn-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Tue, 12 Feb 2019 19:29:45 +0000 Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id x1CJTiI3018140 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Tue, 12 Feb 2019 19:29:44 GMT Received: from abhmp0011.oracle.com (abhmp0011.oracle.com [141.146.116.17]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id x1CJTidV007302 for ; Tue, 12 Feb 2019 19:29:44 GMT Received: from harvest.fios-router.home (/108.52.49.116) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 12 Feb 2019 11:29:43 -0800 From: Russell Gold Content-Type: multipart/alternative; boundary="Apple-Mail=_2866403F-3A35-43C4-8793-1426093A686F" Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: Re: maven compiler plugin multiReleaseOutput option and previous versions Date: Tue, 12 Feb 2019 14:03:10 -0500 References: <4FE678E9-A1D7-4C74-B90F-F21F994B3432@oracle.com> To: Maven Users List In-Reply-To: Message-Id: <1ADD7ABF-FDD7-49A7-AB7F-4B87357F0C0B@oracle.com> X-Mailer: Apple Mail (2.3445.9.1) X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9165 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1902120135 --Apple-Mail=_2866403F-3A35-43C4-8793-1426093A686F Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 But it doesn=E2=80=99t appear to be working for me.=20 > [INFO] --- maven-compiler-plugin:3.8.0:compile (java9) @ pfl-basic --- > [DEBUG] Configuring mojo = org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile from plugin = realm = ClassRealm[plugin>org.apache.maven.plugins:maven-compiler-plugin:3.8.0, = parent: jdk.internal.loader.ClassLoaders$AppClassLoader@799f7e29] > [DEBUG] Configuring mojo = 'org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile' with = basic configurator --> > [DEBUG] (f) basedir =3D = /Users/rgold/projects/eclipse-ee4j/orb-gmbal-pfl/pfl-basic > [DEBUG] (f) buildDirectory =3D = /Users/rgold/projects/eclipse-ee4j/orb-gmbal-pfl/pfl-basic/target > [DEBUG] (f) compilePath =3D = [/Users/rgold/projects/eclipse-ee4j/orb-gmbal-pfl/pfl-basic/target/classes= ] > [DEBUG] (f) compileSourceRoots =3D = [/Users/rgold/projects/eclipse-ee4j/orb-gmbal-pfl/pfl-basic/src/main/java9= ] > [DEBUG] (f) compilerId =3D javac > [DEBUG] (f) debug =3D true > [DEBUG] (f) encoding =3D UTF-8 > [DEBUG] (f) failOnError =3D true > [DEBUG] (f) failOnWarning =3D false > [DEBUG] (f) forceJavacCompilerUse =3D false > [DEBUG] (f) fork =3D false > [DEBUG] (f) generatedSourcesDirectory =3D = /Users/rgold/projects/eclipse-ee4j/orb-gmbal-pfl/pfl-basic/target/generate= d-sources/annotations > [DEBUG] (f) jdkToolchain =3D {version=3D9} > [DEBUG] (f) mojoExecution =3D = org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile {execution: = java9} > [DEBUG] (f) multiReleaseOutput =3D true > [DEBUG] (f) optimize =3D false > [DEBUG] (f) outputDirectory =3D = /Users/rgold/projects/eclipse-ee4j/orb-gmbal-pfl/pfl-basic/target/classes > [DEBUG] (f) parameters =3D false > [DEBUG] (f) project =3D MavenProject: = org.glassfish.pfl:pfl-basic:4.0.1-SNAPSHOT @ = /Users/rgold/projects/eclipse-ee4j/orb-gmbal-pfl/pfl-basic/pom.xml > [DEBUG] (f) projectArtifact =3D = org.glassfish.pfl:pfl-basic:jar:4.0.1-SNAPSHOT > [DEBUG] (s) release =3D 9 > [DEBUG] (f) session =3D = org.apache.maven.execution.MavenSession@7640a5b1 > [DEBUG] (f) showDeprecation =3D false > [DEBUG] (f) showWarnings =3D false > [DEBUG] (f) skipMultiThreadWarning =3D false > [DEBUG] (f) source =3D 1.7 > [DEBUG] (f) staleMillis =3D 0 > [DEBUG] (s) target =3D 1.7 > [DEBUG] (f) useIncrementalCompilation =3D true > [DEBUG] (f) verbose =3D false > [DEBUG] -- end configuration -- > [DEBUG] Using compiler 'javac'. > [DEBUG] Toolchain = JDK[/Library/Java/JavaVirtualMachines/1.6.0_41-b02-445.jdk/Contents/Home] = doesn't match required property: version > [DEBUG] Toolchain = JDK[/Library/Java/JavaVirtualMachines/jdk1.7.0_65.jdk/Contents/Home] = doesn't match required property: version > [DEBUG] Toolchain = JDK[/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home] = doesn't match required property: version > [DEBUG] Toolchain = JDK[/Library/Java/JavaVirtualMachines/jdk-11.0.2.jdk/Contents/Home] = doesn't match required property: version > [INFO] Toolchain in maven-compiler-plugin: = JDK[/Library/Java/JavaVirtualMachines/jdk-9.jdk/Contents/Home] > [DEBUG] Adding = /Users/rgold/projects/eclipse-ee4j/orb-gmbal-pfl/pfl-basic/target/generate= d-sources/annotations to compile source roots: > = /Users/rgold/projects/eclipse-ee4j/orb-gmbal-pfl/pfl-basic/src/main/java > = /Users/rgold/projects/eclipse-ee4j/orb-gmbal-pfl/pfl-basic/target/generate= d-sources/annotations > [DEBUG] New compile source roots: > = /Users/rgold/projects/eclipse-ee4j/orb-gmbal-pfl/pfl-basic/src/main/java > = /Users/rgold/projects/eclipse-ee4j/orb-gmbal-pfl/pfl-basic/target/generate= d-sources/annotations > [DEBUG] CompilerReuseStrategy: reuseCreated > [DEBUG] useIncrementalCompilation enabled > [DEBUG] Stale source detected: = /Users/rgold/projects/eclipse-ee4j/orb-gmbal-pfl/pfl-basic/src/main/java9/= org/glassfish/pfl/basic/reflection/Bridge.java > [DEBUG] Stale source detected: = /Users/rgold/projects/eclipse-ee4j/orb-gmbal-pfl/pfl-basic/src/main/java9/= org/glassfish/pfl/basic/reflection/BridgeBase9.java > [INFO] Changes detected - recompiling the module! > [DEBUG] Classpath: > [DEBUG] = /Users/rgold/projects/eclipse-ee4j/orb-gmbal-pfl/pfl-basic/target/classes > [DEBUG] Source roots: > [DEBUG] = /Users/rgold/projects/eclipse-ee4j/orb-gmbal-pfl/pfl-basic/src/main/java9 > [DEBUG] Excutable:=20 > [DEBUG] = /Library/Java/JavaVirtualMachines/jdk-9.jdk/Contents/Home/bin/javac > [DEBUG] Command line options: > [DEBUG] -d = /Users/rgold/projects/eclipse-ee4j/orb-gmbal-pfl/pfl-basic/target/classes/= META-INF/versions/9 -classpath = /Users/rgold/projects/eclipse-ee4j/orb-gmbal-pfl/pfl-basic/target/classes:= -sourcepath = /Users/rgold/projects/eclipse-ee4j/orb-gmbal-pfl/pfl-basic/src/main/java9:= /Users/rgold/projects/eclipse-ee4j/orb-gmbal-pfl/pfl-basic/target/generate= d-sources/annotations: = /Users/rgold/projects/eclipse-ee4j/orb-gmbal-pfl/pfl-basic/src/main/java9/= org/glassfish/pfl/basic/reflection/Bridge.java = /Users/rgold/projects/eclipse-ee4j/orb-gmbal-pfl/pfl-basic/src/main/java9/= org/glassfish/pfl/basic/reflection/BridgeBase9.java -s = /Users/rgold/projects/eclipse-ee4j/orb-gmbal-pfl/pfl-basic/target/generate= d-sources/annotations -g -nowarn --release 9 -encoding UTF-8 > [DEBUG] incrementalBuildHelper#beforeRebuildExecution > [INFO] Compiling 2 source files to = /Users/rgold/projects/eclipse-ee4j/orb-gmbal-pfl/pfl-basic/target/classes/= META-INF/versions/9 > [DEBUG] incrementalBuildHelper#afterRebuildExecution > [WARNING] = /Users/rgold/projects/eclipse-ee4j/orb-gmbal-pfl/pfl-basic/src/main/java9/= org/glassfish/pfl/basic/reflection/BridgeBase9.java:[23,18] = ReflectionFactory is internal proprietary API and may be removed in a = future release > [WARNING] = /Users/rgold/projects/eclipse-ee4j/orb-gmbal-pfl/pfl-basic/src/main/java9/= org/glassfish/pfl/basic/reflection/BridgeBase9.java:[26,18] = ReflectionFactory is internal proprietary API and may be removed in a = future release > [WARNING] = /Users/rgold/projects/eclipse-ee4j/orb-gmbal-pfl/pfl-basic/src/main/java9/= org/glassfish/pfl/basic/reflection/BridgeBase9.java:[30,28] = ReflectionFactory is internal proprietary API and may be removed in a = future release > [INFO]=20 > [INFO] --- maven-compiler-plugin:3.8.0:compile (java11) @ pfl-basic = --- > [DEBUG] Configuring mojo = org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile from plugin = realm = ClassRealm[plugin>org.apache.maven.plugins:maven-compiler-plugin:3.8.0, = parent: jdk.internal.loader.ClassLoaders$AppClassLoader@799f7e29] > [DEBUG] Configuring mojo = 'org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile' with = basic configurator --> > [DEBUG] (f) basedir =3D = /Users/rgold/projects/eclipse-ee4j/orb-gmbal-pfl/pfl-basic > [DEBUG] (f) buildDirectory =3D = /Users/rgold/projects/eclipse-ee4j/orb-gmbal-pfl/pfl-basic/target > [DEBUG] (f) compilePath =3D = [/Users/rgold/projects/eclipse-ee4j/orb-gmbal-pfl/pfl-basic/target/classes= ] > [DEBUG] (f) compileSourceRoots =3D = [/Users/rgold/projects/eclipse-ee4j/orb-gmbal-pfl/pfl-basic/src/main/java1= 1] > [DEBUG] (f) compilerId =3D javac > [DEBUG] (f) debug =3D true > [DEBUG] (f) encoding =3D UTF-8 > [DEBUG] (f) failOnError =3D true > [DEBUG] (f) failOnWarning =3D false > [DEBUG] (f) forceJavacCompilerUse =3D false > [DEBUG] (f) fork =3D false > [DEBUG] (f) generatedSourcesDirectory =3D = /Users/rgold/projects/eclipse-ee4j/orb-gmbal-pfl/pfl-basic/target/generate= d-sources/annotations > [DEBUG] (f) jdkToolchain =3D {version=3D11} > [DEBUG] (f) mojoExecution =3D = org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile {execution: = java11} > [DEBUG] (f) multiReleaseOutput =3D true > [DEBUG] (f) optimize =3D false > [DEBUG] (f) outputDirectory =3D = /Users/rgold/projects/eclipse-ee4j/orb-gmbal-pfl/pfl-basic/target/classes > [DEBUG] (f) parameters =3D false > [DEBUG] (f) project =3D MavenProject: = org.glassfish.pfl:pfl-basic:4.0.1-SNAPSHOT @ = /Users/rgold/projects/eclipse-ee4j/orb-gmbal-pfl/pfl-basic/pom.xml > [DEBUG] (f) projectArtifact =3D = org.glassfish.pfl:pfl-basic:jar:4.0.1-SNAPSHOT > [DEBUG] (s) release =3D 11 > [DEBUG] (f) session =3D = org.apache.maven.execution.MavenSession@7640a5b1 > [DEBUG] (f) showDeprecation =3D false > [DEBUG] (f) showWarnings =3D false > [DEBUG] (f) skipMultiThreadWarning =3D false > [DEBUG] (f) source =3D 1.7 > [DEBUG] (f) staleMillis =3D 0 > [DEBUG] (s) target =3D 1.7 > [DEBUG] (f) useIncrementalCompilation =3D true > [DEBUG] (f) verbose =3D false > [DEBUG] -- end configuration -- > [DEBUG] Using compiler 'javac'. > [DEBUG] Toolchain = JDK[/Library/Java/JavaVirtualMachines/1.6.0_41-b02-445.jdk/Contents/Home] = doesn't match required property: version > [DEBUG] Toolchain = JDK[/Library/Java/JavaVirtualMachines/jdk1.7.0_65.jdk/Contents/Home] = doesn't match required property: version > [DEBUG] Toolchain = JDK[/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home] = doesn't match required property: version > [DEBUG] Toolchain = JDK[/Library/Java/JavaVirtualMachines/jdk-9.jdk/Contents/Home] doesn't = match required property: version > [INFO] Toolchain in maven-compiler-plugin: = JDK[/Library/Java/JavaVirtualMachines/jdk-11.0.2.jdk/Contents/Home] > [DEBUG] Adding = /Users/rgold/projects/eclipse-ee4j/orb-gmbal-pfl/pfl-basic/target/generate= d-sources/annotations to compile source roots: > = /Users/rgold/projects/eclipse-ee4j/orb-gmbal-pfl/pfl-basic/src/main/java > = /Users/rgold/projects/eclipse-ee4j/orb-gmbal-pfl/pfl-basic/target/generate= d-sources/annotations > [DEBUG] New compile source roots: > = /Users/rgold/projects/eclipse-ee4j/orb-gmbal-pfl/pfl-basic/src/main/java > = /Users/rgold/projects/eclipse-ee4j/orb-gmbal-pfl/pfl-basic/target/generate= d-sources/annotations > [DEBUG] CompilerReuseStrategy: reuseCreated > [DEBUG] useIncrementalCompilation enabled > [DEBUG] Stale source detected: = /Users/rgold/projects/eclipse-ee4j/orb-gmbal-pfl/pfl-basic/src/main/java11= /org/glassfish/pfl/basic/reflection/Bridge.java > [INFO] Changes detected - recompiling the module! > [DEBUG] Classpath: > [DEBUG] = /Users/rgold/projects/eclipse-ee4j/orb-gmbal-pfl/pfl-basic/target/classes > [DEBUG] Source roots: > [DEBUG] = /Users/rgold/projects/eclipse-ee4j/orb-gmbal-pfl/pfl-basic/src/main/java11= > [DEBUG] Excutable:=20 > [DEBUG] = /Library/Java/JavaVirtualMachines/jdk-11.0.2.jdk/Contents/Home/bin/javac Note that the release 9 classes were not added to the classpath, here. = Just the main output directory. > [DEBUG] Command line options: > [DEBUG] -d = /Users/rgold/projects/eclipse-ee4j/orb-gmbal-pfl/pfl-basic/target/classes/= META-INF/versions/11 -classpath = /Users/rgold/projects/eclipse-ee4j/orb-gmbal-pfl/pfl-basic/target/classes:= -sourcepath = /Users/rgold/projects/eclipse-ee4j/orb-gmbal-pfl/pfl-basic/src/main/java11= :/Users/rgold/projects/eclipse-ee4j/orb-gmbal-pfl/pfl-basic/target/generat= ed-sources/annotations: = /Users/rgold/projects/eclipse-ee4j/orb-gmbal-pfl/pfl-basic/src/main/java11= /org/glassfish/pfl/basic/reflection/Bridge.java -s = /Users/rgold/projects/eclipse-ee4j/orb-gmbal-pfl/pfl-basic/target/generate= d-sources/annotations -g -nowarn --release 11 -encoding UTF-8 > [DEBUG] incrementalBuildHelper#beforeRebuildExecution > [INFO] Compiling 1 source file to = /Users/rgold/projects/eclipse-ee4j/orb-gmbal-pfl/pfl-basic/target/classes/= META-INF/versions/11 > [DEBUG] incrementalBuildHelper#afterRebuildExecution > [INFO] ------------------------------------------------------------- > [ERROR] COMPILATION ERROR :=20 > [INFO] ------------------------------------------------------------- > [ERROR] = /Users/rgold/projects/eclipse-ee4j/orb-gmbal-pfl/pfl-basic/src/main/java11= /org/glassfish/pfl/basic/reflection/Bridge.java:[51,34] error: cannot = find symbol > symbol: class BridgeBase9 > [INFO] 1 error > On Feb 12, 2019, at 1:08 PM, Robert Scholte = wrote: >=20 > Hi Russ, >=20 > There's no way to configure this, the plugin will do it for you[1] >=20 > thanks, > Robert >=20 > [1] = https://github.com/apache/maven-compiler-plugin/blob/master/src/main/java/= org/apache/maven/plugin/compiler/CompilerMojo.java#L328-L346 >=20 > On Tue, 12 Feb 2019 18:56:52 +0100, Russell Gold = wrote: >=20 >> Version 3.8.0 of the maven-compiler-plugin supports a = multiReleaseOutput option which can compile classes directly to the = appropriate META-INF/versions/{release} directory, which is very nice. = What I don=E2=80=99t see, though, is how to tell it to use the previous = release as its dependency. That is, given: >>=20 >> src >> |=E2=80=94=E2=80=94 main >> |=E2=80=94=E2=80=94 java >> |=E2=80=94=E2=80=94 java9 >> \=E2=80=94=E2=80=94 java11 >>=20 >> These directories will be compiled to: >>=20 >> target/classes, target/classes/META-INF/9 and = target/classes/META-INF/11. But when I compile that last directory, I = want to include target/classes/META-INF/9 in my class path, and I = don=E2=80=99t see an obvious way to do it. It would be great if the = plugin realized that this was necessary, but is there a way to configure = it? >>=20 >> Thanks, >> Russ >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org > For additional commands, e-mail: users-help@maven.apache.org >=20 --Apple-Mail=_2866403F-3A35-43C4-8793-1426093A686F--