0

problems using zk eval in maven pom.xml

asked 2014-03-16 13:45:14 +0800

mrusli gravatar image mrusli
21 1

updated 2014-03-17 07:46:50 +0800

chillworld gravatar image chillworld flag of Belgium
5367 4 9
https://github.com/chillw...

Hi, I have been trying to get the zk ee to work all day.

  1. Managed to add the repository into the pom.xml:

<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 Evaluation Repository</name>
    <url>http://mavensync.zkoss.org/eval</url>
</repository>

  1. Managed to add all of the dependencies (version 6.5.2):

    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>3.8.1</version>
      <scope>test</scope>
    </dependency>
    <dependency>
        <groupId>org.zkoss.zk</groupId>
        <artifactId>zkbind</artifactId>
        <version>${zk.version}</version>
    </dependency>
    <dependency>
        <groupId>org.zkoss.zk</groupId>
        <artifactId>zkmax</artifactId>
        <version>${zk.version}</version>
    </dependency>
    <dependency>
        <groupId>org.zkoss.zk</groupId>
        <artifactId>zkplus</artifactId>
        <version>${zk.version}</version>
    </dependency>
    <dependency>
        <groupId>org.zkoss.zk</groupId>
        <artifactId>zhtml</artifactId>
        <version>${zk.version}</version>
    </dependency>
    <dependency>
        <groupId>commons-io</groupId>
        <artifactId>commons-io</artifactId>
        <version>1.3.1</version>
    </dependency>
    
  2. Deploy into Tomcat 7 (apache-tomcat-7.0.52), I get the followings: 'Publishing to Tomcat v7.0 Server at localhost'... has encountered a problem. Could not publish to the server.

    Further clicks on the 'Details' button: Could not publish to the server. java.lang.IndexOutOfBoundsException

For zk CE, no zk max with repository tag, works fine. Application can deploy and run in browser.

Please assist.

Thanks and Best Regards, Rusli

delete flag offensive retag edit

1 Answer

Sort by » oldest newest most voted
0

answered 2014-03-17 14:53:22 +0800

IngoB gravatar image IngoB flag of Germany
256 6

Have you tried the instructions on

http://books.zkoss.org/wiki/ZKInstallationGuide/SettingupIDE/Maven/ResolvingZKFrameworkArtifactsvia_Maven

ZK EE

<dependencies>
    <dependency>
      <groupId>org.zkoss.zk</groupId>
      <artifactId>zkplus</artifactId>
      <version>6.5.2</version>
    </dependency>
    <dependency>
      <groupId>org.zkoss.zk</groupId>
      <artifactId>zhtml</artifactId>
      <version>6.5.2</version>
    </dependency>
    <dependency>
      <groupId>org.zkoss.zk</groupId>
      <artifactId>zkbind</artifactId>
      <version>6.5.2</version>
    </dependency>
    <dependency>
      <groupId>org.zkoss.zk</groupId>
      <artifactId>zkmax</artifactId>
      <version>6.5.2</version>
    </dependency>
    <dependency>
      <groupId>commons-logging</groupId>
      <artifactId>commons-logging</artifactId>
      <version>1.1.1</version>
    </dependency>
    <dependency>
      <groupId>commons-io</groupId>
      <artifactId>commons-io</artifactId>
      <version>1.3.1</version>
    </dependency>
    <dependency>
      <groupId>commons-lang</groupId>
      <artifactId>commons-lang</artifactId>
      <version>2.4</version>
    </dependency>
</dependencies>
link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2014-03-16 13:45:14 +0800

Seen: 51 times

Last updated: Mar 17 '14

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More