Guest User

pom

a guest
Jun 30th, 2013
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 13.24 KB | None | 0 0
  1. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  2.    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  3.     <modelVersion>4.0.0</modelVersion>
  4.     <groupId>com.brantapps</groupId>
  5.     <artifactId>oceanlife</artifactId>
  6.     <version>2.2.1-SNAPSHOT</version>
  7.     <packaging>apk</packaging>
  8.     <name>OceanLife</name>
  9.     <description>OceanLife for Android</description>
  10.     <properties>
  11.         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  12.         <sdk-level.version>17</sdk-level.version>
  13.         <java-compiler.version>1.6</java-compiler.version>
  14.         <platform.version>4.2.2_r2</platform.version>
  15.         <maps.version>17_r3</maps.version>
  16.         <oceanliferover.version>0.0.2-SNAPSHOT</oceanliferover.version>
  17.         <actionbarsherlock.version>4.3.1</actionbarsherlock.version>
  18.         <aspectjrt.version>1.6.10</aspectjrt.version>
  19.         <commons-lang.version>2.5</commons-lang.version>
  20.         <crouton.version>1.8.1</crouton.version>
  21.         <dagger.version>1.0.1</dagger.version>
  22.         <android-maven-plugin.version>3.6.0</android-maven-plugin.version>
  23.         <build-helper-maven-plugin.version>1.7</build-helper-maven-plugin.version>
  24.         <maven-jarsigner-plugin.version>1.2</maven-jarsigner-plugin.version>
  25.         <maven-compiler-plugin.version>3.1</maven-compiler-plugin.version>
  26.         <robolectric.version>2.2-SNAPSHOT</robolectric.version>
  27.         <mockito.version>1.9.5</mockito.version>
  28.         <junit.version>4.8.2</junit.version>
  29.         <hamcrest.version>1.3</hamcrest.version>
  30.     </properties>
  31.     <dependencies>
  32.         <dependency>
  33.             <groupId>com.brantapps</groupId>
  34.             <artifactId>oceanliferover</artifactId>
  35.             <version>${oceanliferover.version}</version>
  36.             <type>jar</type>
  37.         </dependency>
  38.         <dependency>
  39.             <groupId>org.aspectj</groupId>
  40.             <artifactId>aspectjrt</artifactId>
  41.             <version>${aspectjrt.version}</version>
  42.         </dependency>
  43.         <dependency>
  44.             <groupId>commons-lang</groupId>
  45.             <artifactId>commons-lang</artifactId>
  46.             <version>${commons-lang.version}</version>
  47.         </dependency>
  48.         <dependency>
  49.             <groupId>com.google.android</groupId>
  50.             <artifactId>support-v4</artifactId>
  51.             <version>r7</version>
  52.             <scope>provided</scope>
  53.         </dependency>
  54.         <dependency>
  55.             <groupId>android</groupId>
  56.             <artifactId>android</artifactId>
  57.             <version>${platform.version}</version>
  58.             <scope>provided</scope>
  59.         </dependency>
  60.         <dependency>
  61.             <groupId>com.google.android.maps</groupId>
  62.             <artifactId>maps</artifactId>
  63.             <version>${maps.version}</version>
  64.             <scope>provided</scope>
  65.         </dependency>
  66.         <dependency>
  67.             <groupId>com.squareup.dagger</groupId>
  68.             <artifactId>dagger</artifactId>
  69.             <version>${dagger.version}</version>
  70.         </dependency>
  71.         <dependency>
  72.             <groupId>com.actionbarsherlock</groupId>
  73.             <artifactId>actionbarsherlock</artifactId>
  74.             <version>${actionbarsherlock.version}</version>
  75.             <type>apklib</type>
  76.         </dependency>
  77.  
  78.         <!-- Testing dependencies. -->
  79.         <dependency>
  80.             <groupId>org.hamcrest</groupId>
  81.             <artifactId>hamcrest-core</artifactId>
  82.             <version>${hamcrest.version}</version>
  83.             <scope>test</scope>
  84.         </dependency>
  85.         <dependency>
  86.             <groupId>org.robolectric</groupId>
  87.             <artifactId>robolectric</artifactId>
  88.             <version>${robolectric.version}</version>
  89.             <scope>test</scope>
  90.             <exclusions>
  91.                 <exclusion>
  92.                     <groupId>org.mockito</groupId>
  93.                     <artifactId>mockito-core</artifactId>
  94.                 </exclusion>
  95.                 <exclusion>
  96.                     <groupId>org.hamcrest</groupId>
  97.                     <artifactId>hamcrest-all</artifactId>
  98.                 </exclusion>
  99.             </exclusions>
  100.         </dependency>
  101.         <dependency>
  102.             <groupId>org.mockito</groupId>
  103.             <artifactId>mockito-all</artifactId>
  104.             <version>${mockito.version}</version>
  105.             <scope>test</scope>
  106.         </dependency>
  107.         <dependency>
  108.             <groupId>junit</groupId>
  109.             <artifactId>junit</artifactId>
  110.             <version>${junit.version}</version>
  111.             <scope>test</scope>
  112.         </dependency>
  113.     </dependencies>
  114.  
  115.     <build>
  116.         <finalName>${project.artifactId}</finalName>
  117.         <sourceDirectory>src/main/java</sourceDirectory>
  118.         <outputDirectory>target/classes</outputDirectory>
  119.         <testOutputDirectory>target/test-classes</testOutputDirectory>
  120.         <plugins>
  121.             <plugin>
  122.                 <groupId>org.apache.maven.plugins</groupId>
  123.                 <artifactId>maven-compiler-plugin</artifactId>
  124.                 <version>${maven-compiler-plugin.version}</version>
  125.                 <configuration>
  126.                     <source>${java-compiler.version}</source>
  127.                     <target>${java-compiler.version}</target>
  128.                 </configuration>
  129.                 <dependencies>
  130.                     <dependency>
  131.                         <groupId>com.squareup.dagger</groupId>
  132.                         <artifactId>dagger-compiler</artifactId>
  133.                         <version>${dagger.version}</version>
  134.                     </dependency>
  135.                 </dependencies>
  136.             </plugin>
  137.             <plugin>
  138.                 <groupId>org.apache.maven.plugins</groupId>
  139.                 <artifactId>maven-resources-plugin</artifactId>
  140.                 <executions>
  141.                     <execution>
  142.                         <!-- use the copy resources instead of resources,
  143.                            which adds it to the eclipse buildpath -->
  144.                         <phase>initialize</phase>
  145.                         <goals>
  146.                             <goal>copy-resources</goal>
  147.                         </goals>
  148.                         <configuration>
  149.                             <outputDirectory>${project.basedir}/res</outputDirectory>
  150.                             <resources>
  151.                                 <resource>
  152.                                     <directory>${project.basedir}/src/templates/res</directory>
  153.                                     <targetPath>${project.basedir}/res</targetPath>
  154.                                     <filtering>true</filtering>
  155.                                 </resource>
  156.                             </resources>
  157.                         </configuration>
  158.                     </execution>
  159.                 </executions>
  160.             </plugin>
  161.             <plugin>
  162.                 <groupId>com.jayway.maven.plugins.android.generation2</groupId>
  163.                 <artifactId>android-maven-plugin</artifactId>
  164.                 <version>${android-maven-plugin.version}</version>
  165.                 <extensions>true</extensions>
  166.                 <configuration>
  167.                     <source>${java-compiler.version}</source>
  168.                     <target>${java-compiler.version}</target>
  169.                     <manifest>
  170.                         <debuggable>true</debuggable>
  171.                     </manifest>
  172.                     <run>
  173.                         <debug>true</debug>
  174.                     </run>
  175.                     <sdk>
  176.                         <platform>${sdk-level.version}</platform>
  177.                     </sdk>
  178.                     <emulator>
  179.                         <avd>Wildfire</avd>
  180.                         <wait>40000</wait>
  181.                         <options>-no-audio -no-boot-anim -no-window</options>
  182.                     </emulator>
  183.                 </configuration>
  184.                 <executions>
  185.                     <execution>
  186.                         <id>alignApk</id>
  187.                         <phase>package</phase>
  188.                         <goals>
  189.                             <goal>zipalign</goal>
  190.                         </goals>
  191.                     </execution>
  192.                 </executions>
  193.             </plugin>
  194.         </plugins>
  195.     </build>
  196.     <profiles>
  197.         <profile>
  198.             <id>development</id>
  199.             <activation>
  200.                 <property>
  201.                     <name>environment</name>
  202.                     <value>!production</value>
  203.                 </property>
  204.             </activation>
  205.             <properties>
  206.                 <deployment.stage>In development</deployment.stage>
  207.             </properties>
  208.         </profile>
  209.         <profile>
  210.             <id>release</id>
  211.             <activation>
  212.                 <property>
  213.                     <name>performRelease</name>
  214.                     <value>true</value>
  215.                 </property>
  216.             </activation>
  217.             <build>
  218.                 <plugins>
  219.                     <plugin>
  220.                         <groupId>org.apache.maven.plugins</groupId>
  221.                         <artifactId>maven-jarsigner-plugin</artifactId>
  222.                         <version>${maven-jarsigner-plugin.version}</version>
  223.                         <executions>
  224.                             <execution>
  225.                                 <id>signing</id>
  226.                                 <goals>
  227.                                     <goal>sign</goal>
  228.                                     <goal>verify</goal>
  229.                                 </goals>
  230.                                 <phase>package</phase>
  231.                                 <inherited>true</inherited>
  232.                                 <configuration>
  233.                                     <arguments>
  234.                                         <argument>-sigalg</argument>
  235.                                         <argument>MD5withRSA</argument>
  236.                                         <argument>-digestalg</argument>
  237.                                         <argument>SHA1</argument>
  238.                                     </arguments>
  239.                                     <removeExistingSignatures>true</removeExistingSignatures>
  240.                                     <archiveDirectory />
  241.                                     <includes>
  242.                                         <include>${project.build.directory}/${project.artifactId}.apk</include>
  243.                                     </includes>
  244.                                     <keystore>${sign.keystore}</keystore>
  245.                                     <alias>${sign.alias}</alias>
  246.                                     <storepass>${sign.storepass}</storepass>
  247.                                     <keypass>${sign.keypass}</keypass>
  248.                                     <verbose>true</verbose>
  249.                                 </configuration>
  250.                             </execution>
  251.                         </executions>
  252.                     </plugin>
  253.                     <!-- the signed apk then needs to be zipaligned and we
  254.                        activate proguard and we run the manifest update -->
  255.                     <plugin>
  256.                         <groupId>com.jayway.maven.plugins.android.generation2</groupId>
  257.                         <artifactId>android-maven-plugin</artifactId>
  258.                         <inherited>true</inherited>
  259.                         <configuration>
  260.                             <release>false</release>
  261.                             <sign>
  262.                                 <debug>false</debug>
  263.                             </sign>
  264.                             <zipalign>
  265.                                 <skip>false</skip>
  266.                                 <verbose>true</verbose>
  267.                                 <inputApk>${project.build.directory}/${project.artifactId}.apk</inputApk>
  268.                                 <outputApk>${project.build.directory}/${project.artifactId}-signed-aligned.apk
  269.                                 </outputApk>
  270.                             </zipalign>
  271.                             <manifest>
  272.                                 <debuggable>false</debuggable>
  273.                                 <versionCodeAutoIncrement>true</versionCodeAutoIncrement>
  274.                             </manifest>
  275.                             <proguard>
  276.                                 <skip>true</skip>
  277.                             </proguard>
  278.                         </configuration>
  279.                         <executions>
  280.                             <execution>
  281.                                 <id>manifestUpdate</id>
  282.                                 <phase>process-resources</phase>
  283.                                 <goals>
  284.                                     <goal>manifest-update</goal>
  285.                                 </goals>
  286.                             </execution>
  287.                             <execution>
  288.                                 <id>alignApk</id>
  289.                                 <phase>package</phase>
  290.                                 <goals>
  291.                                     <goal>zipalign</goal>
  292.                                 </goals>
  293.                             </execution>
  294.                         </executions>
  295.                     </plugin>
  296.                 </plugins>
  297.             </build>
  298.         </profile>
  299.     </profiles>
  300. </project>
Advertisement
Add Comment
Please, Sign In to add comment