Re: Discover modulename

2016-08-25 Thread Alan Bateman
On 25/08/2016 18:28, Robert Scholte wrote: Hi, JavaOne spoiler alert: I've been able to add this kind of information to the output of the maven-dependency-plugin: [INFO] --- maven-dependency-plugin:3.0.0-SNAPSHOT:list (default-cli) @ maven-dependency-plugin --- [INFO] [INFO] The following

Re: Discover modulename

2016-08-25 Thread Paul Benedict
Good job, Robert! It looks nice and useful. Cheers, Paul On Thu, Aug 25, 2016 at 12:28 PM, Robert Scholte wrote: > Hi, > > JavaOne spoiler alert: > I've been able to add this kind of information to the output of the > maven-dependency-plugin: > > [INFO] --- maven-dependency-plugin:3.0.0-SNAPSHO

Re: Discover modulename

2016-08-25 Thread Robert Scholte
Hi, JavaOne spoiler alert: I've been able to add this kind of information to the output of the maven-dependency-plugin: [INFO] --- maven-dependency-plugin:3.0.0-SNAPSHOT:list (default-cli) @ maven-dependency-plugin --- [INFO] [INFO] The following files have been resolved: [INFO]com.goo

Re: Discover modulename

2016-08-25 Thread Alan Bateman
On 25/08/2016 11:26, Robert Scholte wrote: Hi, In an old thread I asked this before and got the following answer: "One way is `jar --file foo.jar -p`. That will print the module descriptor when the JAR file is a modular JAR. There is API support for reading the binary form of the module decla

Re: Discover modulename

2016-08-25 Thread Remi Forax
Hi Robert, there are currently two different module descriptor formats, the old one, that is readable by current JDK9 and the new one that is readable by the JDK9-jigsaw, and they are not compatible. If you want to read the module descriptor of asm6-alpha, you need to use the jar from the JDK9 a