3

war ファイル内のスプリング ブート ローダー コンポーネントを解凍してコピーしたいと考えています。私はそれにmaven依存関係プラグインを使用しています。その正しいグループ ID と成果物 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>

ありがとう。

アップデート

私は問題を理解しました。ローカルの nexus maven リポジトリを調べていました。

4

2 に答える 2

4

このリポジトリを 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>
于 2013-11-27T12:19:45.497 に答える