|
|
Re: Xtext project build with Maven Tycho [message #1730038 is a reply to message #1730035] |
Thu, 21 April 2016 06:40 |
|
On 21/04/2016 08:26, Han Li Koay wrote:
> Hi guys!
>
> I developed my own DSL project using Xtext and now I want to release
> them so the installation of my DSL plugin can be easily installed via an
> updated site.
> https://eclipse.org/Xtext/documentation/350_continuous_integration.html#an-overview-of-the-example-projects
>
> I came across this tutorial site but i think i needed some more guidance
> on how to setup and build my DSL project. I am currently using Xtext
> 2.9.1 and so the Maven build is auto-generated.
> After i build my DSL project with Maven build system with Plain Layout,
> In that tutorial where they explain Maven and Tycho, they included an
> example with releng and updatesite project and etc. Is it some thing
> that i need to setup myself?
> My goal is to setup and build my DSL plugin so it can be installed via
> an updated site. It would be a huge help for me if anyone could provide
> me a simple step explanation or any information regarding the direction
> I should go for.
> Any help is greatly appreciated. Thanks in advance!
Hi
if you install Xtext 2.10 nightly, the project wizard lets you create
also an update site project and a feature project; if you selected Maven
as the build system, it will also generate the configurations for
building the update site during the build. You could install 2.10 from
the Xtext nightly update site and generate a new project, and then copy
and adapt the feature and the update site projects into your project.
cheers
Lorenzo
--
Prof. Lorenzo Bettini, Computer Science, DISIA, Univ. Firenze
HOME: http://www.lorenzobettini.it
Xtext Book:
http://www.packtpub.com/implementing-domain-specific-languages-with-xtext-and-xtend/book
HOME: http://www.lorenzobettini.it
TDD Book: https://leanpub.com/tdd-buildautomation-ci
Xtext Book: https://www.packtpub.com/application-development/implementing-domain-specific-languages-xtext-and-xtend-second-edition
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: Xtext project build with Maven Tycho [message #1730397 is a reply to message #1730332] |
Mon, 25 April 2016 12:52 |
Han Li Koay Messages: 25 Registered: February 2016 |
Junior Member |
|
|
Han Li Koay wrote on Mon, 25 April 2016 05:56Hi Lorenzo,
Another quick question! I decided to publish my p2 repository using bintray. The p2 repository of my xtext project are built automatically using xtext 2.10.0 nightly version.
When i read through your blog post I realize that i need to create composite repositories for my project before I can proceed, is that correct? With that, I shall follow this blog post of yours. http://www.lorenzobettini.it/2015/01/creating-p2-composite-repositories-during-the-build/
Is that the direction i should go?
Thanks
Hanli
I used your p2-composite.bintray-example and changed a few properties.
- In pom.xml, I replaced the value of bintray.repo, bintray.package and site.label
- In bintray.ant, I set the bintray.user, bintray.repo, bintray.apikey and bintray.package here just for convenience for testing (I will change it not to be public once this is working)
However, everything works fine except for p2composite.example.site.
Here is the error:
[INFO] Error stacktraces are turned on.
[INFO] Scanning for projects...
[WARNING] No explicit target runtime environment configuration. Build is platform dependent.
[WARNING] No explicit target runtime environment configuration. Build is platform dependent.
[WARNING] No explicit target runtime environment configuration. Build is platform dependent.
[INFO] Computing target platform for MavenProject: p2composite.example:p2composite.example.plugin:1.0.0-SNAPSHOT @ D:\Users\Acer\workspace\p2composite.example.plugin\pom.xml
[INFO] Fetching p2.index from http://download.eclipse.org/releases/mars/ (0B at 0B/s)
[INFO] Adding repository http://download.eclipse.org/releases/mars
[INFO] Fetching p2.index from http://download.eclipse.org/technology/epp/packages/mars/ (0B at 0B/s)
[INFO] Fetching p2.index from http://download.eclipse.org/releases/mars/201506241002/ (0B at 0B/s)
[INFO] Fetching p2.index from http://download.eclipse.org/releases/mars/201510021000/ (0B at 0B/s)
[INFO] Fetching p2.index from http://download.eclipse.org/releases/mars/201602261000/ (0B at 0B/s)
[INFO] Resolving dependencies of MavenProject: p2composite.example:p2composite.example.plugin:1.0.0-SNAPSHOT @ D:\Users\Acer\workspace\p2composite.example.plugin\pom.xml
[INFO] Resolving class path of MavenProject: p2composite.example:p2composite.example.plugin:1.0.0-SNAPSHOT @ D:\Users\Acer\workspace\p2composite.example.plugin\pom.xml
[INFO] Computing target platform for MavenProject: p2composite.example:p2composite.example.feature:1.0.0-SNAPSHOT @ D:\Users\Acer\workspace\p2composite.example.feature\pom.xml
[INFO] Resolving dependencies of MavenProject: p2composite.example:p2composite.example.feature:1.0.0-SNAPSHOT @ D:\Users\Acer\workspace\p2composite.example.feature\pom.xml
[INFO] Resolving class path of MavenProject: p2composite.example:p2composite.example.feature:1.0.0-SNAPSHOT @ D:\Users\Acer\workspace\p2composite.example.feature\pom.xml
[INFO] Computing target platform for MavenProject: p2composite.example:p2composite.example.site:1.0.0-SNAPSHOT @ D:\Users\Acer\workspace\p2composite.example.site\pom.xml
[INFO] Resolving dependencies of MavenProject: p2composite.example:p2composite.example.site:1.0.0-SNAPSHOT @ D:\Users\Acer\workspace\p2composite.example.site\pom.xml
[INFO] Resolving class path of MavenProject: p2composite.example:p2composite.example.site:1.0.0-SNAPSHOT @ D:\Users\Acer\workspace\p2composite.example.site\pom.xml
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] p2composite.example.tycho
[INFO] p2composite.example.plugin
[INFO] p2composite.example.feature
[INFO] p2composite.example.site
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building p2composite.example.tycho 1.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ p2composite.example.tycho ---
[INFO]
[INFO] --- tycho-source-plugin:0.22.0:plugin-source (plugin-source) @ p2composite.example.tycho ---
[INFO]
[INFO] --- tycho-source-feature-plugin:0.22.0:source-feature (source-feature) @ p2composite.example.tycho ---
[INFO]
[INFO] --- tycho-p2-plugin:0.22.0:p2-metadata (attach-p2-metadata) @ p2composite.example.tycho ---
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building p2composite.example.plugin 1.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ p2composite.example.plugin ---
[INFO] Deleting D:\Users\Acer\workspace\p2composite.example.plugin\target
[INFO]
[INFO] --- tycho-packaging-plugin:0.22.0:build-qualifier (default-build-qualifier) @ p2composite.example.plugin ---
[INFO] The project's OSGi version is 1.0.0.v20160425-1243
[INFO]
[INFO] --- tycho-packaging-plugin:0.22.0:validate-id (default-validate-id) @ p2composite.example.plugin ---
[INFO]
[INFO] --- tycho-packaging-plugin:0.22.0:validate-version (default-validate-version) @ p2composite.example.plugin ---
[INFO]
[INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ p2composite.example.plugin ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory D:\Users\Acer\workspace\p2composite.example.plugin\src\main\resources
[INFO]
[INFO] --- tycho-compiler-plugin:0.22.0:compile (default-compile) @ p2composite.example.plugin ---
[INFO] Compiling 2 source files to D:\Users\Acer\workspace\p2composite.example.plugin\target\classes
[INFO]
[INFO] --- maven-resources-plugin:2.4.3:testResources (default-testResources) @ p2composite.example.plugin ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory D:\Users\Acer\workspace\p2composite.example.plugin\src\test\resources
[INFO]
[INFO] --- tycho-source-plugin:0.22.0:plugin-source (plugin-source) @ p2composite.example.plugin ---
[WARNING] bundle localization file D:\Users\Acer\workspace\p2composite.example.plugin\plugin.properties not found
[INFO] Building jar: D:\Users\Acer\workspace\p2composite.example.plugin\target\p2composite.example.plugin-1.0.0-SNAPSHOT-sources.jar
[INFO]
[INFO] --- target-platform-configuration:0.22.0:target-platform (default-target-platform) @ p2composite.example.plugin ---
[INFO]
[INFO] --- tycho-packaging-plugin:0.22.0:package-plugin (default-package-plugin) @ p2composite.example.plugin ---
[INFO] Building jar: D:\Users\Acer\workspace\p2composite.example.plugin\target\p2composite.example.plugin-1.0.0-SNAPSHOT.jar
[INFO]
[INFO] --- tycho-p2-plugin:0.22.0:p2-metadata-default (default-p2-metadata-default) @ p2composite.example.plugin ---
[INFO]
[INFO] --- tycho-source-feature-plugin:0.22.0:source-feature (source-feature) @ p2composite.example.plugin ---
[INFO]
[INFO] --- tycho-p2-plugin:0.22.0:p2-metadata (attach-p2-metadata) @ p2composite.example.plugin ---
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building p2composite.example.feature 1.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ p2composite.example.feature ---
[INFO] Deleting D:\Users\Acer\workspace\p2composite.example.feature\target
[INFO]
[INFO] --- tycho-packaging-plugin:0.22.0:build-qualifier-aggregator (default-build-qualifier-aggregator) @ p2composite.example.feature ---
[INFO] The project's OSGi version is 1.0.0.v20160425-1243
[INFO]
[INFO] --- tycho-packaging-plugin:0.22.0:validate-id (default-validate-id) @ p2composite.example.feature ---
[INFO]
[INFO] --- tycho-packaging-plugin:0.22.0:validate-version (default-validate-version) @ p2composite.example.feature ---
[INFO]
[INFO] --- tycho-source-plugin:0.22.0:plugin-source (plugin-source) @ p2composite.example.feature ---
[INFO]
[INFO] --- target-platform-configuration:0.22.0:target-platform (default-target-platform) @ p2composite.example.feature ---
[INFO]
[INFO] --- tycho-packaging-plugin:0.22.0:package-feature (default-package-feature) @ p2composite.example.feature ---
[INFO] Building jar: D:\Users\Acer\workspace\p2composite.example.feature\target\p2composite.example.feature-1.0.0-SNAPSHOT.jar
[INFO]
[INFO] --- tycho-p2-plugin:0.22.0:p2-metadata-default (default-p2-metadata-default) @ p2composite.example.feature ---
[INFO]
[INFO] --- tycho-p2-plugin:0.22.0:feature-p2-metadata (default-feature-p2-metadata) @ p2composite.example.feature ---
[INFO]
[INFO] --- tycho-source-feature-plugin:0.22.0:source-feature (source-feature) @ p2composite.example.feature ---
[INFO] Building jar: D:\Users\Acer\workspace\p2composite.example.feature\target\p2composite.example.feature-1.0.0-SNAPSHOT-sources-feature.jar
[INFO]
[INFO] --- tycho-p2-plugin:0.22.0:p2-metadata (attach-p2-metadata) @ p2composite.example.feature ---
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building p2composite.example.site 1.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ p2composite.example.site ---
[INFO] Deleting D:\Users\Acer\workspace\p2composite.example.site\target
[INFO]
[INFO] --- tycho-packaging-plugin:0.22.0:build-qualifier-aggregator (default-build-qualifier-aggregator) @ p2composite.example.site ---
[INFO] The project's OSGi version is 1.0.0.v20160425-1243
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean-1) @ p2composite.example.site ---
[INFO]
[INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ p2composite.example.site ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory D:\Users\Acer\workspace\p2composite.example.site\src\main\resources
[INFO]
[INFO] --- tycho-source-plugin:0.22.0:plugin-source (plugin-source) @ p2composite.example.site ---
[INFO]
[INFO] --- maven-antrun-plugin:1.7:run (update-local-repository) @ p2composite.example.site ---
[INFO] Executing tasks
main:
getMajorMinorVersion:
get-composite-metadata:
[echo] Creating directory target/composite-main...
[mkdir] Created dir: D:\Users\Acer\workspace\p2composite.example.site\target\composite-main
[echo] Getting compositeArtifacts.xml from https://dl.bintray.com/hanlikoay/upf-editor/updates into target/composite-main...
[get] Getting: https://dl.bintray.com/hanlikoay/upf-editor/updates/compositeArtifacts.xml
[get] To: D:\Users\Acer\workspace\p2composite.example.site\target\composite-main\compositeArtifacts.xml
[get] Error opening connection java.io.FileNotFoundException: https://dl.bintray.com/hanlikoay/upf-editor/updates/compositeArtifacts.xml
[get] Error opening connection java.io.FileNotFoundException: https://dl.bintray.com/hanlikoay/upf-editor/updates/compositeArtifacts.xml
[get] Error opening connection java.io.FileNotFoundException: https://dl.bintray.com/hanlikoay/upf-editor/updates/compositeArtifacts.xml
[get] Can't get https://dl.bintray.com/hanlikoay/upf-editor/updates/compositeArtifacts.xml to D:\Users\Acer\workspace\p2composite.example.site\target\composite-main\compositeArtifacts.xml
[echo] Getting compositeContent.xml from https://dl.bintray.com/hanlikoay/upf-editor/updates into target/composite-main...
[get] Getting: https://dl.bintray.com/hanlikoay/upf-editor/updates/compositeContent.xml
[get] To: D:\Users\Acer\workspace\p2composite.example.site\target\composite-main\compositeContent.xml
[get] Error opening connection java.io.FileNotFoundException: https://dl.bintray.com/hanlikoay/upf-editor/updates/compositeContent.xml
[get] Error opening connection java.io.FileNotFoundException: https://dl.bintray.com/hanlikoay/upf-editor/updates/compositeContent.xml
[get] Error opening connection java.io.FileNotFoundException: https://dl.bintray.com/hanlikoay/upf-editor/updates/compositeContent.xml
[get] Can't get https://dl.bintray.com/hanlikoay/upf-editor/updates/compositeContent.xml to D:\Users\Acer\workspace\p2composite.example.site\target\composite-main\compositeContent.xml
[echo] Creating directory target/composite-child...
[mkdir] Created dir: D:\Users\Acer\workspace\p2composite.example.site\target\composite-child
[echo] Getting compositeArtifacts.xml from https://dl.bintray.com/hanlikoay/upf-editor/updates/1.0 into target/composite-child...
[get] Getting: https://dl.bintray.com/hanlikoay/upf-editor/updates/1.0/compositeArtifacts.xml
[get] To: D:\Users\Acer\workspace\p2composite.example.site\target\composite-child\compositeArtifacts.xml
[get] Error opening connection java.io.FileNotFoundException: https://dl.bintray.com/hanlikoay/upf-editor/updates/1.0/compositeArtifacts.xml
[get] Error opening connection java.io.FileNotFoundException: https://dl.bintray.com/hanlikoay/upf-editor/updates/1.0/compositeArtifacts.xml
[get] Error opening connection java.io.FileNotFoundException: https://dl.bintray.com/hanlikoay/upf-editor/updates/1.0/compositeArtifacts.xml
[get] Can't get https://dl.bintray.com/hanlikoay/upf-editor/updates/1.0/compositeArtifacts.xml to D:\Users\Acer\workspace\p2composite.example.site\target\composite-child\compositeArtifacts.xml
[echo] Getting compositeContent.xml from https://dl.bintray.com/hanlikoay/upf-editor/updates/1.0 into target/composite-child...
[get] Getting: https://dl.bintray.com/hanlikoay/upf-editor/updates/1.0/compositeContent.xml
[get] To: D:\Users\Acer\workspace\p2composite.example.site\target\composite-child\compositeContent.xml
[get] Error opening connection java.io.FileNotFoundException: https://dl.bintray.com/hanlikoay/upf-editor/updates/1.0/compositeContent.xml
[get] Error opening connection java.io.FileNotFoundException: https://dl.bintray.com/hanlikoay/upf-editor/updates/1.0/compositeContent.xml
[get] Error opening connection java.io.FileNotFoundException: https://dl.bintray.com/hanlikoay/upf-editor/updates/1.0/compositeContent.xml
[get] Can't get https://dl.bintray.com/hanlikoay/upf-editor/updates/1.0/compositeContent.xml to D:\Users\Acer\workspace\p2composite.example.site\target\composite-child\compositeContent.xml
preprocess-metadata:
[INFO] Executed tasks
[INFO]
[INFO] --- target-platform-configuration:0.22.0:target-platform (default-target-platform) @ p2composite.example.site ---
[INFO]
[INFO] --- tycho-p2-publisher-plugin:0.22.0:publish-products (default-publish-products) @ p2composite.example.site ---
[INFO]
[INFO] --- tycho-p2-publisher-plugin:0.22.0:publish-categories (default-publish-categories) @ p2composite.example.site ---
[INFO]
[INFO] --- tycho-p2-publisher-plugin:0.22.0:attach-artifacts (default-attach-artifacts) @ p2composite.example.site ---
[INFO]
[INFO] --- tycho-p2-repository-plugin:0.22.0:assemble-repository (default-assemble-repository) @ p2composite.example.site ---
[INFO]
[INFO] --- tycho-p2-repository-plugin:0.22.0:archive-repository (default-archive-repository) @ p2composite.example.site ---
[INFO] Building zip: D:\Users\Acer\workspace\p2composite.example.site\target\p2composite.example.site-1.0.0.v20160425-1243.zip
[INFO]
[INFO] --- tycho-source-feature-plugin:0.22.0:source-feature (source-feature) @ p2composite.example.site ---
[INFO]
[INFO] --- tycho-p2-plugin:0.22.0:p2-metadata (attach-p2-metadata) @ p2composite.example.site ---
[INFO]
[INFO] --- tycho-eclipserun-plugin:0.22.0:eclipse-run (add-p2-composite-repository) @ p2composite.example.site ---
[INFO] Expected eclipse log file: D:\Users\Acer\workspace\p2composite.example.site\target\eclipserun-work\data\.metadata\.log
[INFO] Command line:
[D:\Program Files\Java\jre1.8.0_73\bin\java.exe, -jar, D:\Users\Acer\.m2\repository\p2\osgi\bundle\org.eclipse.equinox.launcher\1.3.100.v20150511-1540\org.eclipse.equinox.launcher-1.3.100.v20150511-1540.jar, -install, D:\Users\Acer\workspace\p2composite.example.site\target\eclipserun-work, -configuration, D:\Users\Acer\workspace\p2composite.example.site\target\eclipserun-work\configuration, -application, org.eclipse.ant.core.antRunner, -buildfile, packaging-p2composite.ant, p2.composite.add, -Dsite.label=UPF Editor plugin, -Dproject.build.directory=D:\Users\Acer\workspace\p2composite.example.site\target, -DunqualifiedVersion=1.0.0, -DbuildQualifier=v20160425-1243, -Dchild.repository.path.prefix=../../releases/]
Buildfile: packaging-p2composite.ant
getMajorMinorVersion:
compute.child.repository.data:
p2.composite.add:
[echo]
[echo] Composite repository : D:\Users\Acer\workspace\p2composite.example.site\target\composite-main
[echo] Composite name : UPF Editor plugin All Versions
[echo] Adding child repository : 1.0
[echo]
[echo] Composite repository : D:\Users\Acer\workspace\p2composite.example.site\target\composite-child
[echo] Composite name : UPF Editor plugin 1.0
[echo] Adding child repository : ../../releases/1.0.0.v20160425-1243
BUILD SUCCESSFUL
BUILD SUCCESSFUL
Total time: 1 second
[INFO]
[INFO] --- maven-antrun-plugin:1.7:run (deploy-repository) @ p2composite.example.site ---
[INFO] Executing tasks
main:
push-to-bintray:
postprocess-metadata:
push-p2-repo-to-bintray:
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] p2composite.example.tycho .......................... SUCCESS [ 0.066 s]
[INFO] p2composite.example.plugin ......................... SUCCESS [ 1.973 s]
[INFO] p2composite.example.feature ........................ SUCCESS [ 0.222 s]
[INFO] p2composite.example.site ........................... FAILURE [ 11.689 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 33.926 s
[INFO] Finished at: 2016-04-25T20:43:58+08:00
[INFO] Final Memory: 86M/261M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.7:run (deploy-repository) on project p2composite.example.site: An Ant BuildException has occured: The following error occurred while executing this line:
[ERROR] D:\Users\Acer\workspace\p2composite.example.site\bintray.ant:96: The following error occurred while executing this line:
[ERROR] D:\Users\Acer\workspace\p2composite.example.site\bintray.ant:103: Execute failed: java.io.IOException: Cannot run program "curl" (in directory "D:\Users\Acer\workspace\p2composite.example.site"): CreateProcess error=2, The system cannot find the file specified
[ERROR] around Ant part ...<ant antfile="D:\Users\Acer\workspace\p2composite.example.site/bintray.ant" target="push-to-bintray"></ant>... @ 4:104 in D:\Users\Acer\workspace\p2composite.example.site\target\antrun\build-main.xml
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.7:run (deploy-repository) on project p2composite.example.site: An Ant BuildException has occured: The following error occurred while executing this line:
D:\Users\Acer\workspace\p2composite.example.site\bintray.ant:96: The following error occurred while executing this line:
D:\Users\Acer\workspace\p2composite.example.site\bintray.ant:103: Execute failed: java.io.IOException: Cannot run program "curl" (in directory "D:\Users\Acer\workspace\p2composite.example.site"): CreateProcess error=2, The system cannot find the file specified
around Ant part ...<ant antfile="D:\Users\Acer\workspace\p2composite.example.site/bintray.ant" target="push-to-bintray"></ant>... @ 4:104 in D:\Users\Acer\workspace\p2composite.example.site\target\antrun\build-main.xml
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:216)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:862)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:286)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:197)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.maven.plugin.MojoExecutionException: An Ant BuildException has occured: The following error occurred while executing this line:
D:\Users\Acer\workspace\p2composite.example.site\bintray.ant:96: The following error occurred while executing this line:
D:\Users\Acer\workspace\p2composite.example.site\bintray.ant:103: Execute failed: java.io.IOException: Cannot run program "curl" (in directory "D:\Users\Acer\workspace\p2composite.example.site"): CreateProcess error=2, The system cannot find the file specified
around Ant part ...<ant antfile="D:\Users\Acer\workspace\p2composite.example.site/bintray.ant" target="push-to-bintray"></ant>... @ 4:104 in D:\Users\Acer\workspace\p2composite.example.site\target\antrun\build-main.xml
at org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:355)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
... 20 more
Caused by: D:\Users\Acer\workspace\p2composite.example.site\target\antrun\build-main.xml:4: The following error occurred while executing this line:
D:\Users\Acer\workspace\p2composite.example.site\bintray.ant:96: The following error occurred while executing this line:
D:\Users\Acer\workspace\p2composite.example.site\bintray.ant:103: Execute failed: java.io.IOException: Cannot run program "curl" (in directory "D:\Users\Acer\workspace\p2composite.example.site"): CreateProcess error=2, The system cannot find the file specified
at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:551)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:444)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor15.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:390)
at org.apache.tools.ant.Target.performTasks(Target.java:411)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
at org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:327)
... 22 more
Caused by: D:\Users\Acer\workspace\p2composite.example.site\bintray.ant:96: The following error occurred while executing this line:
D:\Users\Acer\workspace\p2composite.example.site\bintray.ant:103: Execute failed: java.io.IOException: Cannot run program "curl" (in directory "D:\Users\Acer\workspace\p2composite.example.site"): CreateProcess error=2, The system cannot find the file specified
at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:551)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:444)
at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor15.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:390)
at org.apache.tools.ant.Target.performTasks(Target.java:411)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
... 33 more
Caused by: D:\Users\Acer\workspace\p2composite.example.site\bintray.ant:103: Execute failed: java.io.IOException: Cannot run program "curl" (in directory "D:\Users\Acer\workspace\p2composite.example.site"): CreateProcess error=2, The system cannot find the file specified
at org.apache.tools.ant.taskdefs.ExecuteOn.runExec(ExecuteOn.java:491)
at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:498)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor15.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:390)
at org.apache.tools.ant.Target.performTasks(Target.java:411)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
... 46 more
Caused by: java.io.IOException: Cannot run program "curl" (in directory "D:\Users\Acer\workspace\p2composite.example.site"): CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessBuilder.start(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Execute.java:862)
at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:481)
at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:495)
at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:631)
at org.apache.tools.ant.taskdefs.ExecuteOn.runExec(ExecuteOn.java:410)
... 59 more
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
... 66 more
[ERROR]
[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/display/MAVEN/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :p2composite.example.site
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
Here is the the link to my bintray repository and package.
https://bintray.com/hanlikoay/upf-editor/upf-editor-package/view#
I did not do anything more except creating the repository and package in bintray.
I am not sure which part gone wrong? Please help
Thanks
Hanli
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05773 seconds