How to Build an Application that uses Maven

  • Follow the “Install Maven” directions located here.
  • Open up a command prompt and change directories to the folder that contains pom.xml
  • Type “mvn install”.
    • If you get an error like “such and such is not supported in -source 1.3 (try -source 1.5 to enable such and such)”, then try adding the following code to your pom.xml:
<build>
  <plugins>
     <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <configuration>
			<source>1.5</source>
            <target>1.5</target>
        </configuration>
      </plugin>
  </plugins>
  </build>

It's only fair to share...
Share on FacebookGoogle+Tweet about this on TwitterShare on LinkedIn

Leave a Reply