teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

3

問題のあるpomファイルの記載

2016/04/23 07:37

投稿

ryuuhaya
ryuuhaya

スコア7

title CHANGED
File without changes
body CHANGED
@@ -1,2 +1,300 @@
1
1
  com.jayway.maven.plugins.android.generation2のandroid-maven-pluginを使用してビルドした際にJavac.batが出力されてしまう。
2
- 出力されないようにしたい
2
+ 出力されないようにしたい
3
+
4
+ 以下pom.xml
5
+ ```ここに言語を入力
6
+ <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
7
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
8
+ <modelVersion>4.0.0</modelVersion>
9
+
10
+ <groupId>MyAppGroupId</groupId>
11
+ <artifactId>MyAppName</artifactId>
12
+ <version>1.0-SNAPSHOT</version>
13
+ <packaging>apk</packaging>
14
+ <name>MyAppName</name>
15
+
16
+ <repositories>
17
+ <repository>
18
+ <id>android-support</id>
19
+ <url>file://${env.ANDROID_HOME}/extras/android/m2repository</url>
20
+ </repository>
21
+ <repository>
22
+ <id>android-gms</id>
23
+ <url>file://${env.ANDROID_HOME}/extras/google/m2repository</url>
24
+ </repository>
25
+
26
+ </repositories>
27
+
28
+ <properties>
29
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
30
+ <java.version>1.6</java.version>
31
+ <android.version>4.1.1.4</android.version>
32
+ <platform.version>5.0.1_r2</platform.version>
33
+ <android.plugin.version>3.8.2</android.plugin.version>
34
+ <compatibility.version>21.0.3</compatibility.version>
35
+ <playservice.version>8.3.0</playservice.version>
36
+ </properties>
37
+
38
+ <dependencies>
39
+ <dependency>
40
+ <groupId>android</groupId>
41
+ <artifactId>android</artifactId>
42
+ <version>${platform.version}</version>
43
+ <scope>provided</scope>
44
+ </dependency>
45
+
46
+
47
+ <dependency>
48
+ <groupId>android.support</groupId>
49
+ <artifactId>compatibility-v4</artifactId>
50
+ <version>23.1.1</version>
51
+ <type>jar</type>
52
+ </dependency>
53
+
54
+ <dependency>
55
+ <groupId>com.android.support</groupId>
56
+ <artifactId>appcompat-v7</artifactId>
57
+ <version>22.0.0</version>
58
+ <type>aar</type>
59
+ <exclusions>
60
+ <exclusion>
61
+ <groupId>com.android.support</groupId>
62
+ <artifactId>support-v4</artifactId>
63
+ </exclusion>
64
+ </exclusions>
65
+ </dependency>
66
+
67
+ <dependency>
68
+ <groupId>com.android.support</groupId>
69
+ <artifactId>recyclerview-v7</artifactId>
70
+ <version>22.2.0</version>
71
+ <type>aar</type>
72
+ <exclusions>
73
+ <exclusion>
74
+ <groupId>com.android.support</groupId>
75
+ <artifactId>support-v4</artifactId>
76
+ </exclusion>
77
+ <exclusion>
78
+ <groupId>com.android.support</groupId>
79
+ <artifactId>support-annotations</artifactId>
80
+ </exclusion>
81
+ </exclusions>
82
+ </dependency>
83
+
84
+ <dependency>
85
+ <groupId>com.google.android.gms</groupId>
86
+ <artifactId>play-services-gcm</artifactId>
87
+ <version>${playservice.version}</version>
88
+ <type>aar</type>
89
+ <exclusions>
90
+ <exclusion>
91
+ <groupId>com.google.android.gms</groupId>
92
+ <artifactId>play-services-basement</artifactId>
93
+ </exclusion>
94
+ </exclusions>
95
+ </dependency>
96
+
97
+ <dependency>
98
+ <groupId>com.google.android.gms</groupId>
99
+ <artifactId>play-services-analytics</artifactId>
100
+ <version>${playservice.version}</version>
101
+ <type>aar</type>
102
+ <exclusions>
103
+ <exclusion>
104
+ <groupId>com.android.support</groupId>
105
+ <artifactId>support-v4</artifactId>
106
+ </exclusion>
107
+ </exclusions>
108
+ </dependency>
109
+ <dependency>
110
+ <groupId>com.github.ksoichiro</groupId>
111
+ <artifactId>android-observablescrollview</artifactId>
112
+ <type>aar</type>
113
+ <version>1.6.0</version>
114
+ <scope>compile</scope>
115
+ <exclusions>
116
+ <exclusion>
117
+ <groupId>com.android.support</groupId>
118
+ <artifactId>recyclerview-v7</artifactId>
119
+ </exclusion>
120
+ </exclusions>
121
+ </dependency>
122
+
123
+ <dependency>
124
+ <groupId>com.github.chrisbanes.pulltorefresh</groupId>
125
+ <artifactId>library</artifactId>
126
+ <version>2.1.2-SNAPSHOT</version>
127
+ <type>aar</type>
128
+ <scope>compile</scope>
129
+ </dependency>
130
+
131
+ <dependency>
132
+ <groupId>com.astuetz</groupId>
133
+ <artifactId>PagerSlidingTabStrip</artifactId>
134
+ <type>aar</type>
135
+ <version>1.0.1</version>
136
+ <scope>compile</scope>
137
+ <exclusions>
138
+ <exclusion>
139
+ <groupId>com.android.support</groupId>
140
+ <artifactId>support-v4</artifactId>
141
+ </exclusion>
142
+ </exclusions>
143
+ </dependency>
144
+
145
+ <dependency>
146
+ <groupId>MyLibGroupId</groupId>
147
+ <artifactId>LibVideoEdit</artifactId>
148
+ <version>1.0.0</version>
149
+ <scope>compile</scope>
150
+ </dependency>
151
+
152
+ <dependency>
153
+ <groupId>com.googlecode.mp4parser</groupId>
154
+ <artifactId>isoparser</artifactId>
155
+ <version>1.1.20-SNAPSHOT</version>
156
+ <type>jar</type>
157
+ <scope>compile</scope>
158
+ </dependency>
159
+ <dependency>
160
+ <groupId>org.apache.james</groupId>
161
+ <artifactId>apache-mime4j-core</artifactId>
162
+ <version>0.7.2</version>
163
+ <scope>compile</scope>
164
+ </dependency>
165
+ <dependency>
166
+ <groupId>org.apache.httpcomponents</groupId>
167
+ <artifactId>httpmime</artifactId>
168
+ <version>4.2.5</version>
169
+ <scope>compile</scope>
170
+ </dependency>
171
+ </dependencies>
172
+
173
+ <build>
174
+ <finalName>${project.artifactId}</finalName>
175
+ <sourceDirectory>${basedir}/src</sourceDirectory>
176
+ <resources>
177
+ <resource>
178
+ <directory>${basedir}/res</directory>
179
+ </resource>
180
+ </resources>
181
+
182
+ <plugins>
183
+ <plugin>
184
+ <groupId>com.lewisd</groupId>
185
+ <artifactId>lint-maven-plugin</artifactId>
186
+ <version>0.0.8</version>
187
+ </plugin>
188
+ <plugin>
189
+ <groupId>com.jayway.maven.plugins.android.generation2</groupId>
190
+ <artifactId>android-maven-plugin</artifactId>
191
+ <version>${android.plugin.version}</version>
192
+ <extensions>true</extensions>
193
+
194
+ <configuration>
195
+ <deleteConflictingFiles>true</deleteConflictingFiles>
196
+ <extractDuplicates>true</extractDuplicates>
197
+ <includeLibsJarsFromAar>true</includeLibsJarsFromAar>
198
+ <sdk>
199
+ <platform>21</platform>
200
+ </sdk>
201
+ <undeployBeforeDeploy>true</undeployBeforeDeploy>
202
+ <manifest>
203
+ <debuggable>false</debuggable>
204
+ <versionCodeAutoIncrement>true</versionCodeAutoIncrement>
205
+ <versionName>${project.version}</versionName>
206
+ </manifest>
207
+ <proguard>
208
+ <skip>true</skip>
209
+ </proguard>
210
+ </configuration>
211
+ <executions>
212
+ <execution>
213
+ <id>default-proguard</id>
214
+ <configuration>
215
+ <skip>true</skip>
216
+ <action>
217
+ <ignore></ignore>
218
+ </action>
219
+ </configuration>
220
+ </execution>
221
+ </executions>
222
+ </plugin>
223
+ <plugin>
224
+ <groupId>org.apache.maven.plugins</groupId>
225
+ <artifactId>maven-javadoc-plugin</artifactId>
226
+ </plugin>
227
+ <plugin>
228
+ <groupId>org.apache.maven.plugins</groupId>
229
+ <artifactId>maven-enforcer-plugin</artifactId>
230
+ </plugin>
231
+ <plugin>
232
+ <groupId>org.apache.maven.plugins</groupId>
233
+ <artifactId>maven-compiler-plugin</artifactId>
234
+ <version>3.5.1</version>
235
+ <configuration>
236
+ <source>${java.version}</source>
237
+ <target>${java.version}</target>
238
+ <encoding>${project.build.sourceEncoding}</encoding>
239
+ <!-- <excludes>
240
+ <exclude>android/system/*.java</exclude>
241
+ <exclude>dalvik/system/*.java</exclude>
242
+ <exclude>libcore/io/*.java</exclude>
243
+ <exclude>libcore/util/*.java</exclude>
244
+ <exclude>**/net/*.java</exclude>
245
+ <exclude>**/nio/**/*.java</exclude>
246
+ <exclude>**/lang/**/*.java</exclude>
247
+ <exclude>**/playing/util/*.java</exclude>
248
+ <exclude>**/io2/*.java</exclude>
249
+ <exclude>**/FileChannelImpl.java</exclude>
250
+ <exclude>**/IoVec.java</exclude>
251
+ </excludes> -->
252
+
253
+ </configuration>
254
+ </plugin>
255
+ <plugin>
256
+ <groupId>org.apache.maven.plugins</groupId>
257
+ <artifactId>maven-surefire-plugin</artifactId>
258
+ </plugin>
259
+ </plugins>
260
+ <pluginManagement>
261
+ <plugins>
262
+ <!--This plugin's configuration is used to store Eclipse
263
+ m2e settings only. It has no influence on the Maven build itself. -->
264
+ <plugin>
265
+ <groupId>org.eclipse.m2e</groupId>
266
+ <artifactId>lifecycle-mapping</artifactId>
267
+ <version>1.0.0</version>
268
+ <configuration>
269
+ <lifecycleMappingMetadata>
270
+ <pluginExecutions>
271
+ <pluginExecution>
272
+ <pluginExecutionFilter>
273
+ <groupId>
274
+ com.jayway.maven.plugins.android.generation2
275
+ </groupId>
276
+ <artifactId>
277
+ android-maven-plugin
278
+ </artifactId>
279
+ <versionRange>
280
+ [3.8.1,)
281
+ </versionRange>
282
+ <goals>
283
+ <goal>consume-aar</goal>
284
+ </goals>
285
+ </pluginExecutionFilter>
286
+ <action>
287
+ <ignore></ignore>
288
+ </action>
289
+ </pluginExecution>
290
+ </pluginExecutions>
291
+ </lifecycleMappingMetadata>
292
+ </configuration>
293
+ </plugin>
294
+ </plugins>
295
+ </pluginManagement>
296
+ </build>
297
+
298
+ <!-- 以下release用のMavenのため省略 -->
299
+ </project>
300
+ ```

2

タイトルの変更

2016/04/23 07:37

投稿

ryuuhaya
ryuuhaya

スコア7

title CHANGED
@@ -1,1 +1,1 @@
1
- eclipse使用でMavenでビルドした際にjavac.batが出力されてしまう。
1
+ Androidプロジェクトをeclipse使用でMavenでビルドした際にapkにjavac.batが出力されてしまう。
body CHANGED
File without changes

1

タグの変更

2016/04/22 16:16

投稿

ryuuhaya
ryuuhaya

スコア7

title CHANGED
File without changes
body CHANGED
File without changes