summaryrefslogtreecommitdiffstats
path: root/p2gen/pom.xml
blob: 16e72aba313e8905c3184317716c71ba4f029d5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
<?xml version="1.0" encoding="UTF-8"?>
<!--
 This pom is used to take a set of files present in a Maven repo,
 add OSGI manifest if necessary and put them in a p2 repository suitable
 for consumption by the Eclipse Tycho builder.

 See README.txt for more information and about invocation options.
 -->
<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/maven-v4_0_0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <groupId>com.android.tools.rcp</groupId>
  <artifactId>adt-eclipse</artifactId>
  <packaging>pom</packaging>
  <version>1.0.0</version>

  <properties>
    <android.src.dir>${basedir}/../..</android.src.dir>
    <android.out.dir>${basedir}/../../out</android.out.dir>
  </properties>

  <!--
   Define two profiles: online and offline

   The offline profile is default and will be used by the build server. For this
   to work, all the required artifacts must already be in the local repository
   pointed to by the settings.xml

   The online profile could be used for testing/debugging purposes. It can be
   activated by removing the offline option, and adding "-P online" to the list
   of command line options. This allows downloading necessary artifacts either
   from the internet, or from the prebuilts and generated artifacts of the gradle
   builds.
  -->
  <profiles>
    <profile>
      <id>offline</id>
      <activation>
        <activeByDefault>true</activeByDefault>
      </activation>
    </profile>

    <profile>
      <id>online</id>
      <repositories>
         <repository>
          <id>tools</id>
          <url>file:///${android.out.dir}/repo/</url>
         </repository>
         <repository>
          <id>tools-prebuilts</id>
          <url>file:///${android.src.dir}/prebuilts/tools/common/m2/repository/</url>
         </repository>
      </repositories>
    </profile>
  </profiles>

  <build>
    <!-- Remap the build folder to be something inside out -->
    <directory>${basedir}/../../out/host/maven/p2gen</directory>

    <plugins>
      <plugin>
        <!-- org.reficio:p2-maven-plugin:1.1.0 is checked into prebuils/tools/common/m2/repository -->
        <groupId>org.reficio</groupId>
        <artifactId>p2-maven-plugin</artifactId>
        <version>1.1.0</version>

        <executions>
          <execution>
            <id>default-cli</id>
            <configuration>
              <artifacts>
                <!-- tools/base dependencies -->
                <artifact> <id>com.android.tools.build:manifest-merger:22.9.0</id> </artifact>
                <artifact> <id>com.android.tools.ddms:ddmlib:22.9.0</id> </artifact>
                <artifact> <id>com.android.tools.layoutlib:layoutlib-api:22.9.0</id> </artifact>
                <artifact> <id>com.android.tools.lint:lint-api:22.9.0</id> </artifact>
                <artifact> <id>com.android.tools.lint:lint-checks:22.9.0</id> </artifact>
                <artifact> <id>com.android.tools:asset-studio:22.9.0</id> </artifact>
                <artifact> <id>com.android.tools:common:22.9.0</id> </artifact>
                <artifact> <id>com.android.tools:dvlib:22.9.0</id> </artifact>
                <artifact> <id>com.android.tools:ninepatch:22.9.0</id> </artifact>
                <artifact> <id>com.android.tools:rule-api:22.9.0</id> </artifact>
                <artifact> <id>com.android.tools:sdk-common:22.9.0</id> </artifact>
                <artifact> <id>com.android.tools:sdklib:22.9.0</id> </artifact>
                <artifact> <id>com.android.tools:testutils:22.9.0</id> </artifact>

                <!-- tools/swt dependencies -->
                <artifact> <id>com.android.tools.ddms:ddmuilib:22.9.0</id> </artifact>
                <artifact> <id>com.android.tools:hierarchyviewer2lib:22.9.0</id> </artifact>
                <artifact> <id>com.android.tools:sdkstats:22.9.0</id> </artifact>
                <artifact> <id>com.android.tools:sdkuilib:22.9.0</id> </artifact>
                <artifact> <id>com.android.tools:swtmenubar:22.9.0</id> </artifact>
                <artifact> <id>com.android.tools:traceview:22.9.0</id> </artifact>
                <artifact> <id>com.android.tools:uiautomatorviewer:22.9.0</id> </artifact>

                <!-- prebuilts -->
                <artifact> <id>com.android.tools.external.lombok:lombok-ast:0.2.2</id> </artifact>
                <artifact> <id>com.android.tools.external:ant-glob:1.0</id> </artifact>
                <artifact> <id>com.android.tools.external:liblzf:1.0</id> </artifact>
                <artifact> <id>com.android.tools.external:libprotobuf-java-lite:2.3.0</id> </artifact>
                <artifact> <id>com.android.tools.external:propertysheet:1.0</id> </artifact>
                <artifact> <id>com.google.guava:guava:15.0</id> </artifact>
                <artifact> <id>commons-codec:commons-codec:1.4</id> </artifact>
                <artifact> <id>commons-logging:commons-logging:1.1.1</id> </artifact>
                <artifact> <id>jfree:jcommon:1.0.12</id> </artifact>
                <artifact> <id>jfree:jfreechart-swt:1.0.9</id> </artifact>
                <artifact> <id>jfree:jfreechart:1.0.9</id> </artifact>
                <artifact> <id>net.sf.kxml:kxml2:2.3.0</id> </artifact>
                <artifact> <id>net.sf.kxml:kxml2:2.3.0</id> </artifact>
                <artifact> <id>org.apache.commons:commons-compress:1.0</id> </artifact>
                <artifact> <id>org.apache.httpcomponents:httpclient:4.1.1</id> </artifact>
                <artifact> <id>org.apache.httpcomponents:httpcore:4.1</id> </artifact>
                <artifact> <id>org.apache.httpcomponents:httpmime:4.1</id> </artifact>
                <artifact>
                  <id>org.freemarker:freemarker:2.3.20</id>
                  <!--
                   freemarker 2.3.20 bundles an OSGI manifest..except that manifest is
                   incorrect. http://sourceforge.net/p/freemarker/bugs/411/
                   This rule rewrites the OSGI manifest.
                   -->
                  <override>true</override>
                </artifact>
                <artifact> <id>org.ow2.asm:asm-analysis:4.0</id> </artifact>
                <artifact> <id>org.ow2.asm:asm-tree:4.0</id> </artifact>
                <artifact> <id>org.ow2.asm:asm:4.0</id> </artifact>
              </artifacts>
            </configuration>

          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>

</project>