Thanks to Wendy, Kris, and Simon for their input on this.  For anyone 
interested, here's a brief synopsis of what was happening:

It looks like under Maven v1.1, code was being compiled by default as v1.2 
using the 1.4 JVM.

After switching to Maven2, the code was being compiled as v1.1.

The JSP compiler in the application server looks like it was generating v1.2 
code, and was having trouble linking in the 1.1 resources prepared by M2.

Directing M2 to create v1.2 classes solved the problem.

As an interesting side-note, having M2 compile v1.4 classes caused the same 
issue with the JSP compiler.

Being the the error was "package could not be found," it took a bit of digging 
to find the source of the problem, but I certainly appreciate the help from you 
guys.

Thanks!

-Sean

----- Original Message ----
From: Wendy Smoak <[EMAIL PROTECTED]>
To: Maven Users List <users@maven.apache.org>
Sent: Friday, May 5, 2006 4:37:14 PM
Subject: Re: Odd Compilation Issue

On 5/5/06, Sean McNamara <[EMAIL PROTECTED]> wrote:

> After chasing my tail for the last week, I took a look at the classfiles that 
> were giving us a problem in a hex editor, and see that the actual classfiles 
> differ in terms of the major and minor numbers in the classfile.
>
> I only have a single JVM installed on this machine, so I'm pretty confident 
> the same one is being used in both compiles.
>
> Does anyone have the slightest idea how this might be possible?

Different target versions?  Were you setting 'maven.compile.source'
and 'maven.compile.target' with Maven 1.1, and/or are you configuring
the compiler plugin for Maven 2?  (Or if you're not configuring either
of them, maybe the default has changed?)

 * http://maven.apache.org/maven-1.x/plugins/java/faq.html
 * http://maven.apache.org/plugins/maven-compiler-plugin/howto.html

--
Wendy

---------------------------------------------------------------------
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