This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan 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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 9243
    
    1

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: 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: 9243
    
    1

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: 9243
    
    1

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: 9243
    
    1

That was helpful! Thanks!
Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3274
    
    5

You're welcome
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Maven warning implication
 
Similar Threads
generics...
Creating ear file
Could not resolve dependencies for maven project
first example, i use maven2
linking my own application jar file to my maven build.