Setup"

From Documentation
Line 7: Line 7:
 
If your project is managed by Maven already, you can adopt ZATS Mimic easily by simply adding a dependency<ref>If you didn't setup zk maven repository yet, you have to [[ZK_Installation_Guide/Setting_up_IDE/Maven/Use_ZK_Maven_Artifacts/Resolving_ZK_Framework_Artifacts_via_Maven#How_to_Use_ZK_Maven_Repository | setup zk maven repository]] too.</ref>
 
If your project is managed by Maven already, you can adopt ZATS Mimic easily by simply adding a dependency<ref>If you didn't setup zk maven repository yet, you have to [[ZK_Installation_Guide/Setting_up_IDE/Maven/Use_ZK_Maven_Artifacts/Resolving_ZK_Framework_Artifacts_via_Maven#How_to_Use_ZK_Maven_Repository | setup zk maven repository]] too.</ref>
  
For projects depending on ZK '''6.0.x''', add the following dependency:
+
<!--
 +
For projects depending on '''ZK 7''', add the following dependency:
 +
 
 +
<source lang="xml">
 +
 
 +
    <dependency>
 +
      <groupId>org.zkoss.zats</groupId>
 +
      <artifactId>zats-mimic-ext7</artifactId>
 +
      <version>${zats-version}</version>
 +
      <scope>test</scope>
 +
    </dependency>
 +
 
 +
</source>
 +
-->
 +
 
 +
For projects depending on '''ZK 6''', add the following dependency:
  
 
<source lang="xml">
 
<source lang="xml">
Line 14: Line 29:
 
       <groupId>org.zkoss.zats</groupId>
 
       <groupId>org.zkoss.zats</groupId>
 
       <artifactId>zats-mimic-ext6</artifactId>
 
       <artifactId>zats-mimic-ext6</artifactId>
       <version>1.1.0</version>
+
       <version>${zats-version}</version>
 
       <scope>test</scope>
 
       <scope>test</scope>
 
     </dependency>
 
     </dependency>
Line 20: Line 35:
 
</source>
 
</source>
  
For projects depending on ZK '''5.0.x''', add the following dependency:
+
For projects depending on '''ZK 5''', add the following dependency:
  
 
<source lang="xml">
 
<source lang="xml">
Line 27: Line 42:
 
       <groupId>org.zkoss.zats</groupId>
 
       <groupId>org.zkoss.zats</groupId>
 
       <artifactId>zats-mimic</artifactId>
 
       <artifactId>zats-mimic</artifactId>
       <version>1.1.0</version>
+
       <version>${zats-version}</version>
 
       <scope>test</scope>
 
       <scope>test</scope>
 
     </dependency>
 
     </dependency>
Line 38: Line 53:
 
The above xml is just a sample, you can use another version available in [http://mavensync.zkoss.org/maven2/org/zkoss/zats/zats-mimic-ext6/| ZK maven repository].
 
The above xml is just a sample, you can use another version available in [http://mavensync.zkoss.org/maven2/org/zkoss/zats/zats-mimic-ext6/| ZK maven repository].
  
ZATS mimic depends on jetty (<tt>org.eclipse.jetty:jetty-webapp</tt>), and this dependency is already configured in Mimic's pom.xml. Maven's dependency management will automatically include jetty related jar. If not, please check your Maven setting.
+
ZATS mimic depends on Jetty (<tt>org.eclipse.jetty:jetty-webapp</tt>) and Rhino (<tt>org.mozilla:rhino</tt>), and these dependencies are already configured in Mimic's pom.xml. Maven's dependency management will automatically include jetty related jar. If not, please check your Maven setting.
  
 
<blockquote>
 
<blockquote>
Line 52: Line 67:
 
</div>
 
</div>
  
For projects depending on '''ZK 6.0.x''':  
+
<!--
 +
For projects depending on '''ZK 7''':
 +
 
 +
Add all jar files under '''dist/lib''' and '''dist/lib/ext'''  <span style="color:red"> except </span> '''zats-mimic-ext6.jar''' into your project's classpath. '''Note that please do not deploy these jars to your application server, they are for testing only'''.
 +
-->
 +
 
 +
For projects depending on '''ZK 6''':  
  
Add all jar files under '''dist/lib''' and '''dist/lib/ext''' into your project's classpath. '''Note that please do not deploy these jars to your application server, they are for testing only'''.
+
Add all jar files under '''dist/lib''' and '''dist/lib/ext'''  <span style="color:red"> except </span> '''zats-mimic-ext7.jar''' into your project's classpath. '''Note that please do not deploy these jars to your application server, they are for testing only'''.
  
  
For projects depending on '''ZK 5.0.x''':  
+
For projects depending on '''ZK 5''':  
  
 
Add all jar files under '''dist/lib''' and '''dist/lib/ext''' <span style="color:red"> except </span> '''zats-mimic-ext6.jar''' into your project's classpath.
 
Add all jar files under '''dist/lib''' and '''dist/lib/ext''' <span style="color:red"> except </span> '''zats-mimic-ext6.jar''' into your project's classpath.

Revision as of 06:56, 29 November 2013


ZATS Mimic

Maven Project

If your project is managed by Maven already, you can adopt ZATS Mimic easily by simply adding a dependency[1]


For projects depending on ZK 6, add the following dependency:

    <dependency>
      <groupId>org.zkoss.zats</groupId>
      <artifactId>zats-mimic-ext6</artifactId>
      <version>${zats-version}</version>
      <scope>test</scope>
    </dependency>

For projects depending on ZK 5, add the following dependency:

    <dependency>
      <groupId>org.zkoss.zats</groupId>
      <artifactId>zats-mimic</artifactId>
      <version>${zats-version}</version>
      <scope>test</scope>
    </dependency>


Also remember to add dependencies of your preferred unit test framework, e.g. JUnit or TestNG.

The above xml is just a sample, you can use another version available in ZK maven repository.

ZATS mimic depends on Jetty (org.eclipse.jetty:jetty-webapp) and Rhino (org.mozilla:rhino), and these dependencies are already configured in Mimic's pom.xml. Maven's dependency management will automatically include jetty related jar. If not, please check your Maven setting.


  1. If you didn't setup zk maven repository yet, you have to setup zk maven repository too.

Manually


For projects depending on ZK 6:

Add all jar files under dist/lib and dist/lib/ext except zats-mimic-ext7.jar into your project's classpath. Note that please do not deploy these jars to your application server, they are for testing only.


For projects depending on ZK 5:

Add all jar files under dist/lib and dist/lib/ext except zats-mimic-ext6.jar into your project's classpath.


Also remember to add jar files of your preferred unit test framework, e.g. JUnit.





Last Update : 2013/11/29

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.