permaculture playing cards*
The moose likes Ant, Maven and Other Build Tools and the fly likes Maven Integration With Subversion Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Maven Integration With Subversion" Watch "Maven Integration With Subversion" New topic
Author

Maven Integration With Subversion

Nikhil Pasupukuntla
Greenhorn

Joined: Jun 04, 2009
Posts: 21
Hi,
I am new to Maven. our company is switching from ant to maven for creating the application builds . We use the subversion repository for storing the code. I wanted to know is there any plugin in maven to automatically check out the code from the SVN repository and compile and create the build. Also, i read that it is recommended to follow the standard directory structure of maven for storing the code. Does that mean the repository directory structure also should follow the maven standard(i.e; src/main/java for java code and src/main/config etc), since we are using maven for creating the build. Any suggestions on this would be appreciated.


Nikhil Pasupukuntla
SCJP 1.5 | OCPJWCD 1.5
Hauke Ingmar Schmidt
Rancher

Joined: Nov 18, 2008
Posts: 433
    
    2
You should stay to the standard convention with the directories. You can configure them - but why should you? It's so much easier if everything is at it's place.

For checking out and building you should have a look at a continuous integration solution like Jenkins.
jay vas
Ranch Hand

Joined: Aug 30, 2005
Posts: 407
I was wondering the same thing. I assume this can be automated using custom scripts, but since everything is so highly convenient in maven, that maybe a high performance automated build server plugin would be available.... Of course, since maven doesnt have a "server" mode, I assume some cron job would have to invoke the plugin externally, but thats easy enough.
Hauke Ingmar Schmidt
Rancher

Joined: Nov 18, 2008
Posts: 433
    
    2
jay vas wrote:I was wondering the same thing. I assume this can be automated using custom scripts, but since everything is so highly convenient in maven, that maybe a high performance automated build server plugin would be available.... Of course, since maven doesnt have a "server" mode, I assume some cron job would have to invoke the plugin externally, but thats easy enough.


Sure. Plus a GUI for configuration. And integrating the reports. Maybe some other things like code metrics. Oh, it's for Java, so a servlet based webapp would be nice. Something easy, no big configuration would be great; something that just can be thrown into a running servlet container sounds perfect. Then just telling it how to access the SVN and what Maven goals to process and it should work.

There you go: Jenkins. (eq. Hudson.)

There are other nice CI server also. Honestly, configuring cron or any kind of shell scripts looks much more artificial, off limits for me than this solution when doing Java.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Maven Integration With Subversion