zkex dependency missing in ZK PE

orfen
27

Hello everyone,
I am following this guide to configure maven + ZK, to avoid doing something wrong I used a pom generator.
everything goes well until I change the repository for PE version (I do have a lincense) then maven compile process fails with the following message:
Could not find artifact org.zkoss.zk:zkex:jar:6.0.1 in ZK_CE

It seems to me that zkex jar is missing from PE repository :( check out the following screenshots of zk maven repos.
PE eval
PE

The original pom created by the generator is:


<repositories>
<repository>
<id>ZK_CE</id>
<name>ZK CE Repository</name>
<url>http://mavensync.zkoss.org/maven2</url>
</repository>
<repository>
<id>ZK_EVAL</id>
<name>ZK PE Evaluation Repository</name>
<url>http://mavensync.zkoss.org/eval</url>
</repository>
</repositories>


After I updated the PE repository, the previous example looks like this:

    <repositories>
<repository>
<id>ZK_CE</id>
<name>ZK CE Repository</name>
<url>http://mavensync.zkoss.org/maven2</url>
</repository>
<!--repository>
<id>ZK_EVAL</id>
<name>ZK PE Evaluation Repository</name>
<url>http://mavensync.zkoss.org/eval</url>
</repository-->
<repository>
<id>ZK_PE</id>
<url>http://mavensync.zkoss.org/maven2</url>
</repository>
</repositories>


This might be related to another post in this forum.

delete retag edit

6 Replies

hawk
2255 1 5
http://hawkphoenix.blogsp...

Hi, orfen:

I think maven repository for ZK PE is

https://maven.zkoss.org/repo/zk/ee
. It needs authentication.

orfen
27

Hello hawk,
I think that repository is for ZK EE, anyway I tried the url that you suggest and the compile process fails with the following message: Could not transfer artifact org.zkoss.zk:zkex:pom:6.0.1 from/to ZK_PE (https://maven.zkoss.org/repo/zk/ee): Not authorized, ReasonPhrase:Authorization Required. -> [Help 1]

hawk
2255 1 5
http://hawkphoenix.blogsp...

Hi orfen:
If you have ZK PE licence, I think you should have a premium account and password to login to that repository.

orfen
27

hawk, I think you need different account and password for EE than PE.
My settings.xml file looks like this:

<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
<pluginGroups>
<pluginGroup>org.mortbay.jetty</pluginGroup>
</pluginGroups>
<servers>
<server>
<id>ZK_PE</id>
</server>
</servers>
</settings>


hawk
2255 1 5
http://hawkphoenix.blogsp...

Hi,
Because you got Not authorized error, you might need to verify your account and password.
you can use browser to connect to https://maven.zkoss.org/repo/zk/ee and enter your account and password to verify.

orfen
27

Hi hawk
Sorry for the delay, I did not see you comment before.

I did have a typo error in my settings.

Now is working fine.

[hide preview]