• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Maven Integration With Subversion

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.

 
Rancher
Posts: 436
2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 407
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic