内容
- 準備する
- メイヴン
- 根
- ビルドプロファイル
- プラグイン
- アプリ
- リソースフィルタリング
- Lib
- テスト
- 根
- おわりに
- 参照資料
この投稿は、Mavenの基本にすでに精通している読者を対象としており、記事の過程で、Maven自体の一般的な問題ではなく、特定のポイント、特にAndroidに重点が置かれます。 以前にMavenを使用したことがない場合は、まずはこちらとこちらをご覧ください 。
また、ツールのインストールと基本構成については考慮しません
JDK, Android SDK, Maven
、および
IntelliJ IDEA
がインストールされ、動作している必要があります。
JAVA_HOME, M2, M2_HOME
、および
ANDROID_HOME
環境変数を適宜設定する必要があり
JAVA_HOME, M2, M2_HOME
。 また、便宜上、
%ANDROID_HOME%/tools
および
%ANDROID_HOME%/platform-tools
ディレクトリを
Path
追加することをお勧めします。
最初に全体像を見てから、個々の詳細を理解する方が常に便利です。 したがって、githubからプロジェクトテンプレートを選択することをお勧めします。 すべてのさらなるナレーションは、彼の例で行われます。
準備する
POMファイル自体の検討を開始する前に、まずプロジェクト構造を整理し、IntelliJ IDEAで動作するように構成します。 これにより、標準のIDEツールをさらに使用してアプリケーションを起動およびデバッグし、実際にすべての利点を十分に活用することができます。 IDEAにはデフォルトでMavenおよびAndroid用の組み込みプラグインがあり、セットアップはほとんど問題を引き起こしません。 プラグインのMavenパネルを開き、対応するルートPOMファイルを選択するだけです。 IDEAはそこからのデータに基づいて、少し手動で調整する必要があるプロジェクトファイルを作成します。
プロジェクトは4つのモジュールで構成されています。
根 | ----アプリ | | ---- src | | ----テスト | | ---- JUnit | | ---- Robolectric | | ---- Lib | | ---- src | | ----テスト | | ---- JUnit | | ---- Robolectric | | ----テスト | ---- src | ----計装 | ----ロボティウム
-
Root
はプロジェクトのルートです。 -
App
-アプリケーション自体 -
Test
-計装apk、 AndroidおよびRobotiumテストを備えたモジュール -
Lib
- Androidライブラリプロジェクト 、APKLIBへ
テストを含む個別のモジュールに加えて、プロジェクト内の各モジュールには、単体テスト(JUnitまたはRobolectric )が保存される
test
フォルダーがあります。
メイヴン
私にとって、mavenを試そうとする動機の1つは、Antと比較してXMLサイズが小さく、その結果、読みやすさとサポートが向上したことです。 ただし、通常は、チュートリアルではコンパクトに見えますが、実際には認識できないサイズになります。 そのため、今回、スクリプトはすべてのウィッシュリストで大きくなりすぎ、アントフに劣らずなりました。 しかし、これにもかかわらず、私の主観的な意見では、それらを読むことはAntよりはるかに簡単です。 さらに、スクリプトのようなAntとは異なり、mavenは宣言的なパラダイムを提供します。 つまり 「どのように」正確に何かを取得したいのではなく、「何を」正確に、そしてそれがどのように受け取られるかを説明します。
また、実際には、依存関係管理オプションはかなり具体的なプラスであることが判明しましたが、Antでは原則としてIvyを使用しても解決可能です。 さて、有名なアリの1人が言ったように、アリに対するもう1つの突っ込み:「XMLを使用したプログラミングは一般に奇妙なアイデアです」=)
モジュールのPOMファイルを見てみましょう
根
プロジェクトのルートモジュール。 他のすべてのモジュールと、すべてのモジュールに共通の構成要素が含まれています。 そのようなモジュールのデフォルトのパッケージングタイプ
<packaging>pom</packaging>
さらに、バグトラッカーのアドレス、リポジトリのアドレス、プロジェクトの説明など、さまざまな些細なことが発表されています。
次に、プロパティのブロックがあります。
<properties> <project.version.name.number>1.0.0</project.version.name.number> <project.version.code>1</project.version.code> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.emulator.name><!-- TODO emulator name --></project.emulator.name> <project.version.name>${project.version.name.number}-${project.version.name.qualifier}</project.version.name> <project.verbosity>true</project.verbosity> </properties>
- apkファイルのバージョンと
versionCode
- ソースエンコーディング
- テストが実行され、完成したアプリケーションがデプロイされるエミュレーターの名前。 この値は、後で
android-maven-plugin
スクリプトで使用されます。 特定の値を指定しない場合、デフォルトでは、現在利用可能なすべてのエミュレーター/デバイスが使用されます。 デバイス名に加えて、usb
およびemulator
定数も有効な値です。 - プロジェクト名。 バージョン+修飾子。その値は、特定のプロファイルごとに一意の対応するプロパティからも取得されます(プロファイルの詳細については、以下で説明します)
- Android SDKから多くのユーティリティに渡される-vフラグは、さまざまな追加情報の出力を刺激します。
次に、依存モジュールを宣言するブロック:App、Test、およびLib。 次に、プロファイル宣言セクション。
ビルドプロファイル
前の部分で述べたように、アプリケーションは
production, test
、
development
いくつかの異なる構成で構築できます。 このプロセスのプロファイルと管理。 各プロファイルでは、さまざまなプロパティ、プラグイン設定、およびその他のビルドパラメーターの値を重複させることができます。 プロジェクトをコンパイルするとき、アクティブなプロファイルに応じて、適切なアセンブリ設定が取得され、アプリケーションで使用されます。 たとえば、この方法でリソース処理を使用すると、サーバーリンクを変更できます。これは、
test
構成と
test
構成で異なる場合があります(詳細は以下を参照)。
Mavenプラグインを使用して、IDEAで必要なプロファイルをアクティブ化できます。
または、コンソールまたはビルドサーバーからPOMを起動する場合、追加のパラメーターを指定することでアクティブなプロファイルの値を渡すことができます。 たとえば、次のコマンドを使用して、コマンドラインからアプリケーションの
production
アセンブリをアセンブルできます。
mvn install -P production
development
プロファイルはデフォルトでアクティブになっているため、さらに何も指定しないと、dev構成が構築されます。
サーバーまたはデータベースへの接続の設定などの特定のアプリケーション設定に加えて、プロファイルはapkファイルが最適化および署名されるかどうか、デバッグモードが有効かどうか、およびどの修飾子が最終成果物を受け取るかを決定します。
test
および
development
プロファイルはサイズが小さく、その内容はアプリケーション設定(サーバーに接続するためのパラメーター)のみを指定します。
production
プロファイルの定義は、サイズがわずかに大きいです。 これには、証明書を使用してアプリケーションに署名するプロセスの設定が含まれます。
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jarsigner-plugin</artifactId> <executions> <execution> <id>signing</id> <goals> <goal>sign</goal> <goal>verify</goal> </goals> <phase>package</phase> <inherited>true</inherited> <configuration> <archiveDirectory/> <includes> <include>${project.build.directory}/*.apk</include> </includes> <keystore>${project.basedir}/keystore</keystore> <!-- TODO add keystore to project --> <storepass><!-- TODO --></storepass> <keypass><!-- TODO --></keypass> <alias><!-- TODO --></alias> <removeExistingSignatures>true</removeExistingSignatures> <verbose>true</verbose> </configuration> </execution> </executions> </plugin>
maven-jarsigner-plugin
設定は、パッケージが署名されるポイント、キーストアへのパス、およびそのパラメーターを示します。 ところで、スクリプトをデバッグするには、
-X
オプションを使用して実行するのが非常に便利です(例:
mvn install -X
。 同時に、mavenは大量のデバッグ情報を提供し、問題に対処できることを分析します。
次に、
android-maven-plugin
'eで、
production
アセンブリのデバッグモードが無効になります。 最後の
maven-compiler-plugin
は、
production
バージョンコードの最適化が含まれます。
POMのビルドセクションで、結果のapkファイルの名前が設定され、さまざまなプラグインが設定されます。
プラグイン
次に、プラグインの設定に進みます。 リソース処理プラグイン
maven-compiler-plugin
にJavaのバージョン6を使用するように
maven-compiler-plugin
し、
android-maven-plugin
をセットアップし、
maven-idea-plugin
をセットアップし
maven-idea-plugin
。
maven-idea-plugin
使用すると、プロジェクトの依存関係のドキュメントとソースをダウンロードできます。これにより、プラットフォームまたはライブラリのソースコードを確認したり、javadoc(Ctrl + Q)にすばやく触れることができます。 些細なことですが、素晴らしい! =)
Android Mavenプラグイン
Androidプラグインのセットアップをさらに詳しく検討してみましょう。 プラグインは、セクションの他のすべてのMavenプラグインと同じ方法で構成されます
//.
API .
<sdk> <platform>14</platform> </sdk>
, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>
: , . .. TeamCity "" , -no-window
.
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>
.
<undeployBeforeDeploy>true</undeployBeforeDeploy>
apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>
.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>
POM- App, Test Lib , .
App
. - APK
. maven-central, , , .
maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin
'a, - Maven Android SDK Deployer , .
. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>
apklib
- Android , . IntelliJ IDEA apklib IDEA- ~
.
, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .
, maven , , , . JetBrains .
.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>
.
Resource filtering
, ( application.properties
/assets
, XML- /res
java /src
), ${property.name}
, Maven' POM-. , , . , .
. android-maven-plugin
versionName
versionCode
, . , , , AndroidManifest.xml
. resource filtering. .
, Root , APKLIB
. Root App , .
/asstets
.
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>
, (. Resource filtering).
, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>
Lib
APKLIB
. jar
. . java-, jar, (, , ..), .. Android Library Project , APKLIB
.
, .
Test
, . apk
. . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>
..
-, , , . Maven . pom- AndroidManifest.xml
. maven-release-plugin
- (ant- ).
, , , - =)
version.properties
. ant-target POM- .
test-scopes . Android Testing Framework @SmallTest
@MediumTest
@LargeTest
, instrumentation- . .. integration-, , , TeamCity , . , development
@SmallTest
', production
. , , maven-android-plugin
scope , .. small
, medium
, large
, small medium. . testSize
obfuscating ProGuard
, , Android Maven'
Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'
UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".
//.
API .
<sdk> <platform>14</platform> </sdk>
, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>
: , . .. TeamCity "" , -no-window
.
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>
.
<undeployBeforeDeploy>true</undeployBeforeDeploy>
apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>
.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>
POM- App, Test Lib , .
App
. - APK
. maven-central, , , .
maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin
'a, - Maven Android SDK Deployer , .
. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>
apklib
- Android , . IntelliJ IDEA apklib IDEA- ~
.
, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .
, maven , , , . JetBrains .
.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>
.
Resource filtering
, ( application.properties
/assets
, XML- /res
java /src
), ${property.name}
, Maven' POM-. , , . , .
. android-maven-plugin
versionName
versionCode
, . , , , AndroidManifest.xml
. resource filtering. .
, Root , APKLIB
. Root App , .
/asstets
.
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>
, (. Resource filtering).
, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>
Lib
APKLIB
. jar
. . java-, jar, (, , ..), .. Android Library Project , APKLIB
.
, .
Test
, . apk
. . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>
..
-, , , . Maven . pom- AndroidManifest.xml
. maven-release-plugin
- (ant- ).
, , , - =)
version.properties
. ant-target POM- .
test-scopes . Android Testing Framework @SmallTest
@MediumTest
@LargeTest
, instrumentation- . .. integration-, , , TeamCity , . , development
@SmallTest
', production
. , , maven-android-plugin
scope , .. small
, medium
, large
, small medium. . testSize
obfuscating ProGuard
, , Android Maven'
Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'
UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".
//.
API .
<sdk> <platform>14</platform> </sdk>
, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>
: , . .. TeamCity "" , -no-window
.
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>
.
<undeployBeforeDeploy>true</undeployBeforeDeploy>
apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>
.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>
POM- App, Test Lib , .
App
. - APK
. maven-central, , , .
maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin
'a, - Maven Android SDK Deployer , .
. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>
apklib
- Android , . IntelliJ IDEA apklib IDEA- ~
.
, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .
, maven , , , . JetBrains .
.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>
.
Resource filtering
, ( application.properties
/assets
, XML- /res
java /src
), ${property.name}
, Maven' POM-. , , . , .
. android-maven-plugin
versionName
versionCode
, . , , , AndroidManifest.xml
. resource filtering. .
, Root , APKLIB
. Root App , .
/asstets
.
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>
, (. Resource filtering).
, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>
Lib
APKLIB
. jar
. . java-, jar, (, , ..), .. Android Library Project , APKLIB
.
, .
Test
, . apk
. . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>
..
-, , , . Maven . pom- AndroidManifest.xml
. maven-release-plugin
- (ant- ).
, , , - =)
version.properties
. ant-target POM- .
test-scopes . Android Testing Framework @SmallTest
@MediumTest
@LargeTest
, instrumentation- . .. integration-, , , TeamCity , . , development
@SmallTest
', production
. , , maven-android-plugin
scope , .. small
, medium
, large
, small medium. . testSize
obfuscating ProGuard
, , Android Maven'
Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'
UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".
//.
API .
<sdk> <platform>14</platform> </sdk>
, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>
: , . .. TeamCity "" , -no-window
.
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>
.
<undeployBeforeDeploy>true</undeployBeforeDeploy>
apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>
.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>
POM- App, Test Lib , .
App
. - APK
. maven-central, , , .
maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin
'a, - Maven Android SDK Deployer , .
. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>
apklib
- Android , . IntelliJ IDEA apklib IDEA- ~
.
, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .
, maven , , , . JetBrains .
.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>
.
Resource filtering
, ( application.properties
/assets
, XML- /res
java /src
), ${property.name}
, Maven' POM-. , , . , .
. android-maven-plugin
versionName
versionCode
, . , , , AndroidManifest.xml
. resource filtering. .
, Root , APKLIB
. Root App , .
/asstets
.
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>
, (. Resource filtering).
, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>
Lib
APKLIB
. jar
. . java-, jar, (, , ..), .. Android Library Project , APKLIB
.
, .
Test
, . apk
. . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>
..
-, , , . Maven . pom- AndroidManifest.xml
. maven-release-plugin
- (ant- ).
, , , - =)
version.properties
. ant-target POM- .
test-scopes . Android Testing Framework @SmallTest
@MediumTest
@LargeTest
, instrumentation- . .. integration-, , , TeamCity , . , development
@SmallTest
', production
. , , maven-android-plugin
scope , .. small
, medium
, large
, small medium. . testSize
obfuscating ProGuard
, , Android Maven'
Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'
UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".
//.
API .
<sdk> <platform>14</platform> </sdk>
, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>
: , . .. TeamCity "" , -no-window
.
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>
.
<undeployBeforeDeploy>true</undeployBeforeDeploy>
apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>
.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>
POM- App, Test Lib , .
App
. - APK
. maven-central, , , .
maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin
'a, - Maven Android SDK Deployer , .
. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>
apklib
- Android , . IntelliJ IDEA apklib IDEA- ~
.
, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .
, maven , , , . JetBrains .
.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>
.
Resource filtering
, ( application.properties
/assets
, XML- /res
java /src
), ${property.name}
, Maven' POM-. , , . , .
. android-maven-plugin
versionName
versionCode
, . , , , AndroidManifest.xml
. resource filtering. .
, Root , APKLIB
. Root App , .
/asstets
.
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>
, (. Resource filtering).
, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>
Lib
APKLIB
. jar
. . java-, jar, (, , ..), .. Android Library Project , APKLIB
.
, .
Test
, . apk
. . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>
..
-, , , . Maven . pom- AndroidManifest.xml
. maven-release-plugin
- (ant- ).
, , , - =)
version.properties
. ant-target POM- .
test-scopes . Android Testing Framework @SmallTest
@MediumTest
@LargeTest
, instrumentation- . .. integration-, , , TeamCity , . , development
@SmallTest
', production
. , , maven-android-plugin
scope , .. small
, medium
, large
, small medium. . testSize
obfuscating ProGuard
, , Android Maven'
Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'
UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".
//.
API .
<sdk> <platform>14</platform> </sdk>
, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>
: , . .. TeamCity "" , -no-window
.
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>
.
<undeployBeforeDeploy>true</undeployBeforeDeploy>
apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>
.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>
POM- App, Test Lib , .
App
. - APK
. maven-central, , , .
maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin
'a, - Maven Android SDK Deployer , .
. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>
apklib
- Android , . IntelliJ IDEA apklib IDEA- ~
.
, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .
, maven , , , . JetBrains .
.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>
.
Resource filtering
, ( application.properties
/assets
, XML- /res
java /src
), ${property.name}
, Maven' POM-. , , . , .
. android-maven-plugin
versionName
versionCode
, . , , , AndroidManifest.xml
. resource filtering. .
, Root , APKLIB
. Root App , .
/asstets
.
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>
, (. Resource filtering).
, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>
Lib
APKLIB
. jar
. . java-, jar, (, , ..), .. Android Library Project , APKLIB
.
, .
Test
, . apk
. . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>
..
-, , , . Maven . pom- AndroidManifest.xml
. maven-release-plugin
- (ant- ).
, , , - =)
version.properties
. ant-target POM- .
test-scopes . Android Testing Framework @SmallTest
@MediumTest
@LargeTest
, instrumentation- . .. integration-, , , TeamCity , . , development
@SmallTest
', production
. , , maven-android-plugin
scope , .. small
, medium
, large
, small medium. . testSize
obfuscating ProGuard
, , Android Maven'
Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'
UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".
//.
API .
<sdk> <platform>14</platform> </sdk>
, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>
: , . .. TeamCity "" , -no-window
.
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>
.
<undeployBeforeDeploy>true</undeployBeforeDeploy>
apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>
.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>
POM- App, Test Lib , .
App
. - APK
. maven-central, , , .
maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin
'a, - Maven Android SDK Deployer , .
. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>
apklib
- Android , . IntelliJ IDEA apklib IDEA- ~
.
, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .
, maven , , , . JetBrains .
.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>
.
Resource filtering
, ( application.properties
/assets
, XML- /res
java /src
), ${property.name}
, Maven' POM-. , , . , .
. android-maven-plugin
versionName
versionCode
, . , , , AndroidManifest.xml
. resource filtering. .
, Root , APKLIB
. Root App , .
/asstets
.
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>
, (. Resource filtering).
, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>
Lib
APKLIB
. jar
. . java-, jar, (, , ..), .. Android Library Project , APKLIB
.
, .
Test
, . apk
. . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>
..
-, , , . Maven . pom- AndroidManifest.xml
. maven-release-plugin
- (ant- ).
, , , - =)
version.properties
. ant-target POM- .
test-scopes . Android Testing Framework @SmallTest
@MediumTest
@LargeTest
, instrumentation- . .. integration-, , , TeamCity , . , development
@SmallTest
', production
. , , maven-android-plugin
scope , .. small
, medium
, large
, small medium. . testSize
obfuscating ProGuard
, , Android Maven'
Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'
UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".
//.
API .
<sdk> <platform>14</platform> </sdk>
, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>
: , . .. TeamCity "" , -no-window
.
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>
.
<undeployBeforeDeploy>true</undeployBeforeDeploy>
apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>
.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>
POM- App, Test Lib , .
App
. - APK
. maven-central, , , .
maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin
'a, - Maven Android SDK Deployer , .
. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>
apklib
- Android , . IntelliJ IDEA apklib IDEA- ~
.
, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .
, maven , , , . JetBrains .
.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>
.
Resource filtering
, ( application.properties
/assets
, XML- /res
java /src
), ${property.name}
, Maven' POM-. , , . , .
. android-maven-plugin
versionName
versionCode
, . , , , AndroidManifest.xml
. resource filtering. .
, Root , APKLIB
. Root App , .
/asstets
.
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>
, (. Resource filtering).
, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>
Lib
APKLIB
. jar
. . java-, jar, (, , ..), .. Android Library Project , APKLIB
.
, .
Test
, . apk
. . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>
..
-, , , . Maven . pom- AndroidManifest.xml
. maven-release-plugin
- (ant- ).
, , , - =)
version.properties
. ant-target POM- .
test-scopes . Android Testing Framework @SmallTest
@MediumTest
@LargeTest
, instrumentation- . .. integration-, , , TeamCity , . , development
@SmallTest
', production
. , , maven-android-plugin
scope , .. small
, medium
, large
, small medium. . testSize
obfuscating ProGuard
, , Android Maven'
Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'
UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".
//.
API .
<sdk> <platform>14</platform> </sdk>
, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>
: , . .. TeamCity "" , -no-window
.
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>
.
<undeployBeforeDeploy>true</undeployBeforeDeploy>
apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>
.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>
POM- App, Test Lib , .
App
. - APK
. maven-central, , , .
maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin
'a, - Maven Android SDK Deployer , .
. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>
apklib
- Android , . IntelliJ IDEA apklib IDEA- ~
.
, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .
, maven , , , . JetBrains .
.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>
.
Resource filtering
, ( application.properties
/assets
, XML- /res
java /src
), ${property.name}
, Maven' POM-. , , . , .
. android-maven-plugin
versionName
versionCode
, . , , , AndroidManifest.xml
. resource filtering. .
, Root , APKLIB
. Root App , .
/asstets
.
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>
, (. Resource filtering).
, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>
Lib
APKLIB
. jar
. . java-, jar, (, , ..), .. Android Library Project , APKLIB
.
, .
Test
, . apk
. . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>
..
-, , , . Maven . pom- AndroidManifest.xml
. maven-release-plugin
- (ant- ).
, , , - =)
version.properties
. ant-target POM- .
test-scopes . Android Testing Framework @SmallTest
@MediumTest
@LargeTest
, instrumentation- . .. integration-, , , TeamCity , . , development
@SmallTest
', production
. , , maven-android-plugin
scope , .. small
, medium
, large
, small medium. . testSize
obfuscating ProGuard
, , Android Maven'
Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'
UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".
//.
API .
<sdk> <platform>14</platform> </sdk>
, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>
: , . .. TeamCity "" , -no-window
.
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>
.
<undeployBeforeDeploy>true</undeployBeforeDeploy>
apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>
.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>
POM- App, Test Lib , .
App
. - APK
. maven-central, , , .
maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin
'a, - Maven Android SDK Deployer , .
. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>
apklib
- Android , . IntelliJ IDEA apklib IDEA- ~
.
, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .
, maven , , , . JetBrains .
.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>
.
Resource filtering
, ( application.properties
/assets
, XML- /res
java /src
), ${property.name}
, Maven' POM-. , , . , .
. android-maven-plugin
versionName
versionCode
, . , , , AndroidManifest.xml
. resource filtering. .
, Root , APKLIB
. Root App , .
/asstets
.
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>
, (. Resource filtering).
, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>
Lib
APKLIB
. jar
. . java-, jar, (, , ..), .. Android Library Project , APKLIB
.
, .
Test
, . apk
. . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>
..
-, , , . Maven . pom- AndroidManifest.xml
. maven-release-plugin
- (ant- ).
, , , - =)
version.properties
. ant-target POM- .
test-scopes . Android Testing Framework @SmallTest
@MediumTest
@LargeTest
, instrumentation- . .. integration-, , , TeamCity , . , development
@SmallTest
', production
. , , maven-android-plugin
scope , .. small
, medium
, large
, small medium. . testSize
obfuscating ProGuard
, , Android Maven'
Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'
UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".
//.
API .
<sdk> <platform>14</platform> </sdk>
, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>
: , . .. TeamCity "" , -no-window
.
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>
.
<undeployBeforeDeploy>true</undeployBeforeDeploy>
apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>
.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>
POM- App, Test Lib , .
App
. - APK
. maven-central, , , .
maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin
'a, - Maven Android SDK Deployer , .
. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>
apklib
- Android , . IntelliJ IDEA apklib IDEA- ~
.
, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .
, maven , , , . JetBrains .
.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>
.
Resource filtering
, ( application.properties
/assets
, XML- /res
java /src
), ${property.name}
, Maven' POM-. , , . , .
. android-maven-plugin
versionName
versionCode
, . , , , AndroidManifest.xml
. resource filtering. .
, Root , APKLIB
. Root App , .
/asstets
.
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>
, (. Resource filtering).
, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>
Lib
APKLIB
. jar
. . java-, jar, (, , ..), .. Android Library Project , APKLIB
.
, .
Test
, . apk
. . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>
..
-, , , . Maven . pom- AndroidManifest.xml
. maven-release-plugin
- (ant- ).
, , , - =)
version.properties
. ant-target POM- .
test-scopes . Android Testing Framework @SmallTest
@MediumTest
@LargeTest
, instrumentation- . .. integration-, , , TeamCity , . , development
@SmallTest
', production
. , , maven-android-plugin
scope , .. small
, medium
, large
, small medium. . testSize
obfuscating ProGuard
, , Android Maven'
Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'
UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".
//.
API .
<sdk> <platform>14</platform> </sdk>
, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>
: , . .. TeamCity "" , -no-window
.
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>
.
<undeployBeforeDeploy>true</undeployBeforeDeploy>
apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>
.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>
POM- App, Test Lib , .
App
. - APK
. maven-central, , , .
maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin
'a, - Maven Android SDK Deployer , .
. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>
apklib
- Android , . IntelliJ IDEA apklib IDEA- ~
.
, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .
, maven , , , . JetBrains .
.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>
.
Resource filtering
, ( application.properties
/assets
, XML- /res
java /src
), ${property.name}
, Maven' POM-. , , . , .
. android-maven-plugin
versionName
versionCode
, . , , , AndroidManifest.xml
. resource filtering. .
, Root , APKLIB
. Root App , .
/asstets
.
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>
, (. Resource filtering).
, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>
Lib
APKLIB
. jar
. . java-, jar, (, , ..), .. Android Library Project , APKLIB
.
, .
Test
, . apk
. . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>
..
-, , , . Maven . pom- AndroidManifest.xml
. maven-release-plugin
- (ant- ).
, , , - =)
version.properties
. ant-target POM- .
test-scopes . Android Testing Framework @SmallTest
@MediumTest
@LargeTest
, instrumentation- . .. integration-, , , TeamCity , . , development
@SmallTest
', production
. , , maven-android-plugin
scope , .. small
, medium
, large
, small medium. . testSize
obfuscating ProGuard
, , Android Maven'
Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'
UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".
//.
API .
<sdk> <platform>14</platform> </sdk>
, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>
: , . .. TeamCity "" , -no-window
.
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>
.
<undeployBeforeDeploy>true</undeployBeforeDeploy>
apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>
.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>
POM- App, Test Lib , .
App
. - APK
. maven-central, , , .
maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin
'a, - Maven Android SDK Deployer , .
. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>
apklib
- Android , . IntelliJ IDEA apklib IDEA- ~
.
, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .
, maven , , , . JetBrains .
.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>
.
Resource filtering
, ( application.properties
/assets
, XML- /res
java /src
), ${property.name}
, Maven' POM-. , , . , .
. android-maven-plugin
versionName
versionCode
, . , , , AndroidManifest.xml
. resource filtering. .
, Root , APKLIB
. Root App , .
/asstets
.
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>
, (. Resource filtering).
, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>
Lib
APKLIB
. jar
. . java-, jar, (, , ..), .. Android Library Project , APKLIB
.
, .
Test
, . apk
. . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>
..
-, , , . Maven . pom- AndroidManifest.xml
. maven-release-plugin
- (ant- ).
, , , - =)
version.properties
. ant-target POM- .
test-scopes . Android Testing Framework @SmallTest
@MediumTest
@LargeTest
, instrumentation- . .. integration-, , , TeamCity , . , development
@SmallTest
', production
. , , maven-android-plugin
scope , .. small
, medium
, large
, small medium. . testSize
obfuscating ProGuard
, , Android Maven'
Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'
UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".
//.
API .
<sdk> <platform>14</platform> </sdk>
, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>
: , . .. TeamCity "" , -no-window
.
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>
.
<undeployBeforeDeploy>true</undeployBeforeDeploy>
apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>
.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>
POM- App, Test Lib , .
App
. - APK
. maven-central, , , .
maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin
'a, - Maven Android SDK Deployer , .
. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>
apklib
- Android , . IntelliJ IDEA apklib IDEA- ~
.
, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .
, maven , , , . JetBrains .
.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>
.
Resource filtering
, ( application.properties
/assets
, XML- /res
java /src
), ${property.name}
, Maven' POM-. , , . , .
. android-maven-plugin
versionName
versionCode
, . , , , AndroidManifest.xml
. resource filtering. .
, Root , APKLIB
. Root App , .
/asstets
.
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>
, (. Resource filtering).
, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>
Lib
APKLIB
. jar
. . java-, jar, (, , ..), .. Android Library Project , APKLIB
.
, .
Test
, . apk
. . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>
..
-, , , . Maven . pom- AndroidManifest.xml
. maven-release-plugin
- (ant- ).
, , , - =)
version.properties
. ant-target POM- .
test-scopes . Android Testing Framework @SmallTest
@MediumTest
@LargeTest
, instrumentation- . .. integration-, , , TeamCity , . , development
@SmallTest
', production
. , , maven-android-plugin
scope , .. small
, medium
, large
, small medium. . testSize
obfuscating ProGuard
, , Android Maven'
Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'
UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".
//.
API .
<sdk> <platform>14</platform> </sdk>
, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>
: , . .. TeamCity "" , -no-window
.
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>
.
<undeployBeforeDeploy>true</undeployBeforeDeploy>
apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>
.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>
POM- App, Test Lib , .
App
. - APK
. maven-central, , , .
maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin
'a, - Maven Android SDK Deployer , .
. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>
apklib
- Android , . IntelliJ IDEA apklib IDEA- ~
.
, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .
, maven , , , . JetBrains .
.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>
.
Resource filtering
, ( application.properties
/assets
, XML- /res
java /src
), ${property.name}
, Maven' POM-. , , . , .
. android-maven-plugin
versionName
versionCode
, . , , , AndroidManifest.xml
. resource filtering. .
, Root , APKLIB
. Root App , .
/asstets
.
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>
, (. Resource filtering).
, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>
Lib
APKLIB
. jar
. . java-, jar, (, , ..), .. Android Library Project , APKLIB
.
, .
Test
, . apk
. . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>
..
-, , , . Maven . pom- AndroidManifest.xml
. maven-release-plugin
- (ant- ).
, , , - =)
version.properties
. ant-target POM- .
test-scopes . Android Testing Framework @SmallTest
@MediumTest
@LargeTest
, instrumentation- . .. integration-, , , TeamCity , . , development
@SmallTest
', production
. , , maven-android-plugin
scope , .. small
, medium
, large
, small medium. . testSize
obfuscating ProGuard
, , Android Maven'
Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'
UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".
//.
API .
<sdk> <platform>14</platform> </sdk>
, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>
: , . .. TeamCity "" , -no-window
.
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>
.
<undeployBeforeDeploy>true</undeployBeforeDeploy>
apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>
.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>
POM- App, Test Lib , .
App
. - APK
. maven-central, , , .
maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin
'a, - Maven Android SDK Deployer , .
. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>
apklib
- Android , . IntelliJ IDEA apklib IDEA- ~
.
, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .
, maven , , , . JetBrains .
.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>
.
Resource filtering
, ( application.properties
/assets
, XML- /res
java /src
), ${property.name}
, Maven' POM-. , , . , .
. android-maven-plugin
versionName
versionCode
, . , , , AndroidManifest.xml
. resource filtering. .
, Root , APKLIB
. Root App , .
/asstets
.
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>
, (. Resource filtering).
, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>
Lib
APKLIB
. jar
. . java-, jar, (, , ..), .. Android Library Project , APKLIB
.
, .
Test
, . apk
. . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>
..
-, , , . Maven . pom- AndroidManifest.xml
. maven-release-plugin
- (ant- ).
, , , - =)
version.properties
. ant-target POM- .
test-scopes . Android Testing Framework @SmallTest
@MediumTest
@LargeTest
, instrumentation- . .. integration-, , , TeamCity , . , development
@SmallTest
', production
. , , maven-android-plugin
scope , .. small
, medium
, large
, small medium. . testSize
obfuscating ProGuard
, , Android Maven'
Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'
UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".
//.
API .
<sdk> <platform>14</platform> </sdk>
, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>
: , . .. TeamCity "" , -no-window
.
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>
.
<undeployBeforeDeploy>true</undeployBeforeDeploy>
apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>
.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>
POM- App, Test Lib , .
App
. - APK
. maven-central, , , .
maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin
'a, - Maven Android SDK Deployer , .
. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>
apklib
- Android , . IntelliJ IDEA apklib IDEA- ~
.
, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .
, maven , , , . JetBrains .
.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>
.
Resource filtering
, ( application.properties
/assets
, XML- /res
java /src
), ${property.name}
, Maven' POM-. , , . , .
. android-maven-plugin
versionName
versionCode
, . , , , AndroidManifest.xml
. resource filtering. .
, Root , APKLIB
. Root App , .
/asstets
.
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>
, (. Resource filtering).
, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>
Lib
APKLIB
. jar
. . java-, jar, (, , ..), .. Android Library Project , APKLIB
.
, .
Test
, . apk
. . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>
..
-, , , . Maven . pom- AndroidManifest.xml
. maven-release-plugin
- (ant- ).
, , , - =)
version.properties
. ant-target POM- .
test-scopes . Android Testing Framework @SmallTest
@MediumTest
@LargeTest
, instrumentation- . .. integration-, , , TeamCity , . , development
@SmallTest
', production
. , , maven-android-plugin
scope , .. small
, medium
, large
, small medium. . testSize
obfuscating ProGuard
, , Android Maven'
Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'
UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".
//.
API .
<sdk> <platform>14</platform> </sdk>
, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>
: , . .. TeamCity "" , -no-window
.
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>
.
<undeployBeforeDeploy>true</undeployBeforeDeploy>
apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>
.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>
POM- App, Test Lib , .
App
. - APK
. maven-central, , , .
maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin
'a, - Maven Android SDK Deployer , .
. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>
apklib
- Android , . IntelliJ IDEA apklib IDEA- ~
.
, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .
, maven , , , . JetBrains .
.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>
.
Resource filtering
, ( application.properties
/assets
, XML- /res
java /src
), ${property.name}
, Maven' POM-. , , . , .
. android-maven-plugin
versionName
versionCode
, . , , , AndroidManifest.xml
. resource filtering. .
, Root , APKLIB
. Root App , .
/asstets
.
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>
, (. Resource filtering).
, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>
Lib
APKLIB
. jar
. . java-, jar, (, , ..), .. Android Library Project , APKLIB
.
, .
Test
, . apk
. . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>
..
-, , , . Maven . pom- AndroidManifest.xml
. maven-release-plugin
- (ant- ).
, , , - =)
version.properties
. ant-target POM- .
test-scopes . Android Testing Framework @SmallTest
@MediumTest
@LargeTest
, instrumentation- . .. integration-, , , TeamCity , . , development
@SmallTest
', production
. , , maven-android-plugin
scope , .. small
, medium
, large
, small medium. . testSize
obfuscating ProGuard
, , Android Maven'
Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'
UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".
//.
API .
<sdk> <platform>14</platform> </sdk>
, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>
: , . .. TeamCity "" , -no-window
.
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>
.
<undeployBeforeDeploy>true</undeployBeforeDeploy>
apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>
.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>
POM- App, Test Lib , .
App
. - APK
. maven-central, , , .
maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin
'a, - Maven Android SDK Deployer , .
. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>
apklib
- Android , . IntelliJ IDEA apklib IDEA- ~
.
, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .
, maven , , , . JetBrains .
.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>
.
Resource filtering
, ( application.properties
/assets
, XML- /res
java /src
), ${property.name}
, Maven' POM-. , , . , .
. android-maven-plugin
versionName
versionCode
, . , , , AndroidManifest.xml
. resource filtering. .
, Root , APKLIB
. Root App , .
/asstets
.
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>
, (. Resource filtering).
, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>
Lib
APKLIB
. jar
. . java-, jar, (, , ..), .. Android Library Project , APKLIB
.
, .
Test
, . apk
. . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>
..
-, , , . Maven . pom- AndroidManifest.xml
. maven-release-plugin
- (ant- ).
, , , - =)
version.properties
. ant-target POM- .
test-scopes . Android Testing Framework @SmallTest
@MediumTest
@LargeTest
, instrumentation- . .. integration-, , , TeamCity , . , development
@SmallTest
', production
. , , maven-android-plugin
scope , .. small
, medium
, large
, small medium. . testSize
obfuscating ProGuard
, , Android Maven'
Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'
UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".
//.
API .
<sdk> <platform>14</platform> </sdk>
, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>
: , . .. TeamCity "" , -no-window
.
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>
.
<undeployBeforeDeploy>true</undeployBeforeDeploy>
apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>
.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>
POM- App, Test Lib , .
App
. - APK
. maven-central, , , .
maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin
'a, - Maven Android SDK Deployer , .
. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>
apklib
- Android , . IntelliJ IDEA apklib IDEA- ~
.
, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .
, maven , , , . JetBrains .
.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>
.
Resource filtering
, ( application.properties
/assets
, XML- /res
java /src
), ${property.name}
, Maven' POM-. , , . , .
. android-maven-plugin
versionName
versionCode
, . , , , AndroidManifest.xml
. resource filtering. .
, Root , APKLIB
. Root App , .
/asstets
.
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>
, (. Resource filtering).
, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>
Lib
APKLIB
. jar
. . java-, jar, (, , ..), .. Android Library Project , APKLIB
.
, .
Test
, . apk
. . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>
..
-, , , . Maven . pom- AndroidManifest.xml
. maven-release-plugin
- (ant- ).
, , , - =)
version.properties
. ant-target POM- .
test-scopes . Android Testing Framework @SmallTest
@MediumTest
@LargeTest
, instrumentation- . .. integration-, , , TeamCity , . , development
@SmallTest
', production
. , , maven-android-plugin
scope , .. small
, medium
, large
, small medium. . testSize
obfuscating ProGuard
, , Android Maven'
Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'
UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".
//.
API .
<sdk> <platform>14</platform> </sdk>
, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>
: , . .. TeamCity "" , -no-window
.
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>
.
<undeployBeforeDeploy>true</undeployBeforeDeploy>
apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>
.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>
POM- App, Test Lib , .
App
. - APK
. maven-central, , , .
maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin
'a, - Maven Android SDK Deployer , .
. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>
apklib
- Android , . IntelliJ IDEA apklib IDEA- ~
.
, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .
, maven , , , . JetBrains .
.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>
.
Resource filtering
, ( application.properties
/assets
, XML- /res
java /src
), ${property.name}
, Maven' POM-. , , . , .
. android-maven-plugin
versionName
versionCode
, . , , , AndroidManifest.xml
. resource filtering. .
, Root , APKLIB
. Root App , .
/asstets
.
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>
, (. Resource filtering).
, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>
Lib
APKLIB
. jar
. . java-, jar, (, , ..), .. Android Library Project , APKLIB
.
, .
Test
, . apk
. . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>
..
-, , , . Maven . pom- AndroidManifest.xml
. maven-release-plugin
- (ant- ).
, , , - =)
version.properties
. ant-target POM- .
test-scopes . Android Testing Framework @SmallTest
@MediumTest
@LargeTest
, instrumentation- . .. integration-, , , TeamCity , . , development
@SmallTest
', production
. , , maven-android-plugin
scope , .. small
, medium
, large
, small medium. . testSize
obfuscating ProGuard
, , Android Maven'
Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'
UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".
//.
API .
<sdk> <platform>14</platform> </sdk>
, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>
: , . .. TeamCity "" , -no-window
.
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>
.
<undeployBeforeDeploy>true</undeployBeforeDeploy>
apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>
.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>
POM- App, Test Lib , .
App
. - APK
. maven-central, , , .
maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin
'a, - Maven Android SDK Deployer , .
. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>
apklib
- Android , . IntelliJ IDEA apklib IDEA- ~
.
, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .
, maven , , , . JetBrains .
.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>
.
Resource filtering
, ( application.properties
/assets
, XML- /res
java /src
), ${property.name}
, Maven' POM-. , , . , .
. android-maven-plugin
versionName
versionCode
, . , , , AndroidManifest.xml
. resource filtering. .
, Root , APKLIB
. Root App , .
/asstets
.
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>
, (. Resource filtering).
, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>
Lib
APKLIB
. jar
. . java-, jar, (, , ..), .. Android Library Project , APKLIB
.
, .
Test
, . apk
. . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>
..
-, , , . Maven . pom- AndroidManifest.xml
. maven-release-plugin
- (ant- ).
, , , - =)
version.properties
. ant-target POM- .
test-scopes . Android Testing Framework @SmallTest
@MediumTest
@LargeTest
, instrumentation- . .. integration-, , , TeamCity , . , development
@SmallTest
', production
. , , maven-android-plugin
scope , .. small
, medium
, large
, small medium. . testSize
obfuscating ProGuard
, , Android Maven'
Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'
UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".
//.
API .
<sdk> <platform>14</platform> </sdk>
, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>
: , . .. TeamCity "" , -no-window
.
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>
.
<undeployBeforeDeploy>true</undeployBeforeDeploy>
apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>
.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>
POM- App, Test Lib , .
App
. - APK
. maven-central, , , .
maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin
'a, - Maven Android SDK Deployer , .
. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>
apklib
- Android , . IntelliJ IDEA apklib IDEA- ~
.
, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .
, maven , , , . JetBrains .
.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>
.
Resource filtering
, ( application.properties
/assets
, XML- /res
java /src
), ${property.name}
, Maven' POM-. , , . , .
. android-maven-plugin
versionName
versionCode
, . , , , AndroidManifest.xml
. resource filtering. .
, Root , APKLIB
. Root App , .
/asstets
.
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>
, (. Resource filtering).
, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>
Lib
APKLIB
. jar
. . java-, jar, (, , ..), .. Android Library Project , APKLIB
.
, .
Test
, . apk
. . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>
..
-, , , . Maven . pom- AndroidManifest.xml
. maven-release-plugin
- (ant- ).
, , , - =)
version.properties
. ant-target POM- .
test-scopes . Android Testing Framework @SmallTest
@MediumTest
@LargeTest
, instrumentation- . .. integration-, , , TeamCity , . , development
@SmallTest
', production
. , , maven-android-plugin
scope , .. small
, medium
, large
, small medium. . testSize
obfuscating ProGuard
, , Android Maven'
Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'
UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".
//.
API .
<sdk> <platform>14</platform> </sdk>
, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>
: , . .. TeamCity "" , -no-window
.
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>
.
<undeployBeforeDeploy>true</undeployBeforeDeploy>
apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>
.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>
POM- App, Test Lib , .
App
. - APK
. maven-central, , , .
maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin
'a, - Maven Android SDK Deployer , .
. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>
apklib
- Android , . IntelliJ IDEA apklib IDEA- ~
.
, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .
, maven , , , . JetBrains .
.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>
.
Resource filtering
, ( application.properties
/assets
, XML- /res
java /src
), ${property.name}
, Maven' POM-. , , . , .
. android-maven-plugin
versionName
versionCode
, . , , , AndroidManifest.xml
. resource filtering. .
, Root , APKLIB
. Root App , .
/asstets
.
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>
, (. Resource filtering).
, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>
Lib
APKLIB
. jar
. . java-, jar, (, , ..), .. Android Library Project , APKLIB
.
, .
Test
, . apk
. . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>
..
-, , , . Maven . pom- AndroidManifest.xml
. maven-release-plugin
- (ant- ).
, , , - =)
version.properties
. ant-target POM- .
test-scopes . Android Testing Framework @SmallTest
@MediumTest
@LargeTest
, instrumentation- . .. integration-, , , TeamCity , . , development
@SmallTest
', production
. , , maven-android-plugin
scope , .. small
, medium
, large
, small medium. . testSize
obfuscating ProGuard
, , Android Maven'
Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'
UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".
//.
API .
<sdk> <platform>14</platform> </sdk>
, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>
: , . .. TeamCity "" , -no-window
.
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>
.
<undeployBeforeDeploy>true</undeployBeforeDeploy>
apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>
.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>
POM- App, Test Lib , .
App
. - APK
. maven-central, , , .
maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin
'a, - Maven Android SDK Deployer , .
. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>
apklib
- Android , . IntelliJ IDEA apklib IDEA- ~
.
, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .
, maven , , , . JetBrains .
.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>
.
Resource filtering
, ( application.properties
/assets
, XML- /res
java /src
), ${property.name}
, Maven' POM-. , , . , .
. android-maven-plugin
versionName
versionCode
, . , , , AndroidManifest.xml
. resource filtering. .
, Root , APKLIB
. Root App , .
/asstets
.
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>
, (. Resource filtering).
, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>
Lib
APKLIB
. jar
. . java-, jar, (, , ..), .. Android Library Project , APKLIB
.
, .
Test
, . apk
. . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>
..
-, , , . Maven . pom- AndroidManifest.xml
. maven-release-plugin
- (ant- ).
, , , - =)
version.properties
. ant-target POM- .
test-scopes . Android Testing Framework @SmallTest
@MediumTest
@LargeTest
, instrumentation- . .. integration-, , , TeamCity , . , development
@SmallTest
', production
. , , maven-android-plugin
scope , .. small
, medium
, large
, small medium. . testSize
obfuscating ProGuard
, , Android Maven'
Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'
UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".
//.
API .
<sdk> <platform>14</platform> </sdk>
, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>
: , . .. TeamCity "" , -no-window
.
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>
.
<undeployBeforeDeploy>true</undeployBeforeDeploy>
apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>
.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>
POM- App, Test Lib , .
App
. - APK
. maven-central, , , .
maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin
'a, - Maven Android SDK Deployer , .
. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>
apklib
- Android , . IntelliJ IDEA apklib IDEA- ~
.
, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .
, maven , , , . JetBrains .
.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>
.
Resource filtering
, ( application.properties
/assets
, XML- /res
java /src
), ${property.name}
, Maven' POM-. , , . , .
. android-maven-plugin
versionName
versionCode
, . , , , AndroidManifest.xml
. resource filtering. .
, Root , APKLIB
. Root App , .
/asstets
.
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>
, (. Resource filtering).
, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>
Lib
APKLIB
. jar
. . java-, jar, (, , ..), .. Android Library Project , APKLIB
.
, .
Test
, . apk
. . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>
..
-, , , . Maven . pom- AndroidManifest.xml
. maven-release-plugin
- (ant- ).
, , , - =)
version.properties
. ant-target POM- .
test-scopes . Android Testing Framework @SmallTest
@MediumTest
@LargeTest
, instrumentation- . .. integration-, , , TeamCity , . , development
@SmallTest
', production
. , , maven-android-plugin
scope , .. small
, medium
, large
, small medium. . testSize
obfuscating ProGuard
, , Android Maven'
Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'
UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".
//.
API .
<sdk> <platform>14</platform> </sdk>
, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>
: , . .. TeamCity "" , -no-window
.
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>
.
<undeployBeforeDeploy>true</undeployBeforeDeploy>
apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>
.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>
POM- App, Test Lib , .
App
. - APK
. maven-central, , , .
maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin
'a, - Maven Android SDK Deployer , .
. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>
apklib
- Android , . IntelliJ IDEA apklib IDEA- ~
.
, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .
, maven , , , . JetBrains .
.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>
.
Resource filtering
, ( application.properties
/assets
, XML- /res
java /src
), ${property.name}
, Maven' POM-. , , . , .
. android-maven-plugin
versionName
versionCode
, . , , , AndroidManifest.xml
. resource filtering. .
, Root , APKLIB
. Root App , .
/asstets
.
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>
, (. Resource filtering).
, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>
Lib
APKLIB
. jar
. . java-, jar, (, , ..), .. Android Library Project , APKLIB
.
, .
Test
, . apk
. . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>
..
-, , , . Maven . pom- AndroidManifest.xml
. maven-release-plugin
- (ant- ).
, , , - =)
version.properties
. ant-target POM- .
test-scopes . Android Testing Framework @SmallTest
@MediumTest
@LargeTest
, instrumentation- . .. integration-, , , TeamCity , . , development
@SmallTest
', production
. , , maven-android-plugin
scope , .. small
, medium
, large
, small medium. . testSize
obfuscating ProGuard
, , Android Maven'
Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'
UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".
//.
API .
<sdk> <platform>14</platform> </sdk>
, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>
: , . .. TeamCity "" , -no-window
.
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>
.
<undeployBeforeDeploy>true</undeployBeforeDeploy>
apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>
.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>
POM- App, Test Lib , .
App
. - APK
. maven-central, , , .
maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin
'a, - Maven Android SDK Deployer , .
. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>
apklib
- Android , . IntelliJ IDEA apklib IDEA- ~
.
, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .
, maven , , , . JetBrains .
.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>
.
Resource filtering
, ( application.properties
/assets
, XML- /res
java /src
), ${property.name}
, Maven' POM-. , , . , .
. android-maven-plugin
versionName
versionCode
, . , , , AndroidManifest.xml
. resource filtering. .
, Root , APKLIB
. Root App , .
/asstets
.
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>
, (. Resource filtering).
, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>
Lib
APKLIB
. jar
. . java-, jar, (, , ..), .. Android Library Project , APKLIB
.
, .
Test
, . apk
. . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>
..
-, , , . Maven . pom- AndroidManifest.xml
. maven-release-plugin
- (ant- ).
, , , - =)
version.properties
. ant-target POM- .
test-scopes . Android Testing Framework @SmallTest
@MediumTest
@LargeTest
, instrumentation- . .. integration-, , , TeamCity , . , development
@SmallTest
', production
. , , maven-android-plugin
scope , .. small
, medium
, large
, small medium. . testSize
obfuscating ProGuard
, , Android Maven'
Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'
UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".
//.
API .
<sdk> <platform>14</platform> </sdk>
, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>
: , . .. TeamCity "" , -no-window
.
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>
.
<undeployBeforeDeploy>true</undeployBeforeDeploy>
apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>
.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>
POM- App, Test Lib , .
App
. - APK
. maven-central, , , .
maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin
'a, - Maven Android SDK Deployer , .
. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>
apklib
- Android , . IntelliJ IDEA apklib IDEA- ~
.
, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .
, maven , , , . JetBrains .
.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>
.
Resource filtering
, ( application.properties
/assets
, XML- /res
java /src
), ${property.name}
, Maven' POM-. , , . , .
. android-maven-plugin
versionName
versionCode
, . , , , AndroidManifest.xml
. resource filtering. .
, Root , APKLIB
. Root App , .
/asstets
.
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>
, (. Resource filtering).
, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>
Lib
APKLIB
. jar
. . java-, jar, (, , ..), .. Android Library Project , APKLIB
.
, .
Test
, . apk
. . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>
..
-, , , . Maven . pom- AndroidManifest.xml
. maven-release-plugin
- (ant- ).
, , , - =)
version.properties
. ant-target POM- .
test-scopes . Android Testing Framework @SmallTest
@MediumTest
@LargeTest
, instrumentation- . .. integration-, , , TeamCity , . , development
@SmallTest
', production
. , , maven-android-plugin
scope , .. small
, medium
, large
, small medium. . testSize
obfuscating ProGuard
, , Android Maven'
Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'
UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".
//.
API .
<sdk> <platform>14</platform> </sdk>
, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>
: , . .. TeamCity "" , -no-window
.
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>
.
<undeployBeforeDeploy>true</undeployBeforeDeploy>
apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>
.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>
POM- App, Test Lib , .
App
. - APK
. maven-central, , , .
maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin
'a, - Maven Android SDK Deployer , .
. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>
apklib
- Android , . IntelliJ IDEA apklib IDEA- ~
.
, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .
, maven , , , . JetBrains .
.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>
.
Resource filtering
, ( application.properties
/assets
, XML- /res
java /src
), ${property.name}
, Maven' POM-. , , . , .
. android-maven-plugin
versionName
versionCode
, . , , , AndroidManifest.xml
. resource filtering. .
, Root , APKLIB
. Root App , .
/asstets
.
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>
, (. Resource filtering).
, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>
Lib
APKLIB
. jar
. . java-, jar, (, , ..), .. Android Library Project , APKLIB
.
, .
Test
, . apk
. . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>
..
-, , , . Maven . pom- AndroidManifest.xml
. maven-release-plugin
- (ant- ).
, , , - =)
version.properties
. ant-target POM- .
test-scopes . Android Testing Framework @SmallTest
@MediumTest
@LargeTest
, instrumentation- . .. integration-, , , TeamCity , . , development
@SmallTest
', production
. , , maven-android-plugin
scope , .. small
, medium
, large
, small medium. . testSize
obfuscating ProGuard
, , Android Maven'
Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'
UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".
//.
API .
<sdk> <platform>14</platform> </sdk>
, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>
: , . .. TeamCity "" , -no-window
.
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>
.
<undeployBeforeDeploy>true</undeployBeforeDeploy>
apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>
.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>
POM- App, Test Lib , .
App
. - APK
. maven-central, , , .
maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin
'a, - Maven Android SDK Deployer , .
. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>
apklib
- Android , . IntelliJ IDEA apklib IDEA- ~
.
, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .
, maven , , , . JetBrains .
.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>
.
Resource filtering
, ( application.properties
/assets
, XML- /res
java /src
), ${property.name}
, Maven' POM-. , , . , .
. android-maven-plugin
versionName
versionCode
, . , , , AndroidManifest.xml
. resource filtering. .
, Root , APKLIB
. Root App , .
/asstets
.
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>
, (. Resource filtering).
, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>
Lib
APKLIB
. jar
. . java-, jar, (, , ..), .. Android Library Project , APKLIB
.
, .
Test
, . apk
. . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>
..
-, , , . Maven . pom- AndroidManifest.xml
. maven-release-plugin
- (ant- ).
, , , - =)
version.properties
. ant-target POM- .
test-scopes . Android Testing Framework @SmallTest
@MediumTest
@LargeTest
, instrumentation- . .. integration-, , , TeamCity , . , development
@SmallTest
', production
. , , maven-android-plugin
scope , .. small
, medium
, large
, small medium. . testSize
obfuscating ProGuard
, , Android Maven'
Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'
UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".
//.
API .
<sdk> <platform>14</platform> </sdk>
, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>
: , . .. TeamCity "" , -no-window
.
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>
.
<undeployBeforeDeploy>true</undeployBeforeDeploy>
apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>
.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>
POM- App, Test Lib , .
App
. - APK
. maven-central, , , .
maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin
'a, - Maven Android SDK Deployer , .
. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>
apklib
- Android , . IntelliJ IDEA apklib IDEA- ~
.
, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .
, maven , , , . JetBrains .
.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>
.
Resource filtering
, ( application.properties
/assets
, XML- /res
java /src
), ${property.name}
, Maven' POM-. , , . , .
. android-maven-plugin
versionName
versionCode
, . , , , AndroidManifest.xml
. resource filtering. .
, Root , APKLIB
. Root App , .
/asstets
.
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>
, (. Resource filtering).
, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>
Lib
APKLIB
. jar
. . java-, jar, (, , ..), .. Android Library Project , APKLIB
.
, .
Test
, . apk
. . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>
..
-, , , . Maven . pom- AndroidManifest.xml
. maven-release-plugin
- (ant- ).
, , , - =)
version.properties
. ant-target POM- .
test-scopes . Android Testing Framework @SmallTest
@MediumTest
@LargeTest
, instrumentation- . .. integration-, , , TeamCity , . , development
@SmallTest
', production
. , , maven-android-plugin
scope , .. small
, medium
, large
, small medium. . testSize
obfuscating ProGuard
, , Android Maven'
Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'
UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".
//.
API .
<sdk> <platform>14</platform> </sdk>
, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>
: , . .. TeamCity "" , -no-window
.
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>
.
<undeployBeforeDeploy>true</undeployBeforeDeploy>
apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>
.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>
POM- App, Test Lib , .
App
. - APK
. maven-central, , , .
maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin
'a, - Maven Android SDK Deployer , .
. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>
apklib
- Android , . IntelliJ IDEA apklib IDEA- ~
.
, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .
, maven , , , . JetBrains .
.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>
.
Resource filtering
, ( application.properties
/assets
, XML- /res
java /src
), ${property.name}
, Maven' POM-. , , . , .
. android-maven-plugin
versionName
versionCode
, . , , , AndroidManifest.xml
. resource filtering. .
, Root , APKLIB
. Root App , .
/asstets
.
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>
, (. Resource filtering).
, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>
Lib
APKLIB
. jar
. . java-, jar, (, , ..), .. Android Library Project , APKLIB
.
, .
Test
, . apk
. . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>
..
-, , , . Maven . pom- AndroidManifest.xml
. maven-release-plugin
- (ant- ).
, , , - =)
version.properties
. ant-target POM- .
test-scopes . Android Testing Framework @SmallTest
@MediumTest
@LargeTest
, instrumentation- . .. integration-, , , TeamCity , . , development
@SmallTest
', production
. , , maven-android-plugin
scope , .. small
, medium
, large
, small medium. . testSize
obfuscating ProGuard
, , Android Maven'
Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'
UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".
//.
API .
<sdk> <platform>14</platform> </sdk>
, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>
: , . .. TeamCity "" , -no-window
.
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>
.
<undeployBeforeDeploy>true</undeployBeforeDeploy>
apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>
.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>
POM- App, Test Lib , .
App
. - APK
. maven-central, , , .
maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin
'a, - Maven Android SDK Deployer , .
. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>
apklib
- Android , . IntelliJ IDEA apklib IDEA- ~
.
, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .
, maven , , , . JetBrains .
.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>
.
Resource filtering
, ( application.properties
/assets
, XML- /res
java /src
), ${property.name}
, Maven' POM-. , , . , .
. android-maven-plugin
versionName
versionCode
, . , , , AndroidManifest.xml
. resource filtering. .
, Root , APKLIB
. Root App , .
/asstets
.
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>
, (. Resource filtering).
, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>
Lib
APKLIB
. jar
. . java-, jar, (, , ..), .. Android Library Project , APKLIB
.
, .
Test
, . apk
. . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>
..
-, , , . Maven . pom- AndroidManifest.xml
. maven-release-plugin
- (ant- ).
, , , - =)
version.properties
. ant-target POM- .
test-scopes . Android Testing Framework @SmallTest
@MediumTest
@LargeTest
, instrumentation- . .. integration-, , , TeamCity , . , development
@SmallTest
', production
. , , maven-android-plugin
scope , .. small
, medium
, large
, small medium. . testSize
obfuscating ProGuard
, , Android Maven'
Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'
UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".
//.
API .
<sdk> <platform>14</platform> </sdk>
, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>
: , . .. TeamCity "" , -no-window
.
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>
.
<undeployBeforeDeploy>true</undeployBeforeDeploy>
apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>
.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>
POM- App, Test Lib , .
App
. - APK
. maven-central, , , .
maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin
'a, - Maven Android SDK Deployer , .
. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>
apklib
- Android , . IntelliJ IDEA apklib IDEA- ~
.
, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .
, maven , , , . JetBrains .
.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>
.
Resource filtering
, ( application.properties
/assets
, XML- /res
java /src
), ${property.name}
, Maven' POM-. , , . , .
. android-maven-plugin
versionName
versionCode
, . , , , AndroidManifest.xml
. resource filtering. .
, Root , APKLIB
. Root App , .
/asstets
.
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>
, (. Resource filtering).
, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>
Lib
APKLIB
. jar
. . java-, jar, (, , ..), .. Android Library Project , APKLIB
.
, .
Test
, . apk
. . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>
..
-, , , . Maven . pom- AndroidManifest.xml
. maven-release-plugin
- (ant- ).
, , , - =)
version.properties
. ant-target POM- .
test-scopes . Android Testing Framework @SmallTest
@MediumTest
@LargeTest
, instrumentation- . .. integration-, , , TeamCity , . , development
@SmallTest
', production
. , , maven-android-plugin
scope , .. small
, medium
, large
, small medium. . testSize
obfuscating ProGuard
, , Android Maven'
Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'
UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".
//.
API .
<sdk> <platform>14</platform> </sdk>
, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>
: , . .. TeamCity "" , -no-window
.
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>
.
<undeployBeforeDeploy>true</undeployBeforeDeploy>
apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>
.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>
POM- App, Test Lib , .
App
. - APK
. maven-central, , , .
maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin
'a, - Maven Android SDK Deployer , .
. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>
apklib
- Android , . IntelliJ IDEA apklib IDEA- ~
.
, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .
, maven , , , . JetBrains .
.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>
.
Resource filtering
, ( application.properties
/assets
, XML- /res
java /src
), ${property.name}
, Maven' POM-. , , . , .
. android-maven-plugin
versionName
versionCode
, . , , , AndroidManifest.xml
. resource filtering. .
, Root , APKLIB
. Root App , .
/asstets
.
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>
, (. Resource filtering).
, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>
Lib
APKLIB
. jar
. . java-, jar, (, , ..), .. Android Library Project , APKLIB
.
, .
Test
, . apk
. . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>
..
-, , , . Maven . pom- AndroidManifest.xml
. maven-release-plugin
- (ant- ).
, , , - =)
version.properties
. ant-target POM- .
test-scopes . Android Testing Framework @SmallTest
@MediumTest
@LargeTest
, instrumentation- . .. integration-, , , TeamCity , . , development
@SmallTest
', production
. , , maven-android-plugin
scope , .. small
, medium
, large
, small medium. . testSize
obfuscating ProGuard
, , Android Maven'
Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'
UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".
//.
API .
<sdk> <platform>14</platform> </sdk>
, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>
: , . .. TeamCity "" , -no-window
.
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>
.
<undeployBeforeDeploy>true</undeployBeforeDeploy>
apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>
.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>
POM- App, Test Lib , .
App
. - APK
. maven-central, , , .
maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin
'a, - Maven Android SDK Deployer , .
. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>
apklib
- Android , . IntelliJ IDEA apklib IDEA- ~
.
, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .
, maven , , , . JetBrains .
.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>
.
Resource filtering
, ( application.properties
/assets
, XML- /res
java /src
), ${property.name}
, Maven' POM-. , , . , .
. android-maven-plugin
versionName
versionCode
, . , , , AndroidManifest.xml
. resource filtering. .
, Root , APKLIB
. Root App , .
/asstets
.
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>
, (. Resource filtering).
, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>
Lib
APKLIB
. jar
. . java-, jar, (, , ..), .. Android Library Project , APKLIB
.
, .
Test
, . apk
. . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>
..
-, , , . Maven . pom- AndroidManifest.xml
. maven-release-plugin
- (ant- ).
, , , - =)
version.properties
. ant-target POM- .
test-scopes . Android Testing Framework @SmallTest
@MediumTest
@LargeTest
, instrumentation- . .. integration-, , , TeamCity , . , development
@SmallTest
', production
. , , maven-android-plugin
scope , .. small
, medium
, large
, small medium. . testSize
obfuscating ProGuard
, , Android Maven'
Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'
UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".
//.
API .
<sdk> <platform>14</platform> </sdk>
, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>
: , . .. TeamCity "" , -no-window
.
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>
.
<undeployBeforeDeploy>true</undeployBeforeDeploy>
apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>
.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>
POM- App, Test Lib , .
App
. - APK
. maven-central, , , .
maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin
'a, - Maven Android SDK Deployer , .
. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>
apklib
- Android , . IntelliJ IDEA apklib IDEA- ~
.
, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .
, maven , , , . JetBrains .
.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>
.
Resource filtering
, ( application.properties
/assets
, XML- /res
java /src
), ${property.name}
, Maven' POM-. , , . , .
. android-maven-plugin
versionName
versionCode
, . , , , AndroidManifest.xml
. resource filtering. .
, Root , APKLIB
. Root App , .
/asstets
.
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>
, (. Resource filtering).
, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>
Lib
APKLIB
. jar
. . java-, jar, (, , ..), .. Android Library Project , APKLIB
.
, .
Test
, . apk
. . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>
..
-, , , . Maven . pom- AndroidManifest.xml
. maven-release-plugin
- (ant- ).
, , , - =)
version.properties
. ant-target POM- .
test-scopes . Android Testing Framework @SmallTest
@MediumTest
@LargeTest
, instrumentation- . .. integration-, , , TeamCity , . , development
@SmallTest
', production
. , , maven-android-plugin
scope , .. small
, medium
, large
, small medium. . testSize
obfuscating ProGuard
, , Android Maven'
Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'
UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".
//.
API .
<sdk> <platform>14</platform> </sdk>
, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>
: , . .. TeamCity "" , -no-window
.
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>
.
<undeployBeforeDeploy>true</undeployBeforeDeploy>
apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>
.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>
POM- App, Test Lib , .
App
. - APK
. maven-central, , , .
maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin
'a, - Maven Android SDK Deployer , .
. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>
apklib
- Android , . IntelliJ IDEA apklib IDEA- ~
.
, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .
, maven , , , . JetBrains .
.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>
.
Resource filtering
, ( application.properties
/assets
, XML- /res
java /src
), ${property.name}
, Maven' POM-. , , . , .
. android-maven-plugin
versionName
versionCode
, . , , , AndroidManifest.xml
. resource filtering. .
, Root , APKLIB
. Root App , .
/asstets
.
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>
, (. Resource filtering).
, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>
Lib
APKLIB
. jar
. . java-, jar, (, , ..), .. Android Library Project , APKLIB
.
, .
Test
, . apk
. . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>
..
-, , , . Maven . pom- AndroidManifest.xml
. maven-release-plugin
- (ant- ).
, , , - =)
version.properties
. ant-target POM- .
test-scopes . Android Testing Framework @SmallTest
@MediumTest
@LargeTest
, instrumentation- . .. integration-, , , TeamCity , . , development
@SmallTest
', production
. , , maven-android-plugin
scope , .. small
, medium
, large
, small medium. . testSize
obfuscating ProGuard
, , Android Maven'
Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'
UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".
//.
API .
<sdk> <platform>14</platform> </sdk>
, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>
: , . .. TeamCity "" , -no-window
.
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>
.
<undeployBeforeDeploy>true</undeployBeforeDeploy>
apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>
.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>
POM- App, Test Lib , .
App
. - APK
. maven-central, , , .
maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin
'a, - Maven Android SDK Deployer , .
. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>
apklib
- Android , . IntelliJ IDEA apklib IDEA- ~
.
, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .
, maven , , , . JetBrains .
.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>
.
Resource filtering
, ( application.properties
/assets
, XML- /res
java /src
), ${property.name}
, Maven' POM-. , , . , .
. android-maven-plugin
versionName
versionCode
, . , , , AndroidManifest.xml
. resource filtering. .
, Root , APKLIB
. Root App , .
/asstets
.
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>
, (. Resource filtering).
, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>
Lib
APKLIB
. jar
. . java-, jar, (, , ..), .. Android Library Project , APKLIB
.
, .
Test
, . apk
. . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>
..
-, , , . Maven . pom- AndroidManifest.xml
. maven-release-plugin
- (ant- ).
, , , - =)
version.properties
. ant-target POM- .
test-scopes . Android Testing Framework @SmallTest
@MediumTest
@LargeTest
, instrumentation- . .. integration-, , , TeamCity , . , development
@SmallTest
', production
. , , maven-android-plugin
scope , .. small
, medium
, large
, small medium. . testSize
obfuscating ProGuard
, , Android Maven'
Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'
UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".
//.
API .
<sdk> <platform>14</platform> </sdk>
, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>
: , . .. TeamCity "" , -no-window
.
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>
.
<undeployBeforeDeploy>true</undeployBeforeDeploy>
apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>
.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>
POM- App, Test Lib , .
App
. - APK
. maven-central, , , .
maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin
'a, - Maven Android SDK Deployer , .
. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>
apklib
- Android , . IntelliJ IDEA apklib IDEA- ~
.
, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .
, maven , , , . JetBrains .
.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>
.
Resource filtering
, ( application.properties
/assets
, XML- /res
java /src
), ${property.name}
, Maven' POM-. , , . , .
. android-maven-plugin
versionName
versionCode
, . , , , AndroidManifest.xml
. resource filtering. .
, Root , APKLIB
. Root App , .
/asstets
.
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>
, (. Resource filtering).
, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>
Lib
APKLIB
. jar
. . java-, jar, (, , ..), .. Android Library Project , APKLIB
.
, .
Test
, . apk
. . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>
..
-, , , . Maven . pom- AndroidManifest.xml
. maven-release-plugin
- (ant- ).
, , , - =)
version.properties
. ant-target POM- .
test-scopes . Android Testing Framework @SmallTest
@MediumTest
@LargeTest
, instrumentation- . .. integration-, , , TeamCity , . , development
@SmallTest
', production
. , , maven-android-plugin
scope , .. small
, medium
, large
, small medium. . testSize
obfuscating ProGuard
, , Android Maven'
Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'
UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".
-
//.
API .
<sdk> <platform>14</platform> </sdk>
, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>
: , . .. TeamCity "" ,-no-window
.
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>
.
<undeployBeforeDeploy>true</undeployBeforeDeploy>
apk- ,-signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>
.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>
POM- App, Test Lib , .
App
. -APK
. maven-central, , , .
maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser,maven-android-plugin
'a, - Maven Android SDK Deployer , .
. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>
apklib
- Android , . IntelliJ IDEA apklib IDEA-~
.
, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .
, maven , , , . JetBrains .
.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>
.
Resource filtering
, (application.properties
/assets
, XML-/res
java/src
),${property.name}
, Maven' POM-. , , . , .
.android-maven-plugin
versionName
versionCode
, . , , ,AndroidManifest.xml
. resource filtering. .
, Root ,APKLIB
. Root App , .
/asstets
.
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>
, (. Resource filtering).
, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>
Lib
APKLIB
.jar
. . java-, jar, (, , ..), .. Android Library Project ,APKLIB
.
, .
Test
, .apk
. . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>
..
-, , , . Maven . pom-AndroidManifest.xml
.maven-release-plugin
- (ant- ).
, , , - =)
version.properties
. ant-target POM- .
test-scopes . Android Testing Framework@SmallTest
@MediumTest
@LargeTest
, instrumentation- . .. integration-, , , TeamCity , . ,development
@SmallTest
',production
. , ,maven-android-plugin
scope , ..small
,medium
,large
, small medium. . testSize
obfuscating ProGuard
, , Android Maven'
Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'
UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".
-
//.
API .
<sdk> <platform>14</platform> </sdk>
, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>
: , . .. TeamCity "" ,-no-window
.
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>
.
<undeployBeforeDeploy>true</undeployBeforeDeploy>
apk- ,-signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>
.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>
POM- App, Test Lib , .
App
. -APK
. maven-central, , , .
maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser,maven-android-plugin
'a, - Maven Android SDK Deployer , .
. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>
apklib
- Android , . IntelliJ IDEA apklib IDEA-~
.
, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .
, maven , , , . JetBrains .
.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>
.
Resource filtering
, (application.properties
/assets
, XML-/res
java/src
),${property.name}
, Maven' POM-. , , . , .
.android-maven-plugin
versionName
versionCode
, . , , ,AndroidManifest.xml
. resource filtering. .
, Root ,APKLIB
. Root App , .
/asstets
.
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>
, (. Resource filtering).
, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>
Lib
APKLIB
.jar
. . java-, jar, (, , ..), .. Android Library Project ,APKLIB
.
, .
Test
, .apk
. . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>
..
-, , , . Maven . pom-AndroidManifest.xml
.maven-release-plugin
- (ant- ).
, , , - =)
version.properties
. ant-target POM- .
test-scopes . Android Testing Framework@SmallTest
@MediumTest
@LargeTest
, instrumentation- . .. integration-, , , TeamCity , . ,development
@SmallTest
',production
. , ,maven-android-plugin
scope , ..small
,medium
,large
, small medium. . testSize
obfuscating ProGuard
, , Android Maven'
Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'
UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".
-
//.
API .
<sdk> <platform>14</platform> </sdk>
, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>
: , . .. TeamCity "" ,-no-window
.
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>
.
<undeployBeforeDeploy>true</undeployBeforeDeploy>
apk- ,-signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>
.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>
POM- App, Test Lib , .
App
. -APK
. maven-central, , , .
maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser,maven-android-plugin
'a, - Maven Android SDK Deployer , .
. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>
apklib
- Android , . IntelliJ IDEA apklib IDEA-~
.
, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .
, maven , , , . JetBrains .
.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>
.
Resource filtering
, (application.properties
/assets
, XML-/res
java/src
),${property.name}
, Maven' POM-. , , . , .
.android-maven-plugin
versionName
versionCode
, . , , ,AndroidManifest.xml
. resource filtering. .
, Root ,APKLIB
. Root App , .
/asstets
.
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>
, (. Resource filtering).
, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>
Lib
APKLIB
.jar
. . java-, jar, (, , ..), .. Android Library Project ,APKLIB
.
, .
Test
, .apk
. . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>
..
-, , , . Maven . pom-AndroidManifest.xml
.maven-release-plugin
- (ant- ).
, , , - =)
version.properties
. ant-target POM- .
test-scopes . Android Testing Framework@SmallTest
@MediumTest
@LargeTest
, instrumentation- . .. integration-, , , TeamCity , . ,development
@SmallTest
',production
. , ,maven-android-plugin
scope , ..small
,medium
,large
, small medium. . testSize
obfuscating ProGuard
, , Android Maven'
Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'
UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".
-
//.
API .
<sdk> <platform>14</platform> </sdk>
, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>
: , . .. TeamCity "" ,-no-window
.
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>
.
<undeployBeforeDeploy>true</undeployBeforeDeploy>
apk- ,-signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>
.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>
POM- App, Test Lib , .
App
. -APK
. maven-central, , , .
maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser,maven-android-plugin
'a, - Maven Android SDK Deployer , .
. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>
apklib
- Android , . IntelliJ IDEA apklib IDEA-~
.
, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .
, maven , , , . JetBrains .
.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>
.
Resource filtering
, (application.properties
/assets
, XML-/res
java/src
),${property.name}
, Maven' POM-. , , . , .
.android-maven-plugin
versionName
versionCode
, . , , ,AndroidManifest.xml
. resource filtering. .
, Root ,APKLIB
. Root App , .
/asstets
.
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>
, (. Resource filtering).
, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>
Lib
APKLIB
.jar
. . java-, jar, (, , ..), .. Android Library Project ,APKLIB
.
, .
Test
, .apk
. . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>
..
-, , , . Maven . pom-AndroidManifest.xml
.maven-release-plugin
- (ant- ).
, , , - =)
version.properties
. ant-target POM- .
test-scopes . Android Testing Framework@SmallTest
@MediumTest
@LargeTest
, instrumentation- . .. integration-, , , TeamCity , . ,development
@SmallTest
',production
. , ,maven-android-plugin
scope , ..small
,medium
,large
, small medium. . testSize
obfuscating ProGuard
, , Android Maven'
Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'
UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".
-
//.
API .
<sdk> <platform>14</platform> </sdk>
, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>
: , . .. TeamCity "" ,-no-window
.
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>
.
<undeployBeforeDeploy>true</undeployBeforeDeploy>
apk- ,-signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>
.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>
POM- App, Test Lib , .
App
. -APK
. maven-central, , , .
maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser,maven-android-plugin
'a, - Maven Android SDK Deployer , .
. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>
apklib
- Android , . IntelliJ IDEA apklib IDEA-~
.
, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .
, maven , , , . JetBrains .
.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>
.
Resource filtering
, (application.properties
/assets
, XML-/res
java/src
),${property.name}
, Maven' POM-. , , . , .
.android-maven-plugin
versionName
versionCode
, . , , ,AndroidManifest.xml
. resource filtering. .
, Root ,APKLIB
. Root App , .
/asstets
.
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>
, (. Resource filtering).
, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>
Lib
APKLIB
.jar
. . java-, jar, (, , ..), .. Android Library Project ,APKLIB
.
, .
Test
, .apk
. . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>
..
-, , , . Maven . pom-AndroidManifest.xml
.maven-release-plugin
- (ant- ).
, , , - =)
version.properties
. ant-target POM- .
test-scopes . Android Testing Framework@SmallTest
@MediumTest
@LargeTest
, instrumentation- . .. integration-, , , TeamCity , . ,development
@SmallTest
',production
. , ,maven-android-plugin
scope , ..small
,medium
,large
, small medium. . testSize
obfuscating ProGuard
, , Android Maven'
Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'
UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".
-
//.
API .
<sdk> <platform>14</platform> </sdk>
, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>
: , . .. TeamCity "" ,-no-window
.
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>
.
<undeployBeforeDeploy>true</undeployBeforeDeploy>
apk- ,-signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>
.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>
POM- App, Test Lib , .
App
. -APK
. maven-central, , , .
maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser,maven-android-plugin
'a, - Maven Android SDK Deployer , .
. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>
apklib
- Android , . IntelliJ IDEA apklib IDEA-~
.
, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .
, maven , , , . JetBrains .
.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>
.
Resource filtering
, (application.properties
/assets
, XML-/res
java/src
),${property.name}
, Maven' POM-. , , . , .
.android-maven-plugin
versionName
versionCode
, . , , ,AndroidManifest.xml
. resource filtering. .
, Root ,APKLIB
. Root App , .
/asstets
.
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>
, (. Resource filtering).
, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>
Lib
APKLIB
.jar
. . java-, jar, (, , ..), .. Android Library Project ,APKLIB
.
, .
Test
, .apk
. . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>
..
-, , , . Maven . pom-AndroidManifest.xml
.maven-release-plugin
- (ant- ).
, , , - =)
version.properties
. ant-target POM- .
test-scopes . Android Testing Framework@SmallTest
@MediumTest
@LargeTest
, instrumentation- . .. integration-, , , TeamCity , . ,development
@SmallTest
',production
. , ,maven-android-plugin
scope , ..small
,medium
,large
, small medium. . testSize
obfuscating ProGuard
, , Android Maven'
Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'
UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".
-
//.
API .
<sdk> <platform>14</platform> </sdk>
, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>
: , . .. TeamCity "" ,-no-window
.
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>
.
<undeployBeforeDeploy>true</undeployBeforeDeploy>
apk- ,-signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>
.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>
POM- App, Test Lib , .
App
. -APK
. maven-central, , , .
maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser,maven-android-plugin
'a, - Maven Android SDK Deployer , .
. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>
apklib
- Android , . IntelliJ IDEA apklib IDEA-~
.
, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .
, maven , , , . JetBrains .
.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>
.
Resource filtering
, (application.properties
/assets
, XML-/res
java/src
),${property.name}
, Maven' POM-. , , . , .
.android-maven-plugin
versionName
versionCode
, . , , ,AndroidManifest.xml
. resource filtering. .
, Root ,APKLIB
. Root App , .
/asstets
.
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>
, (. Resource filtering).
, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>
Lib
APKLIB
.jar
. . java-, jar, (, , ..), .. Android Library Project ,APKLIB
.
, .
Test
, .apk
. . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>
..
-, , , . Maven . pom-AndroidManifest.xml
.maven-release-plugin
- (ant- ).
, , , - =)
version.properties
. ant-target POM- .
test-scopes . Android Testing Framework@SmallTest
@MediumTest
@LargeTest
, instrumentation- . .. integration-, , , TeamCity , . ,development
@SmallTest
',production
. , ,maven-android-plugin
scope , ..small
,medium
,large
, small medium. . testSize
obfuscating ProGuard
, , Android Maven'
Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'
UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".
//.
API .
<sdk> <platform>14</platform> </sdk>
, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>
: , . .. TeamCity "" , -no-window
.
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>
.
<undeployBeforeDeploy>true</undeployBeforeDeploy>
apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>
.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>
POM- App, Test Lib , .
App
. - APK
. maven-central, , , .
maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin
'a, - Maven Android SDK Deployer , .
. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>
apklib
- Android , . IntelliJ IDEA apklib IDEA- ~
.
, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .
, maven , , , . JetBrains .
.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>
.
Resource filtering
, ( application.properties
/assets
, XML- /res
java /src
), ${property.name}
, Maven' POM-. , , . , .
. android-maven-plugin
versionName
versionCode
, . , , , AndroidManifest.xml
. resource filtering. .
, Root , APKLIB
. Root App , .
/asstets
.
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>
, (. Resource filtering).
, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>
Lib
APKLIB
. jar
. . java-, jar, (, , ..), .. Android Library Project , APKLIB
.
, .
Test
, . apk
. . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>
..
-, , , . Maven . pom- AndroidManifest.xml
. maven-release-plugin
- (ant- ).
, , , - =)
version.properties
. ant-target POM- .
test-scopes . Android Testing Framework @SmallTest
@MediumTest
@LargeTest
, instrumentation- . .. integration-, , , TeamCity , . , development
@SmallTest
', production
. , , maven-android-plugin
scope , .. small
, medium
, large
, small medium. . testSize
obfuscating ProGuard
, , Android Maven'
Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'
UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".