Page 1 of 1

How to update core-1.0.jar?

Posted: Sun Oct 12, 2014 5:37 am
by gowthamgutha
core-1.0.jar is in the site and admin directories. Now, whenever I modify the core classes, then I see that there is no change in the jar file in the site/WEB-INF/lib and admin/WEB-INF/lib directories.

So, I always manually compress the files of the core/target directory and then paste them in the site and admin directories. Is there any alternative for doing this?

Thanks in advance. Hope you will reply as soon as possible.

Re: How to update core-1.0.jar?

Posted: Sun Oct 12, 2014 9:47 pm
by phillipuniverse
Not sure what you mean by the core jar being in the site and admin directory. If you do a mvn install on the core module, that will rebuild the core jar and put it in your local maven repository. Then, when you do a mvn install to build the admin or site war, that uses the 'core' dependency that you built earlier.

The question that you're asking just doesn't make sense to me. The 'core' project is a Maven module, site and admin declare that module as a dependency.

Re: How to update core-1.0.jar?

Posted: Mon Oct 13, 2014 6:01 am
by gowthamgutha
Then when I update classes in the core-module, how could I get the updated version of those classes in site and admin modules?

Re: How to update core-1.0.jar?

Posted: Mon Oct 13, 2014 11:16 am
by phillipuniverse
Are you talking about without restarting the server or re-doing a maven build? If you want to do that you will need to use something like JRebel to hot swap those classes for you.

If you redo a maven build then that will include building a new core jar, which, when you build site or admin will use that new core jar that you just built.

Re: How to update core-1.0.jar?

Posted: Sat Nov 08, 2014 4:37 am
by zohaa3492
All of your entities and persistence should be in core. It might be that you have that dao declared in core but the orm.xml file declared in site?