[Dspace-tech] Fwd: mvn package error

1,114 views
Skip to first unread message

Alex Maia Sanchez

unread,
Aug 25, 2015, 2:03:02 PM8/25/15
to dspac...@lists.sourceforge.net
When I run mvn package I get the following error message:

[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO]   DSpace Addon Modules
[INFO]   DSpace XML-UI (Manakin) :: Web Application
[INFO]   DSpace LNI :: Web Application
[INFO]   DSpace OAI :: Web Application
[INFO]   DSpace JSP-UI :: Web Application
[INFO]   DSpace SWORD :: Web Application
[INFO]   DSpace SOLR :: Web Application
[INFO]   DSpace Assembly and Configuration
[INFO] ------------------------------------------------------------------------
[INFO] Building DSpace Addon Modules
[INFO]    task-segment: [package]
[INFO] ------------------------------------------------------------------------
[INFO] [site:attach-descriptor {execution: default-attach-descriptor}]
[INFO] ------------------------------------------------------------------------
[INFO] Building DSpace XML-UI (Manakin) :: Web Application
[INFO]    task-segment: [package]
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /srv/dspace/modules/xmlui/src/main/resources
[INFO] artifact org.dspace:dspace-xmlui-lang: checking for updates from java.net
[INFO] artifact org.dspace:dspace-api-lang: checking for updates from java.net
[INFO] [compiler:compile {execution: default-compile}]
[INFO] No sources to compile
[INFO] [resources:testResources {execution: default-testResources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /srv/dspace/modules/xmlui/src/test/resources
[INFO] [compiler:testCompile {execution: default-testCompile}]
[INFO] No sources to compile
[INFO] [surefire:test {execution: default-test}]
[INFO] No tests to run.
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Could not instantiate converter : com.thoughtworks.xstream.converters.extended.DurationConverter : null
gnu.xml.datatype.JAXPDatatypeFactory
[INFO] ------------------------------------------------------------------------
[INFO] Trace
com.thoughtworks.xstream.XStream$InitializationException: Could not instantiate converter : com.thoughtworks.xstream.converters.extended.DurationConverter : null
   at com.thoughtworks.xstream.XStream.dynamicallyRegisterConverter(XStream.java:732)
   at com.thoughtworks.xstream.XStream.setupConverters(XStream.java:696)
   at com.thoughtworks.xstream.XStream.<init>(XStream.java:445)
   at com.thoughtworks.xstream.XStream.<init>(XStream.java:385)
   at com.thoughtworks.xstream.XStream.<init>(XStream.java:323)
   at org.apache.maven.plugin.war.util.WebappStructureSerializer.<init>(WebappStructureSerializer.java:49)
   at org.apache.maven.plugin.war.AbstractWarMojo.<init>(AbstractWarMojo.java:314)
   at org.apache.maven.plugin.war.WarMojo.<init>(WarMojo.java:47)
   at java.lang.Class.newInstance(libgcj.so.11)
   at org.codehaus.plexus.component.factory.java.JavaComponentFactory.newInstance(JavaComponentFactory.java:44)
   at org.codehaus.plexus.DefaultPlexusContainer.createComponentInstance(DefaultPlexusContainer.java:1464)
   at org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance(AbstractComponentManager.java:93)
   at org.codehaus.plexus.component.manager.PerLookupComponentManager.getComponent(PerLookupComponentManager.java:48)
   at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:331)
   at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:440)
   at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:652)
   at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:468)
   at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
   at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
   at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
   at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
   at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
   at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
   at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
   at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
   at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
   at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
   at java.lang.reflect.Method.invoke(libgcj.so.11)
   at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
   at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
   at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
   at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: java.lang.reflect.InvocationTargetException
   at java.lang.reflect.Constructor.newInstance(libgcj.so.11)
   at com.thoughtworks.xstream.XStream.dynamicallyRegisterConverter(XStream.java:725)
   ...31 more
Caused by: javax.xml.datatype.DatatypeConfigurationException: java.lang.ClassNotFoundException: gnu.xml.datatype.JAXPDatatypeFactory
   at javax.xml.datatype.DatatypeFactory.newInstance(libgcj.so.11)
   at com.thoughtworks.xstream.converters.extended.DurationConverter.<init>(DurationConverter.java:33)
   at java.lang.reflect.Constructor.newInstance(libgcj.so.11)
   ...32 more
Caused by: java.lang.ClassNotFoundException: gnu.xml.datatype.JAXPDatatypeFactory
   at java.lang.Class.forName(libgcj.so.11)
   at javax.xml.datatype.DatatypeFactory.newInstance(libgcj.so.11)
   ...34 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 51 seconds
[INFO] Finished at: Mon Aug 02 13:58:48 GMT-03:00 2010
[INFO] Final Memory: 64M/99M
[INFO] ------------------------------------------------------------------------

Someone could help ? Thanks !


Alex Maia Sanchez
LINUX Registred User # 399667
LIBERTE SUA MENTE ! Use LINUX !
Celular (11) 8034.6420


execution.log

MOHIT SHARMA

unread,
Aug 25, 2015, 2:03:08 PM8/25/15
to Alex Maia Sanchez, dspac...@lists.sourceforge.net
Hi ,
May i knw the line u typed to to run mvn package .

-Mohit  Sharma

------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
DSpace-tech mailing list
DSpac...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Alex Maia Sanchez

unread,
Aug 25, 2015, 2:04:18 PM8/25/15
to MOHIT SHARMA, dspac...@lists.sourceforge.net
Sure,

I have typed 
mvn package

After error
mvn clean

And tried again with

mvn -U package

Alex Maia Sanchez
LINUX Registred User # 399667
LIBERTE SUA MENTE ! Use LINUX !
Celular (11) 8034.6420



2010/8/3 MOHIT SHARMA <mohi...@gmail.com>

ehdaa salah

unread,
Aug 26, 2015, 10:08:51 AM8/26/15
to dspac...@lists.sourceforge.net
hi ,,,

   I need your help in dspace
when running mvn package I get this error :

Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.2-beta-1:directory-single (default) on project dspace: Error creating assembly: Error creating assembly archive: Problem copying files : C:\dspace-1.6.0-src-release\dspace\target\dspace-1.6.0-build.dir\webapps\jspui\image\confidence\Thumbs.db (Access is denied) -> [Help 1]

To see the full stack trace of the errors, re-run Maven with the -e switch.
Re-run Maven using the -X switch to enable full debug logging.

For more information about the errors and possible solutions, please read the following articles:
[Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

After correcting the problems, you can resume the build with the command

I'm using dspace 6.1.0
and I tried to convert install to package in dspace Assembly and Configuration but it didn't work.  
could you help me to resolve this problem please

thanks in advance

Ahmad Al-Shalabi

unread,
Aug 26, 2015, 1:47:36 PM8/26/15
to dspac...@lists.sourceforge.net
Hi all
I'm trying to install Dspace for the first time
so i install all requirement successfully, when i move to next step "build porject" using mvn package command there is an error.
i was change install.dir in build.properties to dspace.install.dir=C:\dspace and i create database called "dspace" user and password "dspace"

the following is the command lines 

C:\dspace-4.2-src-release>java -version
java version "1.7.0_71"
Java(TM) SE Runtime Environment (build 1.7.0_71-b14)
Java HotSpot(TM) Client VM (build 24.71-b01, mixed mode, sharing)

C:\dspace-4.2-src-release>mvn version
[INFO] Scanning for projects...
oss-parent-7.pom
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR]   The project org.dspace:dspace-parent:4.2 (C:\dspace-4.2-src-release\po
m.xml) has 1 error
[ERROR]     Non-resolvable parent POM: Could not transfer artifact org.sonatype.
oss:oss-parent:pom:7 from/to central (https://repo.maven.apache.org/maven2): Con
Connection timed out: connect and 'parent.relativePath' points at no local POM @
 line 20, column 13 -> [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:
gException
delException
C:\dspace-4.2-src-release>mvn package
[INFO] Scanning for projects...
oss-parent-7.pom
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR]   The project org.dspace:dspace-parent:4.2 (C:\dspace-4.2-src-release\po
m.xml) has 1 error
[ERROR]     Non-resolvable parent POM: Could not transfer artifact org.sonatype.
oss:oss-parent:pom:7 from/to central (https://repo.maven.apache.org/maven2): Con
Connection timed out: connect and 'parent.relativePath' points at no local POM @
 line 20, column 13 -> [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:
gException
delException
C:\dspace-4.2-src-release>cd dspace

C:\dspace-4.2-src-release\dspace>mvn package
[INFO] Scanning for projects...
oss-parent-7.pom
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR]   The project org.dspace:dspace:[unknown-version] (C:\dspace-4.2-src-rel
ease\dspace\pom.xml) has 1 error
[ERROR]     Non-resolvable parent POM for org.dspace:dspace-parent:4.2: Could no
t transfer artifact org.sonatype.oss:oss-parent:pom:7 from/to central (https://r
pache.org/185.31.18.215] failed: Connection timed out: connect and 'parent.relat
ivePath' points at no local POM @ org.dspace:dspace-parent:4.2, C:\dspace-4.2-sr
c-release\pom.xml, line 20, column 13 -> [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:
gException
delException
C:\dspace-4.2-src-release\dspace>

------

please i need your help
Best Regards

helix84

unread,
Aug 26, 2015, 1:47:42 PM8/26/15
to Ahmad Al-Shalabi, dspac...@lists.sourceforge.net
Do you have direct internet connection from your DSpace server or do
you have to use a proxy?

If you have a direct connection, there might have been a very brief
downtime, so just try again.
You can verify whether your connection works using e.g.:
wget https://repo.maven.apache.org/

If you have to use a proxy, here's how you have to configure Maven to use it:

https://wiki.duraspace.org/display/DSPACE/Set+Maven+Web+Proxy+Server+Settings


Regards,
~~helix84

Compulsory reading: DSpace Mailing List Etiquette
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

dspmasp...@gmail.com

unread,
Mar 31, 2018, 5:52:59 PM3/31/18
to DSpace Technical Support
hi have some error while run command mvn package (try to install window based Dspace software)

C:\Program Files (x86)\Java\jdk1.8.0_144>mvn package
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.203 s
[INFO] Finished at: 2018-03-31T13:49:39+05:30
[INFO] Final Memory: 4M/15M
[INFO] ------------------------------------------------------------------------
[ERROR] The goal you specified requires a project to execute but there is no POM in this directory (C:\Program Files (x86)\Java\jdk1.8.0_144). Please verify you invoked Maven from the correct directory. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[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:
'cmd' is not recognized as an internal or external command,
operable program or batch file.


please solve my this error.

its urgently.


subhash mayangade

Kim Shepherd

unread,
Apr 1, 2018, 7:58:43 PM4/1/18
to DSpace Technical Support
Hi Subhash,

(snipping the rest of this thread and subject as it does not seem related to the other messages about maven errors)

You need to be in the main DSpace source directory when you run maven commands. So for example, if you extracted the DSpace 6.2 release package into C:\Projects\DSpace (for example), then you you'd have a directory like C:\Projects\DSpace\dspace-src-6.2-release . This is often referred to as ${dspace-src} or [dspace-src] in documentation.

If you can change to your own ${dspace-src} directory before running "mvn package", you should have more success.

(and remember, after the mvn package completes, you need to change to ${dspace-src}\dspace\target\dspace-installer before running the ant commands

The DSpace wiki has some good installation documentation which I recommend reading and keeping around as a reference while you are installing: https://wiki.duraspace.org/display/DSDOC6x/Installing+DSpace

Cheers!

Kim

Rakhi Batra - Assistant Manager Publication

unread,
Jul 8, 2019, 9:35:24 AM7/8/19
to DSpace Technical Support
I am also getting this issue. Although I have tried all the solutions suggested in this thread but nothing is working. Please help. I am installing DSpace on windows 10 64 bit

Tim Donohue

unread,
Jul 8, 2019, 11:33:04 AM7/8/19
to Rakhi Batra - Assistant Manager Publication, DSpace Technical Support
Hello,

There are (unfortunately) a large variety of reasons why a Maven build issue may occur.  I'd recommend sending along (to this mailing list) the exact error message you are seeing from Maven, as that will allow someone on this list to more easily respond with suggestions related to your build problem.  You also may wish to search the email archives with exact text of the error from Maven, as you may find other hints there if others have hit the same error before. Other support options are also available at  https://wiki.duraspace.org/display/DSPACE/Support

Tim

--
All messages to this mailing list should adhere to the DuraSpace Code of Conduct: https://duraspace.org/about/policies/code-of-conduct/
---
You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dspace-tech...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/e321e65f-7f07-4ad7-ad54-35edd801d642%40googlegroups.com.


--
Tim Donohue
Technical Lead for DSpace & DSpaceDirect
DuraSpace.org | DSpace.org | DSpaceDirect.org
Reply all
Reply to author
Forward
0 new messages