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-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Using the Link, i crated the theme project and change the variables in the _zkvariables.less.
In order check whether theme is loading or not, i just added sysout in blackThemeWebAppInit class which is created by the theme project.
Done mvn clean and mvn install in eclipse IDE.
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.
Now when i run the ZK Test web application, the black theme never loaded.
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
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 :-)
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 )editHello 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
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 )editAsked: 2015-03-15 06:03:48 +0800
Seen: 24 times
Last updated: Mar 15 '15