0

ZK Create New Theme Project [closed]

asked 2015-03-15 06:03:48 +0800

Senthilchettyin gravatar image Senthilchettyin flag of India
2623 3 8
http://emrpms.blogspot.in...
  1. Using the Link, i crated the theme project and change the variables in the _zkvariables.less.

  2. In order check whether theme is loading or not, i just added sysout in blackThemeWebAppInit class which is created by the theme project.

  3. Done mvn clean and mvn install in eclipse IDE.

  4. In the same workspace, i created one more ZK Test web application and as you explained in the link, i added updated Pom of test web app and set the preferred theme as black in zk.xml.

  5. Now when i run the ZK Test web application, the black theme never loaded.

  6. And then, i just copied the black-0.0.1-SNAPSHOT.jar from the theme project and copied in zk test webapp\lib folder. then it works.

Why we need manually copy the jar?

If i change any stuff in theme project, then every time i need to copy the latest jar into web application lib folder ?

You can download the two projects here

delete flag offensive retag edit

The question has been closed for the following reason "the question is answered, right answer was accepted" by Senthilchettyin
close date 2015-03-16 02:59:08

2 Answers

Sort by ยป oldest newest most voted
1

answered 2015-03-15 20:25:21 +0800

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16
http://www.oxitec.de/

In your case the created jars are never been deployed as new. Means the configurated tomcat server in the Eclipse IDE are all times started with old stuff. That's an Eclipse WTP (web tools platform) issue that often occurs with multi-maven projects.

A solution is to mark all used own projects in the IDE as maven: 'disable workspace resolution'. In that case the deployed jars come not from the workspace. They come now from the local .m2/repository/... folders and so are the 'latest'.

best Stephan

accepting votes for that :-)

link publish delete flag offensive edit

Comments

Then every time when i make change in one my domain module, then i add need to create the jar ?

Senthilchettyin ( 2015-12-07 20:50:36 +0800 )edit
0

answered 2015-03-15 06:58:45 +0800

Darksu gravatar image Darksu
1991 1 4

Hello Senthilchettyin,

Please refer to the following example where it shows how to implement a multi-module project:

http://books.sonatype.com/mvnex-book/reference/multimodule.html

Best Regards,

Darksu

link publish delete flag offensive edit

Comments

It does not answer my question. Sorry. If you are able to find out, please let me know

Senthilchettyin ( 2015-03-15 18:32:54 +0800 )edit

Question tools

Follow
1 follower

RSS

Stats

Asked: 2015-03-15 06:03:48 +0800

Seen: 24 times

Last updated: Mar 15 '15

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