Place the settings.xml in your user directory ~/.m2/settings.xml
This is more flexible than managing repositories via the pom.xml, and is the recommended best-practice.
<settings>
<profiles>
<profile>
<id>in-house-repos</id>
<repositories>
<!-- Add as many repositories as necessary -->
<repository>
<id>in-house-snap-1</id>
<name>In-House Repository for Snapshots 1</name>
<!-- look at 'servers' or 'proxies' if you can't connect to the url -->
<url>http://ourrepo/maven/</url>
<snapshotPolicy>always</snapshotPolicy>
</repository>
</repositories>
</profile>
</profiles>
<!-- must activate the profile -->
<activeProfiles>
<activeProfile>in-house-repos</activeProfile>
</activeProfiles>
</settings>
You must configure the source and target parameters in your pom, by default this is version 1.3. For example, to set the source and target JVM to 1.5, you should have in your pom.
The following code includes tools.jar on Sun JDKs (it is already included in the runtime for Mac OS X and some free JDKs). It adds it via a profile so compilation is less likely to break using other JDKs.
Configure your ide to use the correct encoding. With eclipse, add -Dfile.encoding=ISO-8859-1 in eclipse.ini file.
To configure the file encoding used by mvn, add to MAVEN_OPTS the encoding (same as the ide). This can be made with adding MAVEN_OPTS="-Dfile.encoding=ISO-8859-1" in $HOME/.profile.
Finally, configure the output encoding in your pom:
Save this file as client-config.wsdd in the working directory of your Apache Axis Java client. Axis will load it automatically. The configuration here tells Axis to save all incoming and outgoing XML into a file named axis.log.
<!--
Tell Axis to save all incoming and outgoing XML into a file named "axis.log"
-->
<deployment xmlns="http://xml.apache.org/axis/wsdd/"
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
<handler name="log" type="java:org.apache.axis.handlers.LogHandler"/>
<globalConfiguration>
<requestFlow>
<handler type="log"/>
</requestFlow>
<responseFlow>
<handler type="log"/>
</responseFlow>
</globalConfiguration>
<transport name="http"
pivot="java:org.apache.axis.transport.http.HTTPSender"/>
</deployment>