Gespeichert von Erik Wegner
am/um
Body
Ein Projekt beginnen
mvn archetype:create -DgroupId=com.company.app -DartifactId=my-app
Abhängigkeiten
<project ... <dependencies> ... <dependency> <groupId>log4j</groupId> <artifactId>log4j</artifactId> <version>1.2.13</version> <scope>compile</scope> </dependency> <dependency> <groupId>commons-cli</groupId> <artifactId>commons-cli</artifactId> <version>1.0</version> <scope>compile</scope> </dependency> </dependencies>
Einstellungen
<project ... <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>2.0</version> <configuration> <source>1.5</source> <source>1.5</source> </configuration> </plugin> </plugins> </build>
Eclipse-Projekt erzeugen
mvn eclipse:eclipse -DdownloadSources=true