点击打开链接http://www.apkbus.com/android-115856-1-1.html
为什么要用Maven?这个问题我说不清楚,如果你没听说过,或者你听说过Ant,我可以说个人感觉Maven比Ant更高效以及轻松,详细的理由欢迎大家发挥搜索,你会惊喜的发现一片新天地……我会告诉你我们公司每次打原始包有接近50个,我一条命令然后就可以在一边看书了……换想用手动打那是什么效率,技术改变生活
01
02
03
04
05
06
07
08
09
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
|
xml
version
=
"1.0"
encoding
=
"UTF-8"
?>
<
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 [url=http://maven.apache.org/maven-v4_0_0.xsd]http://maven.apache.org/maven-v4_0_0.xsd[/url]"
>
<
modelVersion
>4.0.0
modelVersion
>
<
groupId
>com.xxx.xxx
groupId
>
<
artifactId
>Project-parent
artifactId
>
<
version
>1.0.0-SNAPSHOT
version
>
<
packaging
>pom
packaging
>
<
name
>xxx - Parent
name
>
<
dependencies
>
<
dependency
>
<
groupId
>android
groupId
>
<
artifactId
>android
artifactId
>
<
version
>2.1_r3
version
>
<
scope
>provided
scope
>
dependency
>
dependencies
>
<
build
>
<
finalName
>${project.name}
finalName
>
<
sourceDirectory
>src
sourceDirectory
>
<
plugins
>
<
plugin
>
<
groupId
>org.apache.maven.plugins
groupId
>
<
artifactId
>maven-compiler-plugin
artifactId
>
<
version
>2.3.2
version
>
<
configuration
>
<
source
>1.6
source
>
<
target
>1.6
target
>
<
encoding
>UTF-8
encoding
>
configuration
>
plugin
>
<
plugin
>
<
groupId
>org.apache.maven.plugins
groupId
>
<
artifactId
>maven-resources-plugin
artifactId
>
<
version
>2.6
version
>
<
configuration
>
<
encoding
>UTF-8
encoding
>
configuration
>
plugin
>
<
plugin
>
<
groupId
>com.jayway.maven.plugins.android.generation2
groupId
>
<
artifactId
>android-maven-plugin
artifactId
>
<
version
>3.5.1
version
>
<
configuration
>
<
androidManifestFile
>${project.basedir}/AndroidManifest.xml
androidManifestFile
>
<
assetsDirectory
>${project.basedir}/assets
assetsDirectory
>
<
resourceDirectory
>${project.basedir}/res
resourceDirectory
>
<
sdk
>
<
path
>${env.ANDROID_HOME}
path
>
<
platform
>${android-sdk-platform}
platform
>
sdk
>
<
deleteConflictingFiles
>true
deleteConflictingFiles
>
<
undeployBeforeDeploy
>true
undeployBeforeDeploy
>
<
zipalign
><
skip
>false
skip
>
zipalign
>
configuration
>
<
extensions
>true
extensions
>
plugin
>
plugins
>
build
>
project
>
|