1<?xml version="1.0" encoding="UTF-8"?> 2<!-- 3 ~ Copyright 2012 AndroidPlot.com 4 ~ 5 ~ Licensed under the Apache License, Version 2.0 (the "License"); 6 ~ you may not use this file except in compliance with the License. 7 ~ You may obtain a copy of the License at 8 ~ 9 ~ http://www.apache.org/licenses/LICENSE-2.0 10 ~ 11 ~ Unless required by applicable law or agreed to in writing, software 12 ~ distributed under the License is distributed on an "AS IS" BASIS, 13 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 ~ See the License for the specific language governing permissions and 15 ~ limitations under the License. 16 --> 17 18<project xmlns="http://maven.apache.org/POM/4.0.0" 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"> 19 <modelVersion>4.0.0</modelVersion> 20 <parent> 21 <groupId>com.androidplot</groupId> 22 <artifactId>androidplot</artifactId> 23 <version>0.6.0</version> 24 </parent> 25 <artifactId>androidplot-core</artifactId> 26 <!--<version>${applicationVersion}</version>--> 27 <name>AndroidPlot-Core</name> 28 <description>AndroidPlot core library</description> 29 30 <profiles> 31 <profile> 32 <id>default</id> 33 <activation> 34 <activeByDefault>true</activeByDefault> 35 </activation> 36 <properties> 37 <path.to.rt.jar>${java.home}/lib/rt.jar</path.to.rt.jar> 38 </properties> 39 </profile> 40 <profile> 41 <id>osx</id> 42 <activation> 43 <os> 44 <family>mac</family> 45 </os> 46 </activation> 47 <properties> 48 <path.to.rt.jar>${java.home}/../Classes/classes.jar</path.to.rt.jar> 49 </properties> 50 </profile> 51 </profiles> 52 53 <!--<repositories> 54 <repository> 55 <id>central</id> 56 <name>Maven Central</name> 57 <url>http://repo1.maven.org/maven2/</url> 58 </repository></repositories> 59--> 60 <build> 61 <plugins> 62 <plugin> 63 <groupId>org.apache.maven.plugins</groupId> 64 <artifactId>maven-gpg-plugin</artifactId> 65 <version>1.4</version> 66 <executions> 67 <execution> 68 <id>sign-artifacts</id> 69 <phase>verify</phase> 70 <goals> 71 <goal>sign</goal> 72 </goals> 73 </execution> 74 </executions> 75 </plugin> 76 <plugin> 77 <groupId>org.apache.maven.plugins</groupId> 78 <artifactId>maven-javadoc-plugin</artifactId> 79 <version>2.7</version> 80 <configuration> 81 <show>public</show> 82 </configuration> 83 <executions> 84 <execution> 85 <phase>package</phase> 86 <goals> 87 <goal>jar</goal> 88 </goals> 89 </execution> 90 </executions> 91 </plugin> 92 <plugin> 93 <groupId>org.apache.maven.plugins</groupId> 94 <artifactId>maven-source-plugin</artifactId> 95 <version>2.2</version> 96 <executions> 97 <execution> 98 <phase>package</phase> 99 <goals> 100 <goal>jar</goal> 101 </goals> 102 </execution> 103 </executions> 104 </plugin> 105 <plugin> 106 <groupId>org.apache.maven.plugins</groupId> 107 <artifactId>maven-compiler-plugin</artifactId> 108 <version>2.0.2</version> 109 <configuration> 110 <source>1.6</source> 111 <target>1.6</target> 112 </configuration> 113 </plugin> 114 115 116 117 <plugin> 118 <groupId>com.pyx4me</groupId> 119 <artifactId>proguard-maven-plugin</artifactId> 120 <version>2.0.4</version> 121 <executions> 122 <execution> 123 <phase>package</phase> 124 <goals> 125 <goal>proguard</goal> 126 </goals> 127 </execution> 128 </executions> 129 <configuration> 130 <obfuscate>true</obfuscate> 131 <options> 132 <option>-allowaccessmodification</option> 133 <option>-keep public class * {public *;}</option> 134 <option>-keepclassmembers enum * {public static **[] values();public static ** valueOf(java.lang.String);}</option> 135 <option>-keepattributes Exceptions,InnerClasses,Signature,Deprecated,SourceFile,LineNumberTable,*Annotation*,EnclosingMethod</option> 136 </options> 137 <!--<injar>${project.build.finalName}.jar</injar> 138 <outjar>obfuscated/${project.build.finalName}-release.jar</outjar>--> 139 <outputDirectory>${project.build.directory}</outputDirectory> 140 <libs> 141 <!--<lib>${java.home}/lib/rt.jar</lib>--> 142 <lib>${path.to.rt.jar}</lib> 143 </libs> 144 <addMavenDescriptor>false</addMavenDescriptor> 145 </configuration> 146 </plugin> 147 <plugin> 148 <artifactId>maven-deploy-plugin</artifactId> 149 <version>2.7</version> 150 <inherited>false</inherited> 151 <configuration> 152 <skip>false</skip> 153 </configuration> 154 </plugin> 155 </plugins> 156 157 </build> 158 <dependencies> 159 <dependency> 160 <groupId>mockit</groupId> 161 <artifactId>jmockit</artifactId> 162 <version>0.999.3</version> 163 <scope>test</scope> 164 </dependency> 165 <dependency> 166 <groupId>junit</groupId> 167 <artifactId>junit</artifactId> 168 <version>4.8.1</version> 169 <scope>test</scope> 170 </dependency> 171 <dependency> 172 <groupId>com.google.android</groupId> 173 <artifactId>android</artifactId> 174 </dependency> 175 <!--<dependency> 176 <groupId>com.google.android</groupId> 177 <artifactId>android</artifactId> 178 <version>4.1.1.4</version> 179 <scope>provided</scope> 180 </dependency>--> 181 </dependencies> 182</project>