访问中央工厂的地址:http://localhost:8081/nexus/index.html#welcome   admin、admin123

查找到自己配置的maven仓库的位置,编辑setting.xml文件

  1. <?xml version="1.0" encoding="UTF-8"?>
  2.  
  3. <!--
  4. Licensed to the Apache Software Foundation (ASF) under one
  5. or more contributor license agreements. See the NOTICE file
  6. distributed with this work for additional information
  7. regarding copyright ownership. The ASF licenses this file
  8. to you under the Apache License, Version 2.0 (the
  9. "License"); you may not use this file except in compliance
  10. with the License. You may obtain a copy of the License at
  11.  
  12. http://www.apache.org/licenses/LICENSE-2.0
  13.  
  14. Unless required by applicable law or agreed to in writing,
  15. software distributed under the License is distributed on an
  16. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  17. KIND, either express or implied. See the License for the
  18. specific language governing permissions and limitations
  19. under the License.
  20. -->
  21.  
  22. <!--
  23. | This is the configuration file for Maven. It can be specified at two levels:
  24. |
  25. | 1. User Level. This settings.xml file provides configuration for a single user,
  26. | and is normally provided in ${user.home}/.m2/settings.xml.
  27. |
  28. | NOTE: This location can be overridden with the CLI option:
  29. |
  30. | -s /path/to/user/settings.xml
  31. |
  32. | 2. Global Level. This settings.xml file provides configuration for all Maven
  33. | users on a machine (assuming they're all using the same Maven
  34. | installation). It's normally provided in
  35. | ${maven.home}/conf/settings.xml.
  36. |
  37. | NOTE: This location can be overridden with the CLI option:
  38. |
  39. | -gs /path/to/global/settings.xml
  40. |
  41. | The sections in this sample file are intended to give you a running start at
  42. | getting the most out of your Maven installation. Where appropriate, the default
  43. | values (values used when the setting is not specified) are provided.
  44. |
  45. |-->
  46. <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
  47. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  48. xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
  49. <!-- localRepository
  50. | The path to the local repository maven will use to store artifacts.
  51. |
  52. | Default: ~/.m2/repository
  53. <localRepository>/path/to/local/repo</localRepository>
  54. -->
  55. <localRepository>D:/workSoft/apache-maven-3.0.5-bin/maven仓库/repos</localRepository>
  56. <!-- interactiveMode
  57. | This will determine whether maven prompts you when it needs input. If set to false,
  58. | maven will use a sensible default value, perhaps based on some other setting, for
  59. | the parameter in question.
  60. |
  61. | Default: true
  62. <interactiveMode>true</interactiveMode>
  63. -->
  64.  
  65. <!-- offline
  66. | Determines whether maven should attempt to connect to the network when executing a build.
  67. | This will have an effect on artifact downloads, artifact deployment, and others.
  68. |
  69. | Default: false
  70. <offline>false</offline>
  71. -->
  72.  
  73. <!-- pluginGroups
  74. | This is a list of additional group identifiers that will be searched when resolving plugins by their prefix, i.e.
  75. | when invoking a command line like "mvn prefix:goal". Maven will automatically add the group identifiers
  76. | "org.apache.maven.plugins" and "org.codehaus.mojo" if these are not already contained in the list.
  77. |-->
  78. <pluginGroups>
  79. <!-- pluginGroup
  80. | Specifies a further group identifier to use for plugin lookup.
  81. <pluginGroup>com.your.plugins</pluginGroup>
  82. -->
  83. </pluginGroups>
  84.  
  85. <!-- proxies
  86. | This is a list of proxies which can be used on this machine to connect to the network.
  87. | Unless otherwise specified (by system property or command-line switch), the first proxy
  88. | specification in this list marked as active will be used.
  89. |-->
  90. <proxies>
  91. <!-- proxy
  92. | Specification for one proxy, to be used in connecting to the network.
  93. |
  94. <proxy>
  95. <id>optional</id>
  96. <active>true</active>
  97. <protocol>http</protocol>
  98. <username>proxyuser</username>
  99. <password>proxypass</password>
  100. <host>proxy.host.net</host>
  101. <port>80</port>
  102. <nonProxyHosts>local.net|some.host.com</nonProxyHosts>
  103. </proxy>
  104. -->
  105. </proxies>
  106.  
  107. <!-- servers
  108. | This is a list of authentication profiles, keyed by the server-id used within the system.
  109. | Authentication profiles can be used whenever maven must make a connection to a remote server.
  110. |-->
  111. <servers>
  112. <!-- server
  113. | Specifies the authentication information to use when connecting to a particular server, identified by
  114. | a unique name within the system (referred to by the 'id' attribute below).
  115. |
  116. | NOTE: You should either specify username/password OR privateKey/passphrase, since these pairings are
  117. | used together.
  118. |
  119. <server>
  120. <id>deploymentRepo</id>
  121. <username>repouser</username>
  122. <password>repopwd</password>
  123. </server>
  124. -->
  125.  
  126. <server>
  127. <id>user-release</id><!-- 与需要发布项目中pom.xml的<distributionManagement><repository><id>名字</id></repository> </distributionManagement>名字一致 -->
  128. <username>deployment</username>
  129. <password>deployment123</password>
  130. </server>
  131.  
  132. <server>
  133. <id>user-snapshots</id><!-- 与需要发布项目中pom.xml的<distributionManagement><snapshotRepository><id>名字</id></snapshotRepository> </distributionManagement>名字一致 -->
  134. <username>deployment</username>
  135. <password>deployment123</password>
  136. </server>
  137.  
  138. <!-- Another sample, using keys to authenticate.
  139. <server>
  140. <id>siteServer</id>
  141. <privateKey>/path/to/private/key</privateKey>
  142. <passphrase>optional; leave empty if not used.</passphrase>
  143. </server>
  144. -->
  145. </servers>
  146.  
  147. <!-- mirrors
  148. | This is a list of mirrors to be used in downloading artifacts from remote repositories.
  149. |
  150. | It works like this: a POM may declare a repository to use in resolving certain artifacts.
  151. | However, this repository may have problems with heavy traffic at times, so people have mirrored
  152. | it to several places.
  153. |
  154. | That repository definition will have a unique id, so we can create a mirror reference for that
  155. | repository, to be used as an alternate download site. The mirror site will be the preferred
  156. | server for that repository.
  157. |-->
  158. <mirrors>
  159. <!-- mirror
  160. | Specifies a repository mirror site to use instead of a given repository. The repository that
  161. | this mirror serves has an ID that matches the mirrorOf element of this mirror. IDs are used
  162. | for inheritance and direct lookup purposes, and must be unique across the set of mirrors.
  163. |
  164. <mirror>
  165. <id>mirrorId</id>
  166. <mirrorOf>repositoryId</mirrorOf>
  167. <name>Human Readable Name for this Mirror.</name>
  168. <url>http://my.repository.com/repo/path</url>
  169. </mirror>
  170. -->
  171.  
  172. <!-- 如果是在本机上自己的东西,不希望链接工厂 ,不会就不需要该段代码<mirror> </mirror>,才能够从网络中下载 -->
  173. <!-- 工厂的镜像,只要mirrorOf中的工厂要访问,都会自动来找镜像,
  174. 如果镜像无法访问就不会再去中央工厂中查找,除非内部工厂开启 -->
  175. <!-- 配置镜像 哪些工厂的id需要使用该镜像-->
  176. <mirror>
  177. <id>nexus</id>
  178. <!-- 此时nexus和central将在该<url> </url>中查找
  179. <mirrorOf>nexus,central</mirrorOf>
  180. -->
  181. <!--
  182. *:表示所有的工厂都将从该url中查找,
  183. 此时
  184. <profile>
  185. <id>nexusProfile</id>
  186. <repositories>
  187. <repository>
  188. <id>nexus</id>
  189. <name>Nexus Repository</name>
  190. <url>http://localhost:8081/nexus/content/groups/public/</url>
  191. <releases>
  192. <enabled>true</enabled>
  193. </releases>
  194. <snapshots>
  195. <enabled>true</enabled>
  196. </snapshots>
  197. </repository>
  198. </repositories>
  199. </profile>
  200. 将变得毫无意义,
  201. 也没有必要激活了,处理方法
  202. <activeProfiles>
  203. <activeProfile></activeProfile>
  204. </activeProfiles>
  205. -->
  206. <!-- 推荐做法 -->
  207. <mirrorOf>*</mirrorOf>
  208. <name>Human Readable Name for this Mirror.</name>
  209. <!-- 如果想链接特定的电脑作为工厂 ,就需要把loclhost改成相对应的ip地址,此时该ip对应的电脑才能作为工厂 -->
  210. <url>http://localhost:8081/nexus/content/groups/public/</url>
  211. </mirror>
  212.  
  213. </mirrors>
  214.  
  215. <!-- profiles
  216. | This is a list of profiles which can be activated in a variety of ways, and which can modify
  217. | the build process. Profiles provided in the settings.xml are intended to provide local machine-
  218. | specific paths and repository locations which allow the build to work in the local environment.
  219. |
  220. | For example, if you have an integration testing plugin - like cactus - that needs to know where
  221. | your Tomcat instance is installed, you can provide a variable here such that the variable is
  222. | dereferenced during the build process to configure the cactus plugin.
  223. |
  224. | As noted above, profiles can be activated in a variety of ways. One way - the activeProfiles
  225. | section of this document (settings.xml) - will be discussed later. Another way essentially
  226. | relies on the detection of a system property, either matching a particular value for the property,
  227. | or merely testing its existence. Profiles can also be activated by JDK version prefix, where a
  228. | value of '1.4' might activate a profile when the build is executed on a JDK version of '1.4.2_07'.
  229. | Finally, the list of active profiles can be specified directly from the command line.
  230. |
  231. | NOTE: For profiles defined in the settings.xml, you are restricted to specifying only artifact
  232. | repositories, plugin repositories, and free-form properties to be used as configuration
  233. | variables for plugins in the POM.
  234. |
  235. |-->
  236. <profiles>
  237. <!-- profile
  238. | Specifies a set of introductions to the build process, to be activated using one or more of the
  239. | mechanisms described above. For inheritance purposes, and to activate profiles via <activatedProfiles/>
  240. | or the command line, profiles have to have an ID that is unique.
  241. |
  242. | An encouraged best practice for profile identification is to use a consistent naming convention
  243. | for profiles, such as 'env-dev', 'env-test', 'env-production', 'user-jdcasey', 'user-brett', etc.
  244. | This will make it more intuitive to understand what the set of introduced profiles is attempting
  245. | to accomplish, particularly when you only have a list of profile id's for debug.
  246. |
  247. | This profile example uses the JDK version to trigger activation, and provides a JDK-specific repo.
  248. <profile>
  249. <id>jdk-1.4</id>
  250.  
  251. <activation>
  252. <jdk>1.4</jdk>
  253. </activation>
  254.  
  255. <repositories>
  256. <repository>
  257. <id>jdk14</id>
  258. <name>Repository for JDK 1.4 builds</name>
  259. <url>http://www.myhost.com/maven/jdk14</url>
  260. <layout>default</layout>
  261. <snapshotPolicy>always</snapshotPolicy>
  262. </repository>
  263. </repositories>
  264. </profile>
  265. -->
  266.  
  267. <!--
  268. | Here is another profile, activated by the system property 'target-env' with a value of 'dev',
  269. | which provides a specific path to the Tomcat instance. To use this, your plugin configuration
  270. | might hypothetically look like:
  271. |
  272. | ...
  273. | <plugin>
  274. | <groupId>org.myco.myplugins</groupId>
  275. | <artifactId>myplugin</artifactId>
  276. |
  277. | <configuration>
  278. | <tomcatLocation>${tomcatPath}</tomcatLocation>
  279. | </configuration>
  280. | </plugin>
  281. | ...
  282. |
  283. | NOTE: If you just wanted to inject this configuration whenever someone set 'target-env' to
  284. | anything, you could just leave off the <value/> inside the activation-property.
  285. |
  286. <profile>
  287. <id>env-dev</id>
  288.  
  289. <activation>
  290. <property>
  291. <name>target-env</name>
  292. <value>dev</value>
  293. </property>
  294. </activation>
  295.  
  296. <properties>
  297. <tomcatPath>/path/to/tomcat/instance</tomcatPath>
  298. </properties>
  299. </profile>
  300. -->
  301.  
  302. <!-- 现在并未生效 -->
  303. <profile>
  304. <id>nexusProfile</id>
  305. <repositories>
  306. <repository>
  307. <id>nexus</id>
  308. <name>Nexus Repository</name>
  309. <url>http://localhost:8081/nexus/content/groups/public/</url>
  310. <releases>
  311. <enabled>true</enabled><!-- 默认可以现在releases的jar包 -->
  312. </releases>
  313. <!-- snapshots:默认是关闭的,需要手动开启 -->
  314. <snapshots>
  315. <enabled>true</enabled><!-- 默认可以现在snapshots的jar包 -->
  316. </snapshots>
  317. </repository>
  318. </repositories>
  319. </profile>
  320.  
  321. <profile>
  322. <id>centralProfile</id>
  323. <repositories>
  324. <repository>
  325. <id>central</id>
  326. <name>Central Repository</name>
  327. <url>http://*</url>
  328. <layout> default </layout>
  329. <snapshots>
  330. <enabled>true</enabled><!-- snapshots开启,避免修改jar包里面的pom.xml的内容 -->
  331. </snapshots>
  332. </repository>
  333. </repositories>
  334. </profile>
  335.  
  336. </profiles>
  337.  
  338. <!--只有激活之后才生效,激活生效后,项目中的所有都可以使用了,就可以删除某项目中的父类文件中的<repositories></repositories> -->
  339. <activeProfiles>
  340. <activeProfile>nexusProfile</activeProfile>
  341. <activeProfile>centralProfile</activeProfile>
  342. </activeProfiles>
  343.  
  344. <!-- activeProfiles
  345. | List of profiles that are active for all builds.
  346. |
  347. <activeProfiles>
  348. <activeProfile>alwaysActiveProfile</activeProfile>
  349. <activeProfile>anotherAlwaysActiveProfile</activeProfile>
  350. </activeProfiles>
  351. -->
  352. </settings>

  

要发布项目的pom.xml文档配置user-parent

  1. <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 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  2. <modelVersion>4.0.0</modelVersion>
  3. <groupId>zttc.itat.user</groupId>
  4. <artifactId>user-parent</artifactId>
  5. <version>0.0.1-SNAPSHOT</version>
  6. <packaging>pom</packaging>
  7.  
  8. <url>http://maven.apache.org</url>
  9.  
  10. <!-- 导入了三个模块,吧这三个模块聚合在一起 聚合是模块的位置 -->
  11. <modules>
  12. <module>../user-core</module>
  13. <module>../user-log</module>
  14. <module>../user-service</module>
  15. </modules>
  16.  
  17. <!-- 项目发布 -->
  18. <distributionManagement>
  19. <repository>
  20. <id>user-release</id>
  21. <name>user release resp</name>
  22. <url>http://localhost:8081/nexus/content/repositories/releases/</url>
  23. </repository>
  24.  
  25. <snapshotRepository>
  26. <id>user-snapshots</id>
  27. <name>user snapshots resp</name>
  28. <url>http://localhost:8081/nexus/content/repositories/snapshots/</url>
  29. </snapshotRepository>
  30.  
  31. </distributionManagement>
  32.  
  33. <properties>
  34. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  35. </properties>
  36.  
  37. <!-- <repositories>
  38. 只会在中央工厂中下载数据
  39. <repository>
  40. <id>nexus</id>
  41. <name>Nexus Repository</name>
  42. <url>http://localhost:8081/nexus/content/repositories/central/</url>
  43. </repository>
  44.  
  45. 内部开发的包能够被下载
  46. <repository>
  47. <id>nexus</id>
  48. <name>Nexus Repository</name>
  49. <url>http://localhost:8081/nexus/content/groups/public/</url>
  50. <releases>
  51. <enabled>true</enabled>默认可以现在releases的jar包
  52. </releases>
  53. snapshots:默认是关闭的,需要手动开启
  54. <snapshots>
  55. <enabled>true</enabled>默认可以现在snapshots的jar包
  56. </snapshots>
  57. </repository>
  58. </repositories> -->
  59.  
  60. <dependencyManagement>
  61. <dependencies>
  62.  
  63. <dependency>
  64. <groupId>org.eclipse.jetty</groupId>
  65. <artifactId>jetty-plus</artifactId>
  66. <version>9.2.0.M1</version>
  67. </dependency>
  68.  
  69. <dependency>
  70. <groupId>junit</groupId>
  71. <artifactId>junit</artifactId>
  72. <version>4.10</version>
  73. <scope>test</scope>
  74. </dependency>
  75.  
  76. <dependency>
  77. <groupId>org.hibernate</groupId>
  78. <artifactId>hibernate-core</artifactId>
  79. <version>4.1.10.Final</version>
  80. </dependency>
  81.  
  82. <dependency>
  83. <groupId>mysql</groupId>
  84. <artifactId>mysql-connector-java</artifactId>
  85. <version>5.1.24</version>
  86. <scope>runtime</scope>
  87. </dependency>
  88.  
  89. <dependency>
  90. <groupId>log4j</groupId>
  91. <artifactId>log4j</artifactId>
  92. <version>1.2.17</version>
  93. </dependency>
  94.  
  95. <dependency>
  96. <groupId>dbunit</groupId>
  97. <artifactId>dbunit</artifactId>
  98. <version>2.2</version>
  99. <scope>test</scope>
  100. </dependency>
  101.  
  102. <dependency>
  103. <groupId>commons-logging</groupId>
  104. <artifactId>commons-logging</artifactId>
  105. <version>1.1.1</version>
  106. </dependency>
  107. <dependency>
  108. <groupId>org.easymock</groupId>
  109. <artifactId>easymock</artifactId>
  110. <version>3.1</version>
  111. <scope>test</scope>
  112. </dependency>
  113.  
  114. <dependency>
  115. <!-- ${project.xxx} 当前pom文件的任意节点的内容 -->
  116. <groupId>${project.groupId}</groupId>
  117. <artifactId>user-log</artifactId>
  118. <version>${project.version}</version>
  119. <!-- 排除依赖
  120. <exclusions>
  121. <exclusion>
  122. <groupId>commons-logging</groupId>
  123. <artifactId>commons-logging</artifactId>
  124. </exclusion>
  125. </exclusions> -->
  126. </dependency>
  127.  
  128. <dependency>
  129. <groupId>${project.groupId}</groupId>
  130. <artifactId>user-core</artifactId>
  131. <version>${project.version}</version>
  132.  
  133. </dependency>
  134.  
  135. </dependencies>
  136. </dependencyManagement>
  137.  
  138. </project>

  

相关pom.xml

1:user-core

  1. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  2. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  3. <modelVersion>4.0.0</modelVersion>
  4.  
  5. <parent>
  6. <groupId>zttc.itat.user</groupId>
  7. <artifactId>user-parent</artifactId>
  8. <version>0.0.1-SNAPSHOT</version>
  9. <relativePath>../user-parent/pom.xml</relativePath>
  10. </parent>
  11.  
  12. <artifactId>user-core</artifactId>
  13. <packaging>jar</packaging>
  14.  
  15. <name>user-core</name>
  16.  
  17. <dependencies>
  18. <dependency>
  19. <groupId>junit</groupId>
  20. <artifactId>junit</artifactId>
  21. </dependency>
  22.  
  23. <dependency>
  24. <groupId>org.hibernate</groupId>
  25. <artifactId>hibernate-core</artifactId>
  26. </dependency>
  27.  
  28. <dependency>
  29. <groupId>mysql</groupId>
  30. <artifactId>mysql-connector-java</artifactId>
  31. </dependency>
  32.  
  33. <dependency>
  34. <groupId>log4j</groupId>
  35. <artifactId>log4j</artifactId>
  36. </dependency>
  37.  
  38. <dependency>
  39. <groupId>dbunit</groupId>
  40. <artifactId>dbunit</artifactId>
  41. </dependency>
  42.  
  43. </dependencies>
  44. </project>

  

user-log

  1. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  2. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  3. <modelVersion>4.0.0</modelVersion>
  4.  
  5. <parent>
  6. <groupId>zttc.itat.user</groupId>
  7. <artifactId>user-parent</artifactId>
  8. <version>0.0.1-SNAPSHOT</version>
  9. <relativePath>../user-parent/pom.xml</relativePath>
  10. </parent>
  11.  
  12. <artifactId>user-log</artifactId>
  13. <packaging>jar</packaging>
  14.  
  15. <name>user-log</name>
  16.  
  17. <dependencies>
  18. <dependency>
  19. <groupId>junit</groupId>
  20. <artifactId>junit</artifactId>
  21. </dependency>
  22.  
  23. <dependency>
  24. <groupId>commons-logging</groupId>
  25. <artifactId>commons-logging</artifactId>
  26. </dependency>
  27.  
  28. <dependency>
  29. <groupId>log4j</groupId>
  30. <artifactId>log4j</artifactId>
  31. </dependency>
  32.  
  33. </dependencies>
  34. </project>

  

user-service

  1. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  2. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  3. <modelVersion>4.0.0</modelVersion>
  4.  
  5. <parent>
  6. <groupId>zttc.itat.user</groupId>
  7. <artifactId>user-parent</artifactId>
  8. <version>0.0.1-SNAPSHOT</version>
  9. <!-- 继承的绝对路径是pom的文件 -->
  10. <relativePath>../user-parent/pom.xml</relativePath>
  11. </parent>
  12.  
  13. <artifactId>user-service</artifactId>
  14. <packaging>jar</packaging>
  15.  
  16. <name>user-service</name>
  17.  
  18. <!-- <dependencies>
  19. <dependency>
  20. <groupId>junit</groupId>
  21. <artifactId>junit</artifactId>
  22. <version>4.10</version>
  23. <scope>test</scope>
  24. <scope>compile</scope> 默认的以来范围,编译、打包时加入依赖
  25. <scope>provided</scope> 在编译 测试是加入依赖,打包的时候不会加入依赖
  26. </dependency>
  27.  
  28. <dependency>
  29. ${project.xxx} 当前pom文件的任意节点的内容
  30. <groupId>${project.groupId}</groupId>
  31. <artifactId>user-log</artifactId>
  32. <version>${project.version}</version>
  33. 排除依赖
  34. <exclusions>
  35. <exclusion>
  36. <groupId>commons-logging</groupId>
  37. <artifactId>commons-logging</artifactId>
  38. </exclusion>
  39. </exclusions>
  40. </dependency>
  41.  
  42. <dependency>
  43. <groupId>${project.groupId}</groupId>
  44. <artifactId>user-core</artifactId>
  45. <version>${project.version}</version>
  46.  
  47. </dependency>
  48.  
  49. <dependency>
  50. <groupId>org.easymock</groupId>
  51. <artifactId>easymock</artifactId>
  52. <version>3.1</version>
  53. <scope>test</scope>
  54. </dependency>
  55.  
  56. </dependencies> -->
  57.  
  58. <!-- 不必配置版本 作用域信息,会自动从父类中获取到 -->
  59. <dependencies>
  60. <dependency>
  61. <groupId>junit</groupId>
  62. <artifactId>junit</artifactId>
  63. <!-- <scope>compile</scope> 默认的以来范围,编译、打包时加入依赖 -->
  64. <!-- <scope>provided</scope> 在编译 测试是加入依赖,打包的时候不会加入依赖 -->
  65. </dependency>
  66.  
  67. <dependency>
  68. <!-- ${project.xxx} 当前pom文件的任意节点的内容 -->
  69. <groupId>${project.groupId}</groupId>
  70. <artifactId>user-log</artifactId>
  71. </dependency>
  72.  
  73. <dependency>
  74. <groupId>${project.groupId}</groupId>
  75. <artifactId>user-core</artifactId>
  76. </dependency>
  77.  
  78. <dependency>
  79. <groupId>org.easymock</groupId>
  80. <artifactId>easymock</artifactId>
  81. </dependency>
  82.  
  83. <dependency>
  84. <groupId>org.eclipse.jetty</groupId>
  85. <artifactId>jetty-plus</artifactId>
  86. </dependency>
  87.  
  88. <dependency>
  89. <groupId>org.eclipse.jetty</groupId>
  90. <artifactId>jetty-server</artifactId>
  91. <version>9.2.0.M1</version>
  92. </dependency>
  93.  
  94. </dependencies>
  95. </project>

  

maven 通过nexus创建工厂的配置的更多相关文章

  1. 07 Maven 使用Nexus创建私服

    7. Maven 使用Nexus创建私服 私服不是 Maven 的核心概念,它仅仅是一种衍生出来的特殊的 Maven 仓库.通过建立自己的私服,就可以降低中央仓库负荷.节省外网带宽.加速 Maven ...

  2. 大数据入门:Maven项目的创建及相关配置

    目录 Maven项目的创建及相关配置 一.Maven的介绍 1.Maven是什么: 2.Maven作用: 3.Maven项目的目录结构: 4.Maven的三点坐标: 5.maven的pom文件: 6. ...

  3. [maven] 使用Nexus创建maven私有仓库

    1.为什么需要maven私有仓库? 从Maven中央仓库下载所需的jar包,需要外网的支持.如果公司不能上外网的话则不能从中央仓库下载所需jar包,公司网速慢的时候也会影响项目构建的速度.用户可以用n ...

  4. maven 之nexus仓库管理_私服配置

    1.下载nexus私服 下载地址:http://www.sonatype.org/downloads/nexus-latest.war 2.解压 解压以下压缩包 3.配置环境变量 *\nexus-2. ...

  5. 【maven】之nexus常用的一些配置

    nexus私服主要是在项目和maven中央仓库中间做代理,一般在公司内网或者公司内部的一些私包,都需要这么个产品.下面主要是关于maven和nexus之间的一些配置 1.在pom中配置nexus私服 ...

  6. 使用Nexus创建Maven私服

    Nexus是一个强大的Maven仓库管理器,它极大地简化了自己内部仓库的维护和外部仓库的访问.利用Nexus你可以只在一个地方就能够完全控制访问和部署在你所维护仓库中的每个Artifact.Nexus ...

  7. maven笔记(maven使用与安装,eclipse中maven的配置,maven项目的创建)

    一.初识maven 1.maven是什么? 他是一个项目管理器,配置好pom配置文件后,maven会管理项目的依赖文件等,当项目用到外部jar包时,maven帮助我们去网上下载并打包发到Tomcat中 ...

  8. Maven仓库Nexus的安装配置

    1.下载nexus,最新版本是nexus-2.8.0-05   参考文章 下载nexus-latest-bundle.zip文件后,并解压到  D:\nexus下 配置nexus的环境变量:先配置NE ...

  9. 使用nexus创建maven私有仓库

    nexus安装 nexus下载 wget https://sonatype-download.global.ssl.fastly.net/nexus/oss/nexus-2.11.1-01-bundl ...

随机推荐

  1. C# winform 弹出输入框

    Microsoft.VisualBasic.dll   引用using Microsoft.VisualBasic; string PM = Interaction.InputBox("提示 ...

  2. 1010 [HNOI2008]玩具装箱toy

    斜率优化dp: 推荐学习http://www.cnblogs.com/perseawe/archive/2012/05/12/bz1010.html 看着别人的题解自己学着推,终于理解了 #inclu ...

  3. MUH and Cube Walls

    Codeforces Round #269 (Div. 2) D:http://codeforces.com/problemset/problem/471/D 题意:给定两个序列a ,b, 如果在a中 ...

  4. php抓取页面的几种方法详解

    本篇文章是对php抓取页面的几种方法进行了详细的分析介绍,需要的朋友参考下 在 做一些天气预报或者RSS订阅的程序时,往往需要抓取非本地文件,一般情况下都是利用php模拟浏览器的访问,通过http请求 ...

  5. ZOJ - 2615 Cells

    注意数组别开太小了,代码照着训练经典打的: #include <iostream> #include <sstream> #include <cstdio> #in ...

  6. QT 的信号与槽机制介绍

    https://www.ibm.com/developerworks/cn/linux/guitoolkit/qt/signal-slot/ http://www.kuqin.com/qtdocume ...

  7. restful理解

    越来越多的人开始意识到,网站即软件,而且是一种新型的软件. 这种"互联网软件"采用客户端/服务器模式,建立在分布式体系上,通过互联网通信,具有高延时(high latency).高 ...

  8. istringstream、ostringstream、stringstream 类介绍 .

    istringstream.ostringstream.stringstream 类介绍 . 转自:http://www.cnblogs.com/gamesky/archive/2013/01/09/ ...

  9. Spring读取加密属性文件处理

    引言:Spring框架俨然已经是目前Java WEB项目开发的一个宠儿,更有人将Spring, Struts,和Hibernage称之为Java WEB项目开发的3件利器.Spring的依赖.注入.A ...

  10. NPOI读取Excel案例

    3.4用NPOI操作EXCEL--从Excel中抽取文本 我们知道,搜索引擎最擅长处理的就是文本,而Excel中的内容并不是以文本方式存储的.那么如果想要搜索引擎爬虫能够抓取到Excel中的内容是比较 ...