Skip to content

Commit

Permalink
install pty4j manually
Browse files Browse the repository at this point in the history
  • Loading branch information
yhilmare committed Aug 22, 2024
1 parent 6034113 commit a3f51f6
Show file tree
Hide file tree
Showing 7 changed files with 102 additions and 6 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/build_artifact.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,22 @@ jobs:
mvn clean install -Dmaven.test.skip=true
echo "Install db-browser success"
popd
- name: Install pty4j
run: |
echo "Start install pty4j"
pushd import
echo "Current dir is "`pwd`
mvn install:install-file -Dfile=./pty4j-0.11.4.jar -DgroupId=org.jetbrains.pty4j -DartifactId=pty4j -Dversion=0.11.4 -Dpackaging=jar
echo "Install pty4j success"
popd
- name: Install purejavacomm
run: |
echo "Start install purejavacomm"
pushd import
echo "Current dir is "`pwd`
mvn install:install-file -Dfile=./purejavacomm-0.0.11.1.jar -DgroupId=org.jetbrains.pty4j -DartifactId=purejavacomm -Dversion=0.0.11.1 -Dpackaging=jar
echo "Install purejavacomm success"
popd
- name: Build jar
run: |
echo "Start build jar packages"
Expand Down
32 changes: 32 additions & 0 deletions .github/workflows/build_daily.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,22 @@ jobs:
mvn clean install -Dmaven.test.skip=true
echo "Install db-browser success"
popd
- name: Install pty4j
run: |
echo "Start install pty4j"
pushd import
echo "Current dir is "`pwd`
mvn install:install-file -Dfile=./pty4j-0.11.4.jar -DgroupId=org.jetbrains.pty4j -DartifactId=pty4j -Dversion=0.11.4 -Dpackaging=jar
echo "Install pty4j success"
popd
- name: Install purejavacomm
run: |
echo "Start install purejavacomm"
pushd import
echo "Current dir is "`pwd`
mvn install:install-file -Dfile=./purejavacomm-0.0.11.1.jar -DgroupId=org.jetbrains.pty4j -DartifactId=purejavacomm -Dversion=0.0.11.1 -Dpackaging=jar
echo "Install purejavacomm success"
popd
- name: Build project
run: mvn clean install -Dmaven.test.skip=true
- name: Run PMD scan
Expand Down Expand Up @@ -206,6 +222,22 @@ jobs:
mvn clean install -Dmaven.test.skip=true
echo "Install db-browser success"
popd
- name: Install pty4j
run: |
echo "Start install pty4j"
pushd import
echo "Current dir is "`pwd`
mvn install:install-file -Dfile=./pty4j-0.11.4.jar -DgroupId=org.jetbrains.pty4j -DartifactId=pty4j -Dversion=0.11.4 -Dpackaging=jar
echo "Install pty4j success"
popd
- name: Install purejavacomm
run: |
echo "Start install purejavacomm"
pushd import
echo "Current dir is "`pwd`
mvn install:install-file -Dfile=./purejavacomm-0.0.11.1.jar -DgroupId=org.jetbrains.pty4j -DartifactId=purejavacomm -Dversion=0.0.11.1 -Dpackaging=jar
echo "Install purejavacomm success"
popd
- name: Build jar & rpm (x86_64)
run: |
echo "Start prepare oceanbase-client"
Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/build_dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,22 @@ jobs:
mvn clean install -Dmaven.test.skip=true
echo "Install db-browser success"
popd
- name: Install pty4j
run: |
echo "Start install pty4j"
pushd import
echo "Current dir is "`pwd`
mvn install:install-file -Dfile=./pty4j-0.11.4.jar -DgroupId=org.jetbrains.pty4j -DartifactId=pty4j -Dversion=0.11.4 -Dpackaging=jar
echo "Install pty4j success"
popd
- name: Install purejavacomm
run: |
echo "Start install purejavacomm"
pushd import
echo "Current dir is "`pwd`
mvn install:install-file -Dfile=./purejavacomm-0.0.11.1.jar -DgroupId=org.jetbrains.pty4j -DartifactId=purejavacomm -Dversion=0.0.11.1 -Dpackaging=jar
echo "Install purejavacomm success"
popd
- name: Build project
run: mvn clean install -Dmaven.test.skip=true
- name: Run PMD scan
Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/build_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,22 @@ jobs:
java-version: "8"
distribution: "temurin"
cache: maven
- name: Install pty4j
run: |
echo "Start install pty4j"
pushd import
echo "Current dir is "`pwd`
mvn install:install-file -Dfile=./pty4j-0.11.4.jar -DgroupId=org.jetbrains.pty4j -DartifactId=pty4j -Dversion=0.11.4 -Dpackaging=jar
echo "Install pty4j success"
popd
- name: Install purejavacomm
run: |
echo "Start install purejavacomm"
pushd import
echo "Current dir is "`pwd`
mvn install:install-file -Dfile=./purejavacomm-0.0.11.1.jar -DgroupId=org.jetbrains.pty4j -DartifactId=purejavacomm -Dversion=0.0.11.1 -Dpackaging=jar
echo "Install purejavacomm success"
popd
- name: Build project
run: mvn clean install -Dmaven.test.skip=true
- name: Run PMD scan
Expand Down
2 changes: 1 addition & 1 deletion client
Submodule client updated 632 files
22 changes: 21 additions & 1 deletion script/functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -320,8 +320,28 @@ function maven_install_libs() {
fi
done

func_echo "maven install libs with args ${maven_extra_args[@]} succeed"
popd
pushd "${ODC_DIR}/import" || return 1

func_echo "start install lib pty4j-0.11.4.jar"

if ! mvn install:install-file -Dfile=./pty4j-0.11.4.jar -DgroupId=org.jetbrains.pty4j -DartifactId=pty4j -Dversion=0.11.4 -Dpackaging=jar; then
func_echo "maven install lib pty4j-0.11.4.jar failed"
else
func_echo "maven install lib pty4j-0.11.4.jar succeed"
fi

func_echo "start install lib purejavacomm-0.0.11.1.jar"

if ! mvn install:install-file -Dfile=./purejavacomm-0.0.11.1.jar -DgroupId=org.jetbrains.pty4j -DartifactId=purejavacomm -Dversion=0.0.11.1 -Dpackaging=jar; then
func_echo "maven install lib purejavacomm-0.0.11.1.jar failed"
else
func_echo "maven install lib purejavacomm-0.0.11.1.jar succeed"
fi

popd
func_echo "maven install libs with args ${maven_extra_args[@]} succeed"

return 0
}

Expand Down
4 changes: 0 additions & 4 deletions server/odc-service/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,11 @@
<groupId>org.jetbrains.pty4j</groupId>
<artifactId>pty4j</artifactId>
<version>0.11.4</version>
<scope>system</scope>
<systemPath>${project.basedir}/../../import/pty4j-0.11.4.jar</systemPath>
</dependency>
<dependency>
<groupId>org.jetbrains.pty4j</groupId>
<artifactId>purejavacomm</artifactId>
<version>0.0.11.1</version>
<scope>system</scope>
<systemPath>${project.basedir}/../../import/purejavacomm-0.0.11.1.jar</systemPath>
</dependency>
<dependency>
<groupId>org.jetbrains</groupId>
Expand Down

0 comments on commit a3f51f6

Please sign in to comment.