История изменений
Исправление iZEN, (текущая версия) :
Всё верно. Maven в стандартном жизненном цикле приложения не определяет отдельную цель «run».
Тестовый класс удалось запустить с помощью двух последовательных команд:
> mvn compile
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building MavenProject 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ MavenProject ---
[debug] execute contextualize
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 0 resource
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ MavenProject ---
[WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!
[INFO] Compiling 1 source file to /usr/home/igor/IdeaProjects/MavenProject/target/classes
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.669s
[INFO] Finished at: Sat Jan 18 14:26:27 VOLT 2014
[INFO] Final Memory: 8M/149M
[INFO] ------------------------------------------------------------------------
> mvn exec:java -Dexec.mainClass="ru.vsprog.mavenproject.Main"
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building MavenProject 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> exec-maven-plugin:1.2.1:java (default-cli) @ MavenProject >>>
[INFO]
[INFO] <<< exec-maven-plugin:1.2.1:java (default-cli) @ MavenProject <<<
[INFO]
[INFO] --- exec-maven-plugin:1.2.1:java (default-cli) @ MavenProject ---
Hello World
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.255s
[INFO] Finished at: Sat Jan 18 14:26:54 VOLT 2014
[INFO] Final Memory: 7M/149M
[INFO] ------------------------------------------------------------------------
exec:java -Dexec.mainClass="ru.vsprog.mavenproject.Main"
Исправление iZEN, :
Всё верно. Maven в стандартном жизненном цикле приложения не определяет отдельную цель «run».
Тестовый класс удалось запустить с помощью двух последовательных команд:
> mvn compile
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building MavenProject 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ MavenProject ---
[debug] execute contextualize
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 0 resource
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ MavenProject ---
[WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!
[INFO] Compiling 1 source file to /usr/home/igor/IdeaProjects/MavenProject/target/classes
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.669s
[INFO] Finished at: Sat Jan 18 14:26:27 VOLT 2014
[INFO] Final Memory: 8M/149M
[INFO] ------------------------------------------------------------------------
> mvn exec:java -Dexec.mainClass="ru.vsprog.mavenproject.Main"
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building MavenProject 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> exec-maven-plugin:1.2.1:java (default-cli) @ MavenProject >>>
[INFO]
[INFO] <<< exec-maven-plugin:1.2.1:java (default-cli) @ MavenProject <<<
[INFO]
[INFO] --- exec-maven-plugin:1.2.1:java (default-cli) @ MavenProject ---
Hello World
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.255s
[INFO] Finished at: Sat Jan 18 14:26:54 VOLT 2014
[INFO] Final Memory: 7M/149M
[INFO] ------------------------------------------------------------------------
mvn exec:java -Dexec.mainClass="ru.vsprog.mavenproject.Main"
Исходная версия iZEN, :
Всё верно. Maven в стандартном жизненном цикле приложения не определяет отдельную цель «run».
Тестовый класс удалось запустить с помощью двух последовательных команд:
> mvn compile
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building MavenProject 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ MavenProject ---
[debug] execute contextualize
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 0 resource
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ MavenProject ---
[WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!
[INFO] Compiling 1 source file to /usr/home/igor/IdeaProjects/MavenProject/target/classes
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.669s
[INFO] Finished at: Sat Jan 18 14:26:27 VOLT 2014
[INFO] Final Memory: 8M/149M
[INFO] ------------------------------------------------------------------------
> mvn exec:java -Dexec.mainClass="ru.vsprog.mavenproject.Main"
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building MavenProject 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> exec-maven-plugin:1.2.1:java (default-cli) @ MavenProject >>>
[INFO]
[INFO] <<< exec-maven-plugin:1.2.1:java (default-cli) @ MavenProject <<<
[INFO]
[INFO] --- exec-maven-plugin:1.2.1:java (default-cli) @ MavenProject ---
Hello World
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.255s
[INFO] Finished at: Sat Jan 18 14:26:54 VOLT 2014
[INFO] Final Memory: 7M/149M
[INFO] ------------------------------------------------------------------------
mvn exec:java -Dexec.mainClass="ru.vsprog.mavenproject.Main"