PCSS Common WebMethods Replacement
- Intellij
- Docker
- Docker Compose
- Maven
- Java 11
- Lombok
Local Host: http://127.0.0.1:8080
Actuator Endpoint Local: http://localhost:8080/actuator/health
Code Climate: https://codeclimate.com/github/bcgov/jag-pcss-common
WSDL Endpoint Local:
-
localhost:8080/common/JusticePCSSCommon.wsProvider:pcssCommon?WSDL
-
localhost:8080/common/JusticePCSSCommon.wsProvider:pcssCommonSecure?WSDL
-
localhost:8080/common/JusticePCSSCommon.wsProvider:pcssReport?WSDL
BASIC_AUTH_PASS: The password for the basic authentication. This can be any value for local.
BASIC_AUTH_USER: The username for the basic authentication. This can be any value for local.
ORDS_HOST: The url for ords rest package.
ORDS_USERNAME: ORDS_HOST authentication
ORDS_PASSWORD: ORDS_HOST authentication
ADOBE_HOST: RESTful service url to retrieve justin adobe report
ORACLE_HOST: RESTful service url to retrieve justin report
ORACLE_NAME: name of the server to get justin report
GENERIC_AGENCY_ID: generic agency id being configured on server. The value is part of CodeValuesSecure's request.
GENERIC_PART_ID: generic agency id being configured on server. The value is part of CodeValuesSecure's request.
ORDS_READ_TIMEOUT: Timeout in seconds which expects the response/result from ORDS.
SPLUNK_HTTP_URL: The url for the splunk hec.
SPLUNK_TOKEN: The bearer token to authenticate the application.
SPLUNK_INDEX: The index that the application will push logs to. The index must be created in splunk before they can be pushed to.
- Make sure using java 11 for the project modals and sdk
- Run
mvn compile
- Make sure
pcss-common-models
,pcss-common-secure-models
, andpcss-reports-models
are marked as generated sources roots (xjc)
Option A) Intellij
- Set env variables.
- Run the application
Option B) Jar
- Run
mvn package
- Run
cd pcss-common-application
- Run
java -jar ./target/pcss-common-application.jar $ENV_VAR$
(Note that$ENV_VAR$ are environment variables)
Option C) Docker
- Run
mvn package
- Run
cd pcss-common-application
- Run
docker build -t pcss-common-application .
- Run
docker run -p 8080:8080 pcss-common-application $ENV_VAR$
(Note that$ENV_VAR$ are environment variables)
- Do not commit \CRLF use unix line enders
- Run the linter
mvn spotless:apply
- Run
mvn clean verify
- Open
pcss-code-coverage/target/site/jacoco/index.html
in a browser