java - Run a netbeans maven project from a command line -
i wrote maven code in netbeans in included 6 classes:
columncomparator.java iqc.java main.java multiplelinearregression.java overlap.java psresidualreduction.java
i want compile , run on linux terminal. tried:
javac main.java columncomparator.java iqc.java multiplelinearregression.java overlap.java psresidualreduction.java
and got compilation error. problem in multiplelinearregression class, used jama package matrix computation, in command line not know how should modify dependencies. guys can me.
just use exec-maven-plugin
.
add these lines pom.xml
(you might have <build/>
, <plugins/>
tag there). make sure set <mainclass/>
tag point specific main class.
<build> <plugins> <plugin> <groupid>org.codehaus.mojo</groupid> <artifactid>exec-maven-plugin</artifactid> <version>1.2.1</version> <configuration> <mainclass>com.example.main</mainclass> </configuration> </plugin> </plugins> </build>
then run program command line:
mvn exec:java
this not affect/change behavior of netbeans setup still able run program within netbeans.
Comments
Post a Comment