Which version of Liferay you are using? The "java" executable is the Java interpreter that runs the bytecode. I'll use Notepad to create a Java class called 'Howdy'. java,jsp,spring-mvc,liferay,portlet. Dans ce chapitre, j'ai survolé rapidement la gestion de projet Java avec Apache Maven. Form submit portlet with Spring MVC. Les goals exécutés par chaque phases dépendent du packaging de l'artéfact à générer. Execute the JAR file with following commands: cd target java -jar OracleBanking-1.0-SNAPSHOT.jar; Review the output. As it also contains compiled main class (.class format) so it is used to compress and use the code without execution even without using IDE. Résumons. Maven exec plugin allows us to execute system and Java programs from the maven command. Ce qui devrait vous afficher un magnifique : Hello World! Command line syntax for running Java main class and pass application arguments in Maven: mvn compile exec:java -Dexec.mainClass="com.logicbig.example.MyMainclass" -Dexec.args="myArg1 myArg2" Example pom.xml The simple interest is calculated and displayed in the Maven CLI. So follow this tutorial to learn how to create Java JAR file with Maven and how to set project’s dependencies.
Maven . Lors de l'invocation de la demande de l'exécution d'une phase à Maven, Maven va exécuter toutes les phases précédentes du cycle de vie. Le packaging est précisé grâce à l'élément