17.08.2016 Views

Apache Maven 3 Cookbook

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Google Development with <strong>Maven</strong><br />

2.1<br />

<br />

<br />

true<br />

<br />

<br />

true<br />

<br />

<br />

maven-compiler-plugin<br />

<br />

1.5<br />

1.5<br />

<br />

<br />

<br />

<br />

<br />

The notable highlights from the POM are:<br />

<br />

<br />

<br />

Packaging has been set to apk<br />

Dependencies for Android artifacts have been defined with the scope<br />

provided<br />

Build plugins have been configured for integration with the <strong>Maven</strong> build cycle<br />

1. To create the project from the <strong>Maven</strong> archetype, execute the following command in<br />

the terminal:<br />

$ mvn archetype:generate -DarchetypeCatalog=http://kallisti.eoti.<br />

org:8081/content/repositories/snapshots/archetype-catalog.xml<br />

[INFO] Scanning for projects...<br />

[INFO]<br />

[INFO] -----------------------------------------------------------<br />

-------------<br />

[INFO] Building <strong>Maven</strong> Stub Project (No POM) 1<br />

[INFO] -----------------------------------------------------------<br />

-------------<br />

[INFO]<br />

[INFO] --- maven-archetype-plugin:2.0-alpha-5-SNAPSHOT:generate<br />

(default-cli) @ standalone-pom ---<br />

[INFO] Generating project in Interactive mode<br />

130

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!