1. <?xml version="1.0"?>
2. <project>
3. <modelVersion>4.0.0</modelVersion>
4. <groupId>test</groupId>
5. <artifactId>hibernateBundle</artifactId>
6. <packaging>bundle</packaging>
7. <name>Spring OSGi Bundle</name>
8. <version>1.0.0</version>
9. <url>http://www.springframework.org/osgi</url>
10.
11. <properties>
12. <slf4j.version>1.4.3</slf4j.version>
13. <spring.maven.artifact.version>2.5.1</spring.maven.artifact.version>
14. </properties>
15.
16. <dependencies>
17. <dependency>
18. <groupId>org.springframework.osgi</groupId>
19. <artifactId>junit.osgi</artifactId>
20. <version>3.8.2-SNAPSHOT</version>
21. <scope>test</scope>
22. </dependency>
23. <dependency>
24. <groupId>org.springframework</groupId>
25. <artifactId>spring-test</artifactId>
26. <version>${spring.maven.artifact.version}</version>
27. <scope>test</scope>
28. </dependency>
29. <dependency>
30. <groupId>org.springframework</groupId>
31. <artifactId>spring-core</artifactId>
32. <version>${spring.maven.artifact.version}</version>
33. </dependency>
34. <dependency>
35. <groupId>org.springframework</groupId>
36. <artifactId>spring-context</artifactId>
37. <version>${spring.maven.artifact.version}</version>
38. </dependency>
39. <dependency>
40. <groupId>org.springframework</groupId>
41. <artifactId>spring-beans</artifactId>
42. <version>${spring.maven.artifact.version}</version>
43. </dependency>
44.
45. <dependency>
46. <groupId>org.slf4j</groupId>
47. <artifactId>jcl104-over-slf4j</artifactId>
48. <version>${slf4j.version}</version>
49. </dependency>
50.
51. <dependency>
52. <groupId>org.slf4j</groupId>
53. <artifactId>slf4j-api</artifactId>
54. <version>${slf4j.version}</version>
55. </dependency>
56.
57. <dependency>
58. <groupId>org.slf4j</groupId>
59. <artifactId>slf4j-log4j12</artifactId>
60. <version>${slf4j.version}</version>
61. </dependency>
62.
63. <dependency>
64. <groupId>org.osgi</groupId>
65. <artifactId>org.osgi.core</artifactId>
66. <version>4.0</version>
67. </dependency>
68.
69. <dependency>
70. <groupId>com.oracle</groupId>
71. <artifactId>ojdbc14</artifactId>
72. <version>10.2.0.3.0</version>
73. </dependency>
74. <dependency>
75. <groupId>org.hibernate</groupId>
76. <artifactId>hibernate-annotations</artifactId>
77. <version>3.4.0.GA</version>
78. <exclusions>
79. <!--排除Slf4j有冲突-->
80. <exclusion>
81. <groupId>org.slf4j</groupId>
82. <artifactId>slf4j-api</artifactId>
83. </exclusion>
84. </exclusions>
85. </dependency>
86.
87. </dependencies>
88.
89. <!-- for packaging as an OSGi bundle, we use the maven-bundle-plugin -->
90.
91. <!-- see http://felix.apache.org/site/maven-bundle-plugin-bnd.html for more info -->
92. <build>
93. <plugins>
94. <plugin>
95. <groupId>org.apache.felix</groupId>
96. <artifactId>maven-bundle-plugin</artifactId>
97. <extensions>true</extensions>
98. <version>1.0.0</version>
99. <configuration>
100. <instructions>
101. <manifestLocation>META-INF</manifestLocation>
102. <Export-Package>test.*</Export-Package>
103. <Import-Package>*</Import-Package>
104. </instructions>
105. </configuration>
106. </plugin>
107.
108. <plugin>
109. <groupId>org.apache.maven.plugins</groupId>
110. <artifactId>maven-dependency-plugin</artifactId>
111. <version>2.0</version>
112. <executions>
113. <execution>
114. <id>copy-dependencies</id>
115. <phase>package</phase>
116. <goals>
117. <goal>package</goal>
118. </goals>
119. <configuration>
120. <outputDirectory>lib</outputDirectory>
121. <overWriteReleases>false</overWriteReleases>
122. <overWriteSnapshots>false</overWriteSnapshots>
123. <overWriteIfNewer>true</overWriteIfNewer>
124. </configuration>
125. </execution>
126. </executions>
127. </plugin>
128.
129. </plugins>
130. </build>
131.
132. <!-- ================================================ -->
133. <!-- Repository Configuration -->
134. <!-- ================================================ -->
135.
136. <repositories>
137. <repository>
138. <id>apache.m2.incubator</id>
139. <name>Apache M2 Incubator Repository</name>
140. <url>http://people.apache.org/repo/m2-incubating-repository/</url>
141. </repository>
142. <repository>
143. <id>eclipse-repository</id>
144. <name>Eclipse Repository</name>
145. <url>http://repo1.maven.org/eclipse/</url>
146. </repository>
147.
148. <repository>
149. <id>spring-ext</id>
150. <name>Spring External Dependencies Repository</name>
151. <url>
152. https://springframework.svn.sourceforge.net/svnroot/springframework/repos/repo-ext/
153. </url>
154. </repository>
155.
156.
157. <repository>
158. <id>i21-s3-osgi-repo</id>
159. <name>i21 osgi artifacts repo</name>
160. <snapshots>
161. <enabled>true</enabled>
162. </snapshots>
163. <url>http://s3.amazonaws.com/maven.springframework.org/osgi</url>
164. </repository>
165.
166.
167. <repository>
168. <id>i21-s3-maven-repo</id>
169. <name>i21 S3 milestone repo</name>
170. <url>http://s3.amazonaws.com/maven.springframework.org/milestone</url>
171. </repository>
172.
173. <!--
174.
175. Spring-DM snapshot repository - disabled by default
176.
177. <repository>
178. <snapshots><enabled>true</enabled></snapshots>
179. <id>springframework.org</id>
180. <name>Springframework Maven SNAPSHOT Repository</name>
181. <url>http://s3.amazonaws.com/maven.springframework.org/snapshot</url>
182. </repository>
183. -->
184. </repositories>
185.
186. <pluginRepositories>
187. <pluginRepository>
188. <id>maven-repo</id>
189. <name>maven repo</name>
190. <url>http://repo1.maven.org/maven2/</url>
191. </pluginRepository>
192. <pluginRepository>
193. <id>flex-mojos-repository</id>
194. <url>http://flex-mojos.googlecode.com/svn/trunk/repository/</url>
195. <releases>
196. <enabled>true</enabled>
197. </releases>
198. <snapshots>
199. <enabled>false</enabled>
200. </snapshots>
201. </pluginRepository>
202. <pluginRepository>
203. <id>epseelon-repository</id>
204. <url>http://m2repo.epseelon.org/</url>
205. <releases>
206. <enabled>true</enabled>
207. </releases>
208. <snapshots>
209. <enabled>false</enabled>
210. </snapshots>
211. </pluginRepository>
212. </pluginRepositories>
213.
214. </project>
分享到:
相关推荐
maven配置文件配置国内阿里云镜像
maven配置文件(阿里云)
SpringBoot项目使用maven配置文件是Java后端开发中的常见实践,它可以帮助开发者高效地管理依赖、构建项目以及执行自动化任务。Maven是Apache软件基金会的一个项目,它提供了一个项目对象模型(Project Object Model...
使maven在没有私服依然可以快速依赖资源包,其中配置了国内多个镜像仓库地址
### Maven配置文件`settings.xml` `settings.xml`文件是Maven的个人配置文件,它位于用户的`.m2`目录下,通常是`%USER_HOME%/.m2/settings.xml`(Windows)或`~/.m2/settings.xml`(Unix/Linux)。此文件包含了一些...
阿里巴巴仓库的maven配置文件,链接国内仓库,下载速度快,只需要配置一下本地仓库地址;阿里巴巴仓库的maven配置文件,链接国内仓库,下载速度快,只需要配置一下本地仓库地址;
在Java开发领域,Maven是一个不可...而提供的压缩包文件“maven配置文件”应该包含了一个已经配置好阿里云链接的`settings.xml`,可以直接使用,无需手动修改。这将极大地帮助开发者快速获取到所需的库,提升开发体验。
pom.xml配置文件,包含数据库,仓库地址配置等等
maven配置文件,仓库下载地址等信息。。。。setting设置信息
maven阿里云配置文件,采用maven3.5.2,是一个非常实用的配置文件。
Maven原版settings.xml配置文件,根据个人需要,可以打开对应注释或替换相关阿里云镜像或远程仓库地址即可使用。
配置Maven私服时,需要修改Maven的默认配置文件,此文件已经配置好Maven私服模板,只需要修改IP和对应的端口号即可
阿里云maven配置文件,maven下载包的配置文件,使用阿里云速度更快。
maven配置文件settings.xml
maven的setting配置文件详解。。。。
国内阿里云公有仓库的maven配置文件,配置阿里云公仓连接的文件
在安装Maven构建工具后,Maven仓库镜像站点默认是国外的,因为网络原因,在构建项目时下载依赖文件会很慢,甚至有可能下载失败。所以我们一定要把仓库镜像站点改为国内的才能顺利下载,通常比较常用得是阿里云镜像,...