Deploy applet to local server fails
Posted: Fri May 01, 2015 8:49 pm
I have built the SDK using Maven on Mint 17.1. Set the certificate and dev license data.
When I execute
I get the following error
my default.property file
When I execute
Code: Select all
mvn -pl oxygen-sample-applet/ -am deploy
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for myGroup:oxygen-sample-applet:jar:1.0-SNAPSHOT
[WARNING] 'build.plugins.plugin.(groupId:artifactId)' must be unique but found duplicate declaration of plugin org.apache.maven.plugins:maven-antrun-plugin @ line 234, column 12
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] mySample
[INFO] bundle-frameworks
[INFO] bundle-options
[INFO] bundle-samplefiles
[INFO] oxygen-sample-applet
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building mySample 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-install-plugin:2.3:install (default-install) @ mySample ---
[INFO] Installing /home/scott/oxySDK/mySample/pom.xml to /home/scott/.m2/repository/myGroup/mySample/1.0-SNAPSHOT/mySample-1.0-SNAPSHOT.pom
[INFO]
[INFO] --- maven-deploy-plugin:2.7:deploy (default-deploy) @ mySample ---
Downloading: http://maven.sync.ro/archiva/repository ... tadata.xml
[WARNING] Could not transfer metadata myGroup:mySample:1.0-SNAPSHOT/maven-metadata.xml from/to syncro-snapshots (http://maven.sync.ro/archiva/repository ... snapshots/): maven.sync.ro: unknown error
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] mySample .......................................... FAILURE [1.928s]
[INFO] bundle-frameworks ................................. SKIPPED
[INFO] bundle-options .................................... SKIPPED
[INFO] bundle-samplefiles ................................ SKIPPED
[INFO] oxygen-sample-applet .............................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.189s
[INFO] Finished at: Fri May 01 11:46:04 MDT 2015
[INFO] Final Memory: 9M/481M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project mySample: Failed to retrieve remote metadata myGroup:mySample:1.0-SNAPSHOT/maven-metadata.xml: Could not transfer metadata myGroup:mySample:1.0-SNAPSHOT/maven-metadata.xml from/to syncro-snapshots (http://maven.sync.ro/archiva/repository ... snapshots/): maven.sync.ro: unknown error: Unknown host maven.sync.ro: unknown error -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/disp ... nException
my default.property file
Code: Select all
#
#
# Code signing parameters.
#
#
# Set the path to the certificate file used to sign the jar libraries.
keystore=javakeystore_mbepapers.jks
# The type of the certificate file. Ex: PKCS12 or JKS
storeType=JKS
# Keystore password
password=*************
# Alias
alias=***************
# HTTP Proxy host and port. Used by the signjar maven plugin. Optional.
proxyHost=proxy.mynet.com
proxyPort=3128
#
#
# JNLP
#
#
# The main class to be set in the JNLP file.
mainclass=myGroup.AuthorComponentSampleApplet
# The code base to be set in the JNLP file.
codebase=http://localhost/oxygen
#
#
# Applet deployment.
#
# All these parameters are used in the Maven "deploy" phase.
# If you do not want to deploy the applet to a HTTP server, use only the "install" phase.
# The deployment local file system directory. In this way
# you can copy the applet files to a network share or a SVN/GIT project. [REQUIRED]
deploy.dir=/var/www/oxygen
# The deployment remote directory. [REQUIRED]
#deploy.ftp.host=ftp.mysite.com
#deploy.ftp.user=USER
#deploy.ftp.password=PASSWORD
#deploy.ftp.dir=/home/test/public_html/AuthorDemoApplet
#
#
# Sharepoint Applet deployment
#
# If you want to deploy the applet to a Sharepoint site, you should copy
# the target/jnlp/sharepoint/* files to your site pages after the Maven "deploy" phase.
#
# Note:
# Due to SharePoint limitations, the applet files should not be kept on the Sharepoint
# server. You should deploy it on other server, at the location defined by the "codebase" parameter.
# The .aspx file points to this codebase.
#The SharePoint root site, in case you want to use the applet from a sharepoint server. Should not end in slash.
sharepointRootSite=https://mysharepointsite.sharepoint.com