pom changes

This commit is contained in:
Sergey Solovyev 2012-03-04 16:46:12 +04:00
parent 51896ef470
commit 617725d165
3 changed files with 371 additions and 167 deletions

536
pom.xml
View File

@ -1,193 +1,397 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" <project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>org.solovyev.android</groupId> <groupId>org.solovyev.android</groupId>
<artifactId>calculator</artifactId> <artifactId>calculatorpp</artifactId>
<version>1.1.4</version> <packaging>apk</packaging>
<version>1.1.4</version>
<modules> <modules>
<module>../android_common</module> <module>../android_common</module>
</modules> </modules>
<packaging>pom</packaging> <properties>
<additionalLibs>${basedir}/src/misc/lib</additionalLibs>
</properties>
<properties> <repositories>
<additionalLibs>${basedir}/src/misc/lib</additionalLibs> <repository>
</properties> <id>congrace.de</id>
<name>releases</name>
<url>http://nexus.congrace.de/nexus/content/repositories/releases/</url>
<layout>default</layout>
</repository>
</repositories>
<repositories> <dependencies>
<repository>
<id>congrace.de</id>
<name>releases</name>
<url>http://nexus.congrace.de/nexus/content/repositories/releases/</url>
<layout>default</layout>
</repository>
</repositories>
<dependencies> <dependency>
<groupId>com.google.android</groupId>
<artifactId>android</artifactId>
<version>2.3.1</version>
</dependency>
<!-- <dependency> <dependency>
<groupId>com.google.android</groupId> <groupId>junit</groupId>
<artifactId>android</artifactId> <artifactId>junit</artifactId>
<version>2.3.3</version> <version>4.8.2</version>
<scope>provided</scope> <scope>test</scope>
</dependency>--> </dependency>
<dependency> <dependency>
<groupId>junit</groupId> <groupId>org.solovyev</groupId>
<artifactId>junit</artifactId> <artifactId>common</artifactId>
<version>4.8.2</version> <version>0.3</version>
<scope>test</scope> </dependency>
</dependency>
<dependency> <dependency>
<groupId>org.solovyev</groupId> <groupId>org.solovyev.android</groupId>
<artifactId>common</artifactId> <artifactId>common</artifactId>
<version>0.3</version> <version>0.1</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.solovyev.android</groupId> <groupId>org.solovyev</groupId>
<artifactId>common</artifactId> <artifactId>jscl</artifactId>
<version>0.1</version> <version>0.0.1</version>
</dependency> <exclusions>
<exclusion>
<artifactId>xercesImpl</artifactId>
<groupId>xerces</groupId>
</exclusion>
</exclusions>
<!-- <scope>system</scope>
<systemPath>${additionalLibs}/jscl.jar</systemPath>-->
</dependency>
<dependency> <dependency>
<groupId>org.solovyev</groupId> <groupId>net.sf.opencsv</groupId>
<artifactId>jscl</artifactId> <artifactId>opencsv</artifactId>
<version>0.0.1</version> <version>2.0</version>
<exclusions> <scope>test</scope>
<exclusion> </dependency>
<artifactId>xercesImpl</artifactId>
<groupId>xerces</groupId>
</exclusion>
</exclusions>
<!-- <scope>system</scope>
<systemPath>${additionalLibs}/jscl.jar</systemPath>-->
</dependency>
<dependency> <dependency>
<groupId>net.sf.opencsv</groupId> <groupId>org.simpleframework</groupId>
<artifactId>opencsv</artifactId> <artifactId>simple-xml</artifactId>
<version>2.0</version> <version>2.6.1</version>
<scope>test</scope> <exclusions>
</dependency> <exclusion>
<artifactId>stax-api</artifactId>
<groupId>stax</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency> <dependency>
<groupId>org.simpleframework</groupId> <groupId>achartengine</groupId>
<artifactId>simple-xml</artifactId> <artifactId>achartengine</artifactId>
<version>2.6.1</version> <version>0.7.0</version>
<exclusions> <scope>system</scope>
<exclusion> <systemPath>${additionalLibs}/achartengine-0.7.0.jar</systemPath>
<artifactId>stax-api</artifactId> </dependency>
<groupId>stax</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency> <dependency>
<groupId>achartengine</groupId> <groupId>admob</groupId>
<artifactId>achartengine</artifactId> <artifactId>admob</artifactId>
<version>0.7.0</version> <version>4.3.1</version>
<scope>system</scope> <scope>system</scope>
<systemPath>${additionalLibs}/achartengine-0.7.0.jar</systemPath> <systemPath>${additionalLibs}/GoogleAdMobAdsSdk-4.3.1.jar</systemPath>
</dependency> </dependency>
<dependency> <dependency>
<groupId>admob</groupId> <groupId>org.solovyev.android</groupId>
<artifactId>admob</artifactId> <artifactId>billing</artifactId>
<version>4.3.1</version> <version>0.1</version>
<scope>system</scope> </dependency>
<systemPath>${additionalLibs}/GoogleAdMobAdsSdk-4.3.1.jar</systemPath>
</dependency>
<dependency> <dependency>
<groupId>org.solovyev.android</groupId> <groupId>com.intellij</groupId>
<artifactId>billing</artifactId> <artifactId>annotations</artifactId>
<version>0.1</version> <version>7.0.3</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.intellij</groupId> <groupId>org.codehaus.mojo</groupId>
<artifactId>annotations</artifactId> <artifactId>properties-maven-plugin</artifactId>
<version>7.0.3</version> <version>1.0-alpha-1</version>
</dependency> </dependency>
</dependencies> </dependencies>
<build> <build>
<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-jarsigner-plugin</artifactId>
<version>1.2</version>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>2.4.3</version>
<configuration>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
<plugin> <!-- specifying the resources: e.g. layout.xml, strings.xml etc-->
<groupId>com.jayway.maven.plugins.android.generation2</groupId> <resources>
<artifactId>android-maven-plugin</artifactId>
<version>3.1.1</version>
<configuration>
<sdk>
<platform>9</platform>
</sdk>
<emulator>
<avd>23</avd>
<wait>10000</wait>
<!--<options>-no-skin</options>-->
</emulator>
<zipalign>
<verbose>true</verbose>
</zipalign>
<undeployBeforeDeploy>true</undeployBeforeDeploy>
</configuration>
</plugin>
<plugin>
<groupId>com.pyx4me</groupId>
<artifactId>proguard-maven-plugin</artifactId>
<version>2.0.4</version>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>1.5</version>
</plugin>
</plugins>
</pluginManagement>
</build>
<profiles> <!-- a pair definition for resource filtering of xml files only (not binary files since they get mangled -->
<profile> <resource>
<!-- the standard profile runs the instrumentation tests --> <directory>${project.basedir}/res</directory>
<id>standard</id> <filtering>true</filtering>
<activation> <targetPath>${project.build.directory}/filtered-res</targetPath>
<activeByDefault>true</activeByDefault> <includes>
</activation> <include>**/*.xml</include>
</profile> </includes>
<profile> </resource>
<!-- the release profile does sign, proguard, zipalign ... but does not run instrumentation tests -->
<id>release</id> <resource>
<!-- via this activation the profile is automatically used when the release is done with the maven release <directory>${project.basedir}/res</directory>
plugin --> <filtering>false</filtering>
<activation> <targetPath>${project.build.directory}/filtered-res</targetPath>
<property> <excludes>
<name>performRelease</name> <exclude>**/*.xml</exclude>
<value>true</value> </excludes>
</property>
</activation> </resource>
</profile> </resources>
</profiles>
<plugins>
<plugin>
<groupId>com.jayway.maven.plugins.android.generation2</groupId>
<artifactId>android-maven-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<resourceDirectory>${project.build.directory}/filtered-res</resourceDirectory>
<manifest>
<debuggable>true</debuggable>
</manifest>
</configuration>
<executions>
<execution>
<id>manifestUpdate</id>
<phase>process-resources</phase>
<goals>
<goal>manifest-update</goal>
</goals>
</execution>
<execution>
<id>alignApk</id>
<phase>package</phase>
<goals>
<goal>zipalign</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>properties-maven-plugin</artifactId>
<version>1.0-alpha-2</version>
<executions>
<execution>
<phase>initialize</phase>
<goals>
<goal>read-project-properties</goal>
</goals>
<configuration>
<files>
<file>${basedir}/src/misc/env/jarsigner.properties</file>
</files>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-jarsigner-plugin</artifactId>
<version>1.2</version>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>2.4.3</version>
<configuration>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
<plugin>
<groupId>com.jayway.maven.plugins.android.generation2</groupId>
<artifactId>android-maven-plugin</artifactId>
<version>3.1.1</version>
<configuration>
<sdk>
<platform>9</platform>
</sdk>
<emulator>
<avd>23</avd>
<wait>10000</wait>
<!--<options>-no-skin</options>-->
</emulator>
<zipalign>
<verbose>true</verbose>
</zipalign>
<undeployBeforeDeploy>true</undeployBeforeDeploy>
</configuration>
</plugin>
<plugin>
<groupId>com.pyx4me</groupId>
<artifactId>proguard-maven-plugin</artifactId>
<version>2.0.4</version>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>1.5</version>
</plugin>
</plugins>
</pluginManagement>
</build>
<profiles>
<profile>
<!-- the standard profile runs the instrumentation tests -->
<id>standard</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
</profile>
<profile>
<id>development</id>
<!-- using this since activeByDefault does not work well with multiple profiles -->
<activation>
<property>
<name>environment</name>
<value>!production</value>
</property>
</activation>
<properties>
<deployment.stage>In Development</deployment.stage>
</properties>
</profile>
<profile>
<id>production</id>
<properties>
<deployment.stage>In Production</deployment.stage>
</properties>
</profile>
<profile>
<id>release</id>
<!-- via this activation the profile is automatically used when the release is done with the maven release
plugin -->
<activation>
<property>
<name>performRelease</name>
<value>true</value>
</property>
</activation>
<build>
<plugins>
<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>
<removeExistingSignatures>true</removeExistingSignatures>
<archiveDirectory/>
<includes>
<include>${project.build.directory}/${project.artifactId}.apk</include>
</includes>
<keystore>${sign.keystore}</keystore>
<alias>${sign.alias}</alias>
<storepass>${sign.storepass}</storepass>
<keypass>${sign.keypass}</keypass>
<verbose>true</verbose>
</configuration>
</execution>
</executions>
</plugin>
<!-- the signed apk then needs to be zipaligned and we activate proguard and we run the manifest
update -->
<plugin>
<groupId>com.jayway.maven.plugins.android.generation2</groupId>
<artifactId>android-maven-plugin</artifactId>
<inherited>true</inherited>
<configuration>
<sign>
<debug>false</debug>
</sign>
<zipalign>
<verbose>true</verbose>
<inputApk>${project.build.directory}/${project.artifactId}.apk</inputApk>
<outputApk>${project.build.directory}/${project.artifactId}-signed-aligned.apk
</outputApk>
</zipalign>
<manifest>
<debuggable>false</debuggable>
<versionCodeAutoIncrement>true</versionCodeAutoIncrement>
</manifest>
<proguard>
<skip>false</skip>
</proguard>
</configuration>
<executions>
<execution>
<id>manifestUpdate</id>
<phase>process-resources</phase>
<goals>
<goal>manifest-update</goal>
</goals>
</execution>
<execution>
<id>alignApk</id>
<phase>package</phase>
<goals>
<goal>zipalign</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<configuration>
<artifacts>
<artifact>
<file>${project.build.directory}/${project.artifactId}-signed-aligned.apk</file>
<type>apk</type>
<classifier>signed-aligned</classifier>
</artifact>
<artifact>
<file>${project.build.directory}/proguard/mapping.txt</file>
<type>map</type>
<classifier>release</classifier>
</artifact>
</artifacts>
</configuration>
<executions>
<execution>
<id>attach-signed-aligned</id>
<phase>package</phase>
<goals>
<goal>attach-artifact</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project> </project>

View File

@ -8,4 +8,4 @@
# project structure. # project structure.
# Project target. # Project target.
target=android-8 target=android-10