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: [email protected]
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 "<ant:javac>
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]

Reply via email to