On Thu, September 13, 2007 3:24 pm, Kyle.Bober wrote:
> I have been using Maven for quite sometime and this is the first JDK6
> project
> POM I have created. I am running into a compilation issue using the
> compiler:compile goal... This is what I get
>
> annotations are not supported in -source 1.3
> (use -source 5 or higher to enable annotations)
> @WebService
I suspect the compiler plugin is adding a -source parameter to the compile
step, and defaulting it to v1.3. Our poms enforce JDK v5 only, we define
this in our root pom for the compiler plugin:
<configuration>
<source>1.5</source>
<target>1.5</target>
</configuration>
Regards,
Graham
--
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]