+-

我想解压缩并在war文件中复制 spring boot loader组件.我正在使用Maven依赖插件.我不确定其正确的组和工件ID. Maven对此抱怨.这是我正在使用的Maven配置:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.6</version>
<executions>
<execution>
<id>unpack</id>
<phase>prepare-package</phase>
<goals>
<goal>unpack</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-loader</artifactId>
<version>0.5.0.BUILD-SNAPSHOT</version>
<type>jar</type>
</artifactItem>
</artifactItems>
<outputDirectory>${project.build.directory}/${project.artifactId}-${project.version}</outputDirectory>
<remoteRepositories>central::default::http://repo.springsource.org/snapshot/</remoteRepositories>
</configuration>
</execution>
</executions>
</plugin>
谢谢.
更新资料
我解决了这个问题.它正在调查本地的关系Maven存储库.
最佳答案
将此存储库添加到pom.xml中
<repository>
<id>spring-milestones</id>
<url>http://repo.springsource.org/libs-milestone/</url>
</repository>
依赖会像
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-loader</artifactId>
<version>0.5.0.M6</version> <!-- 6 is the latest till yet -->
</dependency>
点击查看更多相关文章
转载注明原文:Spring Boot loader的组和工件ID是什么? - 乐贴网