How do I tell Maven, what method/class to run and how do I tell it, what classes it should import and where?
I have to use the Eclipse Maven Plugin and I dont quite understand, how to input the commands. Do I alter the pom-file or are there any buttons for it or do I use the command line.
I`ve tried to find information about it, but because I have to use the eclipse Maven tool I seem to not find what im looking for.
My file structure
|
|- src
| |
| - serie04
| |
| - callee
| |
| - Callee.java
| - caller
| |
| - Caller.java
|- classes
|- jars
My two Java classes:
package serie04.callee;
public class Callee {
public void callMe() {
System.out.println("Callee says: You called me!");
}
}
package serie04.caller;
import serie04.callee.Callee;
public class Caller {
public static void main(String[] args) {
Callee callee = new Callee();
callee.callMe();
}
}
I want that the a jar is created in the jar-File and that it prints "Callee says: You called me!" on the command line.