[GeoNetwork-devel] help needed for GN development workflow

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)

Thanks a lot for any help.
Regards
Ameet

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:
https://github.com/geonetwork/core-geonetwork/blob/2.10.x/web/src/main/webapp/WEB-INF/config-security-mapping.xml

And also you have to configure the service so jeeves knows it is there:
https://github.com/geonetwork/core-geonetwork/blob/develop/web/src/main/webapp/WEB-INF/config.xml
(see at the end, on the includes part)

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 for any help.
Regards
Ameet

------------------------------------------------------------------------------
Sponsored by Intel(R) XDK
Develop, test and display web and hybrid apps with a single code base.
Download it for free now!
http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
_______________________________________________
GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork

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:

https://github.com/geonetwork/core-geonetwork/blob/2.10.x/web/src/main/webapp/WEB-INF/config-security-mapping.xml

And also you have to configure the service so jeeves knows it is there:

https://github.com/geonetwork/core-geonetwork/blob/develop/web/src/main/webapp/WEB-INF/config.xml
(see at the end, on the includes part)

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?

Thanks again
Regards
Ameer