Announcement Announcement Module
Collapse
No announcement yet.
Repackager : Source must refer to an existing file Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Repackager : Source must refer to an existing file

    I am experiencing following error :


    Code:
    Apache Maven 3.0.3 (r1075438; 2011-02-28 18:31:09+0100)
    Maven home: C:\Applic\Maven\Apache-maven-3.0.3\bin\..
    Java version: 1.6.0_26, vendor: Sun Microsystems Inc.
    Java home: C:\Applic\Java\jdk1.6.0_26\jre
    Default locale: nl_BE, platform encoding: Cp1252
    OS name: "windows 7", version: "6.1", arch: "x86", family: "windows"
    C:\Applic\Development\workspaces\datamart\boot-example>mvn clean compile spring-boot:repackage
    [INFO] Error stacktraces are turned on.
    [INFO] Scanning for projects...
    [INFO]
    [INFO] ------------------------------------------------------------------------
    [INFO] Building boot-example 0.0.1-SNAPSHOT
    [INFO] ------------------------------------------------------------------------
    [INFO]
    [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ boot-example ---
    [INFO] Deleting C:\Applic\Development\workspaces\datamart\boot-example\target
    [INFO]
    [INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ boot-example ---
    [INFO] Using 'UTF-8' encoding to copy filtered resources.
    [INFO] Copying 1 resource
    [INFO]
    [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ boot-example ---
    [INFO] Compiling 13 source files to C:\Applic\Development\workspaces\datamart\boot-exampl
    [INFO]
    [INFO] --- spring-boot-maven-plugin:0.5.0.M5:repackage (default-cli) @ boot-example ---
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 1.702s
    [INFO] Finished at: Mon Oct 14 14:40:21 CEST 2013
    [INFO] Final Memory: 12M/29M
    [INFO] ------------------------------------------------------------------------
    [ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:0.5.0.M5
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.spring
            at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:225
            at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153
            at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145
            at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(Lifecy
            at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(Lifecy
            at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(Lifec
            at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.
            at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
            at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
            at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
            at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
            at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.j
            at java.lang.reflect.Method.invoke(Method.java:597)
            at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java
            at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
            at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.ja
            at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
    Caused by: org.apache.maven.plugin.PluginExecutionException: Execution default-cli of goa
            at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPlug
            at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209
            ... 19 more
    Caused by: java.lang.IllegalArgumentException: Source must refer to an existing file
            at org.springframework.boot.loader.tools.Repackager.<init>(Repackager.java:46)
            at org.springframework.boot.maven.RepackageMojo.execute(RepackageMojo.java:88)
            at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPlug

    pom.xml :



    Code:
     <
       
      projectxmlns="http://maven.apache.org/POM/4.0.0"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       
      xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
       
      <modelVersion>4.0.0</modelVersion>
       
      <groupId>org.wims</groupId>
      <artifactId>boot-example</artifactId>
      <version>0.0.1-SNAPSHOT</version>
      <packaging>jar</packaging>
      <name>boot-example</name>
      <url>http://maven.apache.org</url>
       
       
      <properties>
      <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
      <spring.version>4.0.0.M3</spring.version>
      <spring.boot.version>0.5.0.M5</spring.boot.version>
      </properties>
       
      <dependencies>
      <dependency>
      <groupId>javax.annotation</groupId>
      <artifactId>jsr250-api</artifactId>
      <version>1.0</version>
      </dependency>
      <dependency>
      <groupId>javax.inject</groupId>
      <artifactId>javax.inject</artifactId>
      <version>1</version>
      </dependency>
      <dependency>
      <groupId>org.springframework.boot</groupId>
      <artifactId>spring-boot-autoconfigure</artifactId>
      <version>${spring.boot.version}</version>
      </dependency>
      <dependency>
      <groupId>org.springframework.boot</groupId>
      <artifactId>spring-boot-starter-data-jpa</artifactId>
      <version>${spring.boot.version}</version>
      </dependency>
      <dependency>
      <groupId>org.springframework.boot</groupId>
      <artifactId>spring-boot-starter-web</artifactId>
      <version>${spring.boot.version}</version>
      </dependency>
      <dependency>
      <groupId>org.springframework.boot</groupId>
      <artifactId>spring-boot-starter-security</artifactId>
      <version>${spring.boot.version}</version>
      </dependency>
      <dependency>
      <groupId>org.projectlombok</groupId>
      <artifactId>lombok</artifactId>
      <version>0.12.0</version>
      <scope>provided</scope>
      </dependency>
      <dependency>
      <groupId>org.hsqldb</groupId>
      <artifactId>hsqldb</artifactId>
      <version>2.3.1</version>
      <scope>runtime</scope>
       
      </dependency>
      </dependencies>
       
       
      <build>
      <plugins>
      <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-compiler-plugin</artifactId>
      <version>2.3.2</version>
      <configuration>
      <source>1.6</source>
      <target>1.6</target>
      </configuration>
      </plugin>
       
      <plugin>
      <groupId>org.springframework.boot</groupId>
      <artifactId>spring-boot-maven-plugin</artifactId>
      <version>${spring.boot.version}</version>
      </plugin>
      </plugins>
       
      </build>
      <!-- 
      <pluginRepositories>
      <pluginRepository>
      <id>spring-snapshots</id>
      <url>http://repo.spring.io/snapshot</url>
      </pluginRepository>
      <pluginRepository>
      <id>spring-milestones</id>
      <url>http://repo.spring.io/milestone</url>
      </pluginRepository>
      </pluginRepositories>
      -->
       
      </project>

  • #2
    We are currently in the process of moving to stackoverflow.com for our forums. If you're still having this issue please consider asking it again at http://stackoverflow.com using the #spring-boot tag. If you do post it there, please reply here with the link.

    Thanks!

    Comment

    Working...
    X