Wrox Programmer Forums
|
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
 
Old January 25th, 2016, 07:06 AM
Authorized User
 
Join Date: Mar 2012
Posts: 49
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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
 
Old May 26th, 2016, 04:37 AM
Authorized User
 
Join Date: Mar 2012
Posts: 49
Thanks: 0
Thanked 0 Times in 0 Posts
Default clrfication for execution of maven created jar or war file

Quote:
Originally Posted by muthukutta1 View Post
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] ------------------------------------------------------------------------
 
Old April 16th, 2017, 08:26 AM
Authorized User
 
Join Date: Mar 2012
Posts: 49
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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
 
Old May 30th, 2017, 04:37 AM
Authorized User
 
Join Date: Mar 2012
Posts: 49
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by muthukutta1 View Post
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





Similar Threads
Thread Thread Starter Forum Replies Last Post
Location of file shares for Builds and Symbols djbaker BOOK: Professional Team Foundation Server 2012 0 August 8th, 2013 05:36 PM
is there a useful java gui design tool? yulin11 Java GUI 4 September 2nd, 2008 10:20 PM
Everything builds fine, but Server cannot access.. rellsbu BOOK: ASP.NET Website Programming Problem-Design-Solution 4 November 3rd, 2005 09:20 AM
difference between release and debug builds connect2sandep General .NET 2 June 29th, 2005 01:12 PM
Any drag and drop java development tool? hlchuah77 Java GUI 5 September 10th, 2004 02:57 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.