maven的超級(jí)POM
%maven_home%/lib/maven-2.0.9-uber.jar內(nèi)org.apache.maven.project包下有個(gè)pom-4.0.0.xml
,這個(gè)就是默認(rèn)的POM!
1
<!--
2
Licensed to the Apache Software Foundation (ASF) under one
3
or more contributor license agreements. See the NOTICE file
4
distributed with this work for additional information
5
regarding copyright ownership. The ASF licenses this file
6
to you under the Apache License, Version 2.0 (the
7
"License"); you may not use this file except in compliance
8
with the License. You may obtain a copy of the License at
9
10
http://www.apache.org/licenses/LICENSE-2.0
11
12
Unless required by applicable law or agreed to in writing,
13
software distributed under the License is distributed on an
14
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15
KIND, either express or implied. See the License for the
16
specific language governing permissions and limitations
17
under the License.
18
-->
19
20
<!-- START SNIPPET: superpom -->
21
<project>
22
<modelVersion>4.0.0</modelVersion>
23
<name>Maven Default Project</name>
24
25
<repositories>
26
<repository>
27
<id>central</id>
28
<name>Maven Repository Switchboard</name>
29
<layout>default</layout>
30
<url>http://repo1.maven.org/maven2</url>
31
<snapshots>
32
<enabled>false</enabled>
33
</snapshots>
34
</repository>
35
</repositories>
36
37
<pluginRepositories>
38
<pluginRepository>
39
<id>central</id>
40
<name>Maven Plugin Repository</name>
41
<url>http://repo1.maven.org/maven2</url>
42
<layout>default</layout>
43
<snapshots>
44
<enabled>false</enabled>
45
</snapshots>
46
<releases>
47
<updatePolicy>never</updatePolicy>
48
</releases>
49
</pluginRepository>
50
</pluginRepositories>
51
52
<build>
53
<directory>target</directory>
54
<outputDirectory>target/classes</outputDirectory>
55
<finalName>${project.artifactId}-${project.version}</finalName>
56
<testOutputDirectory>target/test-classes</testOutputDirectory>
57
<sourceDirectory>src/main/java</sourceDirectory>
58
<scriptSourceDirectory>src/main/scripts</scriptSourceDirectory>
59
<testSourceDirectory>src/test/java</testSourceDirectory>
60
<resources>
61
<resource>
62
<directory>src/main/resources</directory>
63
</resource>
64
</resources>
65
<testResources>
66
<testResource>
67
<directory>src/test/resources</directory>
68
</testResource>
69
</testResources>
70
<pluginManagement>
71
<plugins>
72
<plugin>
73
<artifactId>maven-antrun-plugin</artifactId>
74
<version>1.1</version>
75
</plugin>
76
<plugin>
77
<artifactId>maven-assembly-plugin</artifactId>
78
<version>2.2-beta-2</version>
79
</plugin>
80
<plugin>
81
<artifactId>maven-clean-plugin</artifactId>
82
<version>2.2</version>
83
</plugin>
84
<plugin>
85
<artifactId>maven-compiler-plugin</artifactId>
86
<version>2.0.2</version>
87
</plugin>
88
<plugin>
89
<artifactId>maven-dependency-plugin</artifactId>
90
<version>2.0</version>
91
</plugin>
92
<plugin>
93
<artifactId>maven-deploy-plugin</artifactId>
94
<version>2.3</version>
95
</plugin>
96
<plugin>
97
<artifactId>maven-ear-plugin</artifactId>
98
<version>2.3.1</version>
99
</plugin>
100
<plugin>
101
<artifactId>maven-ejb-plugin</artifactId>
102
<version>2.1</version>
103
</plugin>
104
<plugin>
105
<artifactId>maven-install-plugin</artifactId>
106
<version>2.2</version>
107
</plugin>
108
<plugin>
109
<artifactId>maven-jar-plugin</artifactId>
110
<version>2.2</version>
111
</plugin>
112
<plugin>
113
<artifactId>maven-javadoc-plugin</artifactId>
114
<version>2.4</version>
115
</plugin>
116
<plugin>
117
<artifactId>maven-plugin-plugin</artifactId>
118
<version>2.4.1</version>
119
</plugin>
120
<plugin>
121
<artifactId>maven-rar-plugin</artifactId>
122
<version>2.2</version>
123
</plugin>
124
<plugin>
125
<artifactId>maven-release-plugin</artifactId>
126
<version>2.0-beta-7</version>
127
</plugin>
128
<plugin>
129
<artifactId>maven-resources-plugin</artifactId>
130
<version>2.2</version>
131
</plugin>
132
<plugin>
133
<artifactId>maven-site-plugin</artifactId>
134
<version>2.0-beta-6</version>
135
</plugin>
136
<plugin>
137
<artifactId>maven-source-plugin</artifactId>
138
<version>2.0.4</version>
139
</plugin>
140
<plugin>
141
<artifactId>maven-surefire-plugin</artifactId>
142
<version>2.4.2</version>
143
</plugin>
144
<plugin>
145
<artifactId>maven-war-plugin</artifactId>
146
<version>2.1-alpha-1</version>
147
</plugin>
148
</plugins>
149
</pluginManagement>
150
</build>
151
152
<reporting>
153
<outputDirectory>target/site</outputDirectory>
154
</reporting>
155
<profiles>
156
<profile>
157
<id>release-profile</id>
158
159
<activation>
160
<property>
161
<name>performRelease</name>
162
<value>true</value>
163
</property>
164
</activation>
165
166
<build>
167
<plugins>
168
<plugin>
169
<inherited>true</inherited>
170
<groupId>org.apache.maven.plugins</groupId>
171
<artifactId>maven-source-plugin</artifactId>
172
<executions>
173
<execution>
174
<id>attach-sources</id>
175
<goals>
176
<goal>jar</goal>
177
</goals>
178
</execution>
179
</executions>
180
</plugin>
181
<plugin>
182
<inherited>true</inherited>
183
<groupId>org.apache.maven.plugins</groupId>
184
<artifactId>maven-javadoc-plugin</artifactId>
185
<executions>
186
<execution>
187
<id>attach-javadocs</id>
188
<goals>
189
<goal>jar</goal>
190
</goals>
191
</execution>
192
</executions>
193
</plugin>
194
<plugin>
195
<inherited>true</inherited>
196
<groupId>org.apache.maven.plugins</groupId>
197
<artifactId>maven-deploy-plugin</artifactId>
198
<configuration>
199
<updateReleaseInfo>true</updateReleaseInfo>
200
</configuration>
201
</plugin>
202
</plugins>
203
</build>
204
</profile>
205
</profiles>
206
207
</project>
208
<!-- END SNIPPET: superpom -->
209

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

138

139

140

141

142

143

144

145

146

147

148

149

150

151

152

153

154

155

156

157

158

159

160

161

162

163

164

165

166

167

168

169

170

171

172

173

174

175

176

177

178

179

180

181

182

183

184

185

186

187

188

189

190

191

192

193

194

195

196

197

198

199

200

201

202

203

204

205

206

207

208

209

posted on 2009-07-10 15:39 andy.kong 閱讀(1317) 評(píng)論(0) 編輯 收藏 所屬分類: maven