1 <?xml version="1.0" encoding="UTF-8"?> 2 <!-- 3 This pom is used to take a set of files present in a Maven repo, 4 add OSGI manifest if necessary and put them in a p2 repository suitable 5 for consumption by the Eclipse Tycho builder. 6 7 See README.txt for more information and about invocation options. 8 --> 9 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 10 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> 11 <modelVersion>4.0.0</modelVersion> 12 <groupId>com.android.tools.rcp</groupId> 13 <artifactId>adt-eclipse</artifactId> 14 <packaging>pom</packaging> 15 <version>1.0.0</version> 16 17 <properties> 18 <android.src.dir>${basedir}/../..</android.src.dir> 19 <android.out.dir>${basedir}/../../out</android.out.dir> 20 </properties> 21 22 <!-- 23 Define two profiles: online and offline 24 25 The offline profile is default and will be used by the build server. For this 26 to work, all the required artifacts must already be in the local repository 27 pointed to by the settings.xml 28 29 The online profile could be used for testing/debugging purposes. It can be 30 activated by removing the offline option, and adding "-P online" to the list 31 of command line options. This allows downloading necessary artifacts either 32 from the internet, or from the prebuilts and generated artifacts of the gradle 33 builds. 34 --> 35 <profiles> 36 <profile> 37 <id>offline</id> 38 <activation> 39 <activeByDefault>true</activeByDefault> 40 </activation> 41 </profile> 42 43 <profile> 44 <id>online</id> 45 <repositories> 46 <repository> 47 <id>tools</id> 48 <url>file:///${android.out.dir}/repo/</url> 49 </repository> 50 <repository> 51 <id>tools-prebuilts</id> 52 <url>file:///${android.src.dir}/prebuilts/tools/common/m2/repository/</url> 53 </repository> 54 </repositories> 55 </profile> 56 </profiles> 57 58 <build> 59 <!-- Remap the build folder to be something inside out --> 60 <directory>${basedir}/../../out/host/maven/p2gen</directory> 61 62 <plugins> 63 <plugin> 64 <!-- org.reficio:p2-maven-plugin:1.1.0 is checked into prebuils/tools/common/m2/repository --> 65 <groupId>org.reficio</groupId> 66 <artifactId>p2-maven-plugin</artifactId> 67 <version>1.1.0</version> 68 69 <executions> 70 <execution> 71 <id>default-cli</id> 72 <configuration> 73 <artifacts> 74 <!-- tools/base dependencies --> 75 <artifact> <id>com.android.tools.build:manifest-merger:22.9.0</id> </artifact> 76 <artifact> <id>com.android.tools.ddms:ddmlib:22.9.0</id> </artifact> 77 <artifact> <id>com.android.tools.layoutlib:layoutlib-api:22.9.0</id> </artifact> 78 <artifact> <id>com.android.tools.lint:lint-api:22.9.0</id> </artifact> 79 <artifact> <id>com.android.tools.lint:lint-checks:22.9.0</id> </artifact> 80 <artifact> <id>com.android.tools:asset-studio:22.9.0</id> </artifact> 81 <artifact> <id>com.android.tools:common:22.9.0</id> </artifact> 82 <artifact> <id>com.android.tools:dvlib:22.9.0</id> </artifact> 83 <artifact> <id>com.android.tools:ninepatch:22.9.0</id> </artifact> 84 <artifact> <id>com.android.tools:rule-api:22.9.0</id> </artifact> 85 <artifact> <id>com.android.tools:sdk-common:22.9.0</id> </artifact> 86 <artifact> <id>com.android.tools:sdklib:22.9.0</id> </artifact> 87 <artifact> <id>com.android.tools:testutils:22.9.0</id> </artifact> 88 89 <!-- tools/swt dependencies --> 90 <artifact> <id>com.android.tools.ddms:ddmuilib:22.9.0</id> </artifact> 91 <artifact> <id>com.android.tools:hierarchyviewer2lib:22.9.0</id> </artifact> 92 <artifact> <id>com.android.tools:sdkstats:22.9.0</id> </artifact> 93 <artifact> <id>com.android.tools:sdkuilib:22.9.0</id> </artifact> 94 <artifact> <id>com.android.tools:swtmenubar:22.9.0</id> </artifact> 95 <artifact> <id>com.android.tools:traceview:22.9.0</id> </artifact> 96 <artifact> <id>com.android.tools:uiautomatorviewer:22.9.0</id> </artifact> 97 98 <!-- prebuilts --> 99 <artifact> <id>com.android.tools.external.lombok:lombok-ast:0.2.2</id> </artifact> 100 <artifact> <id>com.android.tools.external:ant-glob:1.0</id> </artifact> 101 <artifact> <id>com.android.tools.external:liblzf:1.0</id> </artifact> 102 <artifact> <id>com.android.tools.external:libprotobuf-java-lite:2.3.0</id> </artifact> 103 <artifact> <id>com.android.tools.external:propertysheet:1.0</id> </artifact> 104 <artifact> <id>com.google.guava:guava:15.0</id> </artifact> 105 <artifact> <id>commons-codec:commons-codec:1.4</id> </artifact> 106 <artifact> <id>commons-logging:commons-logging:1.1.1</id> </artifact> 107 <artifact> <id>jfree:jcommon:1.0.12</id> </artifact> 108 <artifact> <id>jfree:jfreechart-swt:1.0.9</id> </artifact> 109 <artifact> <id>jfree:jfreechart:1.0.9</id> </artifact> 110 <artifact> <id>net.sf.kxml:kxml2:2.3.0</id> </artifact> 111 <artifact> <id>net.sf.kxml:kxml2:2.3.0</id> </artifact> 112 <artifact> <id>org.apache.commons:commons-compress:1.0</id> </artifact> 113 <artifact> <id>org.apache.httpcomponents:httpclient:4.1.1</id> </artifact> 114 <artifact> <id>org.apache.httpcomponents:httpcore:4.1</id> </artifact> 115 <artifact> <id>org.apache.httpcomponents:httpmime:4.1</id> </artifact> 116 <artifact> 117 <id>org.freemarker:freemarker:2.3.20</id> 118 <!-- 119 freemarker 2.3.20 bundles an OSGI manifest..except that manifest is 120 incorrect. http://sourceforge.net/p/freemarker/bugs/411/ 121 This rule rewrites the OSGI manifest. 122 --> 123 <override>true</override> 124 </artifact> 125 <artifact> <id>org.ow2.asm:asm-analysis:4.0</id> </artifact> 126 <artifact> <id>org.ow2.asm:asm-tree:4.0</id> </artifact> 127 <artifact> <id>org.ow2.asm:asm:4.0</id> </artifact> 128 </artifacts> 129 </configuration> 130 131 </execution> 132 </executions> 133 </plugin> 134 </plugins> 135 </build> 136 137 </project> 138