Mark,
Thank you for the help.I got it working.
Thank you again
Twaha
----- Original Message ----
From: Mark Diggory <[EMAIL PROTECTED]>
To: Twaha Daudi <[EMAIL PROTECTED]>
Cc: dspace-tech@lists.sourceforge.net
Sent: Monday, June 2, 2008 6:49:49 PM
Subject: Re: [Dspace-tech] dspace 1.5 ant error(building the dspace binaries)
Twaha,
Please check the "file permissions" in the following directory by running the
following command as the same user account you are running mvn from
On [EMAIL PROTECTED]
touch /dspace-source/dspace/modules/xmlui/target/xmlui-1.5.0
if you get an error, then your file permissions are not correct and you cannot
create new files in the directory structure. You will need to look into
executing chmod ug+w across the /dspace-source directory structure.
-Mark
On Jun 2, 2008, at 1:57 AM, Twaha Daudi wrote:
hello Mark diggory and all
Iam back again,Sorry for taking you time.
environment variables for the necessary software to run dspace 1.5 are( I have
added these on .bashrc file)
# java variable
export JAVA_HOME=/usr/lib/jvm/java-6-sun
export PATH=$PATH:$JAVA_HOME/bin
# Maven variable
M2_HOME=/usr/local/apache-maven/apache-maven-2.0.9
export M2=$M2_HOME/bin
export PATH=$M2:$PATH
# Ant variable
export ANT_HOME=/usr/local/ant/
export PATH=$PATH:$ANT_HOME/bin:$JAVA_HOME/bin
here is the out after running
mvn install and mvn package as dspace unix user
[EMAIL PROTECTED]:/dspace-source/dspace$ mvn install
[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 Assembly and Configuration
[INFO] ------------------------------------------------------------------------
[INFO] Building DSpace Addon Modules
[INFO] task-segment: [install]
[INFO] ------------------------------------------------------------------------
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.2/maven-install-plugin-2.2.pom
2K downloaded
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.2/maven-install-plugin-2.2.jar
15K downloaded
[INFO] [site:attach-descriptor]
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/maven-project/2.0.6/maven-project-2.0.6.pom
2K downloaded
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/maven-settings/2.0.6/maven-settings-2.0.6.pom
1K downloaded
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/maven-model/2.0.6/maven-model-2.0.6.pom
2K downloaded
Downloading:
http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-container-default/1.0-alpha-9-stable-1/plexus-container-default-1.0-alpha-9-stable-1.pom
3K downloaded
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/maven-profile/2.0.6/maven-profile-2.0.6.pom
1K downloaded
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/maven-artifact-manager/2.0.6/maven-artifact-manager-2.0.6.pom
2K downloaded
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/maven-repository-metadata/2.0.6/maven-repository-metadata-2.0.6.pom
1K downloaded
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/maven-plugin-registry/2.0.6/maven-plugin-registry-2.0.6.pom
1K downloaded
Downloading:
http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-digest/1.0/plexus-digest-1.0.pom
1K downloaded
Downloading:
http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-components/1.1.7/plexus-components-1.1.7.pom
4K downloaded
Downloading:
http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-digest/1.0/plexus-digest-1.0.jar
11K downloaded
[INFO] [install:install]
[INFO] Installing /dspace-source/dspace/modules/pom.xml to
/home/dspace/.m2/repository/org/dspace/modules/1.5.0/modules-1.5.0.pom
[INFO] ------------------------------------------------------------------------
[INFO] Building DSpace XML-UI (Manakin) :: Web Application
[INFO] task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] No sources to compile
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] No sources to compile
[INFO] [surefire:test]
[INFO] No tests to run.
[INFO] [war:war]
[INFO] Packaging webapp
[INFO] Assembling webapp[xmlui] in
[/dspace-source/dspace/modules/xmlui/target/xmlui-1.5.0]
[INFO] Processing war project
[WARNING] Not copying webapp
webResources[/dspace-source/dspace/modules/xmlui/src/main/webapp]: webapp
directory[/dspace-source/dspace/modules/xmlui/target/xmlui-1.5.0] does not
exist!
[INFO] Copy webapp
webResources[/dspace-source/dspace/modules/xmlui/src/main/webapp]
to[/dspace-source/dspace/modules/xmlui/target/xmlui-1.5.0]
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to copy file for
artifact[org.dspace:dspace-xmlui-api:jar:1.5.0:compile]
Embedded error:
/dspace-source/dspace/modules/xmlui/target/xmlui-1.5.0/WEB-INF/lib/dspace-xmlui-api-1.5.0.jar
(No such file or directory)
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 48 seconds
[INFO] Finished at: Mon Jun 02 11:11:08 EAT 2008
[INFO] Final Memory: 14M/26M
[INFO] ------------------------------------------------------------------------
[EMAIL PROTECTED]:/dspace-source/dspace$ mvn -version
Maven version: 2.0.9
Java version: 1.6.0
OS name: "linux" version: "2.6.20-16-generic" arch: "i386" Family: "unix"
When I run with -e switch for errors
mvn -e
The output is
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO]
You must specify at least one goal. Try 'mvn install' to build or 'mvn -?' for
options
See http://maven.apache.org for more information.
[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.BuildFailureException:
You must specify at least one goal. Try 'mvn install' to build or 'mvn -?' for
options
See http://maven.apache.org for more information.
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:134)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
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)
[INFO] ------------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Mon Jun 02 11:52:18 EAT 2008
[INFO] Final Memory: 1M/4M
[INFO] ---------------------------------------------------------
Please sirs, any idea will appreciate
ud
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech