File tree Expand file tree Collapse file tree 9 files changed +51
-19
lines changed
riseclipse/validator-riseclipse/src/main/java/org/lfenergy/compas/scl/validator/util
validator/src/main/java/org/lfenergy/compas/scl/validator/exception Expand file tree Collapse file tree 9 files changed +51
-19
lines changed Original file line number Diff line number Diff line change @@ -39,11 +39,11 @@ jobs:
39
39
key : ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
40
40
restore-keys : ${{ runner.os }}-m2
41
41
42
- - name : Set up JDK 1.11
42
+ - name : Set up JDK 17
43
43
uses : actions/setup-java@v3
44
44
with :
45
45
distribution : ' zulu'
46
- java-version : ' 11 '
46
+ java-version : ' 17 '
47
47
48
48
- name : Create custom Maven Settings.xml
49
49
uses : whelk-io/maven-settings-xml-action@v20
Original file line number Diff line number Diff line change @@ -43,11 +43,11 @@ jobs:
43
43
shell : bash
44
44
# Extra the tagname form the git reference, value of GITHUB_REF will be something like refs/tags/<tag_name>.
45
45
run : echo "##[set-output name=tagname;]$(echo ${GITHUB_REF##*/})"
46
- - name : Set up JDK 1.11
46
+ - name : Set up JDK 17
47
47
uses : actions/setup-java@v3
48
48
with :
49
49
distribution : ' zulu'
50
- java-version : ' 11 '
50
+ java-version : ' 17 '
51
51
52
52
- name : Create custom Maven Settings.xml
53
53
uses : whelk-io/maven-settings-xml-action@v20
Original file line number Diff line number Diff line change @@ -31,11 +31,11 @@ jobs:
31
31
fetch-depth : 0
32
32
submodules : ' true'
33
33
34
- - name : Set up JDK 1.11
34
+ - name : Set up JDK 17
35
35
uses : actions/setup-java@v3
36
36
with :
37
37
distribution : ' zulu'
38
- java-version : ' 11 '
38
+ java-version : ' 17 '
39
39
- name : Cache SonarCloud packages
40
40
uses : actions/cache@v3
41
41
with :
Original file line number Diff line number Diff line change 1
- distributionUrl =https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.8.1/apache-maven-3.8.1-bin.zip
2
- wrapperUrl =https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar
1
+ # Licensed to the Apache Software Foundation (ASF) under one
2
+ # or more contributor license agreements. See the NOTICE file
3
+ # distributed with this work for additional information
4
+ # regarding copyright ownership. The ASF licenses this file
5
+ # to you under the Apache License, Version 2.0 (the
6
+ # "License"); you may not use this file except in compliance
7
+ # with the License. You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing,
12
+ # software distributed under the License is distributed on an
13
+ # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ # KIND, either express or implied. See the License for the
15
+ # specific language governing permissions and limitations
16
+ # under the License.
17
+ distributionUrl =https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.8.4/apache-maven-3.8.4-bin.zip
18
+ wrapperUrl =https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar
Original file line number Diff line number Diff line change @@ -66,6 +66,28 @@ You can run your application in dev mode that enables live coding using:
66
66
67
67
> ** _ NOTE:_ ** Quarkus now ships with a Dev UI, which is available in dev mode only at http://localhost:8080/q/dev/ .
68
68
69
+ ### Application depends on a running KeyCloak instance for dev mode
70
+
71
+ There is a KeyCloak instance need to be running on port 8089 by default in dev mode.
72
+ See [ Security] ( README.md#security ) for default values, if custom keycloak is used.
73
+
74
+ There is a preconfigured keycloak instance available in
75
+ the [ CoMPAS Deployment Repository] ( https://github.com/com-pas/compas-deployment ) . This repository can be cloned and
76
+ when going to this directory the following command can be executed to create a local Docker Image with configuration.
77
+
78
+ ``` shell
79
+ cd < CoMPAS Deployment Repository Directory> /compas/keycloak
80
+ docker build -t compas_keycloak .
81
+ ```
82
+
83
+ There is now a Docker Image ` compas_keycloak ` created that can be started using the following command
84
+
85
+ ``` shell
86
+ docker run --rm --name compas_keycloak \
87
+ -p 8089:8080
88
+ -d compas_keycloak:latest
89
+ ```
90
+
69
91
## Packaging and running the application
70
92
71
93
The application can be packaged using:
Original file line number Diff line number Diff line change 23
23
###
24
24
FROM registry.access.redhat.com/ubi8/ubi-minimal:8.6
25
25
26
- ARG JAVA_PACKAGE=java-11 -openjdk-headless
26
+ ARG JAVA_PACKAGE=java-17 -openjdk-headless
27
27
ARG RUN_JAVA_VERSION=1.3.8
28
28
ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en'
29
29
# Install java and the run-java script
Original file line number Diff line number Diff line change @@ -15,8 +15,7 @@ SPDX-License-Identifier: Apache-2.0
15
15
16
16
<properties >
17
17
<maven .compiler.parameters>true</maven .compiler.parameters>
18
- <maven .compiler.source>11</maven .compiler.source>
19
- <maven .compiler.target>11</maven .compiler.target>
18
+ <maven .compiler.release>17</maven .compiler.release>
20
19
<project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
21
20
<project .reporting.outputEncoding>UTF-8</project .reporting.outputEncoding>
22
21
Original file line number Diff line number Diff line change 5
5
6
6
import fr .centralesupelec .edf .riseclipse .iec61850 .scl .SclPackage ;
7
7
import org .lfenergy .compas .scl .validator .exception .SclValidatorException ;
8
- import org .slf4j .Logger ;
9
- import org .slf4j .LoggerFactory ;
10
8
11
9
import static org .lfenergy .compas .scl .validator .exception .SclValidatorErrorCode .OCL_MODEL_PACKAGE_NOT_FOUND ;
12
10
13
11
public class OclUtil {
14
- private static final Logger LOGGER = LoggerFactory .getLogger (OclUtil .class );
15
-
16
- private static final String FILE_SPECIFICS_DIR_NAME = "FileSpecifics" ;
17
- private static final String COMMON_DIR_NAME = "Common" ;
18
-
19
12
OclUtil () {
20
13
throw new UnsupportedOperationException ("OclFileUtil class" );
21
14
}
Original file line number Diff line number Diff line change 3
3
// SPDX-License-Identifier: Apache-2.0
4
4
package org .lfenergy .compas .scl .validator .exception ;
5
5
6
+ import org .lfenergy .compas .core .commons .exception .CompasException ;
7
+
6
8
import static org .lfenergy .compas .scl .validator .exception .SclValidatorErrorCode .NSDOC_FILE_NOT_FOUND ;
7
9
8
- public class NsdocFileNotFoundException extends SclValidatorException {
10
+ public class NsdocFileNotFoundException extends CompasException {
9
11
public NsdocFileNotFoundException (String message ) {
10
12
super (NSDOC_FILE_NOT_FOUND , message );
11
13
}
You can’t perform that action at this time.
0 commit comments