I spotted the generated option files in the target folder and the javac.bat script to launch java using this option file. So now I'am even more puzzled as these options files are supposed to solve the too long class path issue !
... To follow -----Original Message----- From: Grégory Jevardat De Fombelle <gregory.jevar...@unige.ch.INVALID> Sent: Tuesday, November 12, 2024 8:29 AM To: Maven Users List <users@maven.apache.org> Subject: [EXTERNAL] RE: Re: maven compiler plugin question Indeed, you are right. Actually I wanted to use arg files to solve the too long class path on Windows... I though fork would be enough but there is something else that I don't understand. I checked in the code of the plexus javac compiler and internally it already generates an @option file with all args passed to JVM in fork mode. What is curious is that I don't see this option appearing in command line using mvn -X I just see plain args on the terminal. Any hints ? Thanks -----Original Message----- From: Martin Desruisseaux <martin.desruisse...@geomatys.com> Sent: Monday, November 11, 2024 5:02 PM To: users@maven.apache.org Subject: [EXTERNAL] Re: maven compiler plugin question Hello Le 2024-11-11 à 13 h 16, Grégory Jevardat De Fombelle a écrit : > I have difficulties finding documentation on the support of Java arguments > files on the maven compiler plugin. > I'd like to put my long classpath in a file and use it as in javac > documentation for : javac @classpath .... I think that the support of "@option-file" syntax is specific to the javac command tool. which would expand this option before to pass it to the compiler. I just verified that "@option-file" is not supported by javax.tools.JavaCompiler. Maven 3 uses the Plexus compiler, but I presume that it doesn't expand that option neither. I don't know if we want to add similar functionality to Maven compiler plugin. But if so, it would be useful to know why options in a file are desired, in order to see if it would be possible to do the same in a more "Maven way". Martin --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org Ce message est envoyé depuis une adresse extérieure à l'UNIGE, soyez vigilant-es (expéditeur, pièces jointes). This message is sent from an address outside UNIGE, be careful (sender, content). ------------------------------------------------------------------------------ --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org Ce message est envoyé depuis une adresse extérieure à l’UNIGE, soyez vigilant-es (expéditeur, pièces jointes). This message is sent from an address outside UNIGE, be careful (sender, content). ------------------------------------------------------------------------------ --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org