Quote:
Originally Posted by muthukutta1
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]
***************************************************************