Hi,
I got the Build Failure message while building Dspace-4.1 by apache mavan
3.2.5 on Windows 7.I have attached a file named Build Failure with this
mail and it contains the details about the Build Failure occurred.
Your reply is appreciated.
Regards,
Mansoor
Original error: Could not transfer artifact xalan:xalan:jar:2.7.0 from/to centr
al (https://repo.maven.apache.org/maven2): GET request of: xalan/xalan/2.7.0/xal
an-2.7.0.jar from central failed -> [Help 2]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[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 rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResoluti
onException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/DependencyReso
lutionException
[INFO] Build failures were ignored.
c:\dspace-4.1-src-release\dspace>mvn -e package
[INFO] Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] DSpace Addon Modules
[INFO] DSpace Kernel :: Additions and Local Customizations
[INFO] DSpace XML-UI (Manakin) :: Local Customizations
[INFO] DSpace LNI :: Local Customizations
[INFO] DSpace JSP-UI :: Local Customizations
[INFO] DSpace REST (JAX RS 1 - Jersey) :: Local Customizations
[INFO] DSpace SWORD :: Local Customizations
[INFO] DSpace SWORD v2 :: Local Customizations
[INFO] DSpace SOLR :: Local Customizations
[INFO] DSpace OAI 2.0 :: Local Customizations
[INFO] DSpace Assembly and Configuration
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building DSpace Addon Modules 4.1
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-maven) @ modules ---
[INFO]
[INFO] --- maven-antrun-plugin:1.7:run (native2ascii-utf8) @ modules ---
Downloading: https://repo.maven.apache.org/maven2/org/apache/ant/ant/1.8.2/ant-1
.8.2.jar
Downloaded: https://repo.maven.apache.org/maven2/org/apache/ant/ant/1.8.2/ant-1.
8.2.jar (1889 KB at 93.1 KB/sec)
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] DSpace Addon Modules ............................... FAILURE [ 23.340 s]
[INFO] DSpace Kernel :: Additions and Local Customizations SKIPPED
[INFO] DSpace XML-UI (Manakin) :: Local Customizations .... SKIPPED
[INFO] DSpace LNI :: Local Customizations ................. SKIPPED
[INFO] DSpace JSP-UI :: Local Customizations .............. SKIPPED
[INFO] DSpace REST (JAX RS 1 - Jersey) :: Local Customizations SKIPPED
[INFO] DSpace SWORD :: Local Customizations ............... SKIPPED
[INFO] DSpace SWORD v2 :: Local Customizations ............ SKIPPED
[INFO] DSpace SOLR :: Local Customizations ................ SKIPPED
[INFO] DSpace OAI 2.0 :: Local Customizations ............. SKIPPED
[INFO] DSpace Assembly and Configuration .................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 24.773 s
[INFO] Finished at: 2015-06-04T23:18:41+05:30
[INFO] Final Memory: 9M/24M
[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: C:\dspace
-4.1-src-release\dspace\modules\target\antrun\build-Encode any UTF-8 chars in [s
rc]\*.properties.xml (The filename, directory name, or volume label syntax is in
correct) -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal o
rg.apache.maven.plugins:maven-antrun-plugin:1.7:run (native2ascii-utf8) on proje
ct modules: Error executing ant tasks: C:\dspace-4.1-src-release\dspace\modules\
target\antrun\build-Encode any UTF-8 chars in [src]\*.properties.xml (The filena
me, directory name, or volume label syntax is incorrect)
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.buildProje
ct(LifecycleModuleBuilder.java:116)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje
ct(LifecycleModuleBuilder.java:80)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThre
adedBuilder.build(SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(Lifecycl
eStarter.java:120)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:355)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:216)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:160)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Laun
cher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.jav
a:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(La
uncher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
356)
Caused by: org.apache.maven.plugin.MojoExecutionException: Error executing ant t
asks: C:\dspace-4.1-src-release\dspace\modules\target\antrun\build-Encode any UT
F-8 chars in [src]\*.properties.xml (The filename, directory name, or volume lab
el syntax is incorrect)
at org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:360
)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(Default
BuildPluginManager.java:132)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:208)
... 19 more
Caused by: java.io.FileNotFoundException: C:\dspace-4.1-src-release\dspace\modul
es\target\antrun\build-Encode any UTF-8 chars in [src]\*.properties.xml (The fil
ename, directory name, or volume label syntax is incorrect)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:212)
at java.io.FileOutputStream.<init>(FileOutputStream.java:104)
at org.codehaus.plexus.util.FileUtils.fileWrite(FileUtils.java:470)
at org.apache.maven.plugin.antrun.AntRunMojo.writeTargetToProjectFile(An
tRunMojo.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 rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionE
xception
c:\dspace-4.1-src-release\dspace>mvn -x package
Unable to parse command line options: Unrecognized option: -x
usage: mvn [options] [<goal(s)>] [<phase(s)>]
Options:
-am,--also-make If project list is specified, also
build projects required by the
list
-amd,--also-make-dependents If project list is specified, also
build projects that depend on
projects on the list
-B,--batch-mode Run in non-interactive (batch)
mode
-b,--builder <arg> The id of the build strategy to
use.
-C,--strict-checksums Fail the build if checksums don't
match
-c,--lax-checksums Warn if checksums don't match
-cpu,--check-plugin-updates Ineffective, only kept for
backward compatibility
-D,--define <arg> Define a system property
-e,--errors Produce execution error messages
-emp,--encrypt-master-password <arg> Encrypt master security password
-ep,--encrypt-password <arg> Encrypt server password
-f,--file <arg> Force the use of an alternate POM
file (or directory with pom.xml).
-fae,--fail-at-end Only fail the build afterwards;
allow all non-impacted builds to
continue
-ff,--fail-fast Stop at first failure in
reactorized builds
-fn,--fail-never NEVER fail the build, regardless
of project result
-gs,--global-settings <arg> Alternate path for the global
settings file
-h,--help Display help information
-l,--log-file <arg> Log file to where all build output
will go.
-llr,--legacy-local-repository Use Maven 2 Legacy Local
Repository behaviour, ie no use of
_remote.repositories. Can also be
activated by using
-Dmaven.legacyLocalRepo=true
-N,--non-recursive Do not recurse into sub-projects
-npr,--no-plugin-registry Ineffective, only kept for
backward compatibility
-npu,--no-plugin-updates Ineffective, only kept for
backward compatibility
-nsu,--no-snapshot-updates Suppress SNAPSHOT updates
-o,--offline Work offline
-P,--activate-profiles <arg> Comma-delimited list of profiles
to activate
-pl,--projects <arg> Comma-delimited list of specified
reactor projects to build instead
of all projects. A project can be
specified by [groupId]:artifactId
or by its relative path.
-q,--quiet Quiet output - only show errors
-rf,--resume-from <arg> Resume reactor from specified
project
-s,--settings <arg> Alternate path for the user
settings file
-T,--threads <arg> Thread count, for instance 2.0C
where C is core multiplied
-t,--toolchains <arg> Alternate path for the user
toolchains file
-U,--update-snapshots Forces a check for missing
releases and updated snapshots on
remote repositories
-up,--update-plugins Ineffective, only kept for
backward compatibility
-V,--show-version Display version information
WITHOUT stopping build
-v,--version Display version information
-X,--debug Produce execution debug output
c:\dspace-4.1-src-release\dspace>mvn -rf package
[INFO] Scanning for projects...
[ERROR] Could not find project to resume reactor build from: package vs [MavenPr
oject: org.dspace:modules:4.1 @ C:\dspace-4.1-src-release\dspace\modules\pom.xml
, MavenProject: org.dspace.modules:additions:4.1 @ C:\dspace-4.1-src-release\dsp
ace\modules\additions\pom.xml, MavenProject: org.dspace.modules:xmlui:4.1 @ C:\d
space-4.1-src-release\dspace\modules\xmlui\pom.xml, MavenProject: org.dspace.mod
ules:lni:4.1 @ C:\dspace-4.1-src-release\dspace\modules\lni\pom.xml, MavenProjec
t: org.dspace.modules:jspui:4.1 @ C:\dspace-4.1-src-release\dspace\modules\jspui
\pom.xml, MavenProject: org.dspace.modules:rest:4.1 @ C:\dspace-4.1-src-release\
dspace\modules\rest\pom.xml, MavenProject: org.dspace.modules:sword:4.1 @ C:\dsp
ace-4.1-src-release\dspace\modules\sword\pom.xml, MavenProject: org.dspace.modul
es:swordv2:4.1 @ C:\dspace-4.1-src-release\dspace\modules\swordv2\pom.xml, Maven
Project: org.dspace.modules:solr:4.1 @ C:\dspace-4.1-src-release\dspace\modules\
solr\pom.xml, MavenProject: org.dspace.modules:oai:4.1 @ C:\dspace-4.1-src-relea
se\dspace\modules\oai\pom.xml, MavenProject: org.dspace:dspace:4.1 @ c:\dspace-4
.1-src-release\dspace\pom.xml] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[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 rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MavenExecution
Exception
c:\dspace-4.1-src-release\dspace>mvn -nsu package
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] DSpace Addon Modules
[INFO] DSpace Kernel :: Additions and Local Customizations
[INFO] DSpace XML-UI (Manakin) :: Local Customizations
[INFO] DSpace LNI :: Local Customizations
[INFO] DSpace JSP-UI :: Local Customizations
[INFO] DSpace REST (JAX RS 1 - Jersey) :: Local Customizations
[INFO] DSpace SWORD :: Local Customizations
[INFO] DSpace SWORD v2 :: Local Customizations
[INFO] DSpace SOLR :: Local Customizations
[INFO] DSpace OAI 2.0 :: Local Customizations
[INFO] DSpace Assembly and Configuration
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building DSpace Addon Modules 4.1
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-maven) @ modules ---
[INFO]
[INFO] --- maven-antrun-plugin:1.7:run (native2ascii-utf8) @ modules ---
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] DSpace Addon Modules ............................... FAILURE [ 8.254 s]
[INFO] DSpace Kernel :: Additions and Local Customizations SKIPPED
[INFO] DSpace XML-UI (Manakin) :: Local Customizations .... SKIPPED
[INFO] DSpace LNI :: Local Customizations ................. SKIPPED
[INFO] DSpace JSP-UI :: Local Customizations .............. SKIPPED
[INFO] DSpace REST (JAX RS 1 - Jersey) :: Local Customizations SKIPPED
[INFO] DSpace SWORD :: Local Customizations ............... SKIPPED
[INFO] DSpace SWORD v2 :: Local Customizations ............ SKIPPED
[INFO] DSpace SOLR :: Local Customizations ................ SKIPPED
[INFO] DSpace OAI 2.0 :: Local Customizations ............. SKIPPED
[INFO] DSpace Assembly and Configuration .................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 10.863 s
[INFO] Finished at: 2015-06-04T23:27:00+05:30
[INFO] Final Memory: 8M/19M
[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: C:\dspace
-4.1-src-release\dspace\modules\target\antrun\build-Encode any UTF-8 chars in [s
rc]\*.properties.xml (The filename, directory name, or volume label syntax is in
correct) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[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 rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionE
xception
c:\dspace-4.1-src-release\dspace>
------------------------------------------------------------------------------
_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette