Skip to content

Commit

Permalink
Merge branch 'master' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
ntqdinh-axonivy committed Aug 15, 2024
2 parents d892d7d + 69a5aa8 commit 52dcd1c
Show file tree
Hide file tree
Showing 4 changed files with 195 additions and 0 deletions.
32 changes: 32 additions & 0 deletions MY-PRODUCT-NAME-product/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<!--
Dear developer!
When you create your very valuable documentation, please be aware that this Readme.md is not only published on github. This documentation is also processed automatically and published on our website. For this to work, the two headings "Demo" and "Setup" must not be changed
-->

# MY-PRODUCT-NAME

YOUR DESCRIPTION GOES HERE: Please just give a short description here without further headings.

<!--
The explanations under "MY-RRODUCT-NAME" are displayed e.g. for the Connector A-Trust here: https://market.axonivy.com/a-trust#tab-description
-->

## Demo

YOUR DEMO DESCRIPTION GOES HERE

<!--
We use all entries under the heading "Demo" for the demo-Tab on our Website, e.g. for the Connector A-Trust here: https://market.axonivy.com/a-trust#tab-demo
-->

## Setup

YOUR SETUP DESCRIPTION GOES HERE
<!--
The entries under the heading "Setup" are filled in this tab, e.g. for the Connector A-Trust here: https://market.axonivy.com/a-trust#tab-setup.
-->

```
@variables.yaml@
```
67 changes: 67 additions & 0 deletions MY-PRODUCT-NAME-product/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
<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">
<modelVersion>4.0.0</modelVersion>
<groupId>com.axonivy.market</groupId>
<artifactId>MY-PRODUCT-NAME-product</artifactId>
<version>10.0.0-SNAPSHOT</version>
<packaging>pom</packaging>

<properties>
<variables.yaml.file>../MY-PRODUCT-NAME/config/variables.yaml</variables.yaml.file>
</properties>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>3.3.0</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<appendAssemblyId>false</appendAssemblyId>
<descriptors>
<descriptor>zip.xml</descriptor>
</descriptors>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.7</version>
<executions>
<execution>
<phase>generate-sources</phase>
<configuration>
<skip>${skip-readme}</skip>
<target>
<copy todir="${project.build.directory}">
<fileset dir="../../" includes="doc/**" />
</copy>
<copy file="README.md" tofile="${project.build.directory}/README.md" />
<loadfile property="variables.yaml" srcFile="${variables.yaml.file}" encoding="UTF-8" failonerror="false" />
<replace file="${project.build.directory}/README.md" token="@variables.yaml@" value="${variables.yaml}" />
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>3.0.0-M1</version>
</plugin>
</plugins>
</pluginManagement>
</build>
</project>
70 changes: 70 additions & 0 deletions MY-PRODUCT-NAME-product/product.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
{
"$schema": "https://json-schema.axonivy.com/market/10.0.0/product.json",
"installers": [
{
"id": "maven-import",
"data": {
"projects": [
{
"groupId": "MY-GROUP-ID",
"artifactId": "MY-PRODUCT-NAME-demo",
"version": "${version}",
"type": "iar"
}
],
"repositories": [
{
"id": "maven.axonivy.com",
"url": "https://maven.axonivy.com",
"snapshots": {
"enabled": "true"
}
}
]
}
},
{
"id": "maven-dependency",
"data": {
"dependencies": [
{
"groupId": "MY-GROUP-ID",
"artifactId": "MY-PRODUCT-NAME",
"version": "${version}",
"type": "iar"
}
],
"repositories": [
{
"id": "maven.axonivy.com",
"url": "https://maven.axonivy.com",
"snapshots": {
"enabled": "true"
}
}
]
}
},
{
"id": "maven-dropins",
"data": {
"dependencies": [
{
"groupId": "MY-GROUP-ID",
"artifactId": "MY-PRODUCT-NAME",
"version": "${version}"
}
],
"repositories": [
{
"id": "maven.axonivy.com",
"url": "https://maven.axonivy.com",
"snapshots": {
"enabled": "true"
}
}
]
}
}
]
}
26 changes: 26 additions & 0 deletions MY-PRODUCT-NAME-product/zip.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd">
<id>zip</id>
<includeBaseDirectory>false</includeBaseDirectory>

<formats>
<format>zip</format>
</formats>

<fileSets>
<fileSet>
<directory>.</directory>
<includes>
<include>product.json</include>
<include>openapi.json</include>
<include>**/*.png</include>
</includes>
</fileSet>
<fileSet>
<directory>target</directory>
<outputDirectory>/</outputDirectory>
<includes>
<include>README.md</include>
</includes>
</fileSet>
</fileSets>
</assembly>

0 comments on commit 52dcd1c

Please sign in to comment.