Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/peter-budo/archetype
https://github.com/peter-budo/archetype
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/peter-budo/archetype
- Owner: peter-budo
- License: apache-2.0
- Created: 2012-12-10T11:28:01.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2013-03-08T12:05:18.000Z (almost 12 years ago)
- Last Synced: 2023-03-12T09:57:57.709Z (almost 2 years ago)
- Language: Java
- Size: 179 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: changelog.txt
- License: LICENSE
Awesome Lists containing this project
README
android-archetypes
==================This projects provides several Maven archetypes for Android. Those archetypes allows to quickly bootstrap a Maven project
to develop an android application.These artifacts are based on the android-maven-plugin (http://code.google.com/p/maven-android-plugin/). It currently uses the 3.4.0 version.
The android-novoda archetype
--------------------------------
The archetype is based on experiences and setup used by [Novoda](http://www.novoda.com). This archetype will provided you with following modules:app - main Android structure holder dependent on core
core - this is plain Java "zone", stuff that can be easier tested with JUnit and mocked with various frameworks (we try this section to be as much independent from Android, but sometimes some stuff sneak inside)
instrumentation - integration tests using instrumentation, Robolectric, out-of-box setup for Emma reports you can use on your Jenkins CI etcTo initiate an android project use:
mvn archetype:generate \
-DarchetypeArtifactId=android-novoda-archetype \
-DarchetypeGroupId=com.novoda \
-DarchetypeVersion=1.0.0-SNAPSHOT \
-DgroupId=your.company \
-DartifactId=my-android-applicationYou can also set three optional properties :
* The created 'package' with '-Dpackage=your.company.android'. By default it uses the given groupId.
* The targeted Android platform with '-Dplatform=7'. The Android SDK version will be automatically fetched to fit the corresponding API level. Available API Level are 3, 4, 7, 8, 9, 10, 14 and 16. By default, it uses 16 (android 4.1.1.4).### Warning
'-Demulator=my-avd' is not supported due different structure of archetype from above listedOnce generated, the application is ready to be built and deployed (you may need to configure your ANDROID_HOME environment variable to point to your Android SDK). Start an android emulator, or plug an Android phone,
and launch:cd my-android-application
mvn clean install android:deployThe application will be built and deployed on the device.
Setting the maven-android-plugin version
----------------------------------------
You can change the default maven-android-plugin version by specifying the 'android-plugin-version' parameter.Credits
-------
The android-archetype-project is an open source project licensed under the Apache License 2.0.
It is founded by [akquinet](http://akquinet.de/en) and forked by [Novoda](http://novoda.com)Technical Notes
---------------
* As the archetypes used the new archetype format, they don't work with the deprecated goal 'archetype:create'