Re: [maven compiler plugin] compilation failure with plexus eclipse compiler

2013-05-14 Thread Dimitrios Kateros
A guy at stackoverflow named Kenney reproduced, provided a work around (use
true on maven-compiler-plugin 3.x configuration) and
created a github issue https://github.com/sonatype/plexus-compiler/issues/16

Just thought I'd add this here for completeness sake.

Dimitris


On Mon, May 13, 2013 at 5:53 PM, Dimitrios Kateros wrote:

> Hello,
>
> There looks to be an issue with the plexus compiler plugin with the
> eclipse compiler configuration when using the switch statement with enums.
>
> Please, find details on following stackoverflow thread:
>
>
> http://stackoverflow.com/questions/16520888/maven-compilation-failure-when-switching-on-enum
>
> Regards,
>
> Dimitris
>



-- 
Dimitris Kateros


[maven compiler plugin] compilation failure with plexus eclipse compiler

2013-05-13 Thread Dimitrios Kateros
Hello,

There looks to be an issue with the plexus compiler plugin with the eclipse
compiler configuration when using the switch statement with enums.

Please, find details on following stackoverflow thread:

http://stackoverflow.com/questions/16520888/maven-compilation-failure-when-switching-on-enum

Regards,

Dimitris


Re: Use the eclipse compiler in a maven component

2011-06-23 Thread Romain Thouvenin
Not sure I understand. The config you gave won't make maven use the
JDT compiler, will it?

Regards,
Romain

On Thu, Jun 23, 2011 at 7:15 PM, Yuvaraj Vanarase
 wrote:
> Use inside POM:
>
> 
>                                org.apache.maven.plugins
>                                maven-compiler-plugin
>                                
>                                        1.6
>                                        1.6
>                                        128m
>                                        512m
>                                
>                        
>
> Set same java version in eclipse for compilation. Also, modify build path of 
> eclipse project to set output directory as 'target'.
>
>
> Regards,
> Yuvaraj
>
> Yuvaraj Vanarase,
> Lead Technology - Software
> Phone: +91.20.40262000 Ext 2305|Mobile: +91.9850818870 
> | http://www.synechron.com
> SYNECHRON -
> - Top 10 Best IT Employers for 4 consecutive years (link).
> - Celebrating 10 Years!
>
>
> -Original Message-
> From: Romain Thouvenin [mailto:romain.thouve...@gmail.com]
> Sent: Thursday, June 23, 2011 10:12 PM
> To: users@maven.apache.org
> Subject: Use the eclipse compiler in a maven component
>
> Hello,
>
> I am working on a fairly big maven project, and develop in Java with Eclipse.
>
> To save compilation time, I would like that maven and eclipse share
> the same target, which I managed to do. However when I compile with
> maven, Eclipse lacks some stuff that it puts in the bytecode, so it
> recompiles everything (from what I understood).
>
> To solve this, I thought I would ask maven to use the same compiler as 
> eclipse.
> After some search on the web, I found out I could add this in the top pom:
>
> 
> ...
> 
> ...
> 
>        org.apache.maven.plugins
>        maven-compiler-plugin
>        
>                eclipse
>                1.5
>                1.5
>                true
>        
>        
>                
>                        org.codehaus.plexus
>                        plexus-compiler-eclipse
>                        1.8.1
>                
>        
> 
> 
> 
>
>
> This seems to work, but the build fails fairly quickly with lots of
> errors, while it succeeds with javac.
> I'm not sure why, but it seems that there is some conflicts linked to
> the fact the failing java files are generated files.
>
> So I thought I could try to use the eclipse compiler only for the
> component I am working on (which does not have that kind of generated
> files). I added the above snippet in the pom of my component, but when
> the build reaches my component, the following error is raised:
>
> No such compiler 'eclipse'
>
> I also tried to add the plexus-compiler-eclipse dependency in the
> dependencies listed in the top pom, but same error.
>
>
> Do you know if what I am trying to do is possible? Any hint of how I can do 
> it?
>
> Sorry if the question seems dumb, I am not a maven expert, and I am
> not the one who designed the whole maven architecture of our project.
> And sorry for the long message, I wanted to give the whole context...
>
>
> Thanks a lot for your help!
>
> Romain
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



RE: Use the eclipse compiler in a maven component

2011-06-23 Thread Yuvaraj Vanarase
Use inside POM:


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

1.6
1.6
128m
512m



Set same java version in eclipse for compilation. Also, modify build path of 
eclipse project to set output directory as 'target'.


Regards,
Yuvaraj

Yuvaraj Vanarase,
Lead Technology - Software
Phone: +91.20.40262000 Ext 2305|Mobile: +91.9850818870 
| http://www.synechron.com
SYNECHRON - 
- Top 10 Best IT Employers for 4 consecutive years (link).
- Celebrating 10 Years!


-Original Message-
From: Romain Thouvenin [mailto:romain.thouve...@gmail.com] 
Sent: Thursday, June 23, 2011 10:12 PM
To: users@maven.apache.org
Subject: Use the eclipse compiler in a maven component

Hello,

I am working on a fairly big maven project, and develop in Java with Eclipse.

To save compilation time, I would like that maven and eclipse share
the same target, which I managed to do. However when I compile with
maven, Eclipse lacks some stuff that it puts in the bytecode, so it
recompiles everything (from what I understood).

To solve this, I thought I would ask maven to use the same compiler as eclipse.
After some search on the web, I found out I could add this in the top pom:


...

...

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

eclipse
1.5
1.5
true



org.codehaus.plexus
plexus-compiler-eclipse
1.8.1







This seems to work, but the build fails fairly quickly with lots of
errors, while it succeeds with javac.
I'm not sure why, but it seems that there is some conflicts linked to
the fact the failing java files are generated files.

So I thought I could try to use the eclipse compiler only for the
component I am working on (which does not have that kind of generated
files). I added the above snippet in the pom of my component, but when
the build reaches my component, the following error is raised:

No such compiler 'eclipse'

I also tried to add the plexus-compiler-eclipse dependency in the
dependencies listed in the top pom, but same error.


Do you know if what I am trying to do is possible? Any hint of how I can do it?

Sorry if the question seems dumb, I am not a maven expert, and I am
not the one who designed the whole maven architecture of our project.
And sorry for the long message, I wanted to give the whole context...


Thanks a lot for your help!

Romain

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Use the eclipse compiler in a maven component

2011-06-23 Thread Romain Thouvenin
Hello,

I am working on a fairly big maven project, and develop in Java with Eclipse.

To save compilation time, I would like that maven and eclipse share
the same target, which I managed to do. However when I compile with
maven, Eclipse lacks some stuff that it puts in the bytecode, so it
recompiles everything (from what I understood).

To solve this, I thought I would ask maven to use the same compiler as eclipse.
After some search on the web, I found out I could add this in the top pom:


...

...

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

eclipse
1.5
1.5
true



org.codehaus.plexus
plexus-compiler-eclipse
1.8.1







This seems to work, but the build fails fairly quickly with lots of
errors, while it succeeds with javac.
I'm not sure why, but it seems that there is some conflicts linked to
the fact the failing java files are generated files.

So I thought I could try to use the eclipse compiler only for the
component I am working on (which does not have that kind of generated
files). I added the above snippet in the pom of my component, but when
the build reaches my component, the following error is raised:

No such compiler 'eclipse'

I also tried to add the plexus-compiler-eclipse dependency in the
dependencies listed in the top pom, but same error.


Do you know if what I am trying to do is possible? Any hint of how I can do it?

Sorry if the question seems dumb, I am not a maven expert, and I am
not the one who designed the whole maven architecture of our project.
And sorry for the long message, I wanted to give the whole context...


Thanks a lot for your help!

Romain

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Compiling Eclipse plugins with ECJ (Eclipse Compiler for Java)

2008-10-20 Thread Costin Caraivan

Hello,

I'm trying to compile some Eclipse plugins (about 50). The problem is that
I'd want to compile them with ECJ, but I need a relatively new version. 
Almost all the information available online is from 2004-2006, Eclipse 3.2. 
I could use Eclipse PDE, but PDE has its own dependency resolution
mechanism, and the integration between PDE and Maven is rather tedious.

For Eclipse 3.3/3.4, is there any Maven plugin which calls the ECJ?

Thank,
Costin.
-- 
View this message in context: 
http://www.nabble.com/Compiling-Eclipse-plugins-with-ECJ-%28Eclipse-Compiler-for-Java%29-tp20065506p20065506.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



how to use eclipse compiler ?

2008-07-15 Thread Patel, Sanjay
can I use eclipse compiler to compile my source code when I compile
using maven? I mean how can I tell my pom to use eclipe compiler to
compile the source code.

Sanjay.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Eclipse Compiler Options

2006-05-31 Thread Jochen Wiedmann
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 Options

2006-05-31 Thread Carlos Sanchez

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

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

  eclipse
  1.5
  1.5


  
org.codehaus.plexus
plexus-compiler-eclipse
1.5.1
  

  
 ...

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]



Eclipse Compiler Options

2006-05-31 Thread rich09

Hi,

I am trying to build my project with maven 2 using the
plexus-eclipse-compiler. Here is the abstract of my pom.xml

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

  eclipse
  1.5
  1.5


  
org.codehaus.plexus
plexus-compiler-eclipse
1.5.1


  
 ...

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]



Re: Using the Eclipse compiler under maven

2006-04-10 Thread Rolf Strijdhorst
I have this same problem as I mentioned in an earlier post.
It seems that the eclipse compiler is commented out as a possible compiler
option

I have no idea when someone is going to fix this
there are some problems using the eclipse plugin it seems.

Rolf

On 4/10/06, Jochen Wiedmann <[EMAIL PROTECTED]> wrote:
>
> On 4/9/06, gdub <[EMAIL PROTECTED]> wrote:
>
> > I see messages that suggest that I
> > can use the Eclipse compiler instead
> > of the Sun compiler from within
> > Maven. Is this true? Is there a con-
> > figuration page somewhere? I can't
> > seem to find it.
>
> See
>
> http://jira.codehaus.org/browse/MCOMPILER-8
>
>
> Jochen
>
> --
> Whenever you find yourself on the side of the
> majority, it is time to pause and reflect.
> (Mark Twain)
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Using the Eclipse compiler under maven

2006-04-10 Thread Jochen Wiedmann
On 4/9/06, gdub <[EMAIL PROTECTED]> wrote:

> I see messages that suggest that I
> can use the Eclipse compiler instead
> of the Sun compiler from within
> Maven. Is this true? Is there a con-
> figuration page somewhere? I can't
> seem to find it.

See

http://jira.codehaus.org/browse/MCOMPILER-8


Jochen

--
Whenever you find yourself on the side of the
majority, it is time to pause and reflect.
(Mark Twain)

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Using the Eclipse compiler under maven

2006-04-08 Thread gdub

I see messages that suggest that I
can use the Eclipse compiler instead
of the Sun compiler from within
Maven. Is this true? Is there a con-
figuration page somewhere? I can't
seem to find it.

I have run across a situation where
the Eclipse compiler compiles my
1.5 code but the Sun compiler won't.
I think that the Eclipse compiler
is correct but whether or not that
is the case, I'm in the 11th hour
and would just like to install my
modules and keep moving.

TIA,

  -dub


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: eclipse compiler

2006-02-24 Thread Rolf Strijdhorst
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

2006-02-13 Thread Rolf Strijdhorst
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

2006-02-09 Thread Jay H. Hartley
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

2006-02-08 Thread Jay H. Hartley
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]



eclipse compiler

2006-02-08 Thread Rolf Strijdhorst
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: Using Eclipse Compiler in Maven

2005-06-29 Thread Martin Skopp

Hi all,

this works fine with Eclipse 3.0

Any idea for Eclipse 3.1? "jdtCompilerAdapter.jar" does not exists in 
eclipse plugin dir.
It's contained in "org.eclipse.jdt.core_3.1.0.jar" but is it the right 
way to simply extract it from the jar?


$ jar tf org.eclipse.jdt.core_3.1.0.jar | grep CompilerAdapter
jdtCompilerAdapter.jar

Thanks for clarification,
Martin

Tran, Khiet schrieb:

Sorry, I've added these lines to maven/bin/forehead.conf too:
${maven.home}/lib/jdtcore.jar
${maven.home}/lib/jdtCompilerAdapter.jar

-Original Message-
From: Tran, Khiet [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 11, 2005 10:11 AM

To: 'Maven Users List'
Subject: RE: Using Eclipse Compiler in Maven


Hi Jörn,
I am compiling with Eclipse and here's how I do it:
I've added these jars into maven installation
maven\lib\jdtCompilerAdapter.jar maven\lib\jdtcore.jar and specify this
property 
build.compiler=org.eclipse.jdt.core.JDTCompilerAdapter

somewhere into maven properties tree.
Hope this helps,
Khiet.
-Original Message-
From: "Gebhardt, Jörn" [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 11, 2005 8:29 AM

To: Maven Users List
Subject: AW: Using Eclipse Compiler in Maven


Hi Maurice,

I don't get the hot replacement working and I still believe that it is a
problem with the different compilers...

So does anybody know how to run Maven with the Eclipse Java compiler, i.e.
where do I configure the classpath of Maven/Java Plugin/Jelly-Ant so that
the Ant java task finds the org.eclipse.jdt.core.JDTCompilerAdapter?

Thanks in advance,
Jörn

-Ursprüngliche Nachricht-
Von: Maurice Nicholson [mailto:[EMAIL PROTECTED] 
Gesendet: Mittwoch, 11. Mai 2005 12:25

An: 'Maven Users List'
Betreff: RE: Using Eclipse Compiler in Maven

Hi Joern,

Actually we build and deploy our EJBs with plain old JAR files, not EARs.

But perhaps the fact you do not get a warning initially means it is
reloading the class correctly into the app server!?

I don't use Eclipse (anymore), but I would expect that as soon as the class
is compiled, it is reloaded into existing debugged VMs. I think the delay
between the change and warning is something to do with the JUnit test. 


I was actually looking for the Eclipse "option(s)" to enable hot-replace a
few days ago and just couldn't find any. I can only assume if you use 1.4 it
is enabled. Although I do remember getting a dialogue when I switched from
1.3 to 1.4 in Eclipse to the effect that "changed classes can now be
reloaded, is this ok?". And the fact you get this "Schema change..." error
definitely indicates it is trying, at least.

Try a test without running JUnit on a method you can easily debug; debug it
first, make a change, compile, hot-deploy and re-execute the code to check
whether the hot deploy is working with your app server.

Cheers,
Maurice

-Original Message-
From: "Gebhardt, Jörn" [mailto:[EMAIL PROTECTED]
Sent: 11 May 2005 10:54
To: Maven Users List
Subject: AW: Using Eclipse Compiler in Maven


Hi Maurice,

Unfortunately it doesn't work... I'm just changing an existing method
implementation and when I rerun a JUnit test I get the "Hot code replace
failed - Scheme change not implemented" exception. And I also assured that
Eclpise's compiler compliance level is set to version 1.4 (I'm using JDK
1.4.2_08 for Eclipse and Maven and JBoss). Unfortunately, Eclipse doesn't
tell me, which class couldn't be hot deployed? Because at the moment I saved
the modified file, no hot deployment exception is shown (however the
execution of the JUnit test shows, that the modified class was not
deployed), it appears only when rerunning the JUnit test...

I also tried to deploy just the EJB jar outside the EAR, however I still get
the old exception.

Did you ever build an EAR with Maven, deployed it from Eclipse (using
JBossIDE) and modified any source file in Eclipse and the hot deployment did
work? Did you have to configure anything special (e.g. which source belongs
to which jar/ear file)?

Best regards,
Joern


-Ursprüngliche Nachricht-
Von: Maurice Nicholson [mailto:[EMAIL PROTECTED] 
Gesendet: Mittwoch, 11. Mai 2005 11:26

An: 'Maven Users List'
Betreff: RE: Using Eclipse Compiler in Maven

Hi,

you don't need to use the Eclipse compiler; hot deploy should work fine
using Eclipse while debugging and javac to build the deployment JARs.

But... AFAIK the only thing that can be hot-replaced is a change to an
existing method implementation. If you add/rename methods, change method
signatures, add new classes, instance variables, imports, etc, that is a
"Schema change" which is "not implemented".

Cheers,
Maurice


-Original Message-
From: "Gebhardt, Jörn" [mailto:[EMAIL PROTECTED]
Sent: 11 May 2005 10:16
To: users@maven.apache.org
Subject: 

AW: Using Eclipse Compiler in Maven

2005-05-11 Thread Gebhardt, Jörn
Thanks Khiet, now everything is working fine. Even my hot-deployment works!

Just a short anecdote:
I've did exactly what you told me before (adding jars to lib and forehead.conf) 
but I got the exception that the org.eclipse.jdt.core.JDTCompilerAdapter 
couldn't be found. Now I found the reason why: My MAVEN_HOME variable was 
pointing to an old Maven installation but my Path was set correctly to the new 
Maven installation).

Thanks,
Jörn

-Ursprüngliche Nachricht-
Von: Tran, Khiet [mailto:[EMAIL PROTECTED] 
Gesendet: Mittwoch, 11. Mai 2005 16:20
An: 'Maven Users List'
Betreff: RE: Using Eclipse Compiler in Maven

Sorry, I've added these lines to maven/bin/forehead.conf too:
${maven.home}/lib/jdtcore.jar
${maven.home}/lib/jdtCompilerAdapter.jar

-Original Message-
From: Tran, Khiet [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 11, 2005 10:11 AM
To: 'Maven Users List'
Subject: RE: Using Eclipse Compiler in Maven


Hi Jörn,
I am compiling with Eclipse and here's how I do it:
I've added these jars into maven installation
maven\lib\jdtCompilerAdapter.jar maven\lib\jdtcore.jar and specify this
property 
build.compiler=org.eclipse.jdt.core.JDTCompilerAdapter
somewhere into maven properties tree.
Hope this helps,
Khiet.
-Original Message-
From: "Gebhardt, Jörn" [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 11, 2005 8:29 AM
To: Maven Users List
Subject: AW: Using Eclipse Compiler in Maven


Hi Maurice,

I don't get the hot replacement working and I still believe that it is a
problem with the different compilers...

So does anybody know how to run Maven with the Eclipse Java compiler, i.e.
where do I configure the classpath of Maven/Java Plugin/Jelly-Ant so that
the Ant java task finds the org.eclipse.jdt.core.JDTCompilerAdapter?

Thanks in advance,
Jörn

-Ursprüngliche Nachricht-
Von: Maurice Nicholson [mailto:[EMAIL PROTECTED] 
Gesendet: Mittwoch, 11. Mai 2005 12:25
An: 'Maven Users List'
Betreff: RE: Using Eclipse Compiler in Maven

Hi Joern,

Actually we build and deploy our EJBs with plain old JAR files, not EARs.

But perhaps the fact you do not get a warning initially means it is
reloading the class correctly into the app server!?

I don't use Eclipse (anymore), but I would expect that as soon as the class
is compiled, it is reloaded into existing debugged VMs. I think the delay
between the change and warning is something to do with the JUnit test. 

I was actually looking for the Eclipse "option(s)" to enable hot-replace a
few days ago and just couldn't find any. I can only assume if you use 1.4 it
is enabled. Although I do remember getting a dialogue when I switched from
1.3 to 1.4 in Eclipse to the effect that "changed classes can now be
reloaded, is this ok?". And the fact you get this "Schema change..." error
definitely indicates it is trying, at least.

Try a test without running JUnit on a method you can easily debug; debug it
first, make a change, compile, hot-deploy and re-execute the code to check
whether the hot deploy is working with your app server.

Cheers,
Maurice

-Original Message-
From: "Gebhardt, Jörn" [mailto:[EMAIL PROTECTED]
Sent: 11 May 2005 10:54
To: Maven Users List
Subject: AW: Using Eclipse Compiler in Maven


Hi Maurice,

Unfortunately it doesn't work... I'm just changing an existing method
implementation and when I rerun a JUnit test I get the "Hot code replace
failed - Scheme change not implemented" exception. And I also assured that
Eclpise's compiler compliance level is set to version 1.4 (I'm using JDK
1.4.2_08 for Eclipse and Maven and JBoss). Unfortunately, Eclipse doesn't
tell me, which class couldn't be hot deployed? Because at the moment I saved
the modified file, no hot deployment exception is shown (however the
execution of the JUnit test shows, that the modified class was not
deployed), it appears only when rerunning the JUnit test...

I also tried to deploy just the EJB jar outside the EAR, however I still get
the old exception.

Did you ever build an EAR with Maven, deployed it from Eclipse (using
JBossIDE) and modified any source file in Eclipse and the hot deployment did
work? Did you have to configure anything special (e.g. which source belongs
to which jar/ear file)?

Best regards,
Joern


-Ursprüngliche Nachricht-
Von: Maurice Nicholson [mailto:[EMAIL PROTECTED] 
Gesendet: Mittwoch, 11. Mai 2005 11:26
An: 'Maven Users List'
Betreff: RE: Using Eclipse Compiler in Maven

Hi,

you don't need to use the Eclipse compiler; hot deploy should work fine
using Eclipse while debugging and javac to build the deployment JARs.

But... AFAIK the only thing that can be hot-replaced is a change to an
existing method implementation. If you add/rename methods, change method
signatures, add new classes, instance variables, imports, etc, that is

RE: Using Eclipse Compiler in Maven

2005-05-11 Thread Tran, Khiet
Sorry, I've added these lines to maven/bin/forehead.conf too:
${maven.home}/lib/jdtcore.jar
${maven.home}/lib/jdtCompilerAdapter.jar

-Original Message-
From: Tran, Khiet [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 11, 2005 10:11 AM
To: 'Maven Users List'
Subject: RE: Using Eclipse Compiler in Maven


Hi Jörn,
I am compiling with Eclipse and here's how I do it:
I've added these jars into maven installation
maven\lib\jdtCompilerAdapter.jar maven\lib\jdtcore.jar and specify this
property 
build.compiler=org.eclipse.jdt.core.JDTCompilerAdapter
somewhere into maven properties tree.
Hope this helps,
Khiet.
-Original Message-
From: "Gebhardt, Jörn" [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 11, 2005 8:29 AM
To: Maven Users List
Subject: AW: Using Eclipse Compiler in Maven


Hi Maurice,

I don't get the hot replacement working and I still believe that it is a
problem with the different compilers...

So does anybody know how to run Maven with the Eclipse Java compiler, i.e.
where do I configure the classpath of Maven/Java Plugin/Jelly-Ant so that
the Ant java task finds the org.eclipse.jdt.core.JDTCompilerAdapter?

Thanks in advance,
Jörn

-Ursprüngliche Nachricht-
Von: Maurice Nicholson [mailto:[EMAIL PROTECTED] 
Gesendet: Mittwoch, 11. Mai 2005 12:25
An: 'Maven Users List'
Betreff: RE: Using Eclipse Compiler in Maven

Hi Joern,

Actually we build and deploy our EJBs with plain old JAR files, not EARs.

But perhaps the fact you do not get a warning initially means it is
reloading the class correctly into the app server!?

I don't use Eclipse (anymore), but I would expect that as soon as the class
is compiled, it is reloaded into existing debugged VMs. I think the delay
between the change and warning is something to do with the JUnit test. 

I was actually looking for the Eclipse "option(s)" to enable hot-replace a
few days ago and just couldn't find any. I can only assume if you use 1.4 it
is enabled. Although I do remember getting a dialogue when I switched from
1.3 to 1.4 in Eclipse to the effect that "changed classes can now be
reloaded, is this ok?". And the fact you get this "Schema change..." error
definitely indicates it is trying, at least.

Try a test without running JUnit on a method you can easily debug; debug it
first, make a change, compile, hot-deploy and re-execute the code to check
whether the hot deploy is working with your app server.

Cheers,
Maurice

-Original Message-
From: "Gebhardt, Jörn" [mailto:[EMAIL PROTECTED]
Sent: 11 May 2005 10:54
To: Maven Users List
Subject: AW: Using Eclipse Compiler in Maven


Hi Maurice,

Unfortunately it doesn't work... I'm just changing an existing method
implementation and when I rerun a JUnit test I get the "Hot code replace
failed - Scheme change not implemented" exception. And I also assured that
Eclpise's compiler compliance level is set to version 1.4 (I'm using JDK
1.4.2_08 for Eclipse and Maven and JBoss). Unfortunately, Eclipse doesn't
tell me, which class couldn't be hot deployed? Because at the moment I saved
the modified file, no hot deployment exception is shown (however the
execution of the JUnit test shows, that the modified class was not
deployed), it appears only when rerunning the JUnit test...

I also tried to deploy just the EJB jar outside the EAR, however I still get
the old exception.

Did you ever build an EAR with Maven, deployed it from Eclipse (using
JBossIDE) and modified any source file in Eclipse and the hot deployment did
work? Did you have to configure anything special (e.g. which source belongs
to which jar/ear file)?

Best regards,
Joern


-Ursprüngliche Nachricht-
Von: Maurice Nicholson [mailto:[EMAIL PROTECTED] 
Gesendet: Mittwoch, 11. Mai 2005 11:26
An: 'Maven Users List'
Betreff: RE: Using Eclipse Compiler in Maven

Hi,

you don't need to use the Eclipse compiler; hot deploy should work fine
using Eclipse while debugging and javac to build the deployment JARs.

But... AFAIK the only thing that can be hot-replaced is a change to an
existing method implementation. If you add/rename methods, change method
signatures, add new classes, instance variables, imports, etc, that is a
"Schema change" which is "not implemented".

Cheers,
Maurice


-Original Message-
From: "Gebhardt, Jörn" [mailto:[EMAIL PROTECTED]
Sent: 11 May 2005 10:16
To: users@maven.apache.org
Subject: Using Eclipse Compiler in Maven


Hi,

I've set up a Maven build to create an EJB jar and an EAR application which
I deploy to JBoss.

I'm using Eclipse 3.0 in order to develop my code and I really love the hot
code deployment feature. However, because I built my EAR file with Maven
(i.e. the standard jdk compiler) and Eclipse uses it's own compiler, the hot
deployment doesn't work (I'm getting

RE: Using Eclipse Compiler in Maven

2005-05-11 Thread Tran, Khiet
Hi Jörn,
I am compiling with Eclipse and here's how I do it:
I've added these jars into maven installation
maven\lib\jdtCompilerAdapter.jar
maven\lib\jdtcore.jar
and specify this property 
build.compiler=org.eclipse.jdt.core.JDTCompilerAdapter
somewhere into maven properties tree.
Hope this helps,
Khiet.
-Original Message-
From: "Gebhardt, Jörn" [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 11, 2005 8:29 AM
To: Maven Users List
Subject: AW: Using Eclipse Compiler in Maven


Hi Maurice,

I don't get the hot replacement working and I still believe that it is a
problem with the different compilers...

So does anybody know how to run Maven with the Eclipse Java compiler, i.e.
where do I configure the classpath of Maven/Java Plugin/Jelly-Ant so that
the Ant java task finds the org.eclipse.jdt.core.JDTCompilerAdapter?

Thanks in advance,
Jörn

-Ursprüngliche Nachricht-
Von: Maurice Nicholson [mailto:[EMAIL PROTECTED] 
Gesendet: Mittwoch, 11. Mai 2005 12:25
An: 'Maven Users List'
Betreff: RE: Using Eclipse Compiler in Maven

Hi Joern,

Actually we build and deploy our EJBs with plain old JAR files, not EARs.

But perhaps the fact you do not get a warning initially means it is
reloading the class correctly into the app server!?

I don't use Eclipse (anymore), but I would expect that as soon as the class
is compiled, it is reloaded into existing debugged VMs. I think the delay
between the change and warning is something to do with the JUnit test. 

I was actually looking for the Eclipse "option(s)" to enable hot-replace a
few days ago and just couldn't find any. I can only assume if you use 1.4 it
is enabled. Although I do remember getting a dialogue when I switched from
1.3 to 1.4 in Eclipse to the effect that "changed classes can now be
reloaded, is this ok?". And the fact you get this "Schema change..." error
definitely indicates it is trying, at least.

Try a test without running JUnit on a method you can easily debug; debug it
first, make a change, compile, hot-deploy and re-execute the code to check
whether the hot deploy is working with your app server.

Cheers,
Maurice

-Original Message-
From: "Gebhardt, Jörn" [mailto:[EMAIL PROTECTED]
Sent: 11 May 2005 10:54
To: Maven Users List
Subject: AW: Using Eclipse Compiler in Maven


Hi Maurice,

Unfortunately it doesn't work... I'm just changing an existing method
implementation and when I rerun a JUnit test I get the "Hot code replace
failed - Scheme change not implemented" exception. And I also assured that
Eclpise's compiler compliance level is set to version 1.4 (I'm using JDK
1.4.2_08 for Eclipse and Maven and JBoss). Unfortunately, Eclipse doesn't
tell me, which class couldn't be hot deployed? Because at the moment I saved
the modified file, no hot deployment exception is shown (however the
execution of the JUnit test shows, that the modified class was not
deployed), it appears only when rerunning the JUnit test...

I also tried to deploy just the EJB jar outside the EAR, however I still get
the old exception.

Did you ever build an EAR with Maven, deployed it from Eclipse (using
JBossIDE) and modified any source file in Eclipse and the hot deployment did
work? Did you have to configure anything special (e.g. which source belongs
to which jar/ear file)?

Best regards,
Joern


-Ursprüngliche Nachricht-
Von: Maurice Nicholson [mailto:[EMAIL PROTECTED] 
Gesendet: Mittwoch, 11. Mai 2005 11:26
An: 'Maven Users List'
Betreff: RE: Using Eclipse Compiler in Maven

Hi,

you don't need to use the Eclipse compiler; hot deploy should work fine
using Eclipse while debugging and javac to build the deployment JARs.

But... AFAIK the only thing that can be hot-replaced is a change to an
existing method implementation. If you add/rename methods, change method
signatures, add new classes, instance variables, imports, etc, that is a
"Schema change" which is "not implemented".

Cheers,
Maurice


-Original Message-
From: "Gebhardt, Jörn" [mailto:[EMAIL PROTECTED]
Sent: 11 May 2005 10:16
To: users@maven.apache.org
Subject: Using Eclipse Compiler in Maven


Hi,

I've set up a Maven build to create an EJB jar and an EAR application which
I deploy to JBoss.

I'm using Eclipse 3.0 in order to develop my code and I really love the hot
code deployment feature. However, because I built my EAR file with Maven
(i.e. the standard jdk compiler) and Eclipse uses it's own compiler, the hot
deployment doesn't work (I'm getting a "Hot code replace failed - Scheme
change not implemented" exception).


On http://eclipsewiki.editme.com/ANTFaq I found an explanation how to
configure Ant in order to use the Eclipse compiler by setting the property
"-Dbuild.compiler=org.eclipse.jdt.core.JDTCompilerAdapter".

However, Maven doesn't find the E

AW: Using Eclipse Compiler in Maven

2005-05-11 Thread Gebhardt, Jörn
Hi Maurice,

I don't get the hot replacement working and I still believe that it is a 
problem with the different compilers...

So does anybody know how to run Maven with the Eclipse Java compiler, i.e. 
where do I configure the classpath of Maven/Java Plugin/Jelly-Ant so that the 
Ant java task finds the org.eclipse.jdt.core.JDTCompilerAdapter?

Thanks in advance,
Jörn

-Ursprüngliche Nachricht-
Von: Maurice Nicholson [mailto:[EMAIL PROTECTED] 
Gesendet: Mittwoch, 11. Mai 2005 12:25
An: 'Maven Users List'
Betreff: RE: Using Eclipse Compiler in Maven

Hi Joern,

Actually we build and deploy our EJBs with plain old JAR files, not EARs.

But perhaps the fact you do not get a warning initially means it is
reloading the class correctly into the app server!?

I don't use Eclipse (anymore), but I would expect that as soon as the class
is compiled, it is reloaded into existing debugged VMs. I think the delay
between the change and warning is something to do with the JUnit test. 

I was actually looking for the Eclipse "option(s)" to enable hot-replace a
few days ago and just couldn't find any. I can only assume if you use 1.4 it
is enabled. Although I do remember getting a dialogue when I switched from
1.3 to 1.4 in Eclipse to the effect that "changed classes can now be
reloaded, is this ok?". And the fact you get this "Schema change..." error
definitely indicates it is trying, at least.

Try a test without running JUnit on a method you can easily debug; debug it
first, make a change, compile, hot-deploy and re-execute the code to check
whether the hot deploy is working with your app server.

Cheers,
Maurice

-Original Message-
From: "Gebhardt, Jörn" [mailto:[EMAIL PROTECTED]
Sent: 11 May 2005 10:54
To: Maven Users List
Subject: AW: Using Eclipse Compiler in Maven


Hi Maurice,

Unfortunately it doesn't work... I'm just changing an existing method
implementation and when I rerun a JUnit test I get the "Hot code replace
failed - Scheme change not implemented" exception. And I also assured that
Eclpise's compiler compliance level is set to version 1.4 (I'm using JDK
1.4.2_08 for Eclipse and Maven and JBoss). Unfortunately, Eclipse doesn't
tell me, which class couldn't be hot deployed? Because at the moment I saved
the modified file, no hot deployment exception is shown (however the
execution of the JUnit test shows, that the modified class was not
deployed), it appears only when rerunning the JUnit test...

I also tried to deploy just the EJB jar outside the EAR, however I still get
the old exception.

Did you ever build an EAR with Maven, deployed it from Eclipse (using
JBossIDE) and modified any source file in Eclipse and the hot deployment did
work? Did you have to configure anything special (e.g. which source belongs
to which jar/ear file)?

Best regards,
Joern


-Ursprüngliche Nachricht-
Von: Maurice Nicholson [mailto:[EMAIL PROTECTED] 
Gesendet: Mittwoch, 11. Mai 2005 11:26
An: 'Maven Users List'
Betreff: RE: Using Eclipse Compiler in Maven

Hi,

you don't need to use the Eclipse compiler; hot deploy should work fine
using Eclipse while debugging and javac to build the deployment JARs.

But... AFAIK the only thing that can be hot-replaced is a change to an
existing method implementation. If you add/rename methods, change method
signatures, add new classes, instance variables, imports, etc, that is a
"Schema change" which is "not implemented".

Cheers,
Maurice


-----Original Message-
From: "Gebhardt, Jörn" [mailto:[EMAIL PROTECTED]
Sent: 11 May 2005 10:16
To: users@maven.apache.org
Subject: Using Eclipse Compiler in Maven


Hi,

I've set up a Maven build to create an EJB jar and an EAR application which
I deploy to JBoss.

I'm using Eclipse 3.0 in order to develop my code and I really love the hot
code deployment feature. However, because I built my EAR file with Maven
(i.e. the standard jdk compiler) and Eclipse uses it's own compiler, the hot
deployment doesn't work (I'm getting a "Hot code replace failed - Scheme
change not implemented" exception).


On http://eclipsewiki.editme.com/ANTFaq I found an explanation how to
configure Ant in order to use the Eclipse compiler by setting the property
"-Dbuild.compiler=org.eclipse.jdt.core.JDTCompilerAdapter".

However, Maven doesn't find the Eclipse compiler and I get an "
Compiler Adapter 'org.eclipse.jdt.core.JDTCompilerAdapter' can't be found."
exception.

Where do I have to place the jdtCompilerAdapter.jar and jdtcore.jar files so
that Maven/Ant/Ant-Jelly-Plugin or whatever finds the
org.eclipse.jdt.core.JDTCompilerAdapter class?

I already tried to add them to the Maven/lib directory, however it had no
effect.
Or is there any other way to tell Maven how to use the Eclipse compiler?

Thanks in advance,

Joe

RE: Using Eclipse Compiler in Maven

2005-05-11 Thread Maurice Nicholson
Hi Joern,

Actually we build and deploy our EJBs with plain old JAR files, not EARs.

But perhaps the fact you do not get a warning initially means it is
reloading the class correctly into the app server!?

I don't use Eclipse (anymore), but I would expect that as soon as the class
is compiled, it is reloaded into existing debugged VMs. I think the delay
between the change and warning is something to do with the JUnit test. 

I was actually looking for the Eclipse "option(s)" to enable hot-replace a
few days ago and just couldn't find any. I can only assume if you use 1.4 it
is enabled. Although I do remember getting a dialogue when I switched from
1.3 to 1.4 in Eclipse to the effect that "changed classes can now be
reloaded, is this ok?". And the fact you get this "Schema change..." error
definitely indicates it is trying, at least.

Try a test without running JUnit on a method you can easily debug; debug it
first, make a change, compile, hot-deploy and re-execute the code to check
whether the hot deploy is working with your app server.

Cheers,
Maurice

-Original Message-
From: "Gebhardt, Jörn" [mailto:[EMAIL PROTECTED]
Sent: 11 May 2005 10:54
To: Maven Users List
Subject: AW: Using Eclipse Compiler in Maven


Hi Maurice,

Unfortunately it doesn't work... I'm just changing an existing method
implementation and when I rerun a JUnit test I get the "Hot code replace
failed - Scheme change not implemented" exception. And I also assured that
Eclpise's compiler compliance level is set to version 1.4 (I'm using JDK
1.4.2_08 for Eclipse and Maven and JBoss). Unfortunately, Eclipse doesn't
tell me, which class couldn't be hot deployed? Because at the moment I saved
the modified file, no hot deployment exception is shown (however the
execution of the JUnit test shows, that the modified class was not
deployed), it appears only when rerunning the JUnit test...

I also tried to deploy just the EJB jar outside the EAR, however I still get
the old exception.

Did you ever build an EAR with Maven, deployed it from Eclipse (using
JBossIDE) and modified any source file in Eclipse and the hot deployment did
work? Did you have to configure anything special (e.g. which source belongs
to which jar/ear file)?

Best regards,
Joern


-Ursprüngliche Nachricht-
Von: Maurice Nicholson [mailto:[EMAIL PROTECTED] 
Gesendet: Mittwoch, 11. Mai 2005 11:26
An: 'Maven Users List'
Betreff: RE: Using Eclipse Compiler in Maven

Hi,

you don't need to use the Eclipse compiler; hot deploy should work fine
using Eclipse while debugging and javac to build the deployment JARs.

But... AFAIK the only thing that can be hot-replaced is a change to an
existing method implementation. If you add/rename methods, change method
signatures, add new classes, instance variables, imports, etc, that is a
"Schema change" which is "not implemented".

Cheers,
Maurice


-Original Message-----
From: "Gebhardt, Jörn" [mailto:[EMAIL PROTECTED]
Sent: 11 May 2005 10:16
To: users@maven.apache.org
Subject: Using Eclipse Compiler in Maven


Hi,

 

I've set up a Maven build to create an EJB jar and an EAR application which
I deploy to JBoss.

 

I'm using Eclipse 3.0 in order to develop my code and I really love the hot
code deployment feature. However, because I built my EAR file with Maven
(i.e. the standard jdk compiler) and Eclipse uses it's own compiler, the hot
deployment doesn't work (I'm getting a "Hot code replace failed - Scheme
change not implemented" exception).

 

On http://eclipsewiki.editme.com/ANTFaq I found an explanation how to
configure Ant in order to use the Eclipse compiler by setting the property
"-Dbuild.compiler=org.eclipse.jdt.core.JDTCompilerAdapter".

 

However, Maven doesn't find the Eclipse compiler and I get an "
Compiler Adapter 'org.eclipse.jdt.core.JDTCompilerAdapter' can't be found."
exception.

Where do I have to place the jdtCompilerAdapter.jar and jdtcore.jar files so
that Maven/Ant/Ant-Jelly-Plugin or whatever finds the
org.eclipse.jdt.core.JDTCompilerAdapter class?

I already tried to add them to the Maven/lib directory, however it had no
effect.

 

Or is there any other way to tell Maven how to use the Eclipse compiler?

 

Thanks in advance,

Joern



This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk



This e-mail

AW: Using Eclipse Compiler in Maven

2005-05-11 Thread Gebhardt, Jörn
Hi Maurice,

Unfortunately it doesn't work... I'm just changing an existing method 
implementation and when I rerun a JUnit test I get the "Hot code replace failed 
- Scheme change not implemented" exception. And I also assured that Eclpise's 
compiler compliance level is set to version 1.4 (I'm using JDK 1.4.2_08 for 
Eclipse and Maven and JBoss). Unfortunately, Eclipse doesn't tell me, which 
class couldn't be hot deployed? Because at the moment I saved the modified 
file, no hot deployment exception is shown (however the execution of the JUnit 
test shows, that the modified class was not deployed), it appears only when 
rerunning the JUnit test...

I also tried to deploy just the EJB jar outside the EAR, however I still get 
the old exception.

Did you ever build an EAR with Maven, deployed it from Eclipse (using JBossIDE) 
and modified any source file in Eclipse and the hot deployment did work? Did 
you have to configure anything special (e.g. which source belongs to which 
jar/ear file)?

Best regards,
Joern


-Ursprüngliche Nachricht-
Von: Maurice Nicholson [mailto:[EMAIL PROTECTED] 
Gesendet: Mittwoch, 11. Mai 2005 11:26
An: 'Maven Users List'
Betreff: RE: Using Eclipse Compiler in Maven

Hi,

you don't need to use the Eclipse compiler; hot deploy should work fine
using Eclipse while debugging and javac to build the deployment JARs.

But... AFAIK the only thing that can be hot-replaced is a change to an
existing method implementation. If you add/rename methods, change method
signatures, add new classes, instance variables, imports, etc, that is a
"Schema change" which is "not implemented".

Cheers,
Maurice


-Original Message-
From: "Gebhardt, Jörn" [mailto:[EMAIL PROTECTED]
Sent: 11 May 2005 10:16
To: users@maven.apache.org
Subject: Using Eclipse Compiler in Maven


Hi,

 

I've set up a Maven build to create an EJB jar and an EAR application which
I deploy to JBoss.

 

I'm using Eclipse 3.0 in order to develop my code and I really love the hot
code deployment feature. However, because I built my EAR file with Maven
(i.e. the standard jdk compiler) and Eclipse uses it's own compiler, the hot
deployment doesn't work (I'm getting a "Hot code replace failed - Scheme
change not implemented" exception).

 

On http://eclipsewiki.editme.com/ANTFaq I found an explanation how to
configure Ant in order to use the Eclipse compiler by setting the property
"-Dbuild.compiler=org.eclipse.jdt.core.JDTCompilerAdapter".

 

However, Maven doesn't find the Eclipse compiler and I get an "
Compiler Adapter 'org.eclipse.jdt.core.JDTCompilerAdapter' can't be found."
exception.

Where do I have to place the jdtCompilerAdapter.jar and jdtcore.jar files so
that Maven/Ant/Ant-Jelly-Plugin or whatever finds the
org.eclipse.jdt.core.JDTCompilerAdapter class?

I already tried to add them to the Maven/lib directory, however it had no
effect.

 

Or is there any other way to tell Maven how to use the Eclipse compiler?

 

Thanks in advance,

Joern



This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk



This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Using Eclipse Compiler in Maven

2005-05-11 Thread Maurice Nicholson
Hi,

you don't need to use the Eclipse compiler; hot deploy should work fine
using Eclipse while debugging and javac to build the deployment JARs.

But... AFAIK the only thing that can be hot-replaced is a change to an
existing method implementation. If you add/rename methods, change method
signatures, add new classes, instance variables, imports, etc, that is a
"Schema change" which is "not implemented".

Cheers,
Maurice


-Original Message-
From: "Gebhardt, Jörn" [mailto:[EMAIL PROTECTED]
Sent: 11 May 2005 10:16
To: users@maven.apache.org
Subject: Using Eclipse Compiler in Maven


Hi,

 

I've set up a Maven build to create an EJB jar and an EAR application which
I deploy to JBoss.

 

I'm using Eclipse 3.0 in order to develop my code and I really love the hot
code deployment feature. However, because I built my EAR file with Maven
(i.e. the standard jdk compiler) and Eclipse uses it's own compiler, the hot
deployment doesn't work (I'm getting a "Hot code replace failed - Scheme
change not implemented" exception).

 

On http://eclipsewiki.editme.com/ANTFaq I found an explanation how to
configure Ant in order to use the Eclipse compiler by setting the property
"-Dbuild.compiler=org.eclipse.jdt.core.JDTCompilerAdapter".

 

However, Maven doesn't find the Eclipse compiler and I get an "
Compiler Adapter 'org.eclipse.jdt.core.JDTCompilerAdapter' can't be found."
exception.

Where do I have to place the jdtCompilerAdapter.jar and jdtcore.jar files so
that Maven/Ant/Ant-Jelly-Plugin or whatever finds the
org.eclipse.jdt.core.JDTCompilerAdapter class?

I already tried to add them to the Maven/lib directory, however it had no
effect.

 

Or is there any other way to tell Maven how to use the Eclipse compiler?

 

Thanks in advance,

Joern



This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk



This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Using Eclipse Compiler in Maven

2005-05-11 Thread Gebhardt, Jörn
Hi,

 

I've set up a Maven build to create an EJB jar and an EAR application which I 
deploy to JBoss.

 

I'm using Eclipse 3.0 in order to develop my code and I really love the hot 
code deployment feature. However, because I built my EAR file with Maven (i.e. 
the standard jdk compiler) and Eclipse uses it's own compiler, the hot 
deployment doesn't work (I'm getting a "Hot code replace failed - Scheme change 
not implemented" exception).

 

On http://eclipsewiki.editme.com/ANTFaq I found an explanation how to configure 
Ant in order to use the Eclipse compiler by setting the property 
"-Dbuild.compiler=org.eclipse.jdt.core.JDTCompilerAdapter".

 

However, Maven doesn't find the Eclipse compiler and I get an " 
Compiler Adapter 'org.eclipse.jdt.core.JDTCompilerAdapter' can't be found." 
exception.

Where do I have to place the jdtCompilerAdapter.jar and jdtcore.jar files so 
that Maven/Ant/Ant-Jelly-Plugin or whatever finds the 
org.eclipse.jdt.core.JDTCompilerAdapter class?

I already tried to add them to the Maven/lib directory, however it had no 
effect.

 

Or is there any other way to tell Maven how to use the Eclipse compiler?

 

Thanks in advance,

Joern