主题 : maven打包失败
级别: 童生
UID: 143216
积分:18 加为好友
威望: 0 精华: 0
主题:2 回复:6
注册时间:2023-03-13
在线时长:0
1#   发表于:2023-03-13 17:03:35  IP:39.21.*.*
请问一下这是什么问题
[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.0.9.RELEASE:repackage (default) on project jeecms-front: Execution default of goal org.springframework.boot:spring-boot-maven-plugin:2.0.9.RELEASE:repackage failed: Plugin org.springframework.boot:spring-boot-maven-plugin:2.0.9.RELEASE or one of its dependencies could not be resolved: The following artifacts could not be resolved: org.springframework.boot:spring-boot-loader-tools:jar:2.0.9.RELEASE, org.apache.maven:maven-archiver:jar:2.6, org.apache.maven:maven-artifact:jar:3.1.1, org.apache.maven:maven-core:jar:3.1.1, org.apache.maven:maven-model:jar:3.1.1, org.apache.maven:maven-settings:jar:3.1.1, org.apache.maven.shared:maven-common-artifact-filters:jar:1.4, org.codehaus.plexus:plexus-archiver:jar:2.8.1, org.apache.maven.plugins:maven-shade-plugin:jar:2.2: Cannot access alimaven (http://maven.aliyun.com/nexus/content/groups/public/) in offline mode and the artifact org.springframework.boot:spring-boot-loader-tools:jar:2.0.9.RELEASE has not been downloaded from it before. -> [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/PluginResolutionException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <args> -rf :jeecms-front

Process finished with exit code 1
级别: 总版主
UID: 10736
积分:148358 加为好友
威望: 205 精华: 42
主题:287 回复:126111
注册时间:2010-09-08
在线时长:14.55
2#   发表于:2023-03-13 17:30:23  IP:60.110.*.*
这是maven环境出了问题,找下maven本地仓库换个文件夹重新加载下,我们提供的jar 在加下我们私服
  <mirror>
<id>jeecmsServer-releases</id>
<mirrorOf>central</mirrorOf>
<name>jeecms maven</name>
<url>http://maven.work.jeecms.com/repository/maven-public/</url>
    </mirror> 
路漫漫其修远兮,吾将上下而求索!
级别: 童生
UID: 143216
积分:18 加为好友
威望: 0 精华: 0
主题:2 回复:6
注册时间:2023-03-13
在线时长:0
3#   发表于:2023-03-13 17:38:33  IP:112.206.*.*
修改maven环境中的setting后重新打包还是一样的情况 而且
<dependency>
<groupId>com.jeecms</groupId>
<artifactId>jee-core</artifactId>
<version>1.0</version>
<scope>system</scope>
<systemPath>${project.basedir}/src/main/resources/lib/com/jeecms/jee-core/1.0/jee-core-1.0.jar</systemPath>
</dependency>
不使用本地引用的方式,无法引入到项目。
级别: 总版主
UID: 10736
积分:148358 加为好友
威望: 205 精华: 42
主题:287 回复:126111
注册时间:2010-09-08
在线时长:14.55
4#   发表于:2023-03-14 09:13:05  IP:60.110.*.*
maven私服配置上 应该就可以找到jee-core 这个jar了,把本地仓库的这个文件夹删除下重新刷新下
路漫漫其修远兮,吾将上下而求索!
级别: 童生
UID: 143216
积分:18 加为好友
威望: 0 精华: 0
主题:2 回复:6
注册时间:2023-03-13
在线时长:0
5#   发表于:2023-03-16 10:47:01  IP:112.206.*.*
Could not find artifact org.springframework.boot:spring-boot-starter-parent:pom:2.0.9.RELEASE in jeecmsServer-releases (http://maven.work.jeecms.com/repository/maven-public/)
级别: 总版主
UID: 10736
积分:148358 加为好友
威望: 205 精华: 42
主题:287 回复:126111
注册时间:2010-09-08
在线时长:14.55
6#   发表于:2023-03-16 11:16:12  IP:183.85.*.*
清空下删除下本地的仓库jar
路漫漫其修远兮,吾将上下而求索!
1 共1页