1) Wtyczka powinna posiadać w pom.xml jako parenta moduł plusworkflow-plugin-parent z konkretną wersją systemu >= 4.0.34:
2) W resources/suncode-plugin.xml podajemy wymaganą wersję systemu na tę, która ustawiona jest w pomie jako parent
|
<dependency> <groupId>com.suncode</groupId> <artifactId>plusworkflow-api</artifactId> <scope>provided</scope> </dependency> |
<dependency> <groupId>com.suncode</groupId> <artifactId>plusworkflow-core</artifactId> <scope>provided</scope> <exclusions> <exclusion> <groupId>*</groupId> <artifactId>*</artifactId> </exclusion> </exclusions> </dependency> |
<dependency> <groupId>com.suncode.plugin</groupId> <artifactId>plugin-configuration-manager</artifactId> <version>4.0.5</version> <scope>provided</scope> <exclusions> <exclusion> <groupId>*</groupId> <artifactId>*</artifactId> </exclusion> </exclusions> </dependency> |
<plugin> <groupId>org.apache.felix</groupId> <artifactId>maven-bundle-plugin</artifactId> <extensions>true</extensions> <configuration> <instructions> <Import-Package>*;resolution:=optional</Import-Package> <Embed-Dependency>!slf4j-log4j12,!slf4j-api,!log4j,*;scope=compile|runtime|system,jackson-datatype-jsr310</Embed-Dependency> </instructions> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>1.8</source> <target>1.8</target> </configuration> </plugin> |
1) The plugin should have a plusworkflow-plugin-parent module in pom.xml as a parent with specific system version >= 4.0.34:
2) In resources/suncode-plugin.xml specify the required system version to the one set in pom as parent
|
<dependency> <groupId>com.suncode</groupId> <artifactId>plusworkflow-api</artifactId> <scope>provided</scope> </dependency> |
<dependency> <groupId>com.suncode</groupId> <artifactId>plusworkflow-core</artifactId> <scope>provided</scope> <exclusions> <exclusion> <groupId>*</groupId> <artifactId>*</artifactId> </exclusion> </exclusions> </dependency> |
<dependency> <groupId>com.suncode.plugin</groupId> <artifactId>plugin-configuration-manager</artifactId> <version>4.0.5</version> <scope>provided</scope> <exclusions> <exclusion> <groupId>*</groupId> <artifactId>*</artifactId> </exclusion> </exclusions> </dependency> |
<plugin> <groupId>org.apache.felix</groupId> <artifactId>maven-bundle-plugin</artifactId> <extensions>true</extensions> <configuration> <instructions> <Import-Package>*;resolution:=optional</Import-Package> <Embed-Dependency>!slf4j-log4j12,!slf4j-api,!log4j,*;scope=compile|runtime|system,jackson-datatype-jsr310</Embed-Dependency> </instructions> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>1.8</source> <target>1.8</target> </configuration> </plugin> |