解决方案 »

  1.   

    先尝试maven clean下,在再project clean下看看
      

  2.   

    cms-web
    [INFO] Scanning for projects...
    [INFO]                                                                         
    [INFO] ------------------------------------------------------------------------
    [INFO] Building cms-web Maven Webapp 0.0.1-SNAPSHOT
    [INFO] ------------------------------------------------------------------------
    [WARNING] The POM for org.konghao.cms:cms-core:jar:0.0.1-SNAPSHOT is missing, no dependency information available
    [WARNING] The POM for org.konghao.cms:cms-user:jar:0.0.1-SNAPSHOT is missing, no dependency information available
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 1.044s
    [INFO] Finished at: Mon Jul 22 15:33:09 CST 2013
    [INFO] Final Memory: 9M/22M
    [INFO] ------------------------------------------------------------------------
    [ERROR] Failed to execute goal on project cms-web: Could not resolve dependencies for project org.konghao.cms:cms-web:war:0.0.1-SNAPSHOT: The following artifacts could not be resolved: org.konghao.cms:cms-core:jar:0.0.1-SNAPSHOT, org.konghao.cms:cms-user:jar:0.0.1-SNAPSHOT: Could not find artifact org.konghao.cms:cms-core:jar:0.0.1-SNAPSHOT -> [Help 1]
    [ERROR] 
    [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
    [ERROR] Re-run Maven using the -X switch to enable full debug logging.
    [ERROR] 
    [ERROR] For more information about the errors and possible solutions, please read the following articles:
    [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionExceptioncms-user
    <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">
      <modelVersion>4.0.0</modelVersion>
      
      <parent>
    <groupId>org.konghao.cms</groupId>
    <artifactId>cms-parent</artifactId>
    <version>0.0.1-SNAPSHOT</version>
    <relativePath>../cms-parent/pom.xml</relativePath>
      </parent>  <artifactId>cms-user</artifactId>
      <packaging>jar</packaging>  <name>cms-user</name>  <dependencies>
       <dependency>
      <groupId>org.easymock</groupId>
      <artifactId>easymock</artifactId>
    </dependency>
    <dependency>
    <groupId>org.springframework</groupId>
    <artifactId>spring-test</artifactId>
    </dependency>
        <dependency>
          <groupId>junit</groupId>
          <artifactId>junit</artifactId>
        </dependency>
        <dependency>
      <groupId>commons-lang</groupId>
      <artifactId>commons-lang</artifactId>
    </dependency>
        <dependency>
         <groupId>${project.groupId}</groupId>
         <artifactId>cms-core</artifactId>
        </dependency>
      </dependencies>
    </project>
    cms-core
    <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">
      <modelVersion>4.0.0</modelVersion>  <artifactId>cms-core</artifactId>
      <packaging>jar</packaging>
      <parent>
    <groupId>org.konghao.cms</groupId>
    <artifactId>cms-parent</artifactId>
    <version>0.0.1-SNAPSHOT</version>
    <relativePath>../cms-parent/pom.xml</relativePath>
      </parent>  <name>cms-core</name>
      <url>http://maven.apache.org</url>
      <dependencies>
        <dependency>
          <groupId>junit</groupId>
          <artifactId>junit</artifactId>
        </dependency>
        <dependency>
    <groupId>org.wicketstuff</groupId>
    <artifactId>jsr303</artifactId>
    </dependency>
    <dependency>
    <groupId>org.springframework</groupId>
    <artifactId>spring-test</artifactId>
    </dependency>
    <dependency>
    <groupId>org.hibernate</groupId>
    <artifactId>hibernate-validator</artifactId>
    </dependency>
    <dependency>
    <groupId>org.dbunit</groupId>
    <artifactId>dbunit</artifactId>
    </dependency>
                
        <dependency>
          <groupId>org.konghao.basic</groupId>
          <artifactId>basic-hibernate</artifactId>
        </dependency>
      </dependencies>
    </project>
      

  3.   

    <relativePath>../cms-parent/pom.xml</relativePath>这个路径删掉,pom直接方法哦src根目录看下
      

  4.   

    都clean过了哎还是不能用