SVN导入项目转变为Maven项目时pom.xml报错

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






<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>这里配置自己的Mavne本地仓库地址localRepository>


  

  

  
  <pluginGroups>
    
  pluginGroups>

  
  <proxies>
    
    <proxy>
      <id>optionalid>
      <active>trueactive>
      <protocol>httpprotocol>
      <username>deploymentusername>
      <password>UTOUU#NEXUSpassword>
      <host>nexus.dev.utouu.comhost>
      <port>80port>
    proxy>
  proxies>

  
  <servers>
    

    
    <server>
      <id>releasesid>
      <username>deploymentusername>
      <password>UTOUU#NEXUSpassword>
    server>
    <server>
      <id>snapshotsid>
      <username>deploymentusername>
      <password>UTOUU#NEXUSpassword>
    server>
  servers>

  
  <mirrors>
    
     <mirror>
      <id>repoid>
      <mirrorOf>*mirrorOf>
      <name>Repositoryname>
      <url>http://nexus.dev.utouu.com/content/groups/public/url>
    mirror>
  mirrors>

  
  <profiles>
    

    
<profile>
      <repositories>
        <repository>
          <snapshots>
            <enabled>falseenabled>
          snapshots>
          <id>centralid>
          <name>libs-releasename>
          <url>http://repo.spring.io/libs-releaseurl>
        repository>
        <repository>
          <snapshots />
          <id>snapshotsid>
          <name>libs-snapshotname>
          <url>http://repo.spring.io/libs-snapshoturl>
        repository>
      repositories>
      <pluginRepositories>
        <pluginRepository>
          <snapshots>
            <enabled>falseenabled>
          snapshots>
          <id>centralid>
          <name>plugins-releasename>
          <url>http://repo.spring.io/plugins-releaseurl>
        pluginRepository>
        <pluginRepository>
          <snapshots />
          <id>snapshotsid>
          <name>plugins-snapshotname>
          <url>http://repo.spring.io/plugins-snapshoturl>
        pluginRepository>
      pluginRepositories>
      <id>artifactoryid>
    profile>


     <profile>
      <id>env-devid>
      <activation>
        <jdk>1.7jdk>
      activation>
      <repositories>
        <repository>
          <id>local-nexusid>
          <url>http://nexus.dev.utouu.com/content/groups/public/url>
          <layout>defaultlayout>
          <releases>
                <enabled>trueenabled>
          releases>
          <snapshots>
                <enabled>trueenabled>
          snapshots>
        repository>
      repositories>
    profile>
  profiles>
  
<activeProfiles>
    <activeProfile>env-devactiveProfile>
    <activeProfile>artifactoryactiveProfile>
  activeProfiles>
settings>

你可能感兴趣的:(SVN导入项目转变为Maven项目时pom.xml报错)