V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
peterpei
V2EX  ›  Java

Maven 报错,不知道怎么解决

  •  
  •   peterpei · Jun 15, 2020 · 3439 views
    This topic created in 2141 days ago, the information mentioned may be changed or developed.

    因为要用到 ftp 服务,想用 apache 的 ftpserver 用 idea 创建 Maven 新项目的时候用内置的 archtype 然后应该是在构建项目的时候就报错了

    [INFO] --- maven-archetype-plugin:3.1.2:generate (default-cli) @ standalone-pom ---
    [INFO] Generating project in Batch mode
    [WARNING] No archetype found in remote catalog. Defaulting to internal catalog
    No archetype found in remote catalog. Defaulting to internal catalog
    Archetype not found in any catalog. Falling back to central repository.
    Add a repository with id 'archetype' in your settings.xml if archetype's repository is elsewhere.
    

    尝试创建空 maven 项目然后在 pom 里面添加<dependence>会直接爆红

    最后决定提取出来 jar 文件手动添加库,但是会有这种错误NCvrjg.png(我感觉可能是没引用好,但...)

    搞了一下午+一晚上,我太难了 QAQ 楼主用的是 Idea2020.Maven 是 idea 内置的

    Supplement 1  ·  Jun 16, 2020

    感谢各位,问题算是解决了吧。
    我的对象名和库中对象命名冲突了,sorry

    billlee
        1
    billlee  
       Jun 15, 2020
    第一次添加 depenencies 的时候是会红的,需要构建一次,或点击 maven 面板中的 synchronize 把依赖下载回来
    peterpei
        2
    peterpei  
    OP
       Jun 15, 2020 via Android
    @billlee 好的我明天试试
    wangyc666
        3
    wangyc666  
       Jun 15, 2020
    start() ? satrt() ?
    Qlccks2
        4
    Qlccks2  
       Jun 15, 2020
    server.start();?
    Jacky23333
        5
    Jacky23333  
       Jun 15, 2020 via Android
    ?!
    yukiloh
        6
    yukiloh  
       Jun 16, 2020
    halo wode
    peterpei
        7
    peterpei  
    OP
       Jun 16, 2020
    拼写错误 sorry,但好像拼写正确也报错啊啊啊,是包没有引入完全吗
    ![Nie3lQ.png]( https://s1.ax1x.com/2020/06/16/Nie3lQ.png)
    @Qlccks2
    @Jacky23333
    @yukiloh
    @wangyc666
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3575 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 52ms · UTC 00:44 · PVG 08:44 · LAX 17:44 · JFK 20:44
    ♥ Do have faith in what you're doing.