Re: Eclipse Compiler Options
You would have to check what those options are for the eclipse compiler (if they exist) and open a jira issue under http://jira.codehaus.org/browse/PLX to support them On 5/31/06, rich09 [EMAIL PROTECTED] wrote: Hi, I am trying to build my project with maven 2 using the plexus-eclipse-compiler. Here is the abstract of my pom.xml ... groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration compilerIdeclipse/compilerId source1.5/source target1.5/target /configuration dependencies dependency groupIdorg.codehaus.plexus/groupId artifactIdplexus-compiler-eclipse/artifactId version1.5.1/version /dependency /dependencies /plugin ... As a result I get only that classes compiled, who don't have any warning like The local variable obj is never read. My Question, is there an option I can enable to get the compiler working like in eclipse? Regards Reinhard -- View this message in context: http://www.nabble.com/Eclipse+Compiler+Options-t1711150.html#a4645900 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- I could give you my word as a Spaniard. No good. I've known too many Spaniards. -- The Princess Bride - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Eclipse Compiler Options
rich09 wrote: My Question, is there an option I can enable to get the compiler working like in eclipse? May be http://jira.codehaus.org/browse/MCOMPILER-8 helps? Jochen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: eclipse compiler
I went through some source code on the plexus compilers. And why is Eclipse comented out as a possible compiler? Is there a fix comming up? anyone? On 2/14/06, Rolf Strijdhorst [EMAIL PROTECTED] wrote: Hi Jay, Ok I did try some experiments but they failed. I will try to dig into the catacombs of plexus It's fine were're back to the list I Hope someone responds. have a nice time. Rolf On 2/14/06, Jay H. Hartley [EMAIL PROTECTED] wrote: Rolf, Have you made any headway on this? I haven't seen any traffic on the Maven list about it. Have you tried the Plexus mailing lists? I looked at the Maven repository on ibiblio. I bet you have to specify plexus-compiler-eclipse-1.5 (groupId=plexus) as a dependency to get the eclipse compiler. The plugin does not explicitly provide a dependency on any particular compiler. I'm sorry I kind of dropped you back to the list. I'm leaving for 2 wks vacation in a few days, and have been scrambling just to get work done before then. My only path right now for digging out what to do, other than trying the Plexus list, would be to scour through the Plexus code some more. FYI, the subversion repository is at svn://svn.codehaus.org/plexus/scm. I looked at the plexus-compiler-manager and plexus-compilers projects, but there is some core Plexus code that actually populates the list of available compilers in DefaultCompilerManager, and I couldn't figure out where that came from. The plexus-compiler-eclipse project appears to include the org.eclipse.jdt-3.1.jar file in its dependencies, so once you get that included, I don't think you'll have to worry about setting your Eclipse classpath. Good luck! Please let me know what you find. Jay -- *From:* Rolf Strijdhorst [mailto:[EMAIL PROTECTED] *Sent:* Friday, February 10, 2006 2:12 AM *To:* Jay H. Hartley *Subject:* Re: eclipse compiler Hi Jay I did one test and only including the compilerId eclipse is not enough. I am about to do a test with eclipse somewhere on the classpath. have to figure out how though. Rolf On 2/10/06, Jay H. Hartley [EMAIL PROTECTED] wrote: Rolf, In looking through the M2 CompilerMojo, I found that it just wraps Jason van Zyl's Plexus Compiler package. ( http://plexus.codehaus.org) That appears to support 'eclipse' as a compiler variation, so I'm thinking you can just set the compilerId parameter to 'eclipse' instead of the default 'javac' instead of using the 'executable' parameter I suggested before. I'm cc-ing the mailing list on this, to see if we can get verification from the plugin authors. Jay -- *From:* Rolf Strijdhorst [mailto:[EMAIL PROTECTED] *Sent:* Wednesday, February 08, 2006 11:17 PM *To:* Jay H. Hartley *Subject:* Re: eclipse compiler Thanx Jay By the way I am using M2 But does this mean I can just insert: org.eclipse.jdt.core.JDTCompiler Adapter or do I need to include the complete path to the compiler or ( a lot of ors) is it enough to include the jar that contains the compiler in the classpath? Rolf On 2/8/06, Jay H. Hartley [EMAIL PROTECTED] wrote: Rolf, If you are using Maven 2, set the executable parameter for the compile:compile goal: http://maven.apache.org/plugins/maven-compiler-plugin/compile-mojo.html For a description of how to set compiler parameters, see http://maven.apache.org/plugins/maven-compiler-plugin/howto.html For Maven 1, set the maven.compile.executable property in one of the various properties files: http://maven.apache.org/maven-1.x/reference/plugins/java/properties.html Hope this helps, Jay -Original Message- From: Rolf Strijdhorst [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 08, 2006 11:25 AM To: Maven Users List Subject: eclipse compiler hi I am wondering is het possible to assign a different compiler. I want to use the eclipse compiler for my builds. thanx Rolf
Re: eclipse compiler
Hi Jay, Ok I did try some experiments but they failed. I will try to dig into the catacombs of plexus It's fine were're back to the list I Hope someone responds. have a nice time. Rolf On 2/14/06, Jay H. Hartley [EMAIL PROTECTED] wrote: Rolf, Have you made any headway on this? I haven't seen any traffic on the Maven list about it. Have you tried the Plexus mailing lists? I looked at the Maven repository on ibiblio. I bet you have to specify plexus-compiler-eclipse-1.5 (groupId=plexus) as a dependency to get the eclipse compiler. The plugin does not explicitly provide a dependency on any particular compiler. I'm sorry I kind of dropped you back to the list. I'm leaving for 2 wks vacation in a few days, and have been scrambling just to get work done before then. My only path right now for digging out what to do, other than trying the Plexus list, would be to scour through the Plexus code some more. FYI, the subversion repository is at svn://svn.codehaus.org/plexus/scm. I looked at the plexus-compiler-manager and plexus-compilers projects, but there is some core Plexus code that actually populates the list of available compilers in DefaultCompilerManager, and I couldn't figure out where that came from. The plexus-compiler-eclipse project appears to include the org.eclipse.jdt-3.1.jar file in its dependencies, so once you get that included, I don't think you'll have to worry about setting your Eclipse classpath. Good luck! Please let me know what you find. Jay -- *From:* Rolf Strijdhorst [mailto:[EMAIL PROTECTED] *Sent:* Friday, February 10, 2006 2:12 AM *To:* Jay H. Hartley *Subject:* Re: eclipse compiler Hi Jay I did one test and only including the compilerId eclipse is not enough. I am about to do a test with eclipse somewhere on the classpath. have to figure out how though. Rolf On 2/10/06, Jay H. Hartley [EMAIL PROTECTED] wrote: Rolf, In looking through the M2 CompilerMojo, I found that it just wraps Jason van Zyl's Plexus Compiler package. ( http://plexus.codehaus.org) That appears to support 'eclipse' as a compiler variation, so I'm thinking you can just set the compilerId parameter to 'eclipse' instead of the default 'javac' instead of using the 'executable' parameter I suggested before. I'm cc-ing the mailing list on this, to see if we can get verification from the plugin authors. Jay -- *From:* Rolf Strijdhorst [mailto:[EMAIL PROTECTED] *Sent:* Wednesday, February 08, 2006 11:17 PM *To:* Jay H. Hartley *Subject:* Re: eclipse compiler Thanx Jay By the way I am using M2 But does this mean I can just insert: org.eclipse.jdt.core.JDT Compiler Adapter or do I need to include the complete path to the compiler or ( a lot of ors) is it enough to include the jar that contains the compiler in the classpath? Rolf On 2/8/06, Jay H. Hartley [EMAIL PROTECTED] wrote: Rolf, If you are using Maven 2, set the executable parameter for the compile:compile goal: http://maven.apache.org/plugins/maven-compiler-plugin/compile-mojo.html For a description of how to set compiler parameters, see http://maven.apache.org/plugins/maven-compiler-plugin/howto.html For Maven 1, set the maven.compile.executable property in one of the various properties files: http://maven.apache.org/maven-1.x/reference/plugins/java/properties.html Hope this helps, Jay -Original Message- From: Rolf Strijdhorst [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 08, 2006 11:25 AM To: Maven Users List Subject: eclipse compiler hi I am wondering is het possible to assign a different compiler. I want to use the eclipse compiler for my builds. thanx Rolf
RE: eclipse compiler
Rolf, In looking through the M2 CompilerMojo, I found that it just wraps Jason van Zyl's Plexus Compiler package. (http://plexus.codehaus.org) That appears to support 'eclipse' as a compiler variation, so I'm thinking you can just set the compilerId parameter to 'eclipse' instead of the default 'javac' instead of using the 'executable' parameter I suggested before. I'm cc-ing the mailing list on this, to see if we can get verification from the plugin authors. Jay _ From: Rolf Strijdhorst [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 08, 2006 11:17 PM To: Jay H. Hartley Subject: Re: eclipse compiler Thanx Jay By the way I am using M2 But does this mean I can just insert: org.eclipse.jdt.core.JDT CompilerAdapter or do I need to include the complete path to the compiler or ( a lot of ors) is it enough to include the jar that contains the compiler in the classpath? Rolf On 2/8/06, Jay H. Hartley [EMAIL PROTECTED] wrote: Rolf, If you are using Maven 2, set the executable parameter for the compile:compile goal: http://maven.apache.org/plugins/maven-compiler-plugin/compile-mojo.html http://maven.apache.org/plugins/maven-compiler-plugin/compile-mojo.html For a description of how to set compiler parameters, see http://maven.apache.org/plugins/maven-compiler-plugin/howto.html For Maven 1, set the maven.compile.executable property in one of the various properties files: http://maven.apache.org/maven-1.x/reference/plugins/java/properties.html http://maven.apache.org/maven-1.x/reference/plugins/java/properties.html Hope this helps, Jay -Original Message- From: Rolf Strijdhorst [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 08, 2006 11:25 AM To: Maven Users List Subject: eclipse compiler hi I am wondering is het possible to assign a different compiler. I want to use the eclipse compiler for my builds. thanx Rolf
RE: eclipse compiler
Rolf, If you are using Maven 2, set the executable parameter for the compile:compile goal: http://maven.apache.org/plugins/maven-compiler-plugin/compile-mojo.html For a description of how to set compiler parameters, see http://maven.apache.org/plugins/maven-compiler-plugin/howto.html For Maven 1, set the maven.compile.executable property in one of the various properties files: http://maven.apache.org/maven-1.x/reference/plugins/java/properties.html Hope this helps, Jay -Original Message- From: Rolf Strijdhorst [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 08, 2006 11:25 AM To: Maven Users List Subject: eclipse compiler hi I am wondering is het possible to assign a different compiler. I want to use the eclipse compiler for my builds. thanx Rolf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]