Hi,
Hi,


    I have created a a simple java class inside the folder
D:/Project/src/com.

package com;

public class HelloWorld {

    public static void main(String[] args) {
        System.out.println("Hello World");
    }
}

     I would like to compile this java file and place the .class file in to
ther folder D:/Project/build/classes/ and then how to run this .class file
from command line. I am new to Maven, please help me out. I have downloaded
Maven 2.1.0. Please provide the step by step procedure.
Have a look at http://www.sonatype.com/books/maven-book/reference/ for a general tutorial , to run your application you will need to use the 'maven-exec-plugin'.Changing the default build output folder (target/classes) is possible but personally I don't recommend doing so (last time I tried I had some weird issues with plugins that obviously still searched the default path).

Regards,

Tobias

Thanks in advance,


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to