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: [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]




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

Reply via email to