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 November 25th, 2016, 05:39 AM
Authorized User
 
Join Date: Mar 2012
Posts: 49
Thanks: 0
Thanked 0 Times in 0 Posts
Default Maven for project

Hi
Your book indeed helped to build a good executable jar file.Now creating a site and deploying the jar file there is to be helped .This is not described in chater 26

How do I atleast put the jar file in a common place so that others can see
Please help
Thanks
As
muthukutta1
 
Old December 7th, 2016, 10:21 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
Your book indeed helped to build a good executable jar file.Now creating a site and deploying the jar file there is to be helped .This is not described in chater 26

How do I atleast put the jar file in a common place so that others can see
Please help
Thanks
As
muthukutta1

Hi

During the recent past,i was using trial and error method to derive solution of site formation
for a particular project (which is for jar making mainly),i am tantalized & noted there is a difference of
out put being rendered when using hyphen or semicolon
ie)

between the use hyphen(-) and senicolon(:) while writng the the maven coomand line
As under :--->

for example after package and site goals being finished successfull,
the site so created by maven

was tried by the follwing two ways

mvn site:deploy


mvn site-deploy



On execution these two commands produced results (tantalzing in its nature)as follows which appears to be diiferent
(ie two types of the result for the same pom


May be i am not sure when to use semicolon and hypen(may even be very fundamental lack)

buth as for as the the deploying task is concerned there appears to ambiguity in its entirety

Can you please figure out correct approach to this deploying destination journeyto make the site in the requred place/directory

locally without placing it in remote repository whics is rather complicated


when& where are these elements use in the pom viz

<shortDescription/>
<description/>
<siteAddress/>
<siteDirectory/>
<disributionSite/>
<distributionDirectory/>






Thanks
As
muthukutta1


Code:
  ************************************************************
                          <distributionManagement>
  	                  <downloadUrl>http://mojo.codehaus.org/my-project</downloadUrl>
  	                  <site>    
  	                  <id>mojo.website</id>
  	                  <name>Mojo Website</name>
  	                  <url>ssh:siteAddress=target</url>
  	                  </site>
  	                  </distributionManagement> 
  
  *********************************************************
  
   ************************************************************************
  Unsupported protocol: 'ssh' for site deployment to distributionManagement.site.u
  rl=ssh:siteAddress=target.
  Currently supported protocols are: sftp, scp, https, http, file.
      Protocols may be added through wagon providers.
      For more information, see http://maven.apache.org/plugins/maven-site-plugin/
  examples/adding-deploy-protocol.html
  [INFO] ------------------------------------------------------------------------
  [INFO] BUILD FAILURE
  [INFO] ------------------------------------------------------------------------
  [INFO] Total time: 7.766 s
  [INFO] Finished at: 2016-12-07T18:04:13+05:30
  [INFO] Final Memory: 8M/21M
  [INFO] ------------------------------------------------------------------------
  [ERROR] Failed to execute goal org.apache.maven.plugins:maven-site-plugin:3.6:de
  ploy (default-cli) on project jupiter: Unsupported protocol: 'ssh' for site depl
oyment to distributionManagement.site.url=ssh:siteAddress=target. -> [Help 1]

********************************************************************************

[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 25.094 s
[INFO] Finished at: 2016-12-07T18:06:14+05:30
[INFO] Final Memory: 17M/40M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:
deploy (default-deploy) on project jupiter: Deployment failed: repository elemen
t was not specified in the POM inside distributionManagement element or in -Dalt
DeploymentRepository=id::layout::url parameter -> [Help 1]

***************************************************************





Similar Threads
Thread Thread Starter Forum Replies Last Post
maven archetype zulfikaridris BOOK: Professional Java for Web Applications 14 March 1st, 2017 05:47 AM
Maven-Its use(under projava) muthukutta1 Pro Java 0 January 23rd, 2016 07:13 AM
Maven Help Needed... [email protected] Spring 0 January 10th, 2011 06:25 AM





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