Results 1 to 2 of 2
  1. #1
    kjkrum's Avatar
    kjkrum is offline Senior Member
    Join Date
    Apr 2011
    Location
    Tucson, AZ
    Posts
    1,060
    Rep Power
    11

    Default Running my own Maven repo

    I'm starting to convert my personal projects to Maven. They currently reside in public svn repos on SourceForge. I just got Linux hosting, and I'm planning to set up a nightly cron job on the web host to check out (or update) the svn repos and build them with Maven.

    Would creating a public Maven repo be as simple as copying the contents of my .m2 directory into public_html/maven2? (Or even symlinking it, if the server is configured to resolve symlinks outside the document root...)
    Get in the habit of using standard Java naming conventions!

  2. #2
    kjkrum's Avatar
    kjkrum is offline Senior Member
    Join Date
    Apr 2011
    Location
    Tucson, AZ
    Posts
    1,060
    Rep Power
    11

    Default Re: Running my own Maven repo

    To answer my own question:

    My host gives me shell access, so I set up my POMs to deploy via ssh-wagon. Since my POMs are publicly distributed, the POM references the scp url as a property injected by my ~/.m2/settings.xml. Now I just type 'mvn deploy' and it uploads into my remote $HOME/public_html/maven.
    Get in the habit of using standard Java naming conventions!

Similar Threads

  1. Replies: 0
    Last Post: 12-17-2012, 01:32 PM
  2. Replies: 7
    Last Post: 12-18-2011, 04:13 AM
  3. Managing my own repo using Subversive
    By kjkrum in forum Eclipse
    Replies: 3
    Last Post: 06-14-2011, 03:49 AM
  4. Replies: 0
    Last Post: 08-26-2009, 01:03 PM
  5. Replies: 0
    Last Post: 04-20-2009, 06:26 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •