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

Question!

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.



Answers
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>
By : Saif Asif


Just chiming in even when this is a old question. Keep in mind for production do not use the snapshot builds, use the release builds instead. Snapshot builds may have known issues but the release builds are stable.

You can find the latest spring version at the Spring boot page.



This video can help you solving your question :)
By: admin