Re: starting with maven

2008-08-22 Thread Wayne Fay
I assumed the mainClass had already been set in the manifest file. Thanks for providing this config, Wim. Ben, if you apply this configuration in your pom.xml, the -jar option I provided will work. Then you can run your jar on any system that has a JVM, and you will not need Maven installed (which

Re: starting with maven

2008-08-22 Thread Wim Deblauwe
An alternative is to turn your jar file into an executable jar file where you put your main class in the manifest file. maven-jar-plugin true

Re: starting with maven

2008-08-22 Thread Ben Aurel
Alex, thank you. This is exactly what I was looking for. I got it running with $ mvn exec:java -Dexec.mainClass=com.mycompany.app.App On Thu, Aug 21, 2008 at 8:22 PM, Alex <[EMAIL PROTECTED]> wrote: > See http://mojo.codehaus.org/exec-maven-plugin/java-mojo.html > > > Ben Jakbot wrote: >> >> hi

Re: starting with maven

2008-08-22 Thread Ben Aurel
Sorry to bother you with this, but I get a 'Failed to load error' $ java -jar target/my-app-1.0-SNAPSHOT.jar Failed to load Main-Class manifest attribute from target/my-app-1.0-SNAPSHOT.jar On Thu, Aug 21, 2008 at 11:11 PM, Wayne Fay <[EMAIL PROTECTED]> wrote: > I believe you're lookin

Re: starting with maven

2008-08-21 Thread Wayne Fay
I believe you're looking for: java -jar target/my-app-1.0-SNAPSHOT.jar Wayne On 8/21/08, Ben Jakbot <[EMAIL PROTECTED]> wrote: > hi > I try to start with maven and I'm sinking in tons of documentation. > Docs are a good thing, but I somehow miss the very obvious. > > Right now I'm going through a

Re: starting with maven

2008-08-21 Thread Alex
See http://mojo.codehaus.org/exec-maven-plugin/java-mojo.html Ben Jakbot wrote: hi I try to start with maven and I'm sinking in tons of documentation. Docs are a good thing, but I somehow miss the very obvious. Right now I'm going through a the nice manual calling "Better Builds with Maven". B

starting with maven

2008-08-21 Thread Ben Jakbot
hi I try to start with maven and I'm sinking in tons of documentation. Docs are a good thing, but I somehow miss the very obvious. Right now I'm going through a the nice manual calling "Better Builds with Maven". Basically I ran the following commands: $mvn archetype:create -DgroupId=com.mycompan

Re: Starting with maven and with maven-proxy

2007-04-21 Thread Eric Redmond
I'd stay away from Archiva for now, until it gets a little more mature. From experience I suggest Proximity (I've used all 4... it's the most mature). Also, point your central repos to http://repo1.maven.org/maven2 ... that's the "official" central. Of course, it's not a bad thing to use mirrors,

Re: Starting with maven and with maven-proxy

2007-04-21 Thread Kalle Korhonen
Started with Maven1 or Maven2? I assume maven2, in which case your configuration (the default is for Maven 1) http://www.ibiblio.org/maven is wrong - it's http://www.ibiblio.org/maven2 and it's enough to throw off maven-proxy. Happened to me more than once. maven-proxy works fine for Maven2, but y

Starting with maven and with maven-proxy

2007-04-20 Thread Marcos Chicote
Hi! The last few days I have been reading about maven and how it can help me in my job. I have succesfuly installed codehaus eclipse plugin and i have downloaded dependencys for my projects (connection to internet works fine). The next step was to create a network repository so that co-workers a