[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [m2e-users] Build Failure on Package
|
You were correct about the JDK issue. Although my pom had 1.6 as the version, the project configuration hadn't been updated. It's working now.
Thanks!!
p.s. If you have a SO account, I posted the question there as well and I would love to credit you with the correct answer: http://stackoverflow.com/questions/7997508/m2eclipse-mystery-build-failure-on-package
----- Original Message -----
From: Benjamin Bentmann <bentmann@xxxxxxxxxxxx>
Date: Thursday, November 3, 2011 9:39 am
Subject: Re: [m2e-users] Build Failure on Package
To: Maven Integration for Eclipse users mailing list <m2e-users@xxxxxxxxxxx>
> sdoca sdoca wrote:
>
> >[...] "Run As -> Maven package", I get the following error:
> >
> >[INFO] --- maven-compiler-plugin:2.3.2:compile (default-
> compile) @ switch-provisioning-rest-client ---
> >[INFO] Compiling 2 source files to
> C:\Devel\EclipseProjects\MyProject\target\classes>[INFO] --------
> -----------------------------------------------------
> >[ERROR] COMPILATION ERROR :
> >[INFO] ---------------------------------------------------------
> ----
> >[ERROR] Failure executing javac, but could not parse the error:
> >javac: invalid flag: -s
>
> This issue is not really specific to m2e but applies to mvn in
> general, as such the Maven user list might provide a better
> audience for help.
>
> IIRC, the specific error means you trying to use a JDK 1.5 while
> you need JDK 1.6+ where the javac option in question was added.
> Assuming your project should actually compile against JDK 1.5,
> downgrading the maven-compiler-plugin version might also do, I
> would expect it started to use the -s option when the annotation
> processing support was added.
>
>
> Benjamin
> _______________________________________________
> m2e-users mailing list
> m2e-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/m2e-users
>