Services for Oauth2
For setting up development environment:
- Download and install spring tool suite (https://spring.io/tools/sts/all)
- Download lombok.jar (https://projectlombok.org/download.html)
- Install lombok into spring tool suite with java -jar lombok.jar
- Start STS and import this project as existing project
- Press alt F5 to update Maven
- In STS, select Run as java application
- Select DataSciencePlatformOAuth
esg-truststore.ts can be obtained with: curl -L https://raw.githubusercontent.com/ESGF/esgf-dist/master/installer/certs/esg-truststore.ts > esg-truststore.ts
or use: /usr/lib/jvm/java-1.8.0-openjdk-amd64/jre/lib/security/cacerts
Keystore can be generated with:
keytool -genkey -noprompt -keypass password -alias tomcat -keyalg RSA -storepass password -keystore /keystore/c4i_keystore.jks -dname CN=hostname
<?xml version="1.0" encoding="UTF-8"?>
<adaguc-services>
<external-home-url>https://compute-test.c3s-magic.eu:9000</external-home-url>
<server>
<port>9000</port>
</server>
<basedir>{ENV.HOME}/adaguc-services-base</basedir>
<userworkspace>{ENV.HOME}/adaguc-services-space</userworkspace>
<security>
<truststorepassword>changeit</truststorepassword>
<truststore>{ENV.HOME}/config/esg-truststore.ts</truststore>
<trustrootscadirectory>{ENV.HOME}/.globus/certificates/</trustrootscadirectory>
<keystore>{ENV.HOME}/impactportal/c4i_keystore.jks</keystore>
<keystorepassword>password</keystorepassword>
<keystoretype>JKS</keystoretype>
<keyalias>tomcat</keyalias>
</security>
</adaguc-services>
For creating a new package:
- Adjust the version in pom.xml: 0..version (this is named ${VERSION} from now on)
- Type mvn package
- in directory target the file ./target/demo-${VERSION}-SNAPSHOT.jar is created.
- You can for example start this with java -jar demo-${VERSION}-SNAPSHOT.jar