apache-maven-3.3.9 silently doesn't compile with jdk7 (it does with jdk8)

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

apache-maven-3.3.9 silently doesn't compile with jdk7 (it does with jdk8)

bamboomy
Hey All,

this is my first message on the list :)

I was wondering...

When I compile with jdk8 (or eclipse that runs under jdk8) my (java 7) code compiles just fine, however it silently doesn't with jdk7 as jdk...

[INFO] Changes detected - recompiling the module!
[INFO] Compiling 37 source files to C:\Project\wss\maven\Sysper2\Reporting_maven\target\classes

(but the target/classes/ folder is just empty)

with jdk8:

[INFO] Changes detected - recompiling the module!
[INFO] Compiling 37 source files to C:\Project\wss\maven\Sysper2\Reporting_maven\target\classes
[INFO] /C:/Project/wss/maven/Sysper2/Reporting_maven/src/main/java/eu/cec/admin/sysper2/document/model/Document.java: C:\Project\wss\maven\Sysper2\Reporting_maven\src\main\java\eu\cec\admin\sysper2\document\model\Document.java uses or overrides a deprecated API.
[INFO] /C:/Project/wss/maven/Sysper2/Reporting_maven/src/main/java/eu/cec/admin/sysper2/document/model/Document.java: Recompile with -Xlint:deprecation for details.
[INFO] /C:/Project/wss/maven/Sysper2/Reporting_maven/src/main/java/eu/cec/admin/sysper2/report/web/BirtConfiguration.java: Some input files use unchecked or unsafe operations.
[INFO] /C:/Project/wss/maven/Sysper2/Reporting_maven/src/main/java/eu/cec/admin/sysper2/report/web/BirtConfiguration.java: Recompile with -Xlint:unchecked for details.

and a well filled target/classes/ folder...

Is this normal or should I file a bug?

Br,

S.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: apache-maven-3.3.9 silently doesn't compile with jdk7 (it does with jdk8)

Karl Heinz Marbaise-3
Hi,

can you give a full working example of that...

cause it sounds like there is something wrong with your configuration...

What does: "mvn --version" says?

Are you trying to run in console or running from inside of Eclipse?

Kind regards
Karl Heinz Marbaise

On 08/08/17 16:38, bamboomy wrote:

> Hey All,
>
> this is my first message on the list :)
>
> I was wondering...
>
> When I compile with jdk8 (or eclipse that runs under jdk8) my (java 7) code
> compiles just fine, however it silently doesn't with jdk7 as jdk...
>
> [INFO] Changes detected - recompiling the module!
> [INFO] Compiling 37 source files to
> C:\Project\wss\maven\Sysper2\Reporting_maven\target\classes
>
> (but the target/classes/ folder is just empty)
>
> with jdk8:
>
> [INFO] Changes detected - recompiling the module!
> [INFO] Compiling 37 source files to
> C:\Project\wss\maven\Sysper2\Reporting_maven\target\classes
> [INFO]
> /C:/Project/wss/maven/Sysper2/Reporting_maven/src/main/java/eu/cec/admin/sysper2/document/model/Document.java:
> C:\Project\wss\maven\Sysper2\Reporting_maven\src\main\java\eu\cec\admin\sysper2\document\model\Document.java
> uses or overrides a deprecated API.
> [INFO]
> /C:/Project/wss/maven/Sysper2/Reporting_maven/src/main/java/eu/cec/admin/sysper2/document/model/Document.java:
> Recompile with -Xlint:deprecation for details.
> [INFO]
> /C:/Project/wss/maven/Sysper2/Reporting_maven/src/main/java/eu/cec/admin/sysper2/report/web/BirtConfiguration.java:
> Some input files use unchecked or unsafe operations.
> [INFO]
> /C:/Project/wss/maven/Sysper2/Reporting_maven/src/main/java/eu/cec/admin/sysper2/report/web/BirtConfiguration.java:
> Recompile with -Xlint:unchecked for details.
>
> and a well filled target/classes/ folder...
>
> Is this normal or should I file a bug?
>
> Br,
>
> S.
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: apache-maven-3.3.9 silently doesn't compile with jdk7 (it does with jdk8)

Guang Chao
In reply to this post by bamboomy
On Tue, Aug 8, 2017 at 10:38 PM, bamboomy <[hidden email]> wrote:

> Hey All,
>
> this is my first message on the list :)
>
> I was wondering...
>
> When I compile with jdk8 (or eclipse that runs under jdk8) my (java 7) code
> compiles just fine, however it silently doesn't with jdk7 as jdk...
>

Is it OpenJDK?  Which build?


>
> [INFO] Changes detected - recompiling the module!
> [INFO] Compiling 37 source files to
> C:\Project\wss\maven\Sysper2\Reporting_maven\target\classes
>
> (but the target/classes/ folder is just empty)
>

It looks weird, but intuition tells me it is not maven problem but config
issue in your box.


>
> with jdk8:
>
> [INFO] Changes detected - recompiling the module!
> [INFO] Compiling 37 source files to
> C:\Project\wss\maven\Sysper2\Reporting_maven\target\classes
> [INFO]
> /C:/Project/wss/maven/Sysper2/Reporting_maven/src/main/java/
> eu/cec/admin/sysper2/document/model/Document.java:
> C:\Project\wss\maven\Sysper2\Reporting_maven\src\main\java\
> eu\cec\admin\sysper2\document\model\Document.java
> uses or overrides a deprecated API.
> [INFO]
> /C:/Project/wss/maven/Sysper2/Reporting_maven/src/main/java/
> eu/cec/admin/sysper2/document/model/Document.java:
> Recompile with -Xlint:deprecation for details.
> [INFO]
> /C:/Project/wss/maven/Sysper2/Reporting_maven/src/main/java/
> eu/cec/admin/sysper2/report/web/BirtConfiguration.java:
> Some input files use unchecked or unsafe operations.
> [INFO]
> /C:/Project/wss/maven/Sysper2/Reporting_maven/src/main/java/
> eu/cec/admin/sysper2/report/web/BirtConfiguration.java:
> Recompile with -Xlint:unchecked for details.
>
> and a well filled target/classes/ folder...
>
> Is this normal or should I file a bug?
>
> Br,
>
> S.
>
>
>
> --
> View this message in context: http://maven.40175.n5.nabble.
> com/apache-maven-3-3-9-silently-doesn-t-compile-with-
> jdk7-it-does-with-jdk8-tp5912087.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>



--
Guang <http://javadevnotes.com/java-string-split-pipe-examples>
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: apache-maven-3.3.9 silently doesn't compile with jdk7 (it does with jdk8)

Bernd Eckenfels
Hello,

>> [INFO] Changes detected - recompiling the module!
>> [INFO] Compiling 37 source files to
>> C:\Project\wss\maven\Sysper2\Reporting_maven\target\classes
>>
>> (but the target/classes/ folder is just empty)
>
> I t looks weird, but intuition tells me it is not maven problem but config issue in your box.

Yes however the compiler-plugin (or the tools API) may fail to detect failed forks/exec, which would also be a thing for Maven to improve.

Gruss
Bernd
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: apache-maven-3.3.9 silently doesn't compile with jdk7 (it does with jdk8)

Karl Heinz Marbaise-3
In reply to this post by Guang Chao
Hi,


On 10/08/17 02:10, Guang Chao wrote:

> On Tue, Aug 8, 2017 at 10:38 PM, bamboomy <[hidden email]> wrote:
>
>> Hey All,
>>
>> this is my first message on the list :)
>>
>> I was wondering...
>>
>> When I compile with jdk8 (or eclipse that runs under jdk8) my (java 7) code
>> compiles just fine, however it silently doesn't with jdk7 as jdk...
>>
>
> Is it OpenJDK?  Which build?
>
>
>>
>> [INFO] Changes detected - recompiling the module!
>> [INFO] Compiling 37 source files to
>> C:\Project\wss\maven\Sysper2\Reporting_maven\target\classes
>>
>> (but the target/classes/ folder is just empty)
>>
>
> It looks weird, but intuition tells me it is not maven problem but config
> issue in your box.
>

We haved dived into that more and it is not a config issue...I can
reproduce the problem...(We have not yet the root cause)...

But you can see the description here:

https://issues.apache.org/jira/browse/MCOMPILER-302

Kind regards
Karl Heinz Marbaise

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Loading...