Add ZK Libraries to Your Maven Repository"

From Documentation
(Created page with '{{ZKInstallationGuidePageHeader}} =Version History= {| border='1px' | width="100%" ! Version !! Date !! Content |- |   |   |   |} {{ZKInstallationGuidePageFoote…')
 
Line 1: Line 1:
 
{{ZKInstallationGuidePageHeader}}
 
{{ZKInstallationGuidePageHeader}}
 +
 +
On your machine you will find a directory in called 'm2'. This is where maven stores all downloaded jars and installed projects.
 +
 +
* Linux: ''~/.m2''
 +
* Windows: ''C:\Documents and Settings\USER\.m2''
 +
* Vista/Windows7: ''C:\Users\USER\.m2''
 +
 +
All of ZK libraries are under this two folders:
 +
<source lang="bash">
 +
C:\Users\USER\.m2\repository\org\zkoss\common\
 +
C:\Users\USER\.m2\repository\org\zkoss\zk\
 +
</source>
 +
 +
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:
 +
<source lang="bash">
 +
C:\Users\USER\.m2\repository\org\zkoss\zk\zul\5.0.1
 +
</source>
 +
 +
In this folder, you should put the two files, one is the jar file and the other one is the POM file.
 +
For example,
 +
<source lang="bash">
 +
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
 +
</source>
 +
 +
'''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 History=

Revision as of 01:30, 23 September 2010


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.

  • 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/23

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