What is the group and artifact id of Spring boot loader?

Anand Patel picture Anand Patel · Nov 27, 2013 · Viewed 9.2k times · Source

I want to unpack and copy the spring boot loader component in my war file. I am using maven dependency plugin for it. I am not sure about its correct group and artifact id. Maven complains about it. Here is the maven configuration which I am using:

<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>

Thanks.

Update

I figured out the problem. It was looking into local nexus maven repository.

Answer

Saif Asif picture Saif Asif · Nov 27, 2013

Add this repository in your pom.xml

<repository>
  <id>spring-milestones</id>
  <url>http://repo.springsource.org/libs-milestone/</url>
</repository>

And the dependancy will be like

 <dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-loader</artifactId>
    <version>0.5.0.M6</version> <!-- 6 is the latest till yet -->
</dependency>