Good news. We'll update the documentation.

Thanks


Hayden

On 11/07/12 00:09, Ben Sheaff wrote:
> I got it to work but in pom.xml it looks like you have assumed that the 
> folder dspace-rest has been copied into the source folder of dspace.
>
> You have hard coded:
>
>      <parent>
>          <artifactId>dspace-parent</artifactId>
>          <groupId>org.dspace</groupId>
>          <version>1.8.1</version>
>          <relativePath>..</relativePath>
>      </parent>
>
> So for me I fixed the relative path and changed the version to 1.7.1, I then 
> got build successful.
>
> Thanks,
> Ben
>
> -----Original Message-----
> From: helix84 [mailto:heli...@centrum.sk]
> Sent: July-10-12 4:22 AM
> To: Hayden Young
> Cc: dspace-tech@lists.sourceforge.net; DSpace Developer List
> Subject: Re: [Dspace-tech] DSpace REST API
>
> Hi Hayden,
> I was trying to build it both as a webapp and as a module just to test it. 
> Here are my notes and observations so far:
>
> 1) Here's what I got after I ran mvn package for the first time building as a 
> webapp:
>
> Downloading: 
> http://source.sakaiproject.org/maven2//org/dspace/dspace-api/1.8.1/dspace-api-1.8.1.pom
> [INFO] Unable to find resource 'org.dspace:dspace-api:pom:1.8.1' in 
> repository sakaiproject repository
> (http://source.sakaiproject.org/maven2/)
> Downloading: 
> http://repo1.maven.org/maven2/org/dspace/dspace-api/1.8.1/dspace-api-1.8.1.pom
> 8K downloaded  (dspace-api-1.8.1.pom)
> Downloading: 
> http://source.sakaiproject.org/maven2//org/sakaiproject/entitybus/entitybus-api/1.0.8/entitybus-api-1.0.8.pom
> 636b downloaded  (entitybus-api-1.0.8.pom) [WARNING] *** CHECKSUM FAILED - 
> Checksum failed on download: local = 
> 'b66699e72d4c9e4203ec8b9ae7a0a7877a64680a'; remote = 
> '7d1242d3a967c5291f1af8ea8501248a61ccda6c' - RETRYING
> Downloading: 
> http://source.sakaiproject.org/maven2//org/sakaiproject/entitybus/entitybus-api/1.0.8/entitybus-api-1.0.8.pom
> 636b downloaded  (entitybus-api-1.0.8.pom) [WARNING] *** CHECKSUM FAILED - 
> Checksum failed on download: local = 
> 'b66699e72d4c9e4203ec8b9ae7a0a7877a64680a'; remote = 
> '7d1242d3a967c5291f1af8ea8501248a61ccda6c' - IGNORING
> Downloading: 
> http://source.sakaiproject.org/maven2//org/sakaiproject/entitybus/1.0.8/entitybus-1.0.8.pom
> 2K downloaded  (entitybus-1.0.8.pom)
> [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = 
> '88beff8c430ca7e9de493ba8da1435c2f0816fb6'; remote = 
> '5455299acc1383eac8c19391da3ea7624470dc24' - RETRYING
> Downloading: 
> http://source.sakaiproject.org/maven2//org/sakaiproject/entitybus/1.0.8/entitybus-1.0.8.pom
> 2K downloaded  (entitybus-1.0.8.pom)
> [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = 
> '88beff8c430ca7e9de493ba8da1435c2f0816fb6'; remote = 
> '5455299acc1383eac8c19391da3ea7624470dc24' - IGNORING
> Downloading: 
> http://source.sakaiproject.org/maven2//org/sakaiproject/entitybus/entitybus-impl/1.0.8/entitybus-impl-1.0.8.pom
> 955b downloaded  (entitybus-impl-1.0.8.pom) [WARNING] *** CHECKSUM FAILED - 
> Checksum failed on download: local = 
> 'c9b46df256025d1030549d7038d559733d4041d4'; remote = 
> '76f6e7c61a137b830fdb2334bd4030df237434ef' - RETRYING
> Downloading: 
> http://source.sakaiproject.org/maven2//org/sakaiproject/entitybus/entitybus-impl/1.0.8/entitybus-impl-1.0.8.pom
> 955b downloaded  (entitybus-impl-1.0.8.pom) [WARNING] *** CHECKSUM FAILED - 
> Checksum failed on download: local = 
> 'c9b46df256025d1030549d7038d559733d4041d4'; remote = 
> '76f6e7c61a137b830fdb2334bd4030df237434ef' - IGNORING
> Downloading: 
> http://source.sakaiproject.org/maven2//org/sakaiproject/entitybus/entitybus-utils/1.0.8/entitybus-utils-1.0.8.pom
> 746b downloaded  (entitybus-utils-1.0.8.pom)
>
> (It built correctly, I'm just pointing out the checksum mismatches)
>
> 2) When I tried to build it as a module (with DSpace git master branch), I 
> got this:
>
> [ERROR] FATAL ERROR
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Error building POM (may not be this project's POM).
>
>
> Project ID: org.dspace.modules:rest
> POM Location: /home/dspace/svn/DSpace/dspace/modules/rest/pom.xml
> Validation Messages:
>
>      [0]  'dependencies.dependency.version' is missing for 
> org.dspace:dspace-rest:war
>
>
> Reason: Failed to validate POM for project org.dspace.modules:rest at 
> /home/dspace/svn/DSpace/dspace/modules/rest/pom.xml
>
>
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.reactor.MavenExecutionException: Failed to validate POM for 
> project org.dspace.modules:rest at 
> /home/dspace/svn/DSpace/dspace/modules/rest/pom.xml
>       at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:404)
>       at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:272)
>       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 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:616)
>       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: org.apache.maven.project.InvalidProjectModelException:
> Failed to validate POM for project org.dspace.modules:rest at 
> /home/dspace/svn/DSpace/dspace/modules/rest/pom.xml
>       at 
> org.apache.maven.project.DefaultMavenProjectBuilder.processProjectLogic(DefaultMavenProjectBuilder.java:1077)
>       at 
> org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(DefaultMavenProjectBuilder.java:880)
>       at 
> org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFileInternal(DefaultMavenProjectBuilder.java:508)
>       at 
> org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:200)
>       at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:604)
>       at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:487)
>       at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:560)
>       at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:560)
>       at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:560)
>       at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:391)
>       ... 12 more
>
> which I fixed by adding <version>1.0</version> to 
> /home/dspace/svn/DSpace/dspace/modules/rest/pom.xml
>
> 3) Then I get a build error like Gary described in dspace-tech, but 
> [dspace-src]/dspace-rest/target/dspace-rest-1.8.1.war is present, so when I 
> copy it manually to the webapps directory and set up a context for it, it 
> works.
>
> 4) I see references to DSpace 1.8.1 during the build, but it works fine with 
> 1.8.2 and HEAD.
>
> 5) When deploying as a module, location of dspace.cfg in 
> src/main/webapp/WEB-INF/web.xml also has to be edited (otherwise it defaults 
> to /deve/dspace/config.dspace.cfg), but this is not mentioned in the 
> documentation
>
> 6) /rest/users.xml without authentication lists user information which could 
> be considered sensitive.
>
> My environment:
>
> $ java -version
> java version "1.6.0_18"
> OpenJDK Runtime Environment (IcedTea6 1.8.13) (6b18-1.8.13-0+squeeze2) 
> OpenJDK 64-Bit Server VM (build 14.0-b16, mixed mode)
>
> $ mvn --version
> Apache Maven 2.2.1 (rdebian-4)
> Java version: 1.6.0_18
> Java home: /usr/lib/jvm/java-6-openjdk/jre Default locale: en_US, platform 
> encoding: UTF-8 OS name: "linux" version: "2.6.32-5-amd64" arch: "amd64" 
> Family: "unix"
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and threat 
> landscape has changed and how IT managers can respond. Discussions will 
> include endpoint security, mobile security and the latest in malware threats. 
> http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> DSpace-tech mailing list
> DSpace-tech@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/dspace-tech

-- 
Hayden Young
Managing Director
Wijiti Pty Ltd
p. +61 (0) 8 6398 5010
e. haydenyo...@wijiti.com
w. www.wijiti.com
vcard. www.wijiti.com/vcard/haydenyoung.vcf

NOTICE
This e-mail and any attachments are intended for the addressee(s) only and may 
be confidential. They may contain legally privileged or copyright material. You 
should not read, copy, use or disclose them without authorization. If you are 
not the intended recipient please contact the sender as soon as possible by 
return e-mail and then please delete both messages. This notice should not be 
removed.




------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to