You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Russell Gold <ru...@gold-family.us> on 2013/03/17 19:29:32 UTC
Compiler plugin magically working?
Could somebody please try this?
I have a project defined at <http://russgold.github.com/russgold/maven-video/sample6.zip>. I believe that this should not compile. If I compile the one source file with javac, it fails, as expected. But when I run with mvn compile, it passes! Any ideas what I could have done to my Maven set up to cause this?
Thanks,
Russ
-----------------
Come read my webnovel, Take a Lemon <http://www.takealemon.com>,
and listen to the Misfile radio play <http://www.gold-family.us/audio/misfile.html>!
Re: Compiler plugin magically working?
Posted by Russell Gold <ru...@gold-family.us>.
Thanks. I tried that. Some more bizarre experience - it failed properly when I switched to a new install. But when I used that install with a different version of Java, it passed. It seems to be consistent - I have no idea why. For now, I was able to use the failure as needed, but I would kind of like to understand how this could possibly happen. Using the -X switch just confirms that it's doing the right thing, but doing that exact thing always fails with javac, but often passes with maven. And this only started happening today. I used to work properly.
On Mar 17, 2013, at 3:31 PM, "Robert Scholte" <rf...@apache.org> wrote:
> It fails on my machine:
> Apache Maven 3.0.5 (r01de14724cdef164cd33c7c8c2fe155faf9602da; 2013-02-19 14:51:28+0100)
> Maven home: D:\apache-maven-3.0.5\bin\..
> Java version: 1.6.0_25, vendor: Sun Microsystems Inc.
> Java home: C:\Program Files\Java\jdk1.6.0_25\jre
> Default locale: nl_NL, platform encoding: Cp1252
> OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"
>
> [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ compilerFinder ---
> [INFO] Compiling 1 source file to D:\temp\sample6\sample6\target\classes
> [INFO] -------------------------------------------------------------
> [ERROR] COMPILATION ERROR :
> [INFO] -------------------------------------------------------------
> [ERROR] \temp\sample6\sample6\src\main\java\com\packtpub\maven\FindTheCompiler.java:[5,44] package com.sun.tools.javac does not exist
> [INFO] 1 error
> [INFO] -------------------------------------------------------------
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
>
> You should at least lock the version of the compiler-plugin.
>
> Robert
>
> Op Sun, 17 Mar 2013 19:29:32 +0100 schreef Russell Gold <ru...@gold-family.us>:
>
>> Could somebody please try this?
>>
>> I have a project defined at <http://russgold.github.com/russgold/maven-video/sample6.zip>. I believe that this should not compile. If I compile the one source file with javac, it fails, as expected. But when I run with mvn compile, it passes! Any ideas what I could have done to my Maven set up to cause this?
>>
>> Thanks,
>> Russ
>> -----------------
>> Come read my webnovel, Take a Lemon <http://www.takealemon.com>,
>> and listen to the Misfile radio play <http://www.gold-family.us/audio/misfile.html>!
>>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
-----------------
Come read my webnovel, Take a Lemon <http://www.takealemon.com>,
and listen to the Misfile radio play <http://www.gold-family.us/audio/misfile.html>!
Re: Compiler plugin magically working?
Posted by Robert Scholte <rf...@apache.org>.
It fails on my machine:
Apache Maven 3.0.5 (r01de14724cdef164cd33c7c8c2fe155faf9602da; 2013-02-19
14:51:28+0100)
Maven home: D:\apache-maven-3.0.5\bin\..
Java version: 1.6.0_25, vendor: Sun Microsystems Inc.
Java home: C:\Program Files\Java\jdk1.6.0_25\jre
Default locale: nl_NL, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @
compilerFinder ---
[INFO] Compiling 1 source file to D:\temp\sample6\sample6\target\classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR]
\temp\sample6\sample6\src\main\java\com\packtpub\maven\FindTheCompiler.java:[5,44]
package com.sun.tools.javac does not exist
[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
You should at least lock the version of the compiler-plugin.
Robert
Op Sun, 17 Mar 2013 19:29:32 +0100 schreef Russell Gold
<ru...@gold-family.us>:
> Could somebody please try this?
>
> I have a project defined at
> <http://russgold.github.com/russgold/maven-video/sample6.zip>. I believe
> that this should not compile. If I compile the one source file with
> javac, it fails, as expected. But when I run with mvn compile, it
> passes! Any ideas what I could have done to my Maven set up to cause
> this?
>
> Thanks,
> Russ
> -----------------
> Come read my webnovel, Take a Lemon <http://www.takealemon.com>,
> and listen to the Misfile radio play
> <http://www.gold-family.us/audio/misfile.html>!
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org