Need help for determining the correct work flow for developing GN:
Imported GN code to eclipse as existing POM project, got all modules in eclipse.
Then I add a new class to the services module
made required changes on client side and now I’m ready to test the new class (service)
Now, do I need to run mvn clean install on the whole project to compile just one new java file?
If I do the maven build for just services module, how do I get an updated “geonetwork-main-2.10.2-0.jar”?
(I’m falling short of enough maven knowledge to make any build changes myself)
Need help for determining the correct work flow for developing GN:
1. Imported GN code to eclipse as existing POM project, got all modules in
eclipse.
2. Then I add a new class to the services module
3. made required changes on client side and now I'm ready to test the new
class (service)
Now, do I need to run mvn clean install on the whole project to compile
just one new java file?
If I do the maven build for just services module, how do I get an updated
"geonetwork-main-2.10.2-0.jar"?
(I'm falling short of enough maven knowledge to make any build changes
myself)
About having to do a mvn clean install, it depends on how you
configured it on eclipse. If you imported all maven projects on
eclipse as maven projects, eclipse should know the dependencies and,
when running geonetwork inside eclipse, it will use the latest code.
On Wed, Dec 4, 2013 at 4:47 PM, María Arias de Reyna <delawen@anonymised.com>wrote:
HI,
2013/12/4 Ameet Chaudhari <ameet.chaudhari@anonymised.com>:
> Hi all,
>
> Need help for determining the correct work flow for developing GN:
> 1. Imported GN code to eclipse as existing POM project, got all modules
in
> eclipse.
> 2. Then I add a new class to the services module
> 3. made required changes on client side and now I'm ready to test the new
> class (service)
>
> Now, do I need to run mvn clean install on the whole project to compile
> just one new java file?
> If I do the maven build for just services module, how do I get an updated
> "geonetwork-main-2.10.2-0.jar"?
> (I'm falling short of enough maven knowledge to make any build changes
> myself)
>
You have to give access to this services through spring security xml file:
About having to do a mvn clean install, it depends on how you
configured it on eclipse. If you imported all maven projects on
eclipse as maven projects, eclipse should know the dependencies and,
when running geonetwork inside eclipse, it will use the latest code.
Thanks a lot Maria (and more for the spring security point:)). I am not
running geonetwork inside eclipse. I have deployed the built war in tomcat
outside eclipse. I see that it uses "geonetwork-main-2.10.2-0.jar" in
WEB-INF/lib.
So for this case, I think getting the updated geonetwork-main-2.10.2-0.jar
should make my new service work (provided other configurations are done),
so I was looking at a quicker way to build this specific jar only (as
against building the complete project war). Any suggestion for this?