Skip to content

Commit

Permalink
Feature/MARP-917 Amazon comprehend connector (#43)
Browse files Browse the repository at this point in the history
* change additionalVmOptions to additionalVmArg
* convert version to 11.4.0
  • Loading branch information
phhung-axonivy authored Oct 25, 2024
1 parent 26eef00 commit 65c3766
Show file tree
Hide file tree
Showing 27 changed files with 70 additions and 109 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,6 @@ jobs:
uses: axonivy-market/github-workflows/.github/workflows/ci.yml@v4
secrets:
mvnArgs: -Daws.access.key=${{ secrets.AWS_ACCESS_KEY }} -Daws.secret.key=${{ secrets.AWS_SECRET_KEY }}
with:
javaVersion: 21
mvnVersion: 3.9.8
3 changes: 1 addition & 2 deletions amazon-comprehend-connector-demo/.project
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,5 @@
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.jem.beaninfo.BeanInfoNature</nature>
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
<nature>org.eclipse.wst.jsdt.core.jsNature</nature>
</natures>
</projectDescription>
</projectDescription>
12 changes: 0 additions & 12 deletions amazon-comprehend-connector-demo/.settings/.jsdtscope

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ch.ivyteam.ivy.designer.preferences.DataClassPreferencePage\:DEFAULT_DATA_CLASS=com.axonivy.connector.amazon.comprehend.connector.demo.Data
ch.ivyteam.ivy.designer.preferences.DataClassPreferencePage\:DEFAULT_NAMESPACE=com.axonivy.connector.amazon.comprehend.connector.demo
ch.ivyteam.ivy.project.preferences\:PRIMEFACES_VERSION=13
ch.ivyteam.ivy.project.preferences\:PROJECT_VERSION=113000
ch.ivyteam.ivy.project.preferences\:PROJECT_VERSION=114003
eclipse.preferences.version=1
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<faceted-project>
<fixed facet="wst.jsdt.web"/>
<installed facet="java" version="17"/>
<installed facet="jst.web" version="3.0"/>
<installed facet="wst.jsdt.web" version="1.0"/>
<installed facet="jst.jsf" version="2.1"/>
</faceted-project>
</faceted-project>

This file was deleted.

This file was deleted.

16 changes: 9 additions & 7 deletions amazon-comprehend-connector-demo/config/variables.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# yaml-language-server: $schema=https://json-schema.axonivy.com/app/11.4.1/variables.json
Variables:
Amazon.Comprehend:
# Secret key to access amazon comprehend
SecretKey: ""
# Access key to access amazon comprehend
AccessKey: ""
# Session token to access amazon comprehend
SessionToken: ""
Amazon:
Comprehend:
# Secret key to access amazon comprehend
SecretKey: ""
# Access key to access amazon comprehend
AccessKey: ""
# Session token to access amazon comprehend
SessionToken: ""
25 changes: 13 additions & 12 deletions amazon-comprehend-connector-demo/pom.xml
Original file line number Diff line number Diff line change
@@ -1,22 +1,14 @@
<?xml version="1.0"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>com.axonivy.connector.amazon.comprehend</groupId>
<artifactId>amazon-comprehend-connector-demo</artifactId>
<version>11.3.2-SNAPSHOT</version>
<version>11.4.0-SNAPSHOT</version>
<packaging>iar</packaging>
<properties>
<project.build.plugin.version>11.3.0</project.build.plugin.version>
<project.build.plugin.version>11.4.0-SNAPSHOT</project.build.plugin.version>
</properties>
<pluginRepositories>
<pluginRepository>
<id>sonatype</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
<snapshots>
<updatePolicy>always</updatePolicy>
</snapshots>
</pluginRepository>
</pluginRepositories>
<dependencies>
<dependency>
<groupId>com.axonivy.connector.amazon.comprehend</groupId>
Expand All @@ -25,6 +17,15 @@
<type>iar</type>
</dependency>
</dependencies>
<pluginRepositories>
<pluginRepository>
<snapshots>
<updatePolicy>always</updatePolicy>
</snapshots>
<id>sonatype</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</pluginRepository>
</pluginRepositories>
<build>
<plugins>
<plugin>
Expand Down
2 changes: 1 addition & 1 deletion amazon-comprehend-connector-product/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.axonivy.connector.amazon.comprehend</groupId>
<artifactId>amazon-comprehend-connector-product</artifactId>
<version>11.3.2-SNAPSHOT</version>
<version>11.4.0-SNAPSHOT</version>
<packaging>pom</packaging>

<build>
Expand Down
3 changes: 1 addition & 2 deletions amazon-comprehend-connector-test/.project
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,5 @@
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.jem.beaninfo.BeanInfoNature</nature>
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
<nature>org.eclipse.wst.jsdt.core.jsNature</nature>
</natures>
</projectDescription>
</projectDescription>
12 changes: 0 additions & 12 deletions amazon-comprehend-connector-test/.settings/.jsdtscope

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ch.ivyteam.ivy.designer.preferences.DataClassPreferencePage\:DEFAULT_DATA_CLASS=com.axonivy.connector.amazon.comprehend.test.Data
ch.ivyteam.ivy.designer.preferences.DataClassPreferencePage\:DEFAULT_NAMESPACE=com.axonivy.connector.amazon.comprehend.test
ch.ivyteam.ivy.project.preferences\:PRIMEFACES_VERSION=13
ch.ivyteam.ivy.project.preferences\:PROJECT_VERSION=113000
ch.ivyteam.ivy.project.preferences\:PROJECT_VERSION=114003
eclipse.preferences.version=1
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<faceted-project>
<fixed facet="wst.jsdt.web"/>
<installed facet="java" version="17"/>
<installed facet="jst.web" version="3.0"/>
<installed facet="wst.jsdt.web" version="1.0"/>
<installed facet="jst.jsf" version="2.1"/>
</faceted-project>
</faceted-project>

This file was deleted.

This file was deleted.

3 changes: 2 additions & 1 deletion amazon-comprehend-connector-test/config/variables.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# yaml-language-server: $schema=https://json-schema.axonivy.com/app/11.4.1/variables.json
# == Variables ==
#
# You can define here your project Variables.
# If you want to define/override a Variable for a specific Environment,
# please add a 'variables.yaml' in the sub directory '_<environment>'.
#
Variables:
#myVariable: value
#myVariable: value
12 changes: 7 additions & 5 deletions amazon-comprehend-connector-test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.axonivy.connector.amazon.comprehend</groupId>
<artifactId>amazon-comprehend-connector-test</artifactId>
<version>11.3.2-SNAPSHOT</version>
<version>11.4.0-SNAPSHOT</version>
<packaging>iar-integration-test</packaging>
<properties>
<project.build.plugin.version>11.3.0</project.build.plugin.version>
<tester.version>11.3.0</tester.version>
<project.build.plugin.version>11.4.0-SNAPSHOT</project.build.plugin.version>
<tester.version>11.4.0-SNAPSHOT</tester.version>
</properties>
<pluginRepositories>
<pluginRepository>
Expand Down Expand Up @@ -67,8 +67,10 @@
<version>${project.build.plugin.version}</version>
<extensions>true</extensions>
<configuration>
<additionalVmOptions>-Divy.Applications.amazoncomprehendconnectortest.Variables.Amazon.Comprehend.AccessKey=${aws.access.key}
-Divy.Applications.amazoncomprehendconnectortest.Variables.Amazon.Comprehend.SecretKey=${aws.secret.key}</additionalVmOptions>
<additionalVmArgs>
<additionalVmArg>-Divy.Applications.amazoncomprehendconnectortest.Variables.Amazon.Comprehend.AccessKey=${aws.access.key}</additionalVmArg>
<additionalVmArg>-Divy.Applications.amazoncomprehendconnectortest.Variables.Amazon.Comprehend.SecretKey=${aws.secret.key}</additionalVmArg>
</additionalVmArgs>
</configuration>
</plugin>
</plugins>
Expand Down
3 changes: 1 addition & 2 deletions amazon-comprehend-connector/.project
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,5 @@
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.jem.beaninfo.BeanInfoNature</nature>
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
<nature>org.eclipse.wst.jsdt.core.jsNature</nature>
</natures>
</projectDescription>
</projectDescription>
12 changes: 0 additions & 12 deletions amazon-comprehend-connector/.settings/.jsdtscope

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ch.ivyteam.ivy.designer.preferences.DataClassPreferencePage\:DEFAULT_DATA_CLASS=com.axonivy.connector.amazon.comprehend.Data
ch.ivyteam.ivy.designer.preferences.DataClassPreferencePage\:DEFAULT_NAMESPACE=com.axonivy.connector.amazon.comprehend
ch.ivyteam.ivy.project.preferences\:PRIMEFACES_VERSION=13
ch.ivyteam.ivy.project.preferences\:PROJECT_VERSION=113000
ch.ivyteam.ivy.project.preferences\:PROJECT_VERSION=114003
eclipse.preferences.version=1
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<faceted-project>
<fixed facet="wst.jsdt.web"/>
<installed facet="java" version="17"/>
<installed facet="jst.web" version="3.0"/>
<installed facet="wst.jsdt.web" version="1.0"/>
<installed facet="jst.jsf" version="2.1"/>
</faceted-project>
</faceted-project>

This file was deleted.

This file was deleted.

22 changes: 12 additions & 10 deletions amazon-comprehend-connector/config/variables.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
# yaml-language-server: $schema=https://json-schema.axonivy.com/app/11.4.1/variables.json
Variables:
Amazon.Comprehend:
# Secret key to access amazon comprehend
# [password]
SecretKey: ""
# Access key to access amazon comprehend
# [password]
AccessKey: ""
# Session token to access amazon comprehend
# [password]
SessionToken: ""
Amazon:
Comprehend:
# Secret key to access amazon comprehend
# [password]
SecretKey: ""
# Access key to access amazon comprehend
# [password]
AccessKey: ""
# Session token to access amazon comprehend
# [password]
SessionToken: ""
25 changes: 13 additions & 12 deletions amazon-comprehend-connector/pom.xml
Original file line number Diff line number Diff line change
@@ -1,22 +1,14 @@
<?xml version="1.0"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>com.axonivy.connector.amazon.comprehend</groupId>
<artifactId>amazon-comprehend-connector</artifactId>
<version>11.3.2-SNAPSHOT</version>
<version>11.4.0-SNAPSHOT</version>
<packaging>iar</packaging>
<properties>
<project.build.plugin.version>11.3.0</project.build.plugin.version>
<project.build.plugin.version>11.4.0-SNAPSHOT</project.build.plugin.version>
</properties>
<pluginRepositories>
<pluginRepository>
<id>sonatype</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
<snapshots>
<updatePolicy>always</updatePolicy>
</snapshots>
</pluginRepository>
</pluginRepositories>
<dependencies>
<dependency>
<groupId>com.axonivy.connector.aws</groupId>
Expand All @@ -30,6 +22,15 @@
<url>https://maven.axonivy.com</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<snapshots>
<updatePolicy>always</updatePolicy>
</snapshots>
<id>sonatype</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</pluginRepository>
</pluginRepositories>
<build>
<plugins>
<plugin>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.axonivy.connector.amazon.comprehend</groupId>
<artifactId>amazon-comprehend-connector-modules</artifactId>
<version>11.3.2-SNAPSHOT</version>
<version>11.4.0-SNAPSHOT</version>
<packaging>pom</packaging>

<modules>
Expand Down

0 comments on commit 65c3766

Please sign in to comment.