aspose file tools*
The moose likes Ant, Maven and Other Build Tools and the fly likes Maven warning implication Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Maven warning implication" Watch "Maven warning implication" New topic
Author

Maven warning implication

Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9427
    
    2

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, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3274
    
    5

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: 9427
    
    2

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: 3274
    
    5

One place is here another example is here
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9427
    
    2

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: 3274
    
    5

Correct
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9427
    
    2

That was helpful! Thanks!
Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3274
    
    5

You're welcome
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Maven warning implication