要被这个 BUG 整疯了 - V2EX
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
JWilling
V2EX    Java

要被这个 BUG 整疯了

  •  
  •   JWilling May 24, 2021 2290 views
    This topic created in 1801 days ago, the information mentioned may be changed or developed.

    涉及技术:Maven 多模块, Springboot 。

    前提:每次都是直接选择一个模块进行 package,然而每次都能成功,即使添加模块。

    现在:添加了一个模块之后,已经无法成功 package 了,删除这个模块也不行了,感觉可能是出了什么新的问题。

    自行排查:发现找 module 时根本没有去本地查找,直接去了阿里云库,肯定是没有的。

    报错内容:

    /Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/bin/java -Dmaven.multiModuleProjectDirectory=/Users/x/Project/piaolin-platform/ruoyi-admin -Dmaven.home=/usr/local/maven/apache-maven-3.6.3 -Dclassworlds.cOnf=/usr/local/maven/apache-maven-3.6.3/bin/m2.conf -Dmaven.ext.class.path=/Users/x/Library/Application Support/JetBrains/Toolbox/apps/IDEA-U/ch-0/211.7142.45/IntelliJ IDEA.app/Contents/plugins/maven/lib/maven-event-listener.jar -javaagent:/Users/x/Library/Application Support/JetBrains/Toolbox/apps/IDEA-U/ch-0/211.7142.45/IntelliJ IDEA.app/Contents/lib/idea_rt.jar=50423:/Users/x/Library/Application Support/JetBrains/Toolbox/apps/IDEA-U/ch-0/211.7142.45/IntelliJ IDEA.app/Contents/bin -Dfile.encoding=UTF-8 -classpath /usr/local/maven/apache-maven-3.6.3/boot/plexus-classworlds.license:/usr/local/maven/apache-maven-3.6.3/boot/plexus-classworlds-2.6.0.jar org.codehaus.classworlds.Launcher -Didea.version=2021.1.1 -s /usr/local/maven/apache-maven-3.6.3/conf/settings.xml -Dmaven.repo.local=/Users/x/.m2/repository package [INFO] Scanning for projects... [INFO] [INFO] -----------------------< com.ruoyi:ruoyi-admin >------------------------ [INFO] Building ruoyi-admin 3.2.1 [INFO] --------------------------------[ jar ]--------------------------------- [WARNING] The POM for com.ruoyi:ruoyi-framework:jar:3.2.1 is missing, no dependency information available [WARNING] The POM for com.ruoyi:ruoyi-quartz:jar:3.2.1 is missing, no dependency information available [WARNING] The POM for com.ruoyi:ruoyi-generator:jar:3.2.1 is missing, no dependency information available [WARNING] The POM for com.ruoyi:piaolin-location:jar:3.2.1 is missing, no dependency information available [WARNING] The POM for com.ruoyi:piaolin-love:jar:3.2.1 is missing, no dependency information available [WARNING] The POM for com.ruoyi:piaolin-shot:jar:3.2.1 is missing, no dependency information available [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 0.672 s [INFO] Finished at: 202105-24T16:50:14+08:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal on project ruoyi-admin: Could not resolve dependencies for project com.ruoyi:ruoyi-admin:jar:3.2.1: The following artifacts could not be resolved: com.ruoyi:ruoyi-framework:jar:3.2.1, com.ruoyi:ruoyi-quartz:jar:3.2.1, com.ruoyi:ruoyi-generator:jar:3.2.1, com.ruoyi:piaolin-location:jar:3.2.1, com.ruoyi:piaolin-love:jar:3.2.1, com.ruoyi:piaolin-shot:jar:3.2.1: Failure to find com.ruoyi:ruoyi-framework:jar:3.2.1 in http://maven.aliyun.com/nexus/content/groups/public/ was cached in the local repository, resolution will not be reattempted until the update interval of public has elapsed or updates are forced -> [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 Process finished with exit code 1 

    分开进行编译时:最底层成功编译,然而对上一层编译时就找不到刚刚编译的内容了。

    求大佬提供思路。

    zongren
        1
    zongren  
       May 24, 2021
    root project install 了嘛
    JWilling
        2
    JWilling  
    OP
       May 24, 2021
    @zongren install 了,但是上一层显示找不到 root project
    Macolor21
        3
    Macolor21  
       May 24, 2021
    父 POM 发上来
    nc4697
        4
    nc4697  
       May 24, 2021
    父级也要 install
    JWilling
        5
    JWilling  
    OP
       May 25, 2021
    @Macolor21 已经解决了,感谢大家,是我点错了
    JWilling
        6
    JWilling  
    OP
       May 25, 2021
    @nc4697 已经解决了,感谢大家,是我点错了
    About     Help     Advertise     Blog     API     FAQ     Solana     3247 Online   Highest 6679       Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 44ms UTC 13:22 PVG 21:22 LAX 06:22 JFK 09:22
    Do have faith in what you're doing.
    ubao msn snddm index pchome yahoo rakuten mypaper meadowduck bidyahoo youbao zxmzxm asda bnvcg cvbfg dfscv mmhjk xxddc yybgb zznbn ccubao uaitu acv GXCV ET GDG YH FG BCVB FJFH CBRE CBC GDG ET54 WRWR RWER WREW WRWER RWER SDG EW SF DSFSF fbbs ubao fhd dfg ewr dg df ewwr ewwr et ruyut utut dfg fgd gdfgt etg dfgt dfgd ert4 gd fgg wr 235 wer3 we vsdf sdf gdf ert xcv sdf rwer hfd dfg cvb rwf afb dfh jgh bmn lgh rty gfds cxv xcv xcs vdas fdf fgd cv sdf tert sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf shasha9178 shasha9178 shasha9178 shasha9178 shasha9178 liflif2 liflif2 liflif2 liflif2 liflif2 liblib3 liblib3 liblib3 liblib3 liblib3 zhazha444 zhazha444 zhazha444 zhazha444 zhazha444 dende5 dende denden denden2 denden21 fenfen9 fenf619 fen619 fenfe9 fe619 sdf sdf sdf sdf sdf zhazh90 zhazh0 zhaa50 zha90 zh590 zho zhoz zhozh zhozho zhozho2 lislis lls95 lili95 lils5 liss9 sdf0ty987 sdft876 sdft9876 sdf09876 sd0t9876 sdf0ty98 sdf0976 sdf0ty986 sdf0ty96 sdf0t76 sdf0876 df0ty98 sf0t876 sd0ty76 sdy76 sdf76 sdf0t76 sdf0ty9 sdf0ty98 sdf0ty987 sdf0ty98 sdf6676 sdf876 sd876 sd876 sdf6 sdf6 sdf9876 sdf0t sdf06 sdf0ty9776 sdf0ty9776 sdf0ty76 sdf8876 sdf0t sd6 sdf06 s688876 sd688 sdf86