Uploaded image for project: 'PUBLIC - Liferay Maven'
  1. PUBLIC - Liferay Maven
  2. MAVEN-84

mvn liferay:build-service -> "service.properties already exists"

Details

    Description

      i am using the liferay-maven-plugin 6.2.0-M6.
      running mvn liferay:build-service works fine on the first run.
      On the second run i get the following error:

      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 25.382s
      [INFO] Finished at: Wed Jul 17 09:53:35 CEST 2013
      [INFO] Final Memory: 24M/59M
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal com.liferay.maven.plugins:liferay-maven-plugin:6.2.0-M6:build-service (default-cli) on project demo-sp: Destination 'W:\workspace\WorkspaceAtlas_Neu\demo\demo-sp\src\mai
      n\resources\service.properties' already exists -> [Help 1]
      org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.liferay.maven.plugins:liferay-maven-plugin:6.2.0-M6:build-service (default-cli) on project demo-sp: Destination 'W:\w
      orkspace\WorkspaceAtlas_Neu\demo\demo-sp\src\main\resources\service.properties' already exists
              at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
              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(LifecycleModuleBuilder.java:84)
              at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
              at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
              at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
              at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
              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:57)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:601)
              at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
              at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
              at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
              at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
      Caused by: org.apache.maven.plugin.MojoExecutionException: Destination 'W:\workspace\WorkspaceAtlas_Neu\demo\demo-sp\src\main\resources\service.properties' already exists
              at com.liferay.maven.plugins.AbstractLiferayMojo.execute(AbstractLiferayMojo.java:101)
              at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
              at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
              ... 19 more
      Caused by: java.io.IOException: Destination 'W:\workspace\WorkspaceAtlas_Neu\demo\demo-sp\src\main\resources\service.properties' already exists
              at org.apache.commons.io.FileUtils.moveFile(FileUtils.java:1811)
              at com.liferay.maven.plugins.util.FileUtil.move(FileUtil.java:55)
              at com.liferay.maven.plugins.ServiceBuilderMojo.moveServicePropertiesFile(ServiceBuilderMojo.java:475)
              at com.liferay.maven.plugins.ServiceBuilderMojo.doExecute(ServiceBuilderMojo.java:175)
              at com.liferay.maven.plugins.AbstractLiferayMojo.execute(AbstractLiferayMojo.java:74)
              ... 21 more
      [ERROR]
      [ERROR]
      [ERROR] For more information about the errors and possible solutions, please read the following articles:
      [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
      

      Attachments

        Activity

          People

            brian.chan Brian Chan
            paulgloessl Paul Gloessl (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              9 years, 38 weeks, 1 day ago

              Packages

                Version Package
                6.2.0 GA1
                6.1.30 EE GA3
                6.1.2 CE GA3