forked from Prototik/HoloEverywhere
-
Notifications
You must be signed in to change notification settings - Fork 0
Maven
Prototik edited this page Jan 17, 2013
·
10 revisions
HoloEverywhere also available in Maven Central:
<dependency>
<groupId>org.holoeverywhere</groupId>
<artifactId>library</artifactId>
<version>1.4.2</version>
<type>apklib</type>
</dependency>
If you need to rebuild library, follow these steps:
-
Because HoloEverywhere keystore nobody will give you, you must create or specify an existing keystore.
Create new keystore:keytool -genkey -alias myalias -keyalg RSA -keystore mykeystore.jks -keysize 2048
Where myalias - key alias name, mykeystore.jks - file for keystore. Make a note of the passwords that you entered in the keytool! -
Open your ~/.m2/settings.xml (on Windows - C:\Users\YourUserName\.m2\settings.xml)
If it does not exist - create it with simple skelet:
<settings>
</settings>
Insert into <settings> tag profile declaration:
<profiles>
<profile>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<holo.sign.keystore>/full/path/to/your/keystore.jks</holo.sign.keystore>
<holo.sign.alias>yourAlias</holo.sign.alias>
<holo.sign.storepass>yourKeystorePassword</holo.sign.storepass>
<holo.sign.keypass>yourAliasPassword</holo.sign.keypass>
<android.sdk.path>/full/path/to/your/android/sdk</android.sdk.path>
</properties>
</profile>
</profiles>
Replace the data on their own.
- Now you may build HoloEverywhere with Maven!
cd HoloEverywhere
mvn clean install
Yea, it... funny.
- Install m2e and m2e-android from Eclipse Marketplace. For more details see wiki of this projects.
- Download the latest sources:
git clone git://github.com/ChristopheVersieux/HoloEverywhere.git HoloEverywhere
cd HoloEverywhere
git submodule update --init --recursive
- Select File - New - Other - Android - Android Project from existing sources. Go to HoloEverywhere/contrib/ActionBarSherlock/library and import this project. Rename it to
HoloEverywhere ABS
. Then right click on the project - Configure - Convert to Maven project. - Select File - Import - Existing Projects into Workspace, go to HoloEverywhere root folder and select it. You should see only one project with name
HoloEverywhere
, import it. Repeat this step for the project builder, translator, library, slidingmenu, demo. - Now we will be fight with bugs :)
Here I'll shorten HoloEverywhere as HE.
- Check on the correct build HE ABS, HE Builder and HE Translator.
- Right click on the HE Library - Maven - Update project.
- Again right click - Properties - Android - remove all items from
Library
section, clickAdd
and select HE ABS. - Repeat last two steps for the project HE SlidingMenu, but add to library list project
HE Library
- Again repeat steps for the HE Demo, add
HE SlidingMenu
- Wait :)
- Check on the correct build.
- Curse the m2e-android. Joke :)
If you want to run an application with HoloEverywhere via ADT - you will not.
- Select Run - Run configurations.
- Delete unnecessary configurations from
Android
section - Select section
Maven
, clickNew launch configuration
, name itHoloEverywhere Build
. - Press
Browse Workspace...
button and select project with nameHoloEverywhere
- Into
Goals
field type text:clean install
- Check
Skip tests
- Click Apply - Run
- Repeat steps 1-7, but name configuration
HoloEverywhere Demo Run
, select projectHoloEverywhere Demo
with next goals:android:deploy android:run