首页 > 其他分享 >一些执行maven命令的报错

一些执行maven命令的报错

时间:2024-07-16 19:40:35浏览次数:12  
标签:settings xxx maven 命令 报错 clean ERROR com mvn

1.mvn clean --settings ./settings.xml

[ERROR] Could not create local repository at /github/workspace/repository -> [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/LocalRepositoryNotAccessibleException

需要注释掉settings.xml文件中的localRepository配置

<!--  <localRepository>/github/workspace/repository/</localRepository>-->

 

2.mvn clean

[ERROR] Failed to execute goal on project xxx-build: Could not resolve dependencies for project com.xxx.xxx:xxx-build:pom:1.0.0-SNAPSHOT: The following artifacts could not be resolved: com.xxx.xxx:xxx-server-wdd-engine:jar:1.0.0-SNAPSHOT (absent),com.xxx.xxx:xxx-wdd-engine-connector-influxdb-side:jar:1.0.0-SNAPSHOT (absent): com.xxx.xxx:xxx-server-wdd-engine:jar:1.0.0-SNAPSHOT was not found in https://xxx.xxx.xxx.xxx:8080/artifactory/xxx during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of wdd-devops has elapsed or updates are forced -> [Help 1]

需要把pom.xml里面的goals注释掉,暂不清楚什么原因

        <build>
                <plugins>
                    <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-antrun-plugin -->
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-antrun-plugin</artifactId>
                        <version>3.0.0</version>
                        <executions>
                            <execution>
                                <id>clean</id>
                                <phase>clean</phase>
                                <goals>
                                    <!-- <goal>run</goal> 注释这行,不然mvn clean会报错。但是注释掉再执行mvn clean就不会删打包好的包了-->
                                </goals>
                                <configuration>
                                    <target>
                                        <delete dir="${project.basedir}/xxxxxxx"/>
                                    </target>
                                </configuration>
                            </execution>
                            <execution>
                                <phase>package</phase>
                                <goals>
                                    <goal>run</goal>
                                </goals>
                                <configuration>
                                    <target>
                                        <!---->
                                    </target>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>

 

3.mvn clean package -pl xxxx -am --settings ./settings.xml

Caused by: java.lang.IllegalAccessError: class lombok.javac.apt.LombokProcessor (in unnamed module @0x248b2b61) cannot access class com.sun.tools.javac.processing.JavacProcessingEnvironment (in module jdk.compiler) because module jdk.compiler does not export com.sun.tools.javac.processing to unnamed module @0x248b2b61

这个是因为本地的java环境变量没配好,需要jdk1.8版本。

通过java -version查看当前版本

标签:settings,xxx,maven,命令,报错,clean,ERROR,com,mvn
From: https://www.cnblogs.com/wdgde/p/18305986

相关文章

  • 低开开发笔记(八): 低代码编辑器实现撤销回退(命令模式,防抖处理)
    好家伙, 0.代码已开源https://github.com/Fattiger4399/ph_questionnaire-.git 1.事件触发我们先从事件的触发开始讲起大致上我们有两个思路可以选择1.监控用户行为2.监控数据变化 两种选择都会有较难处理的部分,这里我们先选第二个选项 关于监控数据,首......
  • Linux命令行指令大全(Ⅰ)
    前言:     首先,我们需要明白为什么要掌握linux命令行指令。因为在日常生活中我们最为熟悉的还是windows操作系统和IOS操作系统,所以为了能对Linux操作系统可以更方便的使用,所以我们需要掌握相关的指令来让开发的过程更加便捷。    此外在本文中像ls,cd,pwd这几个......
  • 2024-07-16 使用了.md文件作为路由文件来引用,在开发中能正常显示,打包的时候就报错了:Ca
    我使用了.md文件作为路由文件来引用,在开发中能正常显示,打包的时候就报错了//vite.config.ts import{defineConfig}from'vite'; importvuefrom'@vitejs/plugin-vue'; importmarkdownfrom"vite-plugin-md"; exportdefaultdefineConfig({  plugin......
  • Linux的top命令参数详解
    简介top命令是Linux下常用的性能分析工具,能够实时显示系统中各个进程的资源占用状况,类似于Windows的任务管理器。top显示系统当前的进程和其他状况,是一个动态显示过程,即可以通过用户按键来不断刷新当前状态.如果在前台执行该命令,它将独占前台,直到用户终止该程序为止.比较准......
  • 【YashanDB知识库】存储过程报错snapshot too old
    问题描述20231127上午客户反馈绩效系统20231125、20231126出现2次YAS-02020snapshottooold的问题,测试也有类似问题。该过程是客户新增的存储过程,目的是通过PRO_RUN_JOB作为主控,调度其他存储过程,后续不用其他调度引擎。原因分析错误信息收集分析分析存储过程报错日志,核查UN......
  • Linux中的一些基础命令用法
    1.文件的时间的概念创建时间修改时间访问时间使用stat命令获取文件的时间信息[root@tdr~]#stat/opt/d.txt 文件:"/opt/d.txt" 大小:0       块:0     IO块:4096 普通空文件设备:fd00h/64768d   Inode:33868148  硬链接:1权限:(06......
  • idea打开/导入maven项目 + 移除
    ——————如何导入方法1————右侧maven——》点击加号   找到要但如项目的pom.xml文件——》ok 方法2————file——》projectstructure……modeles——》加号 importmodule  找到要导入项目的pom.xml文件——》ok 右下角apply——》ok ......
  • tcpdump命令如何使用?
    tcpdump命令基本格式文章目录tcpdump命令基本格式前言一、tcpdump是什么二、使用步骤1.tcpdump-iethX(业务具体网口)hostxx(节点IP)2.tcpdump-iany-w/home/xxx.pcap'((host1.1.1.1andport80)or(host2.2.2.2andport443))'3.tcpdump-iethX"host1......
  • GLM-4-9B-Chat WebDemo 部署报错:ValueError: too many values to unpack
    用开源大模型食用指南self-llm项目的GLM-4-9B-ChatWebDemo部署文档部署时遇到如下错误:ValueError:toomanyvaluestounpack(expected2)Traceback:File"/root/miniconda3/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/script_runner.py",line552,......
  • nginx启动命令 + 注意
    参考链接——https://www.cnblogs.com/taiyonghai/p/9402734.html 下载地址——https://nginx.org/en/download.html下载stableversion下的版本  ——————启动虽然直接双击nginx.exe启动也可以,但它启动之后没有提示,还需要去任务管理器中确认就很麻烦这里记一下......