You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Kyle.Bober" <ky...@yahoo.com> on 2007/09/13 15:24:57 UTC
annotations are not supported in -source 1.3
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 have my JAVA_HOME env variable set to point to JDK6 and I can compile the
java file fine using javac command but when I try using mvn compile I
receive the above error... I feel like a goof not being able to figure this
one out. Is there a way to set in the Maven POM file the JDK version to
compile against???
Thanks for anyone's help in advance...
-Kyle
--
View this message in context: http://www.nabble.com/annotations-are-not-supported-in--source-1.3-tf4435690s177.html#a12654771
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: annotations are not supported in -source 1.3
Posted by Gisbert Amm <gi...@webde.de>.
See also http://jira.codehaus.org/browse/MCOMPILER-57
-Gisbert
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 have my JAVA_HOME env variable set to point to JDK6 and I can compile the
> java file fine using javac command but when I try using mvn compile I
> receive the above error... I feel like a goof not being able to figure this
> one out. Is there a way to set in the Maven POM file the JDK version to
> compile against???
>
> Thanks for anyone's help in advance...
>
> -Kyle
--
Gisbert Amm
Softwareentwickler Infrastruktur
WEB.DE GmbH
Brauerstraße 48 · D-76135 Karlsruhe
Tel. +49-721-91374-4224 · Fax +49-721-91374-2740
gisbert.amm@webde.de · http://www.web.de/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: annotations are not supported in -source 1.3
Posted by "Kyle.Bober" <ky...@yahoo.com>.
Thanks for all the help guys! In actuality all I needed to do was add the
following:
<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
</plugins>
</build>
Everything compiled fine after that... Lesson learned...
--
View this message in context: http://www.nabble.com/JDK6-compilation-issue-using-Maven2---annotations-are-not-supported-in--source-1.3-tf4435690s177.html#a12655881
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: annotations are not supported in -source 1.3
Posted by Larry Meadors <lm...@apache.org>.
http://docs.codehaus.org/display/MAVEN/Java+5+Annotations+for+Plugins
On 9/13/07, Kyle.Bober <ky...@yahoo.com> 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 have my JAVA_HOME env variable set to point to JDK6 and I can compile the
> java file fine using javac command but when I try using mvn compile I
> receive the above error... I feel like a goof not being able to figure this
> one out. Is there a way to set in the Maven POM file the JDK version to
> compile against???
>
> Thanks for anyone's help in advance...
>
> -Kyle
> --
> View this message in context: http://www.nabble.com/annotations-are-not-supported-in--source-1.3-tf4435690s177.html#a12654771
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: annotations are not supported in -source 1.3
Posted by "Kyle.Bober" <ky...@yahoo.com>.
Thank you everyone for your replies. I knew it was something straight forward
and simple that I was overlooking! In regards to the repostings I am not
sure why that happened. My apologizes for the inconvenience and annoyance
this may have caused some.
-Kyle
Graham Leggett wrote:
>
> 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: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/JDK6-compilation-issue-using-Maven2---annotations-are-not-supported-in--source-1.3-tf4435690s177.html#a12735443
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: annotations are not supported in -source 1.3
Posted by Graham Leggett <mi...@sharp.fm>.
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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Repostings (Was: RE: JDK6 compilation issue using Maven2 - annotations are not supported in -source 1.3)
Posted by Henri Yandell <fl...@gmail.com>.
On 9/13/07, Wayne Fay <wa...@gmail.com> wrote:
> Not in Gmail, I don't. My sent mail gets added to the thread, but I
> don't get anything back... at least, I've never seen anything. Its
> possible that Gmail is doing something funky or hiding something from
> me.
>
> I see that both Anders and I are on Gmail, which is why I'm thinking
> this might be the reason behind the confusion.
Tis definitely GMail btw. Rather irritating feature it has.
Hen
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Repostings (Was: RE: JDK6 compilation issue using Maven2 - annotations are not supported in -source 1.3)
Posted by Wayne Fay <wa...@gmail.com>.
Not in Gmail, I don't. My sent mail gets added to the thread, but I
don't get anything back... at least, I've never seen anything. Its
possible that Gmail is doing something funky or hiding something from
me.
I see that both Anders and I are on Gmail, which is why I'm thinking
this might be the reason behind the confusion.
When I'm unsure if something I've sent has "landed" on the mailing
list, I just check Nabble, and 9 times out of 10 its there in the
archive already. Its just that no one has responded (yet).
Wayne
On 9/13/07, Tim Kettler <ti...@udo.edu> wrote:
> So when you reply to a message on this list or start a new thread with
> just a "To: Maven Users List <us...@maven.apache.org>" header, you don't
> recieve the sent mail via the mailinglist? This is working for me.
>
> -Tim
>
> Wayne Fay schrieb:
> > That explains a lot. And now that you mention it, something happened
> > to me the first time I posted... a while back.
> >
> > I wonder if we could perhaps ask (someone) about changing the
> > configuration of the mail list server, or something along those lines,
> > if this is what people are generally expecting.
> >
> > Wayne
> >
> > On 9/13/07, Anders Blehr <ab...@gmail.com> wrote:
> >> I can just answer for myself:
> >>
> >> I subscribed to the list yesterday and did my first 2 postings also
> >> yesterday. We have similar lists internally at work and when I post to
> >> these I receive my own posts along with everyone else's posts. However, it
> >> seems that here you do not receive your own posts. So twice yesterday I sat
> >> around wondering what happened to my posts and decided to resend slightly
> >> reworded versions of the original posts, thinking that some odd filter was
> >> at work.
> >>
> >> Cheers,
> >> - Anders.
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Repostings (Was: RE: JDK6 compilation issue using Maven2 - annotations are not supported in -source 1.3)
Posted by Martijn Dashorst <ma...@gmail.com>.
gmail doesn't register your own messages as 'new'. as such your own
first posts hardly get noticed in gmail, only when someone responds
they light up.
This is at least what I've learned over the years.
Martijn
On 9/13/07, Tim Kettler <ti...@udo.edu> wrote:
> So when you reply to a message on this list or start a new thread with
> just a "To: Maven Users List <us...@maven.apache.org>" header, you don't
> recieve the sent mail via the mailinglist? This is working for me.
>
> -Tim
>
> Wayne Fay schrieb:
> > That explains a lot. And now that you mention it, something happened
> > to me the first time I posted... a while back.
> >
> > I wonder if we could perhaps ask (someone) about changing the
> > configuration of the mail list server, or something along those lines,
> > if this is what people are generally expecting.
> >
> > Wayne
> >
> > On 9/13/07, Anders Blehr <ab...@gmail.com> wrote:
> >> I can just answer for myself:
> >>
> >> I subscribed to the list yesterday and did my first 2 postings also
> >> yesterday. We have similar lists internally at work and when I post to
> >> these I receive my own posts along with everyone else's posts. However, it
> >> seems that here you do not receive your own posts. So twice yesterday I sat
> >> around wondering what happened to my posts and decided to resend slightly
> >> reworded versions of the original posts, thinking that some odd filter was
> >> at work.
> >>
> >> Cheers,
> >> - Anders.
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
--
Buy Wicket in Action: http://manning.com/dashorst
Apache Wicket 1.3.0-beta3 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta3/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Repostings (Was: RE: JDK6 compilation issue using Maven2 - annotations
are not supported in -source 1.3)
Posted by Tim Kettler <ti...@udo.edu>.
So when you reply to a message on this list or start a new thread with
just a "To: Maven Users List <us...@maven.apache.org>" header, you don't
recieve the sent mail via the mailinglist? This is working for me.
-Tim
Wayne Fay schrieb:
> That explains a lot. And now that you mention it, something happened
> to me the first time I posted... a while back.
>
> I wonder if we could perhaps ask (someone) about changing the
> configuration of the mail list server, or something along those lines,
> if this is what people are generally expecting.
>
> Wayne
>
> On 9/13/07, Anders Blehr <ab...@gmail.com> wrote:
>> I can just answer for myself:
>>
>> I subscribed to the list yesterday and did my first 2 postings also
>> yesterday. We have similar lists internally at work and when I post to
>> these I receive my own posts along with everyone else's posts. However, it
>> seems that here you do not receive your own posts. So twice yesterday I sat
>> around wondering what happened to my posts and decided to resend slightly
>> reworded versions of the original posts, thinking that some odd filter was
>> at work.
>>
>> Cheers,
>> - Anders.
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Repostings (Was: RE: JDK6 compilation issue using Maven2 - annotations are not supported in -source 1.3)
Posted by Wayne Fay <wa...@gmail.com>.
That explains a lot. And now that you mention it, something happened
to me the first time I posted... a while back.
I wonder if we could perhaps ask (someone) about changing the
configuration of the mail list server, or something along those lines,
if this is what people are generally expecting.
Wayne
On 9/13/07, Anders Blehr <ab...@gmail.com> wrote:
> I can just answer for myself:
>
> I subscribed to the list yesterday and did my first 2 postings also
> yesterday. We have similar lists internally at work and when I post to
> these I receive my own posts along with everyone else's posts. However, it
> seems that here you do not receive your own posts. So twice yesterday I sat
> around wondering what happened to my posts and decided to resend slightly
> reworded versions of the original posts, thinking that some odd filter was
> at work.
>
> Cheers,
> - Anders.
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Repostings (Was: RE: JDK6 compilation issue using Maven2 - annotations are not supported in -source 1.3)
Posted by Anders Blehr <ab...@gmail.com>.
I can just answer for myself:
I subscribed to the list yesterday and did my first 2 postings also
yesterday. We have similar lists internally at work and when I post to
these I receive my own posts along with everyone else's posts. However, it
seems that here you do not receive your own posts. So twice yesterday I sat
around wondering what happened to my posts and decided to resend slightly
reworded versions of the original posts, thinking that some odd filter was
at work.
Cheers,
- Anders.
> -----Original Message-----
> From: Wayne Fay [mailto:waynefay@gmail.com]
> Sent: 13. september 2007 16:47
> To: Maven Users List
> Subject: Re: JDK6 compilation issue using Maven2 -
> annotations are not supported in -source 1.3
>
> Kyle, you sent this an hour ago and people responded to it.
> Why did you resend?
>
> I've noticed a few people sending the same message multiple
> times and I'm curious why this happens.
>
> Wayne
>
> On 9/13/07, Graham Leggett <mi...@sharp.fm> wrote:
> > On Thu, September 13, 2007 4:28 pm, Kyle.Bober wrote:
> >
> > > <plugin>
> > > <groupId>org.apache.maven.plugins</groupId>
> > > <artifactId>maven-compiler-plugin</artifactId>
> > > <configuration>
> > > <verbose>true</verbose>
> > > <fork>true</fork>
> > > <executable>${JAVA_HOME}/bin/javac</executable>
> > > <compilerVersion>6</compilerVersion>
> > > </configuration>
> > > </plugin>
> >
> > Add this:
> >
> > <source>1.5</source>
> > <target>1.5</target>
> >
> > Regards,
> > Graham
> > --
> >
> >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: JDK6 compilation issue using Maven2 - annotations are not supported in -source 1.3
Posted by Wayne Fay <wa...@gmail.com>.
Kyle, you sent this an hour ago and people responded to it. Why did you resend?
I've noticed a few people sending the same message multiple times and
I'm curious why this happens.
Wayne
On 9/13/07, Graham Leggett <mi...@sharp.fm> wrote:
> On Thu, September 13, 2007 4:28 pm, Kyle.Bober wrote:
>
> > <plugin>
> > <groupId>org.apache.maven.plugins</groupId>
> > <artifactId>maven-compiler-plugin</artifactId>
> > <configuration>
> > <verbose>true</verbose>
> > <fork>true</fork>
> > <executable>${JAVA_HOME}/bin/javac</executable>
> > <compilerVersion>6</compilerVersion>
> > </configuration>
> > </plugin>
>
> Add this:
>
> <source>1.5</source>
> <target>1.5</target>
>
> Regards,
> Graham
> --
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: JDK6 compilation issue using Maven2 - annotations are not
supported in -source 1.3
Posted by Graham Leggett <mi...@sharp.fm>.
On Thu, September 13, 2007 4:28 pm, Kyle.Bober wrote:
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-compiler-plugin</artifactId>
> <configuration>
> <verbose>true</verbose>
> <fork>true</fork>
> <executable>${JAVA_HOME}/bin/javac</executable>
> <compilerVersion>6</compilerVersion>
> </configuration>
> </plugin>
Add this:
<source>1.5</source>
<target>1.5</target>
Regards,
Graham
--
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: JDK6 compilation issue using Maven2 - annotations are not supported
in -source 1.3
Posted by Dennis Lundberg <de...@apache.org>.
If your default JDK is version 6 and that is the version you want to
compile with, then you don't need to fork the compiler. Remove fork,
executable and compilerVersion from the configuration.
Instead you need to tell maven which version your *source* and *target*
should be. You can read about how you can change this here:
http://maven.apache.org/plugins/maven-compiler-plugin/examples/set-compiler-source-and-target.html
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 have my JAVA_HOME env variable set to point to JDK6 and I can compile the
> java file fine using javac command but when I try using mvn compile I
> receive the above error... I feel like a goof not being able to figure this
> one out. Is there a way to set in the Maven POM file the JDK version to
> compile against???
>
> Here is my current POM.xml
>
> <?xml version="1.0" encoding="UTF-8"?>
> <project>
> <modelVersion>4.0.0</modelVersion>
> <groupId>com.heartlab.ws</groupId>
> <artifactId>WebSendServices</artifactId>
> <packaging>war</packaging>
> <version>0.0.1</version>
> <build>
> <plugins>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-compiler-plugin</artifactId>
> <configuration>
> <verbose>true</verbose>
> <fork>true</fork>
> <executable>${JAVA_HOME}/bin/javac</executable>
> <compilerVersion>6</compilerVersion>
> </configuration>
> </plugin>
> </plugins>
> </build>
> <dependencies>
> <!--
> <dependency>
> <groupId>junit</groupId>
> <artifactId>junit</artifactId>
> <version>4.1</version>
> </dependency>
> <dependency>
> <groupId>log4j</groupId>
> <artifactId>log4j</artifactId>
> <version>1.2.9</version>
> </dependency>
> -->
> </dependencies>
> </project>
>
> Using the ${JAVA_HOME}/bin/javac for my executable I receive the following
> error as well!!!
>
> Failure executing javac, but could not parse the error:
> 'C:\Program' is not recognized as an internal or external command,
> operable program or batch file.
>
>
> Thanks for anyone's help in advance...
>
> -Kyle
--
Dennis Lundberg
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org