maven
- to display all the targets:
mvn -g > toto.txt
- List of targets are in project.xml, see "build" target
- "dist:" postgoals are described in maven.xml
- To add a jar like mysql, you need to add it to project.properties and project.xml
- Maven plugin for eclipse:
- http://download.eclipse.org/technology/m2e/releases
To create an exe from Eclipse
Maven System Properties
mvn assembly:assembly -Dmaven.test.skip=true (doesn't build tests)
mvn assembly:assembly -DskipTests=true (doesn't do tests, but build them)
- New Maven project for Eclipse
- from the command line:
mvn archetype:generate
-DgroupId=com.yourcompany.engine.api -DartifactId=EngineApi -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false
- cd EngineApi
- mvn install
- mvn eclipse:eclipse
- Import the project into Eclipse as a maven project
- Right click on the Eclipse project: "Maven / Enable Dependencies Management" then "Maven / Update Project Configuration"
- Maven/Eclipse problem
- Right-click on your project, select Maven -> Remove Maven Nature.
- Open you terminal, go to your project folder and do
mvn eclipse:clean
- Right click on your Project and select “Configure -> Convert into Maven Project”
- Create a pom compatible entry to be used as a dependency from a local jar file
mvn install:install-file -DgroupId=org.winterwell -DartifactId=jtwitter -Dversion=2.8.2 -Dfile=/home/lee/tools/JTwitter/jtwitter.jar -Dpackaging=jar -DgeneratePom=true
- if you lost or removed the /target folder
- mvn compile
- or
- mvn package (creates also the package...)