| Author |
Maven warning implication
|
Joe Harry
Ranch Hand
Joined: Sep 26, 2006
Posts: 8795
|
|
Guys,
What would such a warning imply when compiling / building my Maven project?? Looks strange to me. The first time I'm encountering such a thing with Maven!
|
SCJP 1.4, SCWCD 1.4 - Hints for you, SCBCD Hints - Demnachst, SCDJWS - Auch Demnachst
Did a rm -R / to find out that I lost my entire Linux installation!
|
 |
Martijn Verburg
author
Bartender
Joined: Jun 24, 2003
Posts: 3268
|
|
|
You haven't specified the encoding for the Maven build, so it's defaulting to whatever system you're running on. This could cause issues if for example you were needing to reference a UTF-8 character in your build.
|
Cheers, Martijn - Blog,
Twitter, PCGen, Ikasan, My The Well-Grounded Java Developer book!,
My start-up.
|
 |
Joe Harry
Ranch Hand
Joined: Sep 26, 2006
Posts: 8795
|
|
|
Where and how can I tell Maven to use UTF-8 encoding for all the build it would perform?
|
 |
Martijn Verburg
author
Bartender
Joined: Jun 24, 2003
Posts: 3268
|
|
|
One place is here another example is here
|
 |
Joe Harry
Ranch Hand
Joined: Sep 26, 2006
Posts: 8795
|
|
|
So it means that the java class files will have UTF-8 encoding scheme? Is that right? I mean the java class files that got compiled using Maven...
|
 |
Martijn Verburg
author
Bartender
Joined: Jun 24, 2003
Posts: 3268
|
|
|
Correct
|
 |
Joe Harry
Ranch Hand
Joined: Sep 26, 2006
Posts: 8795
|
|
|
That was helpful! Thanks!
|
 |
Martijn Verburg
author
Bartender
Joined: Jun 24, 2003
Posts: 3268
|
|
You're welcome
|
 |
 |
|
|
subject: Maven warning implication
|
|
|