質問編集履歴

3

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

2016/04/23 07:37

投稿

ryuuhaya
ryuuhaya

スコア7

test CHANGED
File without changes
test CHANGED
@@ -1,3 +1,599 @@
1
1
  com.jayway.maven.plugins.android.generation2のandroid-maven-pluginを使用してビルドした際にJavac.batが出力されてしまう。
2
2
 
3
3
  出力されないようにしたい
4
+
5
+
6
+
7
+ 以下pom.xml
8
+
9
+ ```ここに言語を入力
10
+
11
+ <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
12
+
13
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
14
+
15
+ <modelVersion>4.0.0</modelVersion>
16
+
17
+
18
+
19
+ <groupId>MyAppGroupId</groupId>
20
+
21
+ <artifactId>MyAppName</artifactId>
22
+
23
+ <version>1.0-SNAPSHOT</version>
24
+
25
+ <packaging>apk</packaging>
26
+
27
+ <name>MyAppName</name>
28
+
29
+
30
+
31
+ <repositories>
32
+
33
+ <repository>
34
+
35
+ <id>android-support</id>
36
+
37
+ <url>file://${env.ANDROID_HOME}/extras/android/m2repository</url>
38
+
39
+ </repository>
40
+
41
+ <repository>
42
+
43
+ <id>android-gms</id>
44
+
45
+ <url>file://${env.ANDROID_HOME}/extras/google/m2repository</url>
46
+
47
+ </repository>
48
+
49
+
50
+
51
+ </repositories>
52
+
53
+
54
+
55
+ <properties>
56
+
57
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
58
+
59
+ <java.version>1.6</java.version>
60
+
61
+ <android.version>4.1.1.4</android.version>
62
+
63
+ <platform.version>5.0.1_r2</platform.version>
64
+
65
+ <android.plugin.version>3.8.2</android.plugin.version>
66
+
67
+ <compatibility.version>21.0.3</compatibility.version>
68
+
69
+ <playservice.version>8.3.0</playservice.version>
70
+
71
+ </properties>
72
+
73
+
74
+
75
+ <dependencies>
76
+
77
+ <dependency>
78
+
79
+ <groupId>android</groupId>
80
+
81
+ <artifactId>android</artifactId>
82
+
83
+ <version>${platform.version}</version>
84
+
85
+ <scope>provided</scope>
86
+
87
+ </dependency>
88
+
89
+
90
+
91
+
92
+
93
+ <dependency>
94
+
95
+ <groupId>android.support</groupId>
96
+
97
+ <artifactId>compatibility-v4</artifactId>
98
+
99
+ <version>23.1.1</version>
100
+
101
+ <type>jar</type>
102
+
103
+ </dependency>
104
+
105
+
106
+
107
+ <dependency>
108
+
109
+ <groupId>com.android.support</groupId>
110
+
111
+ <artifactId>appcompat-v7</artifactId>
112
+
113
+ <version>22.0.0</version>
114
+
115
+ <type>aar</type>
116
+
117
+ <exclusions>
118
+
119
+ <exclusion>
120
+
121
+ <groupId>com.android.support</groupId>
122
+
123
+ <artifactId>support-v4</artifactId>
124
+
125
+ </exclusion>
126
+
127
+ </exclusions>
128
+
129
+ </dependency>
130
+
131
+
132
+
133
+ <dependency>
134
+
135
+ <groupId>com.android.support</groupId>
136
+
137
+ <artifactId>recyclerview-v7</artifactId>
138
+
139
+ <version>22.2.0</version>
140
+
141
+ <type>aar</type>
142
+
143
+ <exclusions>
144
+
145
+ <exclusion>
146
+
147
+ <groupId>com.android.support</groupId>
148
+
149
+ <artifactId>support-v4</artifactId>
150
+
151
+ </exclusion>
152
+
153
+ <exclusion>
154
+
155
+ <groupId>com.android.support</groupId>
156
+
157
+ <artifactId>support-annotations</artifactId>
158
+
159
+ </exclusion>
160
+
161
+ </exclusions>
162
+
163
+ </dependency>
164
+
165
+
166
+
167
+ <dependency>
168
+
169
+ <groupId>com.google.android.gms</groupId>
170
+
171
+ <artifactId>play-services-gcm</artifactId>
172
+
173
+ <version>${playservice.version}</version>
174
+
175
+ <type>aar</type>
176
+
177
+ <exclusions>
178
+
179
+ <exclusion>
180
+
181
+ <groupId>com.google.android.gms</groupId>
182
+
183
+ <artifactId>play-services-basement</artifactId>
184
+
185
+ </exclusion>
186
+
187
+ </exclusions>
188
+
189
+ </dependency>
190
+
191
+
192
+
193
+ <dependency>
194
+
195
+ <groupId>com.google.android.gms</groupId>
196
+
197
+ <artifactId>play-services-analytics</artifactId>
198
+
199
+ <version>${playservice.version}</version>
200
+
201
+ <type>aar</type>
202
+
203
+ <exclusions>
204
+
205
+ <exclusion>
206
+
207
+ <groupId>com.android.support</groupId>
208
+
209
+ <artifactId>support-v4</artifactId>
210
+
211
+ </exclusion>
212
+
213
+ </exclusions>
214
+
215
+ </dependency>
216
+
217
+ <dependency>
218
+
219
+ <groupId>com.github.ksoichiro</groupId>
220
+
221
+ <artifactId>android-observablescrollview</artifactId>
222
+
223
+ <type>aar</type>
224
+
225
+ <version>1.6.0</version>
226
+
227
+ <scope>compile</scope>
228
+
229
+ <exclusions>
230
+
231
+ <exclusion>
232
+
233
+ <groupId>com.android.support</groupId>
234
+
235
+ <artifactId>recyclerview-v7</artifactId>
236
+
237
+ </exclusion>
238
+
239
+ </exclusions>
240
+
241
+ </dependency>
242
+
243
+
244
+
245
+ <dependency>
246
+
247
+ <groupId>com.github.chrisbanes.pulltorefresh</groupId>
248
+
249
+ <artifactId>library</artifactId>
250
+
251
+ <version>2.1.2-SNAPSHOT</version>
252
+
253
+ <type>aar</type>
254
+
255
+ <scope>compile</scope>
256
+
257
+ </dependency>
258
+
259
+
260
+
261
+ <dependency>
262
+
263
+ <groupId>com.astuetz</groupId>
264
+
265
+ <artifactId>PagerSlidingTabStrip</artifactId>
266
+
267
+ <type>aar</type>
268
+
269
+ <version>1.0.1</version>
270
+
271
+ <scope>compile</scope>
272
+
273
+ <exclusions>
274
+
275
+ <exclusion>
276
+
277
+ <groupId>com.android.support</groupId>
278
+
279
+ <artifactId>support-v4</artifactId>
280
+
281
+ </exclusion>
282
+
283
+ </exclusions>
284
+
285
+ </dependency>
286
+
287
+
288
+
289
+ <dependency>
290
+
291
+ <groupId>MyLibGroupId</groupId>
292
+
293
+ <artifactId>LibVideoEdit</artifactId>
294
+
295
+ <version>1.0.0</version>
296
+
297
+ <scope>compile</scope>
298
+
299
+ </dependency>
300
+
301
+
302
+
303
+ <dependency>
304
+
305
+ <groupId>com.googlecode.mp4parser</groupId>
306
+
307
+ <artifactId>isoparser</artifactId>
308
+
309
+ <version>1.1.20-SNAPSHOT</version>
310
+
311
+ <type>jar</type>
312
+
313
+ <scope>compile</scope>
314
+
315
+ </dependency>
316
+
317
+ <dependency>
318
+
319
+ <groupId>org.apache.james</groupId>
320
+
321
+ <artifactId>apache-mime4j-core</artifactId>
322
+
323
+ <version>0.7.2</version>
324
+
325
+ <scope>compile</scope>
326
+
327
+ </dependency>
328
+
329
+ <dependency>
330
+
331
+ <groupId>org.apache.httpcomponents</groupId>
332
+
333
+ <artifactId>httpmime</artifactId>
334
+
335
+ <version>4.2.5</version>
336
+
337
+ <scope>compile</scope>
338
+
339
+ </dependency>
340
+
341
+ </dependencies>
342
+
343
+
344
+
345
+ <build>
346
+
347
+ <finalName>${project.artifactId}</finalName>
348
+
349
+ <sourceDirectory>${basedir}/src</sourceDirectory>
350
+
351
+ <resources>
352
+
353
+ <resource>
354
+
355
+ <directory>${basedir}/res</directory>
356
+
357
+ </resource>
358
+
359
+ </resources>
360
+
361
+
362
+
363
+ <plugins>
364
+
365
+ <plugin>
366
+
367
+ <groupId>com.lewisd</groupId>
368
+
369
+ <artifactId>lint-maven-plugin</artifactId>
370
+
371
+ <version>0.0.8</version>
372
+
373
+ </plugin>
374
+
375
+ <plugin>
376
+
377
+ <groupId>com.jayway.maven.plugins.android.generation2</groupId>
378
+
379
+ <artifactId>android-maven-plugin</artifactId>
380
+
381
+ <version>${android.plugin.version}</version>
382
+
383
+ <extensions>true</extensions>
384
+
385
+
386
+
387
+ <configuration>
388
+
389
+ <deleteConflictingFiles>true</deleteConflictingFiles>
390
+
391
+ <extractDuplicates>true</extractDuplicates>
392
+
393
+ <includeLibsJarsFromAar>true</includeLibsJarsFromAar>
394
+
395
+ <sdk>
396
+
397
+ <platform>21</platform>
398
+
399
+ </sdk>
400
+
401
+ <undeployBeforeDeploy>true</undeployBeforeDeploy>
402
+
403
+ <manifest>
404
+
405
+ <debuggable>false</debuggable>
406
+
407
+ <versionCodeAutoIncrement>true</versionCodeAutoIncrement>
408
+
409
+ <versionName>${project.version}</versionName>
410
+
411
+ </manifest>
412
+
413
+ <proguard>
414
+
415
+ <skip>true</skip>
416
+
417
+ </proguard>
418
+
419
+ </configuration>
420
+
421
+ <executions>
422
+
423
+ <execution>
424
+
425
+ <id>default-proguard</id>
426
+
427
+ <configuration>
428
+
429
+ <skip>true</skip>
430
+
431
+ <action>
432
+
433
+ <ignore></ignore>
434
+
435
+ </action>
436
+
437
+ </configuration>
438
+
439
+ </execution>
440
+
441
+ </executions>
442
+
443
+ </plugin>
444
+
445
+ <plugin>
446
+
447
+ <groupId>org.apache.maven.plugins</groupId>
448
+
449
+ <artifactId>maven-javadoc-plugin</artifactId>
450
+
451
+ </plugin>
452
+
453
+ <plugin>
454
+
455
+ <groupId>org.apache.maven.plugins</groupId>
456
+
457
+ <artifactId>maven-enforcer-plugin</artifactId>
458
+
459
+ </plugin>
460
+
461
+ <plugin>
462
+
463
+ <groupId>org.apache.maven.plugins</groupId>
464
+
465
+ <artifactId>maven-compiler-plugin</artifactId>
466
+
467
+ <version>3.5.1</version>
468
+
469
+ <configuration>
470
+
471
+ <source>${java.version}</source>
472
+
473
+ <target>${java.version}</target>
474
+
475
+ <encoding>${project.build.sourceEncoding}</encoding>
476
+
477
+ <!-- <excludes>
478
+
479
+ <exclude>android/system/*.java</exclude>
480
+
481
+ <exclude>dalvik/system/*.java</exclude>
482
+
483
+ <exclude>libcore/io/*.java</exclude>
484
+
485
+ <exclude>libcore/util/*.java</exclude>
486
+
487
+ <exclude>**/net/*.java</exclude>
488
+
489
+ <exclude>**/nio/**/*.java</exclude>
490
+
491
+ <exclude>**/lang/**/*.java</exclude>
492
+
493
+ <exclude>**/playing/util/*.java</exclude>
494
+
495
+ <exclude>**/io2/*.java</exclude>
496
+
497
+ <exclude>**/FileChannelImpl.java</exclude>
498
+
499
+ <exclude>**/IoVec.java</exclude>
500
+
501
+ </excludes> -->
502
+
503
+
504
+
505
+ </configuration>
506
+
507
+ </plugin>
508
+
509
+ <plugin>
510
+
511
+ <groupId>org.apache.maven.plugins</groupId>
512
+
513
+ <artifactId>maven-surefire-plugin</artifactId>
514
+
515
+ </plugin>
516
+
517
+ </plugins>
518
+
519
+ <pluginManagement>
520
+
521
+ <plugins>
522
+
523
+ <!--This plugin's configuration is used to store Eclipse
524
+
525
+ m2e settings only. It has no influence on the Maven build itself. -->
526
+
527
+ <plugin>
528
+
529
+ <groupId>org.eclipse.m2e</groupId>
530
+
531
+ <artifactId>lifecycle-mapping</artifactId>
532
+
533
+ <version>1.0.0</version>
534
+
535
+ <configuration>
536
+
537
+ <lifecycleMappingMetadata>
538
+
539
+ <pluginExecutions>
540
+
541
+ <pluginExecution>
542
+
543
+ <pluginExecutionFilter>
544
+
545
+ <groupId>
546
+
547
+ com.jayway.maven.plugins.android.generation2
548
+
549
+ </groupId>
550
+
551
+ <artifactId>
552
+
553
+ android-maven-plugin
554
+
555
+ </artifactId>
556
+
557
+ <versionRange>
558
+
559
+ [3.8.1,)
560
+
561
+ </versionRange>
562
+
563
+ <goals>
564
+
565
+ <goal>consume-aar</goal>
566
+
567
+ </goals>
568
+
569
+ </pluginExecutionFilter>
570
+
571
+ <action>
572
+
573
+ <ignore></ignore>
574
+
575
+ </action>
576
+
577
+ </pluginExecution>
578
+
579
+ </pluginExecutions>
580
+
581
+ </lifecycleMappingMetadata>
582
+
583
+ </configuration>
584
+
585
+ </plugin>
586
+
587
+ </plugins>
588
+
589
+ </pluginManagement>
590
+
591
+ </build>
592
+
593
+
594
+
595
+ <!-- 以下release用のMavenのため省略 -->
596
+
597
+ </project>
598
+
599
+ ```

2

タイトルの変更

2016/04/23 07:37

投稿

ryuuhaya
ryuuhaya

スコア7

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

1

タグの変更

2016/04/22 16:16

投稿

ryuuhaya
ryuuhaya

スコア7

test CHANGED
File without changes
test CHANGED
File without changes