Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Maven Integration With Subversion

 
Nikhil Pasupukuntla
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

 
Hauke Ingmar Schmidt
Rancher
Posts: 436
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 407
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 436
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic