I trust all is well.
We are trying to install DSpace 4.2 on our Linux
server an we are having issues with the maven build. I am
getting the following error:
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 2.431 s
[INFO] Finished at: 2014-07-23T16:28:04-04:00
[INFO] Final Memory: 11M/119M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-antrun-plugin:1.7:run
(native2ascii-utf8) on project modules: Error executing ant
tasks:
/home/dspace/DSpace-dspace-4.2/dspace/modules/target/antrun/build-Encode
any UTF-8 chars in properties.xml (No such file or
directory) -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException:
Failed to execute goal
org.apache.maven.plugins:maven-antrun-plugin:1.7:run
(native2ascii-utf8) on project modules: Error executing ant
tasks:
/home/dspace/DSpace-dspace-4.2/dspace/modules/target/antrun/build-Encode
any UTF-8 chars in properties.xml (No such file or
directory)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:216)
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:116)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
at
org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:120)
at
org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:347)
at
org.apache.maven.DefaultMaven.execute(DefaultMaven.java:154)
at
org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)
at
org.apache.maven.cli.MavenCli.doMain(MavenCli.java:213)
at
org.apache.maven.cli.MavenCli.main(MavenCli.java:157)
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:606)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by:
org.apache.maven.plugin.MojoExecutionException: Error
executing ant tasks:
/home/dspace/DSpace-dspace-4.2/dspace/modules/target/antrun/build-Encode
any UTF-8 chars in properties.xml (No such file or
directory)
at
org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:360)
at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
... 19
more
Caused by: java.io.FileNotFoundException:
/home/dspace/DSpace-dspace-4.2/dspace/modules/target/antrun/build-Encode
any UTF-8 chars in properties.xml (No such file or
directory)
at
java.io.FileOutputStream.open(Native Method)
at
java.io.FileOutputStream.<init>(FileOutputStream.java:221)
at
java.io.FileOutputStream.<init>(FileOutputStream.java:110)
at
org.codehaus.plexus.util.FileUtils.fileWrite(FileUtils.java:470)
at
org.apache.maven.plugin.antrun.AntRunMojo.writeTargetToProjectFile(AntRunMojo.java:608)
at
org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:263)
... 21
more
[ERROR]
[ERROR] Re-run Maven using the -X switch to enable full
debug logging.
[ERROR]
[ERROR] For more information about the errors and
possible solutions, please read the following articles:
I believe this is caused by an error in the top level
POM.xml file. But I am afraid I do not know what changes need
to be made.
Thanks.