0

ZK 8.5.0 'MIX & MATCH' themes Maven Dependency [closed]

asked 2017-12-22 15:55:57 +0800

kd16 gravatar image kd16 flag of India
23 4

updated 2017-12-22 16:20:23 +0800

I am trying to add Mix and Match themes to Project. When I add theme name in POM, Maven is giving error as theme "Deep Sea" not available.

<dependency>
<groupId>org.zkoss.theme</groupId>
<artifactId>Deep Sea</artifactId>
<version>${zk.version}</version>
</dependency>

How to find maven dependency for Mix & Match themes

I tried this

    <dependency>
        <groupId>org.zkoss.theme</groupId>
        <artifactId>zktheme</artifactId>
        <version>8.5.0</version>
        <type>pom</type>  
   </dependency>

But it is also not working. Other than that I am setting theme in zk.xml

<library-property>
        <name>org.zkoss.theme.preferred</name>
        <value>Deep Sea</value>
    </library-property>

Anyone suggestions please. Thanks in Advance.

delete flag offensive retag edit

The question has been closed for the following reason "the question is answered, right answer was accepted" by cor3000
close date 2018-01-03 14:48:09

Comments

Please make sure you are accessing to the EE repository: https://maven.zkoss.org/repo/zk/ee

jeanher ( 2017-12-25 09:14:28 +0800 )edit

Ok Thanks, I downloaded the JAR file and added in Project. That way it worked.

kd16 ( 2017-12-26 19:09:15 +0800 )edit

can you please point out which documentation was misleading so you chose the theme display name as the maven dependency

cor3000 ( 2017-12-29 10:33:51 +0800 )edit

Ok Thank You Guys, I was checking theme one by one how does it looks, So directly changing in project files. There is easy way to make theme name dynamic. I know this is not mentioned in Documentation to Use name like that but that served my purpose.

kd16 ( 2018-01-03 14:30:04 +0800 )edit

thanks, I am glad you found what you needed.

cor3000 ( 2018-01-03 14:47:58 +0800 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2017-12-28 19:34:11 +0800

cor3000 gravatar image cor3000
6280 2 7

updated 2017-12-28 19:49:43 +0800

the correct maven dependency is "deepsea" (lowercase, no spaces):

<dependency>
    <groupId>org.zkoss.theme</groupId>
    <artifactId>deepsea</artifactId>
    <version>${zk.version}</version>
</dependency>

and the library property accordingly:

<library-property>
    <name>org.zkoss.theme.preferred</name>
    <value>deepsea</value>
</library-property>

You can see the available maven artifacts in the EE-maven repository directly.

No need to download the theme manually ... maven should work

link publish delete flag offensive edit

Comments

Yes, You are right. Thank You. I figured that out later.

kd16 ( 2018-02-28 13:45:01 +0800 )edit

Question tools

Follow
2 followers

RSS

Stats

Asked: 2017-12-22 15:55:57 +0800

Seen: 25 times

Last updated: Jan 03 '18

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