Java Project

1.Java Project

    Dynamic models can be used in Java projects, and sometimes debugging models also requires Java projects.

2.Maven dependence

    The minimum dependency to use dynamic models is the Java Library of the dynamic model engine. You can search for the latest X-Meta engine in Maven, which is the engine of dynamic models.

2.1.SNAPSHOT Version Dependency Settings

    Use SNAPSHOT version to add Sonatype repository to Maven's POM file.

<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 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    .......
    <dependencies>
    	<dependency>
    		<groupId>org.xworker</groupId>
    		<artifactId>xworker_swt</artifactId>
    		<version>1.4.4-SNAPSHOT</version>
    	</dependency>	
    	.......
   </dependencies>
   <repositories>
		<repository>
			<id>sonatype</id>
			<name>sonatype Repository</name>
			<url>https://oss.sonatype.org/content/groups/public/</url>
			<releases>
				<enabled>false</enabled>
			</releases>
			<snapshots>
				<enabled>true</enabled>
			</snapshots>
			<layout>default</layout>
		</repository>
	</repositories>
</project>

2.2.Using XWorker

    If XWorker installed in the system is used in a Java project, the following dependency libraries need to be imported.

        <dependency>
			<groupId>ognl</groupId>
			<artifactId>ognl</artifactId>
			<version>3.0.8</version>
			<exclusions>
				<exclusion>
					<groupId>javassist</groupId>
					<artifactId>javassist</artifactId>
				</exclusion>
			</exclusions>
		</dependency>
		<dependency>
			<groupId>org.javassist</groupId>
			<artifactId>javassist</artifactId>
			<version>3.24.0-GA</version>
		</dependency>

 

Copyright ©  2007-2019 XWorker.org  版权所有  沪ICP备08000575号