qq_39586869 2017-10-30 11:29 采纳率: 50%
浏览 2603
已结题

maven中搭建起来的环境老是说是有问题,而且是pojo找不到了。。。。。。.。。。。。。。。

 [INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO] 
[INFO] e3-manager
[INFO] e3-manager-pojo
[INFO] e3-manager-dao
[INFO] e3-manager-interface
[INFO] e3-manager-service
[INFO] e3-manager-web
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building e3-manager 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] >>> tomcat7-maven-plugin:2.2:run (default-cli) > process-classes @ e3-manager >>>
[INFO] 
[INFO] <<< tomcat7-maven-plugin:2.2:run (default-cli) < process-classes @ e3-manager <<<
[WARNING] The POM for cn.lhj:e3-common:jar:0.0.1-SNAPSHOT is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] e3-manager ......................................... FAILURE [  0.085 s]
[INFO] e3-manager-pojo .................................... SKIPPED
[INFO] e3-manager-dao ..................................... SKIPPED
[INFO] e3-manager-interface ............................... SKIPPED
[INFO] e3-manager-service ................................. SKIPPED
[INFO] e3-manager-web ..................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.712 s
[INFO] Finished at: 2017-10-30T18:34:00+08:00
[INFO] Final Memory: 6M/152M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project e3-manager: Could not resolve dependencies for project cn.lhj:e3-manager:pom:0.0.1-SNAPSHOT: Could not find artifact cn.lhj:e3-common: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/DependencyResolutionException

这是什么鬼??

 <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>cn.lhj</groupId>
    <artifactId>e3-parent</artifactId>
    <version>0.0.1-SNAPSHOT</version>
  </parent>
  <artifactId>e3-manager</artifactId>
  <packaging>pom</packaging>

  <dependencies>
    <dependency>
        <groupId>cn.lhj</groupId>
        <artifactId>e3-common</artifactId>
        <version>0.0.1-SNAPSHOT</version>
    </dependency>
  </dependencies>

  <modules>
    <module>e3-manager-pojo</module>
    <module>e3-manager-dao</module>
    <module>e3-manager-interface</module>
    <module>e3-manager-service</module>
    <module>e3-manager-web</module>
  </modules>
   <!-- 配置tomcat插件 -->
  <build>
    <plugins>
        <plugin>
            <groupId>org.apache.tomcat.maven</groupId>
            <artifactId>tomcat7-maven-plugin</artifactId>
            <configuration>
                <path>/</path>
                <port>8080</port>
            </configuration>
        </plugin>
    </plugins>
  </build>
</project>

```
4.0.0

cn.lhj
e3-manager
0.0.1-SNAPSHOT

e3-manager-pojo





  • 写回答

3条回答 默认 最新

  • 如影随形小浩儿 2017-10-31 02:24
    关注

    Failed to execute goal on project e3-manager: Could not resolve dependencies for project cn.lhj:e3-manager:pom:0.0.1-SNAPSHOT: Could not find artifact cn.lhj:e3-common:jar:0.0.1-SNAPSHOT -> [Help 1]

    这个说明你的依赖有问题,查找一下pom.xml是否报错了,里面的依赖包版本是否正确

    评论

报告相同问题?

悬赏问题

  • ¥20 求数据集和代码#有偿答复
  • ¥15 关于下拉菜单选项关联的问题
  • ¥20 java-OJ-健康体检
  • ¥15 rs485的上拉下拉,不会对a-b<-200mv有影响吗,就是接受时,对判断逻辑0有影响吗
  • ¥15 使用phpstudy在云服务器上搭建个人网站
  • ¥15 应该如何判断含间隙的曲柄摇杆机构,轴与轴承是否发生了碰撞?
  • ¥15 vue3+express部署到nginx
  • ¥20 搭建pt1000三线制高精度测温电路
  • ¥15 使用Jdk8自带的算法,和Jdk11自带的加密结果会一样吗,不一样的话有什么解决方案,Jdk不能升级的情况
  • ¥15 画两个图 python或R