JDK, Android SDK, Maven and IntelliJ IDEA must be installed and working. You must have JAVA_HOME, M2, M2_HOME and ANDROID_HOME environment variables set accordingly. Also, for convenience, I recommend adding to the Path the %ANDROID_HOME%/tools and %ANDROID_HOME%/platform-tools directories.
Root
| ---- App
| | ---- src
| | ---- test
| | ---- JUnit
| | ---- Robolectric
|
| ---- Lib
| | ---- src
| | ---- test
| | ---- JUnit
| | ---- Robolectric
|
| ---- Test
| ---- src
| ---- Instrumentation
| ---- Robotium Root - project rootApp - the application itselfTest - instrumentation apk, it’s also a module with Android and Robotium testsLib - Android Library Project , going to APKLIBtest , in which unit tests (JUnit or Robolectric ) are stored . <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> versionCode apk-fileandroid-maven-plugin script. If a specific value is not specified, then all emulators / devices currently available will be used by default. Also, in addition to the device name, valid values ​​are usb and emulator constants .production, test and development . Profiles and manage this process. Each profile allows you to overlap the values ​​of various property, plugin settings and other build options. When compiling the project, depending on the active profile, the corresponding build settings will be taken and used in the application. For example, using the processing of resources, thus, you can change the link to the server, which may be different for production and test configurations (more on this below).
production application build from the command line with the following command:mvn install -P productiondevelopment profile is active, so if nothing is added, the dev configuration will be collected.test and development profiles are small in size and their content only sets the application settings (server connection settings). A bit larger in size is the definition of a production profile. It includes setting up the process of signing an application with a certificate. <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 indicated at what point the package will be signed, the path to our keystore and its parameters. By the way, for debugging a script it is very convenient to run it with the -X parameter, for example, mvn install -X . At the same time, maven gives a large amount of debug information, analyzing which you can deal with the problem.android-maven-plugin 'e, the debug-mode for the production build is disabled. And the final touch - maven-compiler-plugin includes optimization code production version.maven-compiler-plugin 'to use Java 6th version, setting up the android-maven-plugin and setting up maven-idea-plugin ' as well.maven-idea-plugin allows you to download the documentation and source code of project dependencies, which gives us the opportunity to look inside the source code of a platform or library or quickly get acquainted with javadoc (Ctrl + Q). Trifle, but nice! =)//.
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".

Source: https://habr.com/ru/post/152279/
All Articles