- Maven user settings required for this project: [C:\Documents and Settings\<username>\.m2\settings.xml]
[/home/<username>/.m2/settings.xml]
<settings ...>
...
<profiles>
<profile>
<id>(your-profile)</id>
<properties>
...
<mylogic.log.file>absolute path to ${project.artifactId}.log</mylogic.log.file>
<spring.log.file>absolute path to ${project.artifactId}-spring.log</spring.log.file>
<dspace.log.file>absolute path to ${project.artifactId}-dspace.log</dspace.log.file>
<dspace.rest.username>...</dspace.rest.username>
<dspace.rest.password>...</dspace.rest.password>
<dspace.eperson.id>...</dspace.eperson.id>
<dspace.config.file>absolute path to DSpace dspace.cfg file</dspace.config.file>
...
</properties>
</profile>
</profiles>
...
</settings>
, where absolute path examples:
[D:\...${project.artifactId}.log] [/var/.../${project.artifactId}.log]
[D:\...\dspace.cfg] [/data/dspace/.../dspace.cfg]
If you've already cloned SimpleREST, you can pull new changes from github git repo with the following command: git pull origin master
-
Install git on to your system.
-
Clone updated code from the repo: git clone https://github.com/anis-moubarik/SimpleREST.git
-
In the console, position in the project base directory, where the pom.xml file is:
-
mvn clean package -P(your-profile) [from above section on settings.xml]
-
Check in the console that all completed successfully. [BUILD SUCCESS]
-
The file is generated in /target/.
-
Copy the file to your DSpace webapps folder. [In our UNIX setups it is: /data/dspace/webapps]
[5.0 You might need to restart the Tomcat]
-
You can test the RESTful web service at: http://<dspace-hostname>/simplerest/rootcommunities
-
The log file(s) written where you said above.
- Delete the file AND the folder with the same name from your DSpace webapps folder. [In our UNIX setups it is: /data/dspace/webapps]
-
In the console, position in the project base directory, where the pom.xml file is:
-
mvn clean site -P(your-profile) [from above section on settings.xml]
-
The site is generated in /target/site/. [index.html]
Add media query to your urls to retrieve data in json format, for example. www.dspaceinstance.com/simplerest/rootcommunities?media=json json is supported with communities, users, groups, collections and items
- To check which of the predefined files[1] have the predefined license header[2] or not:
mvn com.mycila.maven-license-plugin:maven-license-plugin:check
- To remove the predefined header[2] from the predefined files[1]:
mvn com.mycila.maven-license-plugin:maven-license-plugin:remove
- To write/format the predefined files[1] with the header[2].
mvn com.mycila.maven-license-plugin:maven-license-plugin:format
[1] see includes, excludes in the pom.xml for com.mycila.maven-license-plugin:maven-license-plugin
[2] src/main/config/HEADER.txt