talk@lists.collectionspace.org

WE HAVE SUNSET THIS LISTSERV - Join us at collectionspace@lyrasislists.org

View all threads

Fwd: Maven Install Error

MF
Megan Forbes
Sun, Nov 17, 2013 11:36 AM

---------- Forwarded message ----------
From: Steven Davis
Date: Saturday, November 16, 2013
Subject: Maven Install Error
To: collectionspace@movingimage.us

Hello!

I’m working on installing collection space for a local gallery, and I’m
running into some problems with the mvn clean install -DskipTests

Any help appreciated!

I’m getting the following error:

[INFO] BUILD FAILED
[INFO] /root/collectionspace-source/application/war-entry/build.xml:65:
Problem: failed to create task or type hostinfo
[INFO] Cause: The name is undefined.
[INFO] Action: Check the spelling.
[INFO] Action: Check that any custom tasks/types have been declared.
[INFO] Action: Check that any <presetdef>/<macrodef> declarations have
taken place.
[INFO]
[INFO]
[INFO] Total time: 1 second
[INFO]

[INFO] BUILD FAILURE
[INFO]

[INFO] Total time: 24.531s
[INFO] Finished at: Sat Nov 16 21:57:49 UTC 2013
[INFO] Final Memory: 10M/25M
[INFO]

[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.1:exec
(default) on project war-entry: Result of /bin/sh -c cd
/root/collectionspace-source/application/war-entry && ant
-Dconfig_destination=/usr/local/share/apache-tomcat-6.0.33/lib execution
is: '1'. -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
goal org.codehaus.mojo:exec-maven-plugin:1.1:exec (default) on project
war-entry: Result of /bin/sh -c cd
/root/collectionspace-source/application/war-entry && ant
-Dconfig_destination=/usr/local/share/apache-tomcat-6.0.33/lib execution
is: '1'.
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: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: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: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: Result of
/bin/sh -c cd /root/collectionspace-source/application/war-entry && ant
-Dconfig_destination=/usr/local/share/apache-tomcat-6.0.33/lib execution
is: '1'.
at org.codehaus.mojo.exec.ExecMojo.execute(ExecMojo.java:260)
at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
... 19 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

---------- Forwarded message ---------- From: *Steven Davis* Date: Saturday, November 16, 2013 Subject: Maven Install Error To: collectionspace@movingimage.us Hello! I’m working on installing collection space for a local gallery, and I’m running into some problems with the mvn clean install -DskipTests Any help appreciated! I’m getting the following error: [INFO] BUILD FAILED [INFO] /root/collectionspace-source/application/war-entry/build.xml:65: Problem: failed to create task or type hostinfo [INFO] Cause: The name is undefined. [INFO] Action: Check the spelling. [INFO] Action: Check that any custom tasks/types have been declared. [INFO] Action: Check that any <presetdef>/<macrodef> declarations have taken place. [INFO] [INFO] [INFO] Total time: 1 second [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 24.531s [INFO] Finished at: Sat Nov 16 21:57:49 UTC 2013 [INFO] Final Memory: 10M/25M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.1:exec (default) on project war-entry: Result of /bin/sh -c cd /root/collectionspace-source/application/war-entry && ant -Dconfig_destination=/usr/local/share/apache-tomcat-6.0.33/lib execution is: '1'. -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.1:exec (default) on project war-entry: Result of /bin/sh -c cd /root/collectionspace-source/application/war-entry && ant -Dconfig_destination=/usr/local/share/apache-tomcat-6.0.33/lib execution is: '1'. 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: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: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: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: Result of /bin/sh -c cd /root/collectionspace-source/application/war-entry && ant -Dconfig_destination=/usr/local/share/apache-tomcat-6.0.33/lib execution is: '1'. at org.codehaus.mojo.exec.ExecMojo.execute(ExecMojo.java:260) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) ... 19 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
AR
Aron Roberts
Mon, Nov 18, 2013 4:27 AM

Hi Steven,

The error you reported seems very much like this one; it looks like
the first thing to try is to upgrade Ant to version 1.8.2 or later:

http://wiki.collectionspace.org/display/UNRELEASED/Troubleshooting+Installation+Problems#TroubleshootingInstallationProblems-ErrorswhilerunningAnt%2Cwhere%22build.xml%22appearsinanyrelevanterrormessage

Installing a newer version of Ant:

https://ant.apache.org/manual/install.html

Hope this helps!

Aron Roberts
UC Berkeley

P.S. Megan, could you also forward this to Steven, if he's not on the
Talk list and you have his email address?  (That address doesn't
appear in the forwarded message.)  Thanks!

On Sun, Nov 17, 2013 at 3:36 AM, Megan Forbes mforbes@movingimage.us wrote:

---------- Forwarded message ----------
From: Steven Davis
Date: Saturday, November 16, 2013
Subject: Maven Install Error
To: collectionspace@movingimage.us

Hello!

I’m working on installing collection space for a local gallery, and I’m
running into some problems with the mvn clean install -DskipTests

Any help appreciated!

I’m getting the following error:

[INFO] BUILD FAILED
[INFO] /root/collectionspace-source/application/war-entry/build.xml:65:
Problem: failed to create task or type hostinfo
[INFO] Cause: The name is undefined.
[INFO] Action: Check the spelling.
[INFO] Action: Check that any custom tasks/types have been declared.
[INFO] Action: Check that any <presetdef>/<macrodef> declarations have taken
place.
[INFO]
[INFO]
[INFO] Total time: 1 second
[INFO]

[INFO] BUILD FAILURE
[INFO]

[INFO] Total time: 24.531s
[INFO] Finished at: Sat Nov 16 21:57:49 UTC 2013
[INFO] Final Memory: 10M/25M
[INFO]

[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.1:exec
(default) on project war-entry: Result of /bin/sh -c cd
/root/collectionspace-source/application/war-entry && ant
-Dconfig_destination=/usr/local/share/apache-tomcat-6.0.33/lib execution is:
'1'. -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
goal org.codehaus.mojo:exec-maven-plugin:1.1:exec (default) on project
war-entry: Result of /bin/sh -c cd
/root/collectionspace-source/application/war-entry && ant
-Dconfig_destination=/usr/local/share/apache-tomcat-6.0.33/lib execution is:
'1'.
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: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: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: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: Result of /bin/sh
-c cd /root/collectionspace-source/application/war-entry && ant
-Dconfig_destination=/usr/local/share/apache-tomcat-6.0.33/lib execution is:
'1'.
at org.codehaus.mojo.exec.ExecMojo.execute(ExecMojo.java:260)
at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
... 19 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


Talk mailing list
Talk@lists.collectionspace.org
http://lists.collectionspace.org/mailman/listinfo/talk_lists.collectionspace.org

Hi Steven, The error you reported seems very much like this one; it looks like the first thing to try is to upgrade Ant to version 1.8.2 or later: http://wiki.collectionspace.org/display/UNRELEASED/Troubleshooting+Installation+Problems#TroubleshootingInstallationProblems-ErrorswhilerunningAnt%2Cwhere%22build.xml%22appearsinanyrelevanterrormessage Installing a newer version of Ant: https://ant.apache.org/manual/install.html Hope this helps! Aron Roberts UC Berkeley P.S. Megan, could you also forward this to Steven, if he's not on the Talk list and you have his email address? (That address doesn't appear in the forwarded message.) Thanks! On Sun, Nov 17, 2013 at 3:36 AM, Megan Forbes <mforbes@movingimage.us> wrote: > > > ---------- Forwarded message ---------- > From: Steven Davis > Date: Saturday, November 16, 2013 > Subject: Maven Install Error > To: collectionspace@movingimage.us > > > Hello! > > I’m working on installing collection space for a local gallery, and I’m > running into some problems with the mvn clean install -DskipTests > > Any help appreciated! > > I’m getting the following error: > > [INFO] BUILD FAILED > [INFO] /root/collectionspace-source/application/war-entry/build.xml:65: > Problem: failed to create task or type hostinfo > [INFO] Cause: The name is undefined. > [INFO] Action: Check the spelling. > [INFO] Action: Check that any custom tasks/types have been declared. > [INFO] Action: Check that any <presetdef>/<macrodef> declarations have taken > place. > [INFO] > [INFO] > [INFO] Total time: 1 second > [INFO] > ------------------------------------------------------------------------ > [INFO] BUILD FAILURE > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 24.531s > [INFO] Finished at: Sat Nov 16 21:57:49 UTC 2013 > [INFO] Final Memory: 10M/25M > [INFO] > ------------------------------------------------------------------------ > [ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.1:exec > (default) on project war-entry: Result of /bin/sh -c cd > /root/collectionspace-source/application/war-entry && ant > -Dconfig_destination=/usr/local/share/apache-tomcat-6.0.33/lib execution is: > '1'. -> [Help 1] > org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute > goal org.codehaus.mojo:exec-maven-plugin:1.1:exec (default) on project > war-entry: Result of /bin/sh -c cd > /root/collectionspace-source/application/war-entry && ant > -Dconfig_destination=/usr/local/share/apache-tomcat-6.0.33/lib execution is: > '1'. > 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: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: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: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: Result of /bin/sh > -c cd /root/collectionspace-source/application/war-entry && ant > -Dconfig_destination=/usr/local/share/apache-tomcat-6.0.33/lib execution is: > '1'. > at org.codehaus.mojo.exec.ExecMojo.execute(ExecMojo.java:260) > at > org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101) > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) > ... 19 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 > > > _______________________________________________ > Talk mailing list > Talk@lists.collectionspace.org > http://lists.collectionspace.org/mailman/listinfo/talk_lists.collectionspace.org >
MF
Megan Forbes
Wed, Nov 20, 2013 1:04 AM

Steven,

Please see a potential fix below. Also, I encourage you to sign up for the
CollectionSpace "talk" list - it's a great resource for CollectionSpace
users!

Best regards,
Megan

http://lists.collectionspace.org/mailman/listinfo/talk_lists.collectionspace.org

---------- Forwarded message ----------
From: Aron Roberts aronroberts@gmail.com
Date: Sun, Nov 17, 2013 at 11:27 PM
Subject: Re: [Talk] Fwd: Maven Install Error
To: Megan Forbes mforbes@movingimage.us
Cc: CollectionSpace Talk List talk@lists.collectionspace.org

Hi Steven,

The error you reported seems very much like this one; it looks like
the first thing to try is to upgrade Ant to version 1.8.2 or later:

http://wiki.collectionspace.org/display/UNRELEASED/Troubleshooting+Installation+Problems#TroubleshootingInstallationProblems-ErrorswhilerunningAnt%2Cwhere%22build.xml%22appearsinanyrelevanterrormessage

Installing a newer version of Ant:

https://ant.apache.org/manual/install.html

Hope this helps!

Aron Roberts
UC Berkeley

On Sun, Nov 17, 2013 at 3:36 AM, Megan Forbes mforbes@movingimage.us
wrote:

---------- Forwarded message ----------
From: Steven Davis
Date: Saturday, November 16, 2013
Subject: Maven Install Error
To: collectionspace@movingimage.us

Hello!

I’m working on installing collection space for a local gallery, and I’m
running into some problems with the mvn clean install -DskipTests

Any help appreciated!

I’m getting the following error:

[INFO] BUILD FAILED
[INFO] /root/collectionspace-source/application/war-entry/build.xml:65:
Problem: failed to create task or type hostinfo
[INFO] Cause: The name is undefined.
[INFO] Action: Check the spelling.
[INFO] Action: Check that any custom tasks/types have been declared.
[INFO] Action: Check that any <presetdef>/<macrodef> declarations have

taken

place.
[INFO]
[INFO]
[INFO] Total time: 1 second
[INFO]

[INFO] BUILD FAILURE
[INFO]

[INFO] Total time: 24.531s
[INFO] Finished at: Sat Nov 16 21:57:49 UTC 2013
[INFO] Final Memory: 10M/25M
[INFO]

[ERROR] Failed to execute goal

org.codehaus.mojo:exec-maven-plugin:1.1:exec

(default) on project war-entry: Result of /bin/sh -c cd
/root/collectionspace-source/application/war-entry && ant
-Dconfig_destination=/usr/local/share/apache-tomcat-6.0.33/lib execution

is:

'1'. -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
goal org.codehaus.mojo:exec-maven-plugin:1.1:exec (default) on project
war-entry: Result of /bin/sh -c cd
/root/collectionspace-source/application/war-entry && ant
-Dconfig_destination=/usr/local/share/apache-tomcat-6.0.33/lib execution

is:

'1'.
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: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: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: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: Result of

/bin/sh

-c cd /root/collectionspace-source/application/war-entry && ant
-Dconfig_destination=/usr/local/share/apache-tomcat-6.0.33/lib execution

is:

'1'.
at org.codehaus.mojo.exec.ExecMojo.execute(ExecMojo.java:260)
at

org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)

at

org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)

... 19 more
[ERROR]
[ERROR]
[ERROR] For more information about the errors and possible solutions,

please

Steven, Please see a potential fix below. Also, I encourage you to sign up for the CollectionSpace "talk" list - it's a great resource for CollectionSpace users! Best regards, Megan http://lists.collectionspace.org/mailman/listinfo/talk_lists.collectionspace.org ---------- Forwarded message ---------- From: Aron Roberts <aronroberts@gmail.com> Date: Sun, Nov 17, 2013 at 11:27 PM Subject: Re: [Talk] Fwd: Maven Install Error To: Megan Forbes <mforbes@movingimage.us> Cc: CollectionSpace Talk List <talk@lists.collectionspace.org> Hi Steven, The error you reported seems very much like this one; it looks like the first thing to try is to upgrade Ant to version 1.8.2 or later: http://wiki.collectionspace.org/display/UNRELEASED/Troubleshooting+Installation+Problems#TroubleshootingInstallationProblems-ErrorswhilerunningAnt%2Cwhere%22build.xml%22appearsinanyrelevanterrormessage Installing a newer version of Ant: https://ant.apache.org/manual/install.html Hope this helps! Aron Roberts UC Berkeley On Sun, Nov 17, 2013 at 3:36 AM, Megan Forbes <mforbes@movingimage.us> wrote: > > > ---------- Forwarded message ---------- > From: Steven Davis > Date: Saturday, November 16, 2013 > Subject: Maven Install Error > To: collectionspace@movingimage.us > > > Hello! > > I’m working on installing collection space for a local gallery, and I’m > running into some problems with the mvn clean install -DskipTests > > Any help appreciated! > > I’m getting the following error: > > [INFO] BUILD FAILED > [INFO] /root/collectionspace-source/application/war-entry/build.xml:65: > Problem: failed to create task or type hostinfo > [INFO] Cause: The name is undefined. > [INFO] Action: Check the spelling. > [INFO] Action: Check that any custom tasks/types have been declared. > [INFO] Action: Check that any <presetdef>/<macrodef> declarations have taken > place. > [INFO] > [INFO] > [INFO] Total time: 1 second > [INFO] > ------------------------------------------------------------------------ > [INFO] BUILD FAILURE > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 24.531s > [INFO] Finished at: Sat Nov 16 21:57:49 UTC 2013 > [INFO] Final Memory: 10M/25M > [INFO] > ------------------------------------------------------------------------ > [ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.1:exec > (default) on project war-entry: Result of /bin/sh -c cd > /root/collectionspace-source/application/war-entry && ant > -Dconfig_destination=/usr/local/share/apache-tomcat-6.0.33/lib execution is: > '1'. -> [Help 1] > org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute > goal org.codehaus.mojo:exec-maven-plugin:1.1:exec (default) on project > war-entry: Result of /bin/sh -c cd > /root/collectionspace-source/application/war-entry && ant > -Dconfig_destination=/usr/local/share/apache-tomcat-6.0.33/lib execution is: > '1'. > 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: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: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: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: Result of /bin/sh > -c cd /root/collectionspace-source/application/war-entry && ant > -Dconfig_destination=/usr/local/share/apache-tomcat-6.0.33/lib execution is: > '1'. > at org.codehaus.mojo.exec.ExecMojo.execute(ExecMojo.java:260) > at > org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101) > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) > ... 19 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 > > > _______________________________________________ > Talk mailing list > Talk@lists.collectionspace.org > http://lists.collectionspace.org/mailman/listinfo/talk_lists.collectionspace.org >