Re: warning default invalid module name Errors Replicated

2020-01-06 Thread Zahid Rahman
I am really please I pursued this issue and came across yourself.

This  ubuntu bug is causing fear and apprehension across many apache
frameworks.
It has caused a big IT giant  fear too.

Some people think it is jdk 11 issue so using or are recommending to use
jdk 8.

Now I am free to use any jdk including bleeding edge  for any framework. I
was just playing about with Javafx , I am using another framework.

On Sun, 5 Jan 2020, 22:38 Stuart McCulloch,  wrote:

> The Java 11 warning mentions that "/usr/share/maven/lib/guice.jar" has a
> class named "com.google.inject.internal.cglib.core.$ReflectUtils$1"
>
> This looks suspect because the official Maven distribution uses the
> "no-AOP" version of Guice which doesn't contain any CGLIB classes. It
> suggests that whoever provided that copy of Maven has replaced the "no-AOP"
> version with the "AOP" version, and this will cause warnings on Java 11.
> (The "AOP" version uses CGLIB which currently relies on certain reflective
> access that Java 11 warns about - whereas the "no-AOP" version doesn't.)
>
> If you install an official Maven distribution from Apache (and make sure
> that the MAVEN_HOME environment variable points to it) then you shouldn't
> see that warning.
>
> On Sun, 5 Jan 2020 at 22:24, Karl Heinz Marbaise 
> wrote:
>
>> Hi,
>>
>> On 05.01.20 22:54, zahid wrote:
>> > Thank you. These files has been generated by NETBEANS IDE.
>>
>> I have my doubts that plugins generated as dependencies by Netbeans if
>> so this is simply a bug 
>>
>>
>> >
>> > *Netbeans uses a very old version Apache Maven 3.3.9 and these warnings
>> > do not appear.
>>
>> This means you don't have defined all your used plugins correctly within
>> your pom.xml (pluginManagement as you already done with
>> maven-compiler-plugin) with their appropriate versions.
>>
>> Older plugins versions didn't even know something about Java Module
>> system (JPMS) names etc. (This is what you get with Maven 3.3.9..) That
>> looks like that those warnings have gone but they are still there
>> because older plugins didn't recogzined them...
>>
>>
>> > *
>> >
>> > *I still get these warnings with the revised pom.xml
>> > *
>> >
>> > kub18@UB18:~/javafx/helloapp$ mvn  javafx:run
>> > WARNING: An illegal reflective access operation has occurred
>> > WARNING: Illegal reflective access by
>> > com.google.inject.internal.cglib.core.$ReflectUtils$1
>> > (file:/usr/share/maven/lib/guice.jar) to method
>> >
>> java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
>> > WARNING: Please consider reporting this to the maintainers of
>> > com.google.inject.internal.cglib.core.$ReflectUtils$1
>> > WARNING: Use --illegal-access=warn to enable warnings of further
>> illegal
>> > reflective access operations
>> > WARNING: All illegal access operations will be denied in a future
>> release
>> > [INFO] Scanning for projects...
>> > [INFO]
>> > [INFO] --< co.uk.backbutton:HelloFX
>> >  >--
>> > [INFO] Building HelloFX 1.0-SNAPSHOT
>> > [INFO] [ jar
>> > ]-
>> > [INFO]
>> > [INFO] --- javafx-maven-plugin:0.0.3:run (default-cli) @ HelloFX ---
>> > [INFO]
>> > 
>> > [INFO] BUILD SUCCESS
>> > [INFO]
>> > 
>> > [INFO] Total time:  3.934 s
>> > [INFO] Finished at: 2020-01-05T21:51:22Z
>> > [INFO]
>> > 
>>
>>
>> This is something completely different.
>>
>> If the pom is the one your are using than you should use Maven 3.6.3 and
>> correctly check your environment if it's pointing to the correct Maven
>> installation... (Do you use M2_HOME or MAVEN_HOME environment variables?
>> Only add the bin directory of the Maven installation to the PATH nothing
>> else).
>>
>> I suppose /usr/share/maven/lib/guice.jar) is from your Maven
>> installation on your system?
>>
>> Kind regards
>> Karl Heinz Marbaise
>>
>>
>>
>> >
>> > *REVISED pom.xml*
>> >
>> > kub18@UB18:~/javafx/helloapp$ cat pom.xml
>> > http://maven.apache.org/POM/4.0.0;
>> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;
>> >xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
>> > http://maven.apache.org/maven-v4_0_0.xsd;>
>> >
>> >  4.0.0
>> >  co.uk.backbutton
>> >  HelloFX
>> >  1.0-SNAPSHOT
>> >
>> >  
>> > UTF-8
>> >
>> UTF-8
>> > 11
>> > 11
>> >  
>> >
>> >  
>> >  
>> >  org.openjfx
>> >  javafx-controls
>> >  14-ea+6
>> >  
>> >  
>> >  org.openjfx
>> >  javafx-fxml
>> >  13
>> >  
>> >  
>> >
>> >  
>> >  
>> >   
>> >  
>> > org.apache.maven.plugins
>> > maven-compiler-plugin
>> >  3.8.0
>> >  

Re: warning default invalid module name Errors Replicated

2020-01-06 Thread zahid

Thank you. These files has been generated by NETBEANS IDE.

*Netbeans uses a very old version Apache Maven 3.3.9 and these warnings 
do not appear.

*

*I still get these warnings with the revised pom.xml
*

kub18@UB18:~/javafx/helloapp$ mvn  javafx:run
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by 
com.google.inject.internal.cglib.core.$ReflectUtils$1 
(file:/usr/share/maven/lib/guice.jar) to method 
java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of 
com.google.inject.internal.cglib.core.$ReflectUtils$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal 
reflective access operations

WARNING: All illegal access operations will be denied in a future release
[INFO] Scanning for projects...
[INFO]
[INFO] --< co.uk.backbutton:HelloFX 
>--

[INFO] Building HelloFX 1.0-SNAPSHOT
[INFO] [ jar 
]-

[INFO]
[INFO] --- javafx-maven-plugin:0.0.3:run (default-cli) @ HelloFX ---
[INFO] 


[INFO] BUILD SUCCESS
[INFO] 


[INFO] Total time:  3.934 s
[INFO] Finished at: 2020-01-05T21:51:22Z
[INFO] 



*REVISED pom.xml*

kub18@UB18:~/javafx/helloapp$ cat pom.xml
http://maven.apache.org/POM/4.0.0; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd;>


    4.0.0
    co.uk.backbutton
    HelloFX
    1.0-SNAPSHOT

    
UTF-8
UTF-8
11
11
    

    
    
    org.openjfx
    javafx-controls
    14-ea+6
    
    
    org.openjfx
    javafx-fxml
    13
    
    

    
    
 
    
org.apache.maven.plugins
maven-compiler-plugin
    3.8.0
    
${maven.compiler.source}
    
    

    
    org.openjfx
javafx-maven-plugin
    0.0.3
    
    HelloFX
    
    
    
 
    



On 05/01/2020 20:53, Karl Heinz Marbaise wrote:

Hi,


On 05.01.20 21:31, zahid wrote:


mvn -version
Apache Maven 3.6.0
Maven home: /usr/share/maven
Java version: 11.0.5, vendor: Private Build, runtime: 
/usr/lib/jvm/java-11-openjdk-amd64

Default locale: en_GB, platform encoding: UTF-8
OS name: "linux", version: "5.0.0-37-generic", arch: "amd64", family: 
"unix"


*ls -l
*total 24
-rw-rw-r-- 1 kub18 kub18 4770 Jan  3 15:02 nbactions.xml
-rw-rw-r-- 1 kub18 kub18  455 Jan  1 21:58 pom_old.xml
-rwxrwxrwx 1 kub18 kub18 2520 Jan  3 15:17 pom.xml
drwxrwxr-x 3 kub18 kub18 4096 Jan  1 21:45 src
drwxrwxr-x 7 kub18 kub18 4096 Jan  5 09:24 target

*
*

*consol output**
*

kub18@UB18:~/javafx/helloapp$ mvn javafx:run
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by 
com.google.inject.internal.cglib.core.$ReflectUtils$1 
(file:/usr/share/maven/lib/guice.jar) to method 
java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of 
com.google.inject.internal.cglib.core.$ReflectUtils$1
WARNING: Use --illegal-access=warn to enable warnings of further 
illegal reflective access operations
WARNING: All illegal access operations will be denied in a future 
release

[INFO] Scanning for projects...
[INFO]
[INFO] --< co.uk.backbutton:HelloFX 
 >--

[INFO] Building HelloFX 1.0-SNAPSHOT
[INFO] [ jar 
]-

[INFO]
[INFO] --- javafx-maven-plugin:0.0.3:run (default-cli) @ HelloFX ---
[WARNING] Can't extract module name from 
plexus-container-default-1.0-alpha-6.jar: plexus.container.default: 
Invalid module name: 'default' is not a Java identifier
[WARNING] Can't extract module name from 
plexus-container-default-1.0-alpha-30.jar: plexus.container.default: 
Invalid module name: 'default' is not a Java identifier
[WARNING] Some dependencies encountered issues while attempting to be 
resolved as modules and will not be included in the classpath; you 
can change this behavior via the 'includePathExceptionsInClasspath' 
configuration parameter.
[INFO] 


[INFO] BUILD SUCCESS
[INFO] 


[INFO] Total time:  15.673 s
[INFO] Finished at: 2020-01-05T20:20:17Z
[INFO] 


*
*

*kub18@UB18:~/javafx/helloapp$ cat pom.xml*


Re: warning default invalid module name Errors Replicated

2020-01-06 Thread zahid


mvn -version
Apache Maven 3.6.0
Maven home: /usr/share/maven
Java version: 11.0.5, vendor: Private Build, runtime: 
/usr/lib/jvm/java-11-openjdk-amd64

Default locale: en_GB, platform encoding: UTF-8
OS name: "linux", version: "5.0.0-37-generic", arch: "amd64", family: 
"unix"


*ls -l
*total 24
-rw-rw-r-- 1 kub18 kub18 4770 Jan  3 15:02 nbactions.xml
-rw-rw-r-- 1 kub18 kub18  455 Jan  1 21:58 pom_old.xml
-rwxrwxrwx 1 kub18 kub18 2520 Jan  3 15:17 pom.xml
drwxrwxr-x 3 kub18 kub18 4096 Jan  1 21:45 src
drwxrwxr-x 7 kub18 kub18 4096 Jan  5 09:24 target

*
*

*consol output**
*

kub18@UB18:~/javafx/helloapp$ mvn javafx:run
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by 
com.google.inject.internal.cglib.core.$ReflectUtils$1 
(file:/usr/share/maven/lib/guice.jar) to method 
java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of 
com.google.inject.internal.cglib.core.$ReflectUtils$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal 
reflective access operations

WARNING: All illegal access operations will be denied in a future release
[INFO] Scanning for projects...
[INFO]
[INFO] --< co.uk.backbutton:HelloFX 
>--

[INFO] Building HelloFX 1.0-SNAPSHOT
[INFO] [ jar 
]-

[INFO]
[INFO] --- javafx-maven-plugin:0.0.3:run (default-cli) @ HelloFX ---
[WARNING] Can't extract module name from 
plexus-container-default-1.0-alpha-6.jar: plexus.container.default: 
Invalid module name: 'default' is not a Java identifier
[WARNING] Can't extract module name from 
plexus-container-default-1.0-alpha-30.jar: plexus.container.default: 
Invalid module name: 'default' is not a Java identifier
[WARNING] Some dependencies encountered issues while attempting to be 
resolved as modules and will not be included in the classpath; you can 
change this behavior via the 'includePathExceptionsInClasspath' 
configuration parameter.
[INFO] 


[INFO] BUILD SUCCESS
[INFO] 


[INFO] Total time:  15.673 s
[INFO] Finished at: 2020-01-05T20:20:17Z
[INFO] 


*
*

*kub18@UB18:~/javafx/helloapp$ cat pom.xml*

http://maven.apache.org/POM/4.0.0; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd;>

    4.0.0
    co.uk.backbutton
    HelloFX
    1.0-SNAPSHOT
    
UTF-8
UTF-8

11
11
    
    

    
    org.openjfx
    javafx-controls
    14-ea+6
    
    
    org.openjfx
    javafx-fxml
    13
    
    
    plexus
    plexus-container-default
    1.0-alpha-6

    
org.apache.maven.plugins
maven-source-plugin
    3.2.1
    
    
org.apache.maven.plugins
maven-javadoc-plugin
    3.1.1
    

    
org.apache.maven.plugins
maven-deploy-plugin
    3.0.0-M1
    

    
    
    
    
org.apache.maven.plugins
maven-compiler-plugin
    3.8.0
    
    11
    
    

    
    org.openjfx
javafx-maven-plugin
    0.0.3
    
    HelloFX
    
    
    
    

*kub18@UB18:~/javafx/helloapp$ cat nbactions.xml
*

    
    rebuild
    
    *
    
    
    clean
    install
    javafx:run
    
    
    
    build
    
    *
    
    
    install
    javafx:run
    
    
    
build-with-dependencies
    also-make
    
    *
    
    
    clean
    install
    javafx:run
    
    
    
    run
    
    jar
    
    
    clean
    install
    javafx:run
    
    
    -classpath %classpath 
${packageClassName}

java
    
    
    
    run.single.main
    
    *
    
    
    clean
    install
    javafx:run
    
    
    -classpath %classpath 
${packageClassName}

java
${classPathScope}
    
    
    
    debug
    
    jar
    
    
    clean
    build
    install
    javafx:run
    
    

Re: warning default invalid module name Errors Replicated

2020-01-06 Thread zahid

I installed maven using *sudo apt-get install  maven**
*

I even got this message at the end.

*update-alternatives: using /usr/share/maven/bin/mvn to provide 
/usr/bin/mvn (mvn) in auto mode**

*

from the console output showing my current system settings, what do you 
say should be the  exact settings  for env. variable(s) ? I don't want 
to screw up anything. From the information I received I thought if  mvn 
-version works, that means maven setup is complete. Anyway I think the  
"sudo apt-get install maven"  people need to be notified of this bug.


kub18@UB18:~/javafx/helloapp$ *echo $M2_HOME**
**
*kub18@UB18:~/javafx/helloapp$ *echo $MAVEN_HOME**
*
kub18@UB18:~/javafx/helloapp$ *whereis maven*
*maven: /etc/maven /usr/share/maven*

kub18@UB18:~/javafx/helloapp$ *whereis mvn**
**mvn: /usr/bin/mvn /usr/share/man/man1/mvn.1.gz*

kub18@UB18:~/javafx/helloapp$ mvn -version
Apache Maven 3.6.0
Maven home: /usr/share/maven
Java version: 11.0.5, vendor: Private Build, runtime: 
/usr/lib/jvm/java-11-openjdk-amd64

Default locale: en_GB, platform encoding: UTF-8
OS name: "linux", version: "5.0.0-37-generic", arch: "amd64", family: "unix"


On 05/01/2020 22:38, Stuart McCulloch wrote:
The Java 11 warning mentions that "/usr/share/maven/lib/guice.jar" has 
a class named "com.google.inject.internal.cglib.core.$ReflectUtils$1"


This looks suspect because the official Maven distribution uses the 
"no-AOP" version of Guice which doesn't contain any CGLIB classes. It 
suggests that whoever provided that copy of Maven has replaced the 
"no-AOP" version with the "AOP" version, and this will cause warnings 
on Java 11. (The "AOP" version uses CGLIB which currently relies on 
certain reflective access that Java 11 warns about - whereas the 
"no-AOP" version doesn't.)


If you install an official Maven distribution from Apache (and make 
sure that the MAVEN_HOME environment variable points to it) then you 
shouldn't see that warning.


On Sun, 5 Jan 2020 at 22:24, Karl Heinz Marbaise > wrote:


Hi,

On 05.01.20 22:54, zahid wrote:
> Thank you. These files has been generated by NETBEANS IDE.

I have my doubts that plugins generated as dependencies by
Netbeans if
so this is simply a bug 


>
> *Netbeans uses a very old version Apache Maven 3.3.9 and these
warnings
> do not appear.

This means you don't have defined all your used plugins correctly
within
your pom.xml (pluginManagement as you already done with
maven-compiler-plugin) with their appropriate versions.

Older plugins versions didn't even know something about Java Module
system (JPMS) names etc. (This is what you get with Maven 3.3.9..)
That
looks like that those warnings have gone but they are still there
because older plugins didn't recogzined them...


> *
>
> *I still get these warnings with the revised pom.xml
> *
>
> kub18@UB18:~/javafx/helloapp$ mvn  javafx:run
> WARNING: An illegal reflective access operation has occurred
> WARNING: Illegal reflective access by
> com.google.inject.internal.cglib.core.$ReflectUtils$1
> (file:/usr/share/maven/lib/guice.jar) to method
>

java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
> WARNING: Please consider reporting this to the maintainers of
> com.google.inject.internal.cglib.core.$ReflectUtils$1
> WARNING: Use --illegal-access=warn to enable warnings of further
illegal
> reflective access operations
> WARNING: All illegal access operations will be denied in a
future release
> [INFO] Scanning for projects...
> [INFO]
> [INFO] --< co.uk.backbutton:HelloFX
>  >--
> [INFO] Building HelloFX 1.0-SNAPSHOT
> [INFO] [ jar
> ]-
> [INFO]
> [INFO] --- javafx-maven-plugin:0.0.3:run (default-cli) @ HelloFX ---
> [INFO]
>

> [INFO] BUILD SUCCESS
> [INFO]
>

> [INFO] Total time:  3.934 s
> [INFO] Finished at: 2020-01-05T21:51:22Z
> [INFO]
>



This is something completely different.

If the pom is the one your are using than you should use Maven
3.6.3 and
correctly check your environment if it's pointing to the correct
Maven
installation... (Do you use M2_HOME or MAVEN_HOME environment
variables?
Only add the bin directory of the Maven installation to the PATH
nothing
else).

I suppose /usr/share/maven/lib/guice.jar) is from your Maven
installation on your system?

Kind regards
Karl Heinz Marbaise



>
> *REVISED pom.xml*
>
> 

Re: warning default invalid module name Errors Replicated :SUCCESS

2020-01-06 Thread zahid

*mvn -v**
*Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
Maven home: /opt/apache-maven-3.6.3
Java version: 11.0.5, vendor: Private Build, runtime: 
/usr/lib/jvm/java-11-openjdk-amd64

Default locale: en_GB, platform encoding: UTF-8
OS name: "linux", version: "5.0.0-37-generic", arch: "amd64", family: "unix"

kub18@UB18:~/javafx/helloapp$ *mvn javafx:run*
[INFO] Scanning for projects...
[INFO]
[INFO] --< co.uk.backbutton:HelloFX 
>--

[INFO] Building HelloFX 1.0-SNAPSHOT
[INFO] [ jar 
]-

[INFO]
[INFO] --- javafx-maven-plugin:0.0.3:run (default-cli) @ HelloFX ---
[INFO] 


[INFO] BUILD SUCCESS
[INFO] 


[INFO] Total time:  4.488 s
[INFO] Finished at: 2020-01-06T00:30:59Z
[INFO] 



On 06/01/2020 00:26, Stuart McCulloch wrote:
Is this Ubuntu?  I seem to remember they have their own build of Maven 
which differs from the Apache source.


( https://bugs.launchpad.net/ubuntu/+source/maven/+bug/1754602 
suggests it's a known bug in their packaging/build? )


If you download Maven from http://maven.apache.org/download.cgi and 
follow the instructions in http://maven.apache.org/install.html then 
you shouldn't see those warnings.


On Mon, 6 Jan 2020 at 00:02, zahid > wrote:


I installed maven using *sudo apt-get install  maven**
*

I even got this message at the end.

*update-alternatives: using /usr/share/maven/bin/mvn to provide
/usr/bin/mvn (mvn) in auto mode**
*

from the console output showing my current system settings, what 
do you say should be the  exact settings for env. variable(s) ? I
don't want to screw up anything. From the information I received I
thought if  mvn -version works, that means maven setup is
complete. Anyway I think the  "sudo apt-get install maven"  people
need to be notified of this bug.

kub18@UB18:~/javafx/helloapp$ *echo $M2_HOME**
**
*kub18@UB18:~/javafx/helloapp$ *echo $MAVEN_HOME**
*
kub18@UB18:~/javafx/helloapp$ *whereis maven*
*maven: /etc/maven /usr/share/maven*

kub18@UB18:~/javafx/helloapp$ *whereis mvn**
**mvn: /usr/bin/mvn /usr/share/man/man1/mvn.1.gz*

kub18@UB18:~/javafx/helloapp$ mvn -version
Apache Maven 3.6.0
Maven home: /usr/share/maven
Java version: 11.0.5, vendor: Private Build, runtime:
/usr/lib/jvm/java-11-openjdk-amd64
Default locale: en_GB, platform encoding: UTF-8
OS name: "linux", version: "5.0.0-37-generic", arch: "amd64",
family: "unix"


On 05/01/2020 22:38, Stuart McCulloch wrote:

The Java 11 warning mentions that
"/usr/share/maven/lib/guice.jar" has a class named
"com.google.inject.internal.cglib.core.$ReflectUtils$1"

This looks suspect because the official Maven distribution uses
the "no-AOP" version of Guice which doesn't contain any CGLIB
classes. It suggests that whoever provided that copy of Maven has
replaced the "no-AOP" version with the "AOP" version, and this
will cause warnings on Java 11. (The "AOP" version uses CGLIB
which currently relies on certain reflective access that Java 11
warns about - whereas the "no-AOP" version doesn't.)

If you install an official Maven distribution from Apache (and
make sure that the MAVEN_HOME environment variable points to it)
then you shouldn't see that warning.

On Sun, 5 Jan 2020 at 22:24, Karl Heinz Marbaise
mailto:khmarba...@gmx.de>> wrote:

Hi,

On 05.01.20 22:54, zahid wrote:
> Thank you. These files has been generated by NETBEANS IDE.

I have my doubts that plugins generated as dependencies by
Netbeans if
so this is simply a bug 


>
> *Netbeans uses a very old version Apache Maven 3.3.9 and
these warnings
> do not appear.

This means you don't have defined all your used plugins
correctly within
your pom.xml (pluginManagement as you already done with
maven-compiler-plugin) with their appropriate versions.

Older plugins versions didn't even know something about Java
Module
system (JPMS) names etc. (This is what you get with Maven
3.3.9..) That
looks like that those warnings have gone but they are still
there
because older plugins didn't recogzined them...


> *
>
> *I still get these warnings with the revised pom.xml
> *
>
> kub18@UB18:~/javafx/helloapp$ mvn  javafx:run
> WARNING: An illegal reflective access operation has occurred
> WARNING: Illegal reflective access by
> com.google.inject.internal.cglib.core.$ReflectUtils$1

Re: warning default invalid module name Errors Replicated

2020-01-06 Thread zahid

yes, KUBUNTU 18.04  on UBUNTU 18.04

*kub18@UB18: $**
*

*
*

On 06/01/2020 00:26, Stuart McCulloch wrote:

Is this Ubuntu?  I seem to remember they have their own build of Maven 
which differs from the Apache source.


( https://bugs.launchpad.net/ubuntu/+source/maven/+bug/1754602 
suggests it's a known bug in their packaging/build? )


If you download Maven from http://maven.apache.org/download.cgi and 
follow the instructions in http://maven.apache.org/install.html then 
you shouldn't see those warnings.


On Mon, 6 Jan 2020 at 00:02, zahid > wrote:


I installed maven using *sudo apt-get install  maven**
*

I even got this message at the end.

*update-alternatives: using /usr/share/maven/bin/mvn to provide
/usr/bin/mvn (mvn) in auto mode**
*

from the console output showing my current system settings, what 
do you say should be the  exact settings for env. variable(s) ? I
don't want to screw up anything. From the information I received I
thought if  mvn -version works, that means maven setup is
complete. Anyway I think the  "sudo apt-get install maven"  people
need to be notified of this bug.

kub18@UB18:~/javafx/helloapp$ *echo $M2_HOME**
**
*kub18@UB18:~/javafx/helloapp$ *echo $MAVEN_HOME**
*
kub18@UB18:~/javafx/helloapp$ *whereis maven*
*maven: /etc/maven /usr/share/maven*

kub18@UB18:~/javafx/helloapp$ *whereis mvn**
**mvn: /usr/bin/mvn /usr/share/man/man1/mvn.1.gz*

kub18@UB18:~/javafx/helloapp$ mvn -version
Apache Maven 3.6.0
Maven home: /usr/share/maven
Java version: 11.0.5, vendor: Private Build, runtime:
/usr/lib/jvm/java-11-openjdk-amd64
Default locale: en_GB, platform encoding: UTF-8
OS name: "linux", version: "5.0.0-37-generic", arch: "amd64",
family: "unix"


On 05/01/2020 22:38, Stuart McCulloch wrote:

The Java 11 warning mentions that
"/usr/share/maven/lib/guice.jar" has a class named
"com.google.inject.internal.cglib.core.$ReflectUtils$1"

This looks suspect because the official Maven distribution uses
the "no-AOP" version of Guice which doesn't contain any CGLIB
classes. It suggests that whoever provided that copy of Maven has
replaced the "no-AOP" version with the "AOP" version, and this
will cause warnings on Java 11. (The "AOP" version uses CGLIB
which currently relies on certain reflective access that Java 11
warns about - whereas the "no-AOP" version doesn't.)

If you install an official Maven distribution from Apache (and
make sure that the MAVEN_HOME environment variable points to it)
then you shouldn't see that warning.

On Sun, 5 Jan 2020 at 22:24, Karl Heinz Marbaise
mailto:khmarba...@gmx.de>> wrote:

Hi,

On 05.01.20 22:54, zahid wrote:
> Thank you. These files has been generated by NETBEANS IDE.

I have my doubts that plugins generated as dependencies by
Netbeans if
so this is simply a bug 


>
> *Netbeans uses a very old version Apache Maven 3.3.9 and
these warnings
> do not appear.

This means you don't have defined all your used plugins
correctly within
your pom.xml (pluginManagement as you already done with
maven-compiler-plugin) with their appropriate versions.

Older plugins versions didn't even know something about Java
Module
system (JPMS) names etc. (This is what you get with Maven
3.3.9..) That
looks like that those warnings have gone but they are still
there
because older plugins didn't recogzined them...


> *
>
> *I still get these warnings with the revised pom.xml
> *
>
> kub18@UB18:~/javafx/helloapp$ mvn  javafx:run
> WARNING: An illegal reflective access operation has occurred
> WARNING: Illegal reflective access by
> com.google.inject.internal.cglib.core.$ReflectUtils$1
> (file:/usr/share/maven/lib/guice.jar) to method
>

java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
> WARNING: Please consider reporting this to the maintainers of
> com.google.inject.internal.cglib.core.$ReflectUtils$1
> WARNING: Use --illegal-access=warn to enable warnings of
further illegal
> reflective access operations
> WARNING: All illegal access operations will be denied in a
future release
> [INFO] Scanning for projects...
> [INFO]
> [INFO] --< co.uk.backbutton:HelloFX
>  >--
> [INFO] Building HelloFX 1.0-SNAPSHOT
> [INFO] [ jar
> ]-
> [INFO]
> [INFO] --- javafx-maven-plugin:0.0.3:run (default-cli) @
HelloFX ---
> [INFO]
  

Re: warning default invalid module name Errors Replicated

2020-01-05 Thread Stuart McCulloch
Is this Ubuntu?  I seem to remember they have their own build of Maven
which differs from the Apache source.

( https://bugs.launchpad.net/ubuntu/+source/maven/+bug/1754602  suggests
it's a known bug in their packaging/build? )

If you download Maven from http://maven.apache.org/download.cgi and follow
the instructions in http://maven.apache.org/install.html then you shouldn't
see those warnings.

On Mon, 6 Jan 2020 at 00:02, zahid  wrote:

> I installed maven using *sudo apt-get install  maven*
>
> I even got this message at the end.
>
> *update-alternatives: using /usr/share/maven/bin/mvn to provide
> /usr/bin/mvn (mvn) in auto mode*
>
> from the console output showing my current system settings, what  do you
> say should be the  exact settings  for env. variable(s) ? I don't want to
> screw up anything. From the information I received I thought if  mvn
> -version works, that means maven setup is complete. Anyway I think the
> "sudo apt-get install maven"  people need to be notified of this bug.
>
> kub18@UB18:~/javafx/helloapp$ *echo $M2_HOME*
>
> kub18@UB18:~/javafx/helloapp$ *echo $MAVEN_HOME*
>
> kub18@UB18:~/javafx/helloapp$ *whereis maven*
> *maven: /etc/maven /usr/share/maven*
>
> kub18@UB18:~/javafx/helloapp$ *whereis mvn*
> *mvn: /usr/bin/mvn /usr/share/man/man1/mvn.1.gz*
>
> kub18@UB18:~/javafx/helloapp$ mvn -version
> Apache Maven 3.6.0
> Maven home: /usr/share/maven
> Java version: 11.0.5, vendor: Private Build, runtime:
> /usr/lib/jvm/java-11-openjdk-amd64
> Default locale: en_GB, platform encoding: UTF-8
> OS name: "linux", version: "5.0.0-37-generic", arch: "amd64", family:
> "unix"
>
>
> On 05/01/2020 22:38, Stuart McCulloch wrote:
>
> The Java 11 warning mentions that "/usr/share/maven/lib/guice.jar" has a
> class named "com.google.inject.internal.cglib.core.$ReflectUtils$1"
>
> This looks suspect because the official Maven distribution uses the
> "no-AOP" version of Guice which doesn't contain any CGLIB classes. It
> suggests that whoever provided that copy of Maven has replaced the "no-AOP"
> version with the "AOP" version, and this will cause warnings on Java 11.
> (The "AOP" version uses CGLIB which currently relies on certain reflective
> access that Java 11 warns about - whereas the "no-AOP" version doesn't.)
>
> If you install an official Maven distribution from Apache (and make sure
> that the MAVEN_HOME environment variable points to it) then you shouldn't
> see that warning.
>
> On Sun, 5 Jan 2020 at 22:24, Karl Heinz Marbaise 
> wrote:
>
>> Hi,
>>
>> On 05.01.20 22:54, zahid wrote:
>> > Thank you. These files has been generated by NETBEANS IDE.
>>
>> I have my doubts that plugins generated as dependencies by Netbeans if
>> so this is simply a bug 
>>
>>
>> >
>> > *Netbeans uses a very old version Apache Maven 3.3.9 and these warnings
>> > do not appear.
>>
>> This means you don't have defined all your used plugins correctly within
>> your pom.xml (pluginManagement as you already done with
>> maven-compiler-plugin) with their appropriate versions.
>>
>> Older plugins versions didn't even know something about Java Module
>> system (JPMS) names etc. (This is what you get with Maven 3.3.9..) That
>> looks like that those warnings have gone but they are still there
>> because older plugins didn't recogzined them...
>>
>>
>> > *
>> >
>> > *I still get these warnings with the revised pom.xml
>> > *
>> >
>> > kub18@UB18:~/javafx/helloapp$ mvn  javafx:run
>> > WARNING: An illegal reflective access operation has occurred
>> > WARNING: Illegal reflective access by
>> > com.google.inject.internal.cglib.core.$ReflectUtils$1
>> > (file:/usr/share/maven/lib/guice.jar) to method
>> >
>> java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
>> > WARNING: Please consider reporting this to the maintainers of
>> > com.google.inject.internal.cglib.core.$ReflectUtils$1
>> > WARNING: Use --illegal-access=warn to enable warnings of further
>> illegal
>> > reflective access operations
>> > WARNING: All illegal access operations will be denied in a future
>> release
>> > [INFO] Scanning for projects...
>> > [INFO]
>> > [INFO] --< co.uk.backbutton:HelloFX
>> >  >--
>> > [INFO] Building HelloFX 1.0-SNAPSHOT
>> > [INFO] [ jar
>> > ]-
>> > [INFO]
>> > [INFO] --- javafx-maven-plugin:0.0.3:run (default-cli) @ HelloFX ---
>> > [INFO]
>> > 
>> > [INFO] BUILD SUCCESS
>> > [INFO]
>> > 
>> > [INFO] Total time:  3.934 s
>> > [INFO] Finished at: 2020-01-05T21:51:22Z
>> > [INFO]
>> > 
>>
>>
>> This is something completely different.
>>
>> If the pom is the one your are using than you should use Maven 3.6.3 and
>> correctly check your environment if it's 

Re: warning default invalid module name Errors Replicated

2020-01-05 Thread Stuart McCulloch
The Java 11 warning mentions that "/usr/share/maven/lib/guice.jar" has a
class named "com.google.inject.internal.cglib.core.$ReflectUtils$1"

This looks suspect because the official Maven distribution uses the
"no-AOP" version of Guice which doesn't contain any CGLIB classes. It
suggests that whoever provided that copy of Maven has replaced the "no-AOP"
version with the "AOP" version, and this will cause warnings on Java 11.
(The "AOP" version uses CGLIB which currently relies on certain reflective
access that Java 11 warns about - whereas the "no-AOP" version doesn't.)

If you install an official Maven distribution from Apache (and make sure
that the MAVEN_HOME environment variable points to it) then you shouldn't
see that warning.

On Sun, 5 Jan 2020 at 22:24, Karl Heinz Marbaise  wrote:

> Hi,
>
> On 05.01.20 22:54, zahid wrote:
> > Thank you. These files has been generated by NETBEANS IDE.
>
> I have my doubts that plugins generated as dependencies by Netbeans if
> so this is simply a bug 
>
>
> >
> > *Netbeans uses a very old version Apache Maven 3.3.9 and these warnings
> > do not appear.
>
> This means you don't have defined all your used plugins correctly within
> your pom.xml (pluginManagement as you already done with
> maven-compiler-plugin) with their appropriate versions.
>
> Older plugins versions didn't even know something about Java Module
> system (JPMS) names etc. (This is what you get with Maven 3.3.9..) That
> looks like that those warnings have gone but they are still there
> because older plugins didn't recogzined them...
>
>
> > *
> >
> > *I still get these warnings with the revised pom.xml
> > *
> >
> > kub18@UB18:~/javafx/helloapp$ mvn  javafx:run
> > WARNING: An illegal reflective access operation has occurred
> > WARNING: Illegal reflective access by
> > com.google.inject.internal.cglib.core.$ReflectUtils$1
> > (file:/usr/share/maven/lib/guice.jar) to method
> >
> java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
> > WARNING: Please consider reporting this to the maintainers of
> > com.google.inject.internal.cglib.core.$ReflectUtils$1
> > WARNING: Use --illegal-access=warn to enable warnings of further illegal
> > reflective access operations
> > WARNING: All illegal access operations will be denied in a future release
> > [INFO] Scanning for projects...
> > [INFO]
> > [INFO] --< co.uk.backbutton:HelloFX
> >  >--
> > [INFO] Building HelloFX 1.0-SNAPSHOT
> > [INFO] [ jar
> > ]-
> > [INFO]
> > [INFO] --- javafx-maven-plugin:0.0.3:run (default-cli) @ HelloFX ---
> > [INFO]
> > 
> > [INFO] BUILD SUCCESS
> > [INFO]
> > 
> > [INFO] Total time:  3.934 s
> > [INFO] Finished at: 2020-01-05T21:51:22Z
> > [INFO]
> > 
>
>
> This is something completely different.
>
> If the pom is the one your are using than you should use Maven 3.6.3 and
> correctly check your environment if it's pointing to the correct Maven
> installation... (Do you use M2_HOME or MAVEN_HOME environment variables?
> Only add the bin directory of the Maven installation to the PATH nothing
> else).
>
> I suppose /usr/share/maven/lib/guice.jar) is from your Maven
> installation on your system?
>
> Kind regards
> Karl Heinz Marbaise
>
>
>
> >
> > *REVISED pom.xml*
> >
> > kub18@UB18:~/javafx/helloapp$ cat pom.xml
> > http://maven.apache.org/POM/4.0.0;
> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;
> >xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> > http://maven.apache.org/maven-v4_0_0.xsd;>
> >
> >  4.0.0
> >  co.uk.backbutton
> >  HelloFX
> >  1.0-SNAPSHOT
> >
> >  
> > UTF-8
> >
> UTF-8
> > 11
> > 11
> >  
> >
> >  
> >  
> >  org.openjfx
> >  javafx-controls
> >  14-ea+6
> >  
> >  
> >  org.openjfx
> >  javafx-fxml
> >  13
> >  
> >  
> >
> >  
> >  
> >   
> >  
> > org.apache.maven.plugins
> > maven-compiler-plugin
> >  3.8.0
> >  
> > ${maven.compiler.source}
> >  
> >  
> >
> >  
> >  org.openjfx
> > javafx-maven-plugin
> >  0.0.3
> >  
> >  HelloFX
> >  
> >  
> >  
> >   
> >  
> > 
> >
> >
> > On 05/01/2020 20:53, Karl Heinz Marbaise wrote:
> >> Hi,
> >>
> >>
> >> On 05.01.20 21:31, zahid wrote:
> >>>
> >>> mvn -version
> >>> Apache Maven 3.6.0
> >>> Maven home: /usr/share/maven
> >>> Java version: 11.0.5, vendor: Private Build, runtime:
> >>> /usr/lib/jvm/java-11-openjdk-amd64
> 

Re: warning default invalid module name Errors Replicated

2020-01-05 Thread Karl Heinz Marbaise

Hi,

On 05.01.20 22:54, zahid wrote:

Thank you. These files has been generated by NETBEANS IDE.


I have my doubts that plugins generated as dependencies by Netbeans if 
so this is simply a bug 





*Netbeans uses a very old version Apache Maven 3.3.9 and these warnings 
do not appear.


This means you don't have defined all your used plugins correctly within 
your pom.xml (pluginManagement as you already done with 
maven-compiler-plugin) with their appropriate versions.


Older plugins versions didn't even know something about Java Module 
system (JPMS) names etc. (This is what you get with Maven 3.3.9..) That 
looks like that those warnings have gone but they are still there 
because older plugins didn't recogzined them...




*

*I still get these warnings with the revised pom.xml
*

kub18@UB18:~/javafx/helloapp$ mvn  javafx:run
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by 
com.google.inject.internal.cglib.core.$ReflectUtils$1 
(file:/usr/share/maven/lib/guice.jar) to method 
java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of 
com.google.inject.internal.cglib.core.$ReflectUtils$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal 
reflective access operations

WARNING: All illegal access operations will be denied in a future release
[INFO] Scanning for projects...
[INFO]
[INFO] --< co.uk.backbutton:HelloFX 
 >--

[INFO] Building HelloFX 1.0-SNAPSHOT
[INFO] [ jar 
]-

[INFO]
[INFO] --- javafx-maven-plugin:0.0.3:run (default-cli) @ HelloFX ---
[INFO] 


[INFO] BUILD SUCCESS
[INFO] 


[INFO] Total time:  3.934 s
[INFO] Finished at: 2020-01-05T21:51:22Z
[INFO] 




This is something completely different.

If the pom is the one your are using than you should use Maven 3.6.3 and 
correctly check your environment if it's pointing to the correct Maven 
installation... (Do you use M2_HOME or MAVEN_HOME environment variables? 
Only add the bin directory of the Maven installation to the PATH nothing 
else).


I suppose /usr/share/maven/lib/guice.jar) is from your Maven 
installation on your system?


Kind regards
Karl Heinz Marbaise





*REVISED pom.xml*

kub18@UB18:~/javafx/helloapp$ cat pom.xml
http://maven.apache.org/POM/4.0.0; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;
   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd;>


     4.0.0
     co.uk.backbutton
     HelloFX
     1.0-SNAPSHOT

     
UTF-8
UTF-8
11
11
     

     
     
     org.openjfx
     javafx-controls
     14-ea+6
     
     
     org.openjfx
     javafx-fxml
     13
     
     

     
     
  
     
org.apache.maven.plugins
maven-compiler-plugin
     3.8.0
     
${maven.compiler.source}
     
     

     
     org.openjfx
javafx-maven-plugin
     0.0.3
     
     HelloFX
     
     
     
  
     



On 05/01/2020 20:53, Karl Heinz Marbaise wrote:

Hi,


On 05.01.20 21:31, zahid wrote:


mvn -version
Apache Maven 3.6.0
Maven home: /usr/share/maven
Java version: 11.0.5, vendor: Private Build, runtime: 
/usr/lib/jvm/java-11-openjdk-amd64

Default locale: en_GB, platform encoding: UTF-8
OS name: "linux", version: "5.0.0-37-generic", arch: "amd64", family: 
"unix"


*ls -l
*total 24
-rw-rw-r-- 1 kub18 kub18 4770 Jan  3 15:02 nbactions.xml
-rw-rw-r-- 1 kub18 kub18  455 Jan  1 21:58 pom_old.xml
-rwxrwxrwx 1 kub18 kub18 2520 Jan  3 15:17 pom.xml
drwxrwxr-x 3 kub18 kub18 4096 Jan  1 21:45 src
drwxrwxr-x 7 kub18 kub18 4096 Jan  5 09:24 target

*
*

*consol output**
*

kub18@UB18:~/javafx/helloapp$ mvn javafx:run
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by 
com.google.inject.internal.cglib.core.$ReflectUtils$1 
(file:/usr/share/maven/lib/guice.jar) to method 
java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of 
com.google.inject.internal.cglib.core.$ReflectUtils$1
WARNING: Use --illegal-access=warn to enable warnings of further 
illegal reflective access operations
WARNING: All illegal access operations will be denied in a future 
release

[INFO] Scanning for projects...
[INFO]
[INFO] --< co.uk.backbutton:HelloFX 
 >--

[INFO] Building HelloFX 1.0-SNAPSHOT
[INFO] 

Re: warning default invalid module name Errors Replicated

2020-01-05 Thread Karl Heinz Marbaise

Hi,


On 05.01.20 21:31, zahid wrote:


mvn -version
Apache Maven 3.6.0
Maven home: /usr/share/maven
Java version: 11.0.5, vendor: Private Build, runtime: 
/usr/lib/jvm/java-11-openjdk-amd64

Default locale: en_GB, platform encoding: UTF-8
OS name: "linux", version: "5.0.0-37-generic", arch: "amd64", family: 
"unix"


*ls -l
*total 24
-rw-rw-r-- 1 kub18 kub18 4770 Jan  3 15:02 nbactions.xml
-rw-rw-r-- 1 kub18 kub18  455 Jan  1 21:58 pom_old.xml
-rwxrwxrwx 1 kub18 kub18 2520 Jan  3 15:17 pom.xml
drwxrwxr-x 3 kub18 kub18 4096 Jan  1 21:45 src
drwxrwxr-x 7 kub18 kub18 4096 Jan  5 09:24 target

*
*

*consol output**
*

kub18@UB18:~/javafx/helloapp$ mvn javafx:run
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by 
com.google.inject.internal.cglib.core.$ReflectUtils$1 
(file:/usr/share/maven/lib/guice.jar) to method 
java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of 
com.google.inject.internal.cglib.core.$ReflectUtils$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal 
reflective access operations

WARNING: All illegal access operations will be denied in a future release
[INFO] Scanning for projects...
[INFO]
[INFO] --< co.uk.backbutton:HelloFX 
 >--

[INFO] Building HelloFX 1.0-SNAPSHOT
[INFO] [ jar 
]-

[INFO]
[INFO] --- javafx-maven-plugin:0.0.3:run (default-cli) @ HelloFX ---
[WARNING] Can't extract module name from 
plexus-container-default-1.0-alpha-6.jar: plexus.container.default: 
Invalid module name: 'default' is not a Java identifier
[WARNING] Can't extract module name from 
plexus-container-default-1.0-alpha-30.jar: plexus.container.default: 
Invalid module name: 'default' is not a Java identifier
[WARNING] Some dependencies encountered issues while attempting to be 
resolved as modules and will not be included in the classpath; you can 
change this behavior via the 'includePathExceptionsInClasspath' 
configuration parameter.
[INFO] 


[INFO] BUILD SUCCESS
[INFO] 


[INFO] Total time:  15.673 s
[INFO] Finished at: 2020-01-05T20:20:17Z
[INFO] 


*
*

*kub18@UB18:~/javafx/helloapp$ cat pom.xml*

http://maven.apache.org/POM/4.0.0; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;
   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd;>

     4.0.0
     co.uk.backbutton
     HelloFX
     1.0-SNAPSHOT
     
UTF-8
UTF-8

11
11
     
     

     
     org.openjfx
     javafx-controls
     14-ea+6
     
     
     org.openjfx
     javafx-fxml
     13
     
     
     plexus
     plexus-container-default
     1.0-alpha-6

     
org.apache.maven.plugins
maven-source-plugin
     3.2.1
     
     
org.apache.maven.plugins
maven-javadoc-plugin
     3.1.1
     

     
org.apache.maven.plugins
maven-deploy-plugin
     3.0.0-M1
     

     
     
     
     
org.apache.maven.plugins
maven-compiler-plugin
     3.8.0
     
     11
     
     

     
     org.openjfx
javafx-maven-plugin
     0.0.3
     
     HelloFX
     
     
     
     





Never use maven plugins as dependencies
also do not use plexus-container-default as a dependency.


So remove the dependency definition:

maven-source-plugin
maven-javadoc-plugin
maven-deploy-plugin

also remove the dependency:

plexus-container-default from your pom file...

If you want to define your plugins in your pom which is a good idea you 
should use pluginManagement instead ...


This will remove the warnings you have gotten

The issue had been the wrong dependencies..


Kind regards
Karl Heinz Marbaise





*kub18@UB18:~/javafx/helloapp$ cat nbactions.xml
*

     
     rebuild
     
     *
     
     
     clean
     install
     javafx:run
     
     
     
     build
     
     *
     
     
     install
     javafx:run
     
     
     
build-with-dependencies
     also-make
     
     *
     
     
     clean
     install
     javafx:run
     
     
     
     run
     
     jar
     
     
     clean