Closed GoogleCodeExporter closed 8 years ago
I fixed it by explicit configuring Maven surefire plugin:
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.5</version>
<configuration>
<forkMode>always</forkMode>
<argLine>-Dfile.encoding=UTF8 -Xmx256m ${argLine}</argLine>
</configuration>
Original comment by fefe...@outsideiq.com
on 10 Jun 2011 at 5:10
Additionally to the issue with encoding (reported by me via different Email
post):
When I import the project to Eclipse (Juno Release with M2E plugin), import as
an existing Maven project, it automatically puts "enable project specific
configuration" and "Java versiopn: 1.5", although my default setting is Java
1.6. I fixed that by changing Maven POM.
Please add this to Maven POM (and ignore previous suggestion):
==============================================================
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.6</source>
<target>1.6</target>
<compilerVersion>1.6</compilerVersion>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
</plugins>
</build>
Thanks,
Fuad Efendi
Original comment by fuad.efe...@tokenizer.ca
on 6 Oct 2012 at 2:07
Note that build.properties contains
build.encoding=ISO-8859-1
- but maven build runs fine with UTF-8 in my environment... thanks
Original comment by fuad.efe...@tokenizer.ca
on 6 Oct 2012 at 2:14
Note that the build is done with ANT+MVN tasks i.e. 'ant test'. The pom.xml is
used merely for managing dependencies and publishing the artefacts. You can use
'ant eclipse' to generate the .classpath, .project and .settings automatically
Original comment by digitalpebble
on 5 Nov 2012 at 3:39
As Julien noted, the build is done using ant (with Maven ant tasks). If you
want to be able to build the project via Maven, then please file a separate
issue with a specific patch for updating the pom.xml file. Also note that
keeping the pom.xml up-to-date will be something outside the scope of the
project maintainers.
Original comment by kkrugler...@transpac.com
on 6 Nov 2012 at 4:40
"keeping the pom.xml up-to-date" sounds unclear to me. I prefer thinking that
we need to keep POM up to date especially if we publish it in many different
places. Do we publish ANT build script with properties file in Maven repository?
Thanks
Original comment by fuad.efe...@tokenizer.ca
on 6 Nov 2012 at 2:30
FYI, "ant test" didn't fail in my patched environment. I want to understand why
we need ANT... historical reasons?
Original comment by fuad.efe...@tokenizer.ca
on 6 Nov 2012 at 2:38
FYI: "ant test" didn't fail in _freshly_ checked out SVN version.
Original comment by fuad.efe...@tokenizer.ca
on 6 Nov 2012 at 2:46
Original issue reported on code.google.com by
fefe...@outsideiq.com
on 10 Jun 2011 at 3:43