Maven"
From Documentation
m |
m |
||
Line 19: | Line 19: | ||
</blockquote> | </blockquote> | ||
− | =Sample of pom.xml= | + | ==Sample of pom.xml== |
Here is sample pom.xml for a simple Java project that uses the ZK Spreadsheet. | Here is sample pom.xml for a simple Java project that uses the ZK Spreadsheet. | ||
Line 56: | Line 56: | ||
==Sample of Dependencies== | ==Sample of Dependencies== | ||
− | ==ZK Spreadsheet== | + | ===ZK Spreadsheet=== |
+ | <source lang="xml"> | ||
+ | </source> | ||
+ | |||
==ZK Spreadsheet EE== | ==ZK Spreadsheet EE== | ||
+ | <source lang="xml"> | ||
+ | </source> | ||
{{ZKSpreadsheetEssentialsPageFooter}} | {{ZKSpreadsheetEssentialsPageFooter}} |
Revision as of 02:02, 5 June 2012
Maven Project
If your project is managed by Maven already, you can adopt easily by simply adding a dependency[1]
<dependency>
<groupId>org.zkoss.zss</groupId>
<artifactId>zss</artifactId>
<version>2.3.0</version>
</dependency>
- ↑ If you didn't setup zk maven repository yet, you have to setup zk maven repository too.
Sample of pom.xml
Here is sample pom.xml for a simple Java project that uses the ZK Spreadsheet.
<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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>sample</groupId>
<artifactId>zss.maven</artifactId>
<packaging>war</packaging>
<version>0.0.1-SNAPSHOT</version>
<name>ZK Spreadsheet Maven Webapp</name>
<url>http://maven.apache.org</url>
<repositories>
<repository>
<id>ZK Repository</id>
<url>http://mavensync.zkoss.org/maven2</url>
</repository>
</repositories>
<dependencies>
<!-- ZK Spreadsheet -->
<dependency>
<groupId>org.zkoss.zss</groupId>
<artifactId>zss</artifactId>
<version>2.3.0</version>
</dependency>
<!-- ZK -->
<dependency>
<groupId>org.zkoss.zk</groupId>
<artifactId>zul</artifactId>
<version>5.0.11</version>
</dependency>
</dependencies>
</project>
Sample of Dependencies
ZK Spreadsheet
ZK Spreadsheet EE
All source code listed in this book is at Github.