Copy your toolchains and Pom into *pastebin* or *gist* and post *the link*
I will take a look

Do not try posting you Pom in the reply, do not pass go, do not collect
$200, do not pick up any community chest cards

On Saturday, 18 February 2012, sarmahdi <sarma...@hotmail.com> wrote:
> Hello Stephen,
>
> I need some help i guess:
>
> I tried to use toolchains to actually compile the code with JDK 5 while my
> default java_home is jdk6 and it said :
>
> [DEBUG] Configuring mojo
> org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile from plugin
> realm
> ClassRealm[plugin>org.apache.maven.plugins:maven-compiler-plugin:2.3.2,
> parent: sun.misc.Launcher$AppClassLoader@f4a24a]
> [DEBUG] Configuring mojo
> 'org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile' with basic
> configurator -->
> [DEBUG]   (f) basedir = C:\Alpha\eCorp\eCorp-web
> [DEBUG]   (f) buildDirectory = C:\Alpha\eCorp\eCorp-web\target
>
> [DEBUG]   (f) compileSourceRoots =
[C:\Alpha\eCorp\eCorp-web\src\main\java]
> [DEBUG]   (f) compilerArguments =
> {endorseddirs=C:\Alpha\eCorp\eCorp-web\target/endorsed}
> [DEBUG]   (f) compilerId = javac
> [DEBUG]   (f) debug = true
> [DEBUG]   (f) encoding = UTF-8
> [DEBUG]   (f) *executable *= C:\glassfish3withjdk\jdk/bin/javac  */(this
is
> the JDK6)/*
> [DEBUG]   (f) failOnError = true
> [DEBUG]   (f) fork = true
> [DEBUG]   (f) generatedSourcesDirectory =
> C:\Alpha\eCorp\eCorp-web\target\generated-sources\annotations
> [DEBUG]   (f) optimize = false
> [DEBUG]   (f) outputDirectory = C:\Alpha\eCorp\eCorp-web\target\classes
> [DEBUG]   (f) outputFileName = eCorp-web-1.0-SNAPSHOT
> [DEBUG]   (f) projectArtifact = com.riyadbank:eCorp-web:war:1.0-SNAPSHOT
> [DEBUG]   (f) session = org.apache.maven.execution.MavenSession@46a55e
> [DEBUG]   (f) showDeprecation = false
> [DEBUG]   (f) showWarnings = false
> [DEBUG]   (f) source = 1.5
> [DEBUG]   (f) staleMillis = 0
> [DEBUG]   (f) target = 1.5
> [DEBUG]   (f) verbose = true
> [DEBUG] -- end configuration --
> [DEBUG] Using compiler 'javac'.
> [INFO] Toolchain in compiler-plugin: JDK[D:/IBM/SDP70/jdk] */(This is the
> JDK5)/*
> *[WARNING] Toolchains are ignored, 'executable' parameter is set to
> C:\glassfish3withjdk\jdk/bin/javac*
>
> It goes for JDK 6 after getting the toolchain why is it not going for the
> JDK that i hard coded for the 1.5 JDk in toolchains.xml
>
> Do you have any idea: I searched on google and some one said that cos
there
> is already a JVM installed so it went for that. When i remove the
JAVA_HOME
> from system environment as a variable then mvn.bat doesnt run cos
JAVA_HOME
> is not set for it.
>
> So what do i do now: if i set a JAVA_HOME it falls back on it and ignores
> the toolchain, if i dont set the JAVA_HOME then mvn fails....
>
> So what do we do: whats wrong here?
>
> Thanks in advance.
>
> Syed...
>
> --
> View this message in context:
http://maven.40175.n5.nabble.com/what-does-define-do-in-maven-tp5485392p5495490.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>

Reply via email to