maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Johan Ekesparr <johan....@gmail.com>
Subject javac not found using toolchains.xml, works when adding --debug..
Date Mon, 14 Dec 2015 18:39:44 GMT
Help ! I need some new ideas here.

What is it I'm missing when the maven-compiler-plugin is failing to find
the javac executeble when I use toolchains.xml ?

And adding the "--debug" parameter to the maven call makes it work so it is
of no help.

I'm executing maven from inside our CruiseControl server (Running as
SYSTEM) when the build is failing and I have not being able to reproduce it
other then in this context.

Below is the commandline that maven is running with when I echo the command
from inside the mvn.bat file.

"E:/Program/Java/jdk1.8.0_51_ibm\bin\java.exe" -Xms128m -Xmx1024m
-XX:MaxPermSize=128m
-classpath
"E:\Program\apache-maven-3.3.9\bin\..\boot\plexus-classworlds-2.5.2.jar"
"-Dclassworlds.conf=E:\Program\apache-maven-3.3.9\bin\..\bin\m2.conf"
"-Dmaven.home=E:\Program\apache-maven-3.3.9\bin\.."
"-Dmaven.multiModuleProjectDirectory=E:\data\view\slask"
org.codehaus.plexus.classworlds.launcher.Launcher -B -f pom.xml
--fail-at-end
--toolchains E:\Program\cruisecontrol/config/toolchains.xml
compile
-Dcclastbuildtimestamp=20151214000000
-Dprojectname=test
-Dcvstimestamp=2015-12-14_18:24:18_GMT
-Dcclastgoodbuildtimestamp=20151214000000
-Dcctimestamp=20151214192418
-Dlastbuildsuccessful=false
-Dlabel=build.1
-Dbuildforced=true


Below is the build error I receive.

[INFO] Scanning for projects...
[INFO]
[INFO]
------------------------------------------------------------------------
[INFO] Building test 1.0.0-SNAPSHOT
[INFO]
------------------------------------------------------------------------
[INFO]
[INFO] --- maven-toolchains-plugin:1.1:toolchain (default) @ test ---
[INFO] Required toolchain: jdk [ vendor='sun' version='1.6' ]
[INFO] Found matching toolchain for type jdk:
JDK[E:\Program\Java\jdk1.6.0_45_x86]
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ test
---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered
resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory
E:\data\view\slask\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ test ---
[INFO] Toolchain in compiler-plugin: JDK[E:\Program\Java\jdk1.6.0_45_x86]
[INFO] Changes detected - recompiling the module!
[WARNING] File encoding has not been set, using platform encoding Cp1252,
i.e. build is platform dependent!
[INFO] Compiling 1 source file to E:\data\view\slask\target\classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] javac: file not found:
C:\Windows\System32\config\systemprofile\AppData\Local\Temp\org.codehaus.plexus.compiler.javac.JavacCompiler1000803414724037505arguments
(The system cannot find the file specified)
[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------


I below we can see that the binary javac.exe exist in the specified
directory.

E:\Program\cruisecontrol\logs>dir
E:\Program\Java\jdk1.6.0_45_x86\bin\javac.exe
 Volume in drive E is Data
 Volume Serial Number is 90F0-F2A1

 Directory of E:\Program\Java\jdk1.6.0_45_x86\bin

2013-10-03  14:26            34 704 javac.exe
               1 File(s)         34 704 bytes
               0 Dir(s)  10 634 477 568 bytes free


And as I specified in the top. The build succeeds when running with the
--debug flag set...

/J

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message