今天在加用自己的小本本导入项目时,pom.xml文件一直报错,说missing artifact xxxx.jar包。。。。。。。。。各种找答案,什么删除.lastupdate结尾的文件,然后重新Maven-update project……..等等!!!!!最后发现其实是忘了改Maven的Setting.xml文件,公司项目上的Mavne的Setting.xml和自己的Setting.xml不一样!!!!晕晕晕!!(应为自己的Maven是重新下载的,不是拷贝公司的,所以里面的Setting.xml是初始化的什么都没有)

<?xml version="1.0" encoding="UTF-8"?><!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements.  See the NOTICE file
distributed with this work for additional information
regarding copyright ownership.  The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License.  You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied.  See the License for the
specific language governing permissions and limitations
under the License.
--><!--| This is the configuration file for Maven. It can be specified at two levels:||  1. User Level. This settings.xml file provides configuration for a single user, |                 and is normally provided in ${user.home}/.m2/settings.xml.||                 NOTE: This location can be overridden with the CLI option:||                 -s /path/to/user/settings.xml||  2. Global Level. This settings.xml file provides configuration for all Maven|                 users on a machine (assuming they're all using the same Maven|                 installation). It's normally provided in |                 ${maven.home}/conf/settings.xml.||                 NOTE: This location can be overridden with the CLI option:||                 -gs /path/to/global/settings.xml|| The sections in this sample file are intended to give you a running start at| getting the most out of your Maven installation. Where appropriate, the default| values (values used when the setting is not specified) are provided.||-->
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"><!-- localRepository| The path to the local repository maven will use to store artifacts.|| Default: ~/.m2/repository--><localRepository>这里配置自己的Mavne本地仓库地址</localRepository><!-- interactiveMode| This will determine whether maven prompts you when it needs input. If set to false,| maven will use a sensible default value, perhaps based on some other setting, for| the parameter in question.|| Default: true<interactiveMode>true</interactiveMode>--><!-- offline| Determines whether maven should attempt to connect to the network when executing a build.| This will have an effect on artifact downloads, artifact deployment, and others.|| Default: false<offline>false</offline>--><!-- pluginGroups| This is a list of additional group identifiers that will be searched when resolving plugins by their prefix, i.e.| when invoking a command line like "mvn prefix:goal". Maven will automatically add the group identifiers| "org.apache.maven.plugins" and "org.codehaus.mojo" if these are not already contained in the list.|--><pluginGroups><!-- pluginGroup| Specifies a further group identifier to use for plugin lookup.<pluginGroup>com.your.plugins</pluginGroup>--></pluginGroups><!-- proxies| This is a list of proxies which can be used on this machine to connect to the network.| Unless otherwise specified (by system property or command-line switch), the first proxy| specification in this list marked as active will be used.|--><proxies><!-- proxy| Specification for one proxy, to be used in connecting to the network.|<proxy><id>optional</id><active>true</active><protocol>http</protocol><username>proxyuser</username><password>proxypass</password><host>proxy.host.net</host><port>80</port><nonProxyHosts>local.net|some.host.com</nonProxyHosts></proxy>--><proxy><id>optional</id><active>true</active><protocol>http</protocol><username>deployment</username><password>UTOUU#NEXUS</password><host>nexus.dev.utouu.com</host><port>80</port></proxy></proxies><!-- servers| This is a list of authentication profiles, keyed by the server-id used within the system.| Authentication profiles can be used whenever maven must make a connection to a remote server.|--><servers><!-- server| Specifies the authentication information to use when connecting to a particular server, identified by| a unique name within the system (referred to by the 'id' attribute below).| | NOTE: You should either specify username/password OR privateKey/passphrase, since these pairings are |       used together.|<server><id>deploymentRepo</id><username>repouser</username><password>repopwd</password></server>--><!-- Another sample, using keys to authenticate.<server><id>siteServer</id><privateKey>/path/to/private/key</privateKey><passphrase>optional; leave empty if not used.</passphrase></server>--><server><id>releases</id><username>deployment</username><password>UTOUU#NEXUS</password></server><server><id>snapshots</id><username>deployment</username><password>UTOUU#NEXUS</password></server></servers><!-- mirrors| This is a list of mirrors to be used in downloading artifacts from remote repositories.| | It works like this: a POM may declare a repository to use in resolving certain artifacts.| However, this repository may have problems with heavy traffic at times, so people have mirrored| it to several places.|| That repository definition will have a unique id, so we can create a mirror reference for that| repository, to be used as an alternate download site. The mirror site will be the preferred | server for that repository.|--><mirrors><!-- mirror| Specifies a repository mirror site to use instead of a given repository. The repository that| this mirror serves has an ID that matches the mirrorOf element of this mirror. IDs are used| for inheritance and direct lookup purposes, and must be unique across the set of mirrors.|<mirror><id>mirrorId</id><mirrorOf>repositoryId</mirrorOf><name>Human Readable Name for this Mirror.</name><url>http://my.repository.com/repo/path</url></mirror>--><mirror><id>repo</id><mirrorOf>*</mirrorOf><name>Repository</name><url>http://nexus.dev.utouu.com/content/groups/public/</url></mirror></mirrors><!-- profiles| This is a list of profiles which can be activated in a variety of ways, and which can modify| the build process. Profiles provided in the settings.xml are intended to provide local machine-| specific paths and repository locations which allow the build to work in the local environment.|| For example, if you have an integration testing plugin - like cactus - that needs to know where| your Tomcat instance is installed, you can provide a variable here such that the variable is | dereferenced during the build process to configure the cactus plugin.|| As noted above, profiles can be activated in a variety of ways. One way - the activeProfiles| section of this document (settings.xml) - will be discussed later. Another way essentially| relies on the detection of a system property, either matching a particular value for the property,| or merely testing its existence. Profiles can also be activated by JDK version prefix, where a | value of '1.4' might activate a profile when the build is executed on a JDK version of '1.4.2_07'.| Finally, the list of active profiles can be specified directly from the command line.|| NOTE: For profiles defined in the settings.xml, you are restricted to specifying only artifact|       repositories, plugin repositories, and free-form properties to be used as configuration|       variables for plugins in the POM.||--><profiles><!-- profile| Specifies a set of introductions to the build process, to be activated using one or more of the| mechanisms described above. For inheritance purposes, and to activate profiles via <activatedProfiles/>| or the command line, profiles have to have an ID that is unique.|| An encouraged best practice for profile identification is to use a consistent naming convention| for profiles, such as 'env-dev', 'env-test', 'env-production', 'user-jdcasey', 'user-brett', etc.| This will make it more intuitive to understand what the set of introduced profiles is attempting| to accomplish, particularly when you only have a list of profile id's for debug.|| This profile example uses the JDK version to trigger activation, and provides a JDK-specific repo.<profile><id>jdk-1.4</id><activation><jdk>1.4</jdk></activation><repositories><repository><id>jdk14</id><name>Repository for JDK 1.4 builds</name><url>http://www.myhost.com/maven/jdk14</url><layout>default</layout><snapshotPolicy>always</snapshotPolicy></repository></repositories></profile>--><!--| Here is another profile, activated by the system property 'target-env' with a value of 'dev',| which provides a specific path to the Tomcat instance. To use this, your plugin configuration| might hypothetically look like:|| ...| <plugin>|   <groupId>org.myco.myplugins</groupId>|   <artifactId>myplugin</artifactId>|   |   <configuration>|     <tomcatLocation>${tomcatPath}</tomcatLocation>|   </configuration>| </plugin>| ...|| NOTE: If you just wanted to inject this configuration whenever someone set 'target-env' to|       anything, you could just leave off the <value/> inside the activation-property.|-->
<profile><repositories><repository><snapshots><enabled>false</enabled></snapshots><id>central</id><name>libs-release</name><url>http://repo.spring.io/libs-release</url></repository><repository><snapshots /><id>snapshots</id><name>libs-snapshot</name><url>http://repo.spring.io/libs-snapshot</url></repository></repositories><pluginRepositories><pluginRepository><snapshots><enabled>false</enabled></snapshots><id>central</id><name>plugins-release</name><url>http://repo.spring.io/plugins-release</url></pluginRepository><pluginRepository><snapshots /><id>snapshots</id><name>plugins-snapshot</name><url>http://repo.spring.io/plugins-snapshot</url></pluginRepository></pluginRepositories><id>artifactory</id></profile><profile><id>env-dev</id><activation><jdk>1.7</jdk></activation><repositories><repository><id>local-nexus</id><url>http://nexus.dev.utouu.com/content/groups/public/</url><layout>default</layout><releases><enabled>true</enabled></releases><snapshots><enabled>true</enabled></snapshots></repository></repositories></profile></profiles><!-- activeProfiles| List of profiles that are active for all builds.|<activeProfiles><activeProfile>alwaysActiveProfile</activeProfile><activeProfile>anotherAlwaysActiveProfile</activeProfile></activeProfiles>-->
<activeProfiles><activeProfile>env-dev</activeProfile><activeProfile>artifactory</activeProfile></activeProfiles>
</settings>

SVN导入项目转变为Maven项目时pom.xml报错相关推荐

  1. 【报错笔记】Eclipse导入Maven项目时pom.xml报错,项目上有红感叹号。

    Eclipse导入Maven项目时pom.xml报错,项目上有红感叹号. 错误原因: pom.xml中依赖的jar包在本地仓库中不存在,但是在maven/conf/settings.xml中定义了阿里 ...

  2. pom.xml报错:Failure to find org.apache.maven.doxia:doxia-logging-api:jar:1.1 in http://repo.

    在maven本地库中找到对应的地址:org.apache.maven.doxia找到对应的文件:doxia-logging-api发现文件中包含有lastUpdated字样,表示该文件并未下载完成,然 ...

  3. 【报错笔记】MAVEN pom.xml 报错解决方法

    错误信息出现在pom头的project标签,project标签内容是: < project xmlns="http://maven.apache.org/POM/4.0.0" ...

  4. maven项目(引入依赖失败, pom.xml 报错\爆红)

    ☺ 引入项目过程中,idea引入磁盘的某个的maven项目 这里以springboot项目以例子,发现pom.xml 的依赖大面积爆红,springboot的版本依赖也报错了,然后发现下面有进度条在下 ...

  5. Maven项目pom.xml报错

    1.org.apache.maven.archiver.MavenArchiver.getManifest报错 pom.xml第一行报错,如图: 解决办法: 第一步: help ->Instal ...

  6. maven pom.xml 报错

    eclipse maven项目错误:Failure to transfer org.codehaus.plexus:plexus-interpolation:jar:1.15 from http:// ...

  7. eclipse中导入maven项目时pom文件报错

    问题: org.apache.maven.archiver.MavenArchiver.getManifest(org.apache.maven.project.MavenProject, org.a ...

  8. java运行出现XML_eclipse开发环境下,项目运行时出现pom.xml报错(java.io.PrintWriter)...

    首先,我们先来说一下解决问题的方法:在eclipse的help中选择install new software,在workwith中输入下面url:http://download.eclipse.org ...

  9. Maven项目pom文件报错解决方案

    引入maven项目后,有时会出现pom文件报错的情况,其中几种报错的解决方案如下 一.      报错信息: org.apache.maven.archiver.MavenArchiver.getMa ...

最新文章

  1. 本地配置文件git提交
  2. 第八章 工厂方法模式
  3. CPA、CPS、CPM、CPT、CPC 是什么
  4. 戴尔携手英特尔揭示技术与员工潜能背后的真相
  5. Docker入门-搭建docker私有仓库
  6. 静态内存、动态内存与堆栈
  7. Django信号量实现用户密码修改
  8. Java-线程中sleep()、wait()和notify()和notifyAll()、suspend和resume()、yield()、join()、interrupt()的用法和区别
  9. cef 加载flash 弹框_cef 3.2357之后加载flash的方法
  10. stl空间配置器alloc
  11. Tcl 语言 ——变量篇
  12. Burp Suite暴力破解网站密码
  13. c# NPOI按模板导出
  14. Excel入门之快速录入数据
  15. 【C++从青铜到王者】第十八篇:C++之多态
  16. 解线性方程组的迭代法--大型稀疏矩阵---松弛迭代法C++实现
  17. 腾讯云直播 延迟排查
  18. k8s调度之亲和/反亲和
  19. rs232串口通讯模块 - Delphi编程
  20. THUSC 2017 游记

热门文章

  1. 掌握电商后台设计,这一篇足矣
  2. RegExp(正则)
  3. mathcad使用小结
  4. Python批量转换:docx-doc
  5. 一个优秀的Linux学习网址(中文)
  6. Javascript学习笔记(犀牛书1、2章)
  7. 搭建人工智能云服务器,搭建人工智能云连接,实现手机APP远程控制
  8. 项目:C++在线测评系统
  9. 倒立摆的实现 5.步进电机的控制
  10. python文件编译为pyc后运行