This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Ant, Maven and Other Build Tools and the fly likes Maven warning implication Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Reply Bookmark "Maven warning implication" Watch "Maven warning implication" New topic
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Maven warning implication
 
Similar Threads
generics...
first example, i use maven2
linking my own application jar file to my maven build.
Creating ear file
Could not resolve dependencies for maven project