maven_example.xml

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> 
 
  <modelVersion>4.0.0</modelVersion> 
  <groupId>com.lapetus_ltd</groupId> 
  <artifactId>jut</artifactId> 
  <packaging>jar</packaging> 
  <version>1.3</version> 
  <name>jut</name> 
  <url>http://www.lapetus-ltd.com</url> 
 
  <build> 
    <finalName>${project.groupId}-${project.artifactId}</finalName> 
    <testOutputDirectory>target/classes</testOutputDirectory> 
     
    <plugins> 
      <plugin> 
        <groupId>org.codehaus.mojo</groupId> 
        <artifactId>jaxb2-maven-plugin</artifactId> 
        <version>1.3</version> 
        <executions> 
          <execution> 
            <goals> 
              <goal>xjc</goal> 
            </goals> 
            <configuration> 
              <schemaDirectory>src/xsd</schemaDirectory> 
              <schemaFiles>example.xsd</schemaFiles> 
              <arguments>-no-header</arguments> 
            </configuration> 
          </execution> 
        </executions> 
      </plugin> 
 
      <plugin> 
        <groupId>org.apache.maven.plugins</groupId> 
        <artifactId>maven-compiler-plugin</artifactId> 
        <configuration> 
          <source>1.6</source> 
          <target>1.6</target> 
          <debug>false</debug> 
          <optimize>false</optimize> 
        </configuration> 
      </plugin> 
 
      <plugin> 
        <groupId>org.apache.maven.plugins</groupId> 
        <artifactId>maven-resources-plugin</artifactId> 
        <configuration> 
          <encoding>UTF-8</encoding> 
        </configuration> 
      </plugin> 
 
      <plugin> 
        <groupId>org.apache.maven.plugins</groupId> 
        <artifactId>maven-jar-plugin</artifactId> 
        <configuration> 
          <excludes> 
            <exclude>*.css</exclude> 
          </excludes> 
        </configuration> 
      </plugin> 
 
    </plugins> 
  </build> 
 
</project>