 |
BOOK: Professional Java Tools for Extreme Programming  | This is the forum to discuss the Wrox book Professional Java Tools for Extreme Programming: Ant, XDoclet, JUnit, Cactus,and Maven by Richard Hightower, Warner Onstine, Paul Visan, Damon Payne, Joseph D. Gradecki, Kate Rhodes, Robert Watkins, Erik Meade; ISBN: 9780764556173 |
|
Welcome to the p2p.wrox.com Forums.
You are currently viewing the BOOK: Professional Java Tools for Extreme Programming section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|
|

January 25th, 2016, 07:06 AM
|
|
Authorized User
|
|
Join Date: Mar 2012
Posts: 49
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Is maven(java tool) only builds project file
Hi
please clarify if maven could also be used for executing the jar file for example after its bulld by maven tool.from application aprg
Also what is the easiest command to build a jar file from a java application program;
using mvn.cmd
Is it necessary to have predefined descripturs ,pom,goal etc
Else
how do you define structure for a jar build using mvn.cmd command line in maven
Thanks
As
muthukutta1
|
|

May 26th, 2016, 04:37 AM
|
|
Authorized User
|
|
Join Date: Mar 2012
Posts: 49
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
clrfication for execution of maven created jar or war file
Quote:
Originally Posted by muthukutta1
Hi
please clarify if maven could also be used for executing the jar file for example after its bulld by maven tool.from application aprg
Also what is the easiest command to build a jar file from a java application program;
using mvn.cmd
Is it necessary to have predefined descripturs ,pom,goal etc
Else
how do you define structure for a jar build using mvn.cmd command line in maven
Thanks
As
muthukutta1
|
Hello
Please tell me if a jar/war file created by maven can be executed or not if so please write the command for it(the follwing example needs execution)
Thanks
As
muthukutta1
Code:
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>jvaranch-dibs</groupId>
<artifactId>dibs</artifactId>
<packaging>war</packaging>
<version>0.0.1-SNASHOT</version>
<name>dibs Maven Webapp</name>
<url>http://maven.apache.org</url>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<finalName>dibs</finalName>
</build>
</project>
mvn.cmd war:war
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building dibs Maven Webapp 0.0.1-SNASHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-war-plugin:2.2:war (default-cli) @ dibs ---
[INFO] Packaging webapp
[INFO] Assembling webapp [dibs] in [D:\Program Files\java\jdk1.7.0_07\bin\apache
-maven-3.3.9\dibs\target\dibs]
[INFO] Processing war project
[INFO] Copying webapp resources [D:\Program Files\java\jdk1.7.0_07\bin\apache-ma
ven-3.3.9\dibs\src\main\webapp]
[INFO] Webapp assembled in [31 msecs]
[INFO] Building war: D:\Program Files\java\jdk1.7.0_07\bin\apache-maven-3.3.9\di
bs\target\dibs.war
[INFO] WEB-INF\web.xml already added, skipping
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.875 s
[INFO] Finished at: 2016-05-19T07:55:11-07:00
[INFO] Final Memory: 6M/16M
[INFO] ------------------------------------------------------------------------
|
|

April 16th, 2017, 08:26 AM
|
|
Authorized User
|
|
Join Date: Mar 2012
Posts: 49
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
My recently builtExecuatable file and war file
Hi
Through moderator
My clarification is waiting for the moderator to do the need full.
Thanks
As
muthukutta1
|
|

May 30th, 2017, 04:37 AM
|
|
Authorized User
|
|
Join Date: Mar 2012
Posts: 49
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Quote:
Originally Posted by muthukutta1
Hi
Through moderator
My clarification is waiting for the moderator to do the need full.
Thanks
As
muthukutta1
|
Hi
Also note
There are no Ant-Api for chapter 30 shown in the download items
Please furnish Thanks
muthukutta1
|
|
 |