V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
peterpei
V2EX  ›  Java

Maven 报错,不知道怎么解决

  •  
  •   peterpei · 2020-06-15 21:24:51 +08:00 · 2592 次点击
    这是一个创建于 1382 天前的主题,其中的信息可能已经有所发展或是发生改变。

    因为要用到 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 内置的

    第 1 条附言  ·  2020-06-16 08:16:30 +08:00

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

    billlee
        1
    billlee  
       2020-06-15 22:11:34 +08:00
    第一次添加 depenencies 的时候是会红的,需要构建一次,或点击 maven 面板中的 synchronize 把依赖下载回来
    peterpei
        2
    peterpei  
    OP
       2020-06-15 22:18:32 +08:00 via Android
    @billlee 好的我明天试试
    wangyc666
        3
    wangyc666  
       2020-06-15 22:30:49 +08:00
    start() ? satrt() ?
    Qlccks2
        4
    Qlccks2  
       2020-06-15 22:32:26 +08:00
    server.start();?
    Jacky23333
        5
    Jacky23333  
       2020-06-15 22:35:55 +08:00 via Android
    ?!
    yukiloh
        6
    yukiloh  
       2020-06-16 03:19:26 +08:00
    halo wode
    peterpei
        7
    peterpei  
    OP
       2020-06-16 08:11:23 +08:00
    拼写错误 sorry,但好像拼写正确也报错啊啊啊,是包没有引入完全吗
    ![Nie3lQ.png]( https://s1.ax1x.com/2020/06/16/Nie3lQ.png)
    @Qlccks2
    @Jacky23333
    @yukiloh
    @wangyc666
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3492 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 00:46 · PVG 08:46 · LAX 17:46 · JFK 20:46
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.