Add ZK Libraries to Your Maven Repository

From Documentation
Revision as of 07:59, 27 September 2010 by Tomyeh (talk | contribs)


DocumentationZK Installation GuideSetting up IDEMavenAdd ZK Libraries to Your Maven Repository
Add ZK Libraries to Your Maven Repository



On your machine you will find a directory in called 'm2'. This is where maven stores all downloaded jars and installed projects. Let us assume the user account is USER and the directory might look like as follows.

  • Linux: ~/.m2
  • Windows: C:\Documents and Settings\USER\.m2
  • Vista/Windows7: C:\Users\USER\.m2

All of ZK libraries are under this two folders:

C:\Users\USER\.m2\repository\org\zkoss\common\
C:\Users\USER\.m2\repository\org\zkoss\zk\

You can create a new folder for each library, in this case, we assume it is zul.jar file with ZK 5 RC2 version as below:

C:\Users\USER\.m2\repository\org\zkoss\zk\zul\5.0.1

In this folder, you should put the two files, one is the jar file and the other one is the POM file. For example,

C:\Users\USER\.m2\repository\org\zkoss\zk\zul\5.0.1\zul-5.0.1.jar
C:\Users\USER\.m2\repository\org\zkoss\zk\zul\5.0.1\zul-5.0.1.pom

Note: the version number cannot use the dash sign (-). For example, 5.0.0-RC2 should be 5.0.0.RC2 (you can refer to the version declaration from pom.xml)

After all of the ZK libraries created, you should be able to use the latest version to build the maven project.


Version History

Version Date Content
     



Last Update : 2010/09/27

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