When building using Maven on my mac, on mvn install
i get
[WARNING] Using platform encoding (MacRoman actually) to copy filtered resources, i.e. build is platform dependent!
Is it possible to either build for a given platform (Linux) or otherwise make build platform independent?
[WARNING] Using platform encoding (MacRoman actually) to copy filtered resources, i.e. build is platform dependent! happens too often when you use Maven as a build tool. It is so frequent that it has made it to Maven Official FAQ how you fix it. The simple solution is to add the property project.
Maven is a comprehensive solution that provides full technology and business services for brand partners. Our stand-alone, SAAS model drives value for partners through unique offerings that deliver instant cost savings, revenue expansion and audience growth.
Use the properties-maven-plugin to write specific pom properties to a file at compile time, and then read that file at run time.
How to produce execution debug output or error messages? You could call Maven with -X parameter or -e parameter. For more information, run: mvn --help.
It happens when you have not provided following in your pom.xml
<properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> </properties>
Absence of this means you are using platform specific encoding and that's why the warning.
And if @Kal's answer doesn't work for you, perhaps you can learn from my last 30 minutes... below link adds an additional line to the above answer and solved my problem. My problem was related to the maven-resources-plugin 2.6, but the provider of the following solution had a different problem it solved... https://stackoverflow.com/a/3018152/2485075
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With