Coder Social home page Coder Social logo

tycho-example's Introduction

Maven / Tycho build example Build Status

Demonstrates the usage of the Maven Tycho build system for Eclipse plug-ins, Eclipse RCP and OSGi based applications.

The following is demonstrated:

  • Pomless build for bundles, tests and features

  • P2 update sites

  • Product builds

  • Generate sources

  • Generate JavaDoc

  • Target definition build

tycho-example's People

Contributors

howlger avatar sdruskat avatar simonscholz avatar vogella avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tycho-example's Issues

Make the Java 11 requirement "official"?

first: Thanks for this working example! One thing: The example does not work with Java 8, main log lines:

!ENTRY org.eclipse.equinox.simpleconfigurator 4 0 2021-11-22 09:44:17.944
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: Could not resolve module: org.eclipse.equinox.simpleconfigurator [2]
  Unresolved requirement: Require-Capability: osgi.ee; filter:="(&(osgi.ee=JavaSE)(version=11))

So, would it be beneficial to raise the required execution environment in com.vogella.tycho.rcp to Java 11 as well?

Build on console doesn't work

I cloned the repo and started the build at the command line with
mvn clean verify

This is the error log.
[INFO] [INFO] --- tycho-compiler-plugin:1.3.0:compile (default-compile) @ com.vogella.tycho.rcp --- [INFO] Compiling 5 source files to /Users/saak/git/minova/vogella/bundles/com.vogella.tycho.rcp/target/classes [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] com.vogella.tycho.root 1.0.0-SNAPSHOT .............. SUCCESS [ 0.067 s] [INFO] com.vogella.tycho.bundles .......................... SUCCESS [ 0.006 s] [INFO] com.vogella.logging.config ......................... SUCCESS [ 2.127 s] [INFO] com.vogella.tycho.plugin1 .......................... SUCCESS [ 0.398 s] [INFO] com.vogella.tycho.rcp .............................. FAILURE [ 0.264 s] [INFO] com.vogella.tycho.p2.ui ............................ SKIPPED [INFO] com.vogella.tycho.features ......................... SKIPPED [INFO] com.vogella.tycho.feature .......................... SKIPPED [INFO] com.vogella.tycho.tests ............................ SKIPPED [INFO] com.vogella.tycho.plugin1.tests .................... SKIPPED [INFO] com.vogella.tycho.rcp.tests ........................ SKIPPED [INFO] com.vogella.tycho.releng ........................... SKIPPED [INFO] com.vogella.tycho.update ........................... SKIPPED [INFO] com.vogella.tycho.product .......................... SKIPPED [INFO] com.vogella.tycho.target 1.0.0-SNAPSHOT ............ SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 01:06 min [INFO] Finished at: 2019-04-17T13:16:00+02:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.eclipse.tycho:tycho-compiler-plugin:1.3.0:compile (default-compile) on project com.vogella.tycho.rcp: Compilation failure: Compilation failure: [ERROR] /Users/saak/git/minova/vogella/bundles/com.vogella.tycho.rcp/src/com/vogella/tycho/rcp/handlers/QuitHandler.java:[1] [ERROR] package com.vogella.tycho.rcp.handlers; [ERROR] ^ [ERROR] The type org.eclipse.swt.widgets.Shell cannot be resolved. It is indirectly referenced from required .class files [ERROR] /Users/saak/git/minova/vogella/bundles/com.vogella.tycho.rcp/src/com/vogella/tycho/rcp/handlers/QuitHandler.java:[6] [ERROR] import org.eclipse.swt.widgets.Shell; [ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Why isn't it possible for Maven to resolve org.eclipse.swt.SWT. In eclipse the product runs without any problem.

jenkins maven greater than 3.3.9 and code in subdirectory

Hello, thanks for the nice example. We tried to build it on our Jenkins Server. We have found two problems when building the project.
It does not build when source is checked out to a subdirectory and -f subdirectory/pom.xml is used. Maven Versions greater than 3.3.9 fail.

3.3.9 and code in "sub"

[Vogella] $ cmd.exe /C "c:\jenkins\tools\hudson.tasks.Maven_MavenInstallation\3.3.9\bin\mvn.cmd clean verify -V -B --file sub/pom.xml && exit %%ERRORLEVEL%%" Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T17:41:47+01:00) Maven home: c:\jenkins\tools\hudson.tasks.Maven_MavenInstallation\3.3.9 Java version: 1.8.0_202, vendor: Oracle Corporation Java home: c:\jenkins\tools\hudson.model.JDK\8\jre Default locale: en_US, platform encoding: Cp1252 OS name: "windows 7", version: "6.1", arch: "amd64", family: "dos" [INFO] Scanning for projects... [ERROR] [ERROR] Some problems were encountered while processing the POMs: [ERROR] Child module C:\jenkins\workspace\Vogella\sub\bundles\com.vogella.logging.config\pom.xml of C:\jenkins\workspace\Vogella\sub\bundles\pom.xml does not exist @ [ERROR] Child module C:\jenkins\workspace\Vogella\sub\bundles\com.vogella.tycho.plugin1\pom.xml of C:\jenkins\workspace\Vogella\sub\bundles\pom.xml does not exist @ [ERROR] Child module C:\jenkins\workspace\Vogella\sub\bundles\com.vogella.tycho.rcp\pom.xml of C:\jenkins\workspace\Vogella\sub\bundles\pom.xml does not exist @ [ERROR] Child module C:\jenkins\workspace\Vogella\sub\bundles\com.vogella.tycho.p2.ui\pom.xml of C:\jenkins\workspace\Vogella\sub\bundles\pom.xml does not exist @ [ERROR] Child module C:\jenkins\workspace\Vogella\sub\features\com.vogella.tycho.feature\pom.xml of C:\jenkins\workspace\Vogella\sub\features\pom.xml does not exist @ [ERROR] Child module C:\jenkins\workspace\Vogella\sub\tests\com.vogella.tycho.plugin1.tests\pom.xml of C:\jenkins\workspace\Vogella\sub\tests\pom.xml does not exist @ [ERROR] Child module C:\jenkins\workspace\Vogella\sub\tests\com.vogella.tycho.rcp.tests\pom.xml of C:\jenkins\workspace\Vogella\sub\tests\pom.xml does not exist @ @ [ERROR] The build could not read 3 projects -> [Help 1] [ERROR] [ERROR] The project com.vogella.tycho:com.vogella.tycho.bundles:1.0.0-SNAPSHOT (C:\jenkins\workspace\Vogella\sub\bundles\pom.xml) has 4 errors [ERROR] Child module C:\jenkins\workspace\Vogella\sub\bundles\com.vogella.logging.config\pom.xml of C:\jenkins\workspace\Vogella\sub\bundles\pom.xml does not exist [ERROR] Child module C:\jenkins\workspace\Vogella\sub\bundles\com.vogella.tycho.plugin1\pom.xml of C:\jenkins\workspace\Vogella\sub\bundles\pom.xml does not exist [ERROR] Child module C:\jenkins\workspace\Vogella\sub\bundles\com.vogella.tycho.rcp\pom.xml of C:\jenkins\workspace\Vogella\sub\bundles\pom.xml does not exist [ERROR] Child module C:\jenkins\workspace\Vogella\sub\bundles\com.vogella.tycho.p2.ui\pom.xml of C:\jenkins\workspace\Vogella\sub\bundles\pom.xml does not exist [ERROR] [ERROR] The project com.vogella.tycho:com.vogella.tycho.features:1.0.0-SNAPSHOT (C:\jenkins\workspace\Vogella\sub\features\pom.xml) has 1 error [ERROR] Child module C:\jenkins\workspace\Vogella\sub\features\com.vogella.tycho.feature\pom.xml of C:\jenkins\workspace\Vogella\sub\features\pom.xml does not exist [ERROR] [ERROR] The project com.vogella.tycho:com.vogella.tycho.tests:1.0.0-SNAPSHOT (C:\jenkins\workspace\Vogella\sub\tests\pom.xml) has 2 errors [ERROR] Child module C:\jenkins\workspace\Vogella\sub\tests\com.vogella.tycho.plugin1.tests\pom.xml of C:\jenkins\workspace\Vogella\sub\tests\pom.xml does not exist [ERROR] Child module C:\jenkins\workspace\Vogella\sub\tests\com.vogella.tycho.rcp.tests\pom.xml of C:\jenkins\workspace\Vogella\sub\tests\pom.xml does not exist [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/display/MAVEN/ProjectBuildingException Build step 'Invoke top-level Maven targets' marked build as failure Finished: FAILURE

3.6.0 and code root

`[Vogella] $ cmd.exe /C "c:\jenkins\tools\hudson.tasks.Maven_MavenInstallation\3.6.0\bin\mvn.cmd clean verify -V -B && exit %%ERRORLEVEL%%"
Apache Maven 3.6.0 (97c98ec64a1fdfee7767ce5ffb20918da4f719f3; 2018-10-24T20:41:47+02:00)
Maven home: c:\jenkins\tools\hudson.tasks.Maven_MavenInstallation\3.6.0\bin..
Java version: 1.8.0_202, vendor: Oracle Corporation, runtime: c:\jenkins\tools\hudson.model.JDK\8\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"
[INFO] Scanning for projects...
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-resolvable parent POM for com.vogella.tycho:com.vogella.tycho.root:1.0.0-SNAPSHOT: Could not find artifact com.vogella.tycho:com.vogella.tycho.configuration:pom:1.0.0-SNAPSHOT and 'parent.relativePath' points at wrong local POM @ com.vogella.tycho:com.vogella.tycho.root:1.0.0-SNAPSHOT, C:\jenkins\workspace\Vogella\pom.xml, line 7, column 10
[FATAL] Non-resolvable parent POM for com.vogella.tycho:com.vogella.tycho.root:1.0.0-SNAPSHOT: Could not find artifact com.vogella.tycho:com.vogella.tycho.configuration:pom:1.0.0-SNAPSHOT and 'parent.relativePath' points at wrong local POM @ com.vogella.tycho:com.vogella.tycho.root:1.0.0-SNAPSHOT, C:\jenkins\workspace\Vogella\pom.xml, line 7, column 10
[FATAL] Non-resolvable parent POM for com.vogella.tycho:com.vogella.tycho.root:1.0.0-SNAPSHOT: Could not find artifact com.vogella.tycho:com.vogella.tycho.configuration:pom:1.0.0-SNAPSHOT and 'parent.relativePath' points at wrong local POM @ com.vogella.tycho:com.vogella.tycho.root:1.0.0-SNAPSHOT, C:\jenkins\workspace\Vogella\pom.xml, line 7, column 10
[FATAL] Non-resolvable parent POM for com.vogella.tycho:com.vogella.tycho.root:1.0.0-SNAPSHOT: Could not find artifact com.vogella.tycho:com.vogella.tycho.configuration:pom:1.0.0-SNAPSHOT and 'parent.relativePath' points at wrong local POM @ com.vogella.tycho:com.vogella.tycho.root:1.0.0-SNAPSHOT, C:\jenkins\workspace\Vogella\pom.xml, line 7, column 10
@
[ERROR] The build could not read 4 projects -> [Help 1]
[ERROR]
[ERROR] The project com.vogella.tycho:com.vogella.tycho.bundles:1.0.0-SNAPSHOT (C:\jenkins\workspace\Vogella\bundles\pom.xml) has 1 error
[ERROR] Non-resolvable parent POM for com.vogella.tycho:com.vogella.tycho.root:1.0.0-SNAPSHOT: Could not find artifact com.vogella.tycho:com.vogella.tycho.configuration:pom:1.0.0-SNAPSHOT and 'parent.relativePath' points at wrong local POM @ com.vogella.tycho:com.vogella.tycho.root:1.0.0-SNAPSHOT, C:\jenkins\workspace\Vogella\pom.xml, line 7, column 10 -> [Help 2]
[ERROR]
[ERROR] The project com.vogella.tycho:com.vogella.tycho.features:1.0.0-SNAPSHOT (C:\jenkins\workspace\Vogella\features\pom.xml) has 1 error
[ERROR] Non-resolvable parent POM for com.vogella.tycho:com.vogella.tycho.root:1.0.0-SNAPSHOT: Could not find artifact com.vogella.tycho:com.vogella.tycho.configuration:pom:1.0.0-SNAPSHOT and 'parent.relativePath' points at wrong local POM @ com.vogella.tycho:com.vogella.tycho.root:1.0.0-SNAPSHOT, C:\jenkins\workspace\Vogella\pom.xml, line 7, column 10 -> [Help 2]
[ERROR]
[ERROR] The project com.vogella.tycho:com.vogella.tycho.tests:1.0.0-SNAPSHOT (C:\jenkins\workspace\Vogella\tests\pom.xml) has 1 error
[ERROR] Non-resolvable parent POM for com.vogella.tycho:com.vogella.tycho.root:1.0.0-SNAPSHOT: Could not find artifact com.vogella.tycho:com.vogella.tycho.configuration:pom:1.0.0-SNAPSHOT and 'parent.relativePath' points at wrong local POM @ com.vogella.tycho:com.vogella.tycho.root:1.0.0-SNAPSHOT, C:\jenkins\workspace\Vogella\pom.xml, line 7, column 10 -> [Help 2]
[ERROR]
[ERROR] The project com.vogella.tycho:com.vogella.tycho.releng:1.0.0-SNAPSHOT (C:\jenkins\workspace\Vogella\releng\pom.xml) has 1 error
[ERROR] Non-resolvable parent POM for com.vogella.tycho:com.vogella.tycho.root:1.0.0-SNAPSHOT: Could not find artifact com.vogella.tycho:com.vogella.tycho.configuration:pom:1.0.0-SNAPSHOT and 'parent.relativePath' points at wrong local POM @ com.vogella.tycho:com.vogella.tycho.root:1.0.0-SNAPSHOT, C:\jenkins\workspace\Vogella\pom.xml, line 7, column 10 -> [Help 2]
[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/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
Build step 'Invoke top-level Maven targets' marked build as failure

Finished: FAILURE`

Error with maven wrapped

Hello,
I'm a french developer, my name is Nathan and I try to test your project to reproduce your configuration for a project,
but when I tried to run commands with your wrapped maven I got this error:

"'#' is not recognized as an internal order or external, an executable program or a command file."

On Powershell and on my WSL configuration with Ubuntu, do you know why?

Windows 10 (Powershell V5.1.19041.3693) :
image
image

WSL2, Ubuntu :
image
image

2018-12 update site breaks the build

[ERROR] Cannot resolve project dependencies: [ERROR] Software being installed: com.vogella.tycho.feature.feature.group 1.0.0.qualifier [ERROR] Missing requirement: com.vogella.tycho.feature.feature.group 1.0.0.qualifier requires 'org.eclipse.equinox.p2.iu; ch.qos.logback.core [1.0.7,1.0.7]' but it could not be found [ERROR] [ERROR] See http://wiki.eclipse.org/Tycho/Dependency_Resolution_Troubleshooting for help.

To get to this point i needed to add Required Features to com.vogella.tycho.feature

mvn clean validate not working behind company proxy

Hi,

Running on Maven 3.5.2

I'm getting the exception below when running
mvn clean validate
on the root project. With Debug logging enabled, I can see the logs showing the maven plugin is picking up the proxy I have defined in my settings.xml but doesn't seem to be using it to access the P2 site.

[DEBUG] Clearing proxy settings in OSGi runtime
[DEBUG] Configuring proxy for protocol https: host=mycompanyproxyhost, port=8080, nonProxyHosts=
!ENTRY org.eclipse.core.net 1 0 2017-12-18 13:00:50.228
!MESSAGE System property https.proxyHost is not set but should be mycompanyproxyhost.

!ENTRY org.eclipse.core.net 1 0 2017-12-18 13:00:50.228
!MESSAGE System property https.proxyPort is not set but should be 8080.

!ENTRY org.eclipse.core.net 1 0 2017-12-18 13:00:50.231
!MESSAGE System property https.proxyHost is not set but should be mycompanyproxyhost.

!ENTRY org.eclipse.core.net 1 0 2017-12-18 13:00:50.231
!MESSAGE System property https.proxyPort is not set but should be 8080.

Since it was warning about the system property not being set, I also tried the following command:

mvn clean validate -Dhttps.proxyHost=mycompanyproxy -Dhttps.proxyPort=8080

but still get the same 'connection timed out' error. I've tried accessing the download site directly and it loads for me: http://download.eclipse.org/eclipse/updates/4.6/

I'm not sure if the error is related to it looking for http://download.eclipse.org/eclipse/updates/4.6/content.xml as that path doesn't exist but it may be a red herring
log.txt

Error message snippet below. Full log attached

[INFO] Computing target platform for MavenProject: com.vogella.tycho:com.vogella.logging.config:1.0.0-SNAPSHOT @ C:\Users\beirti.onunain\Downloads\tycho-example-master\bundles\com.vogella.logging.config\.polyglot.build.properties
[DEBUG] Using execution environment 'JavaSE-1.8' configured in Bundle-RequiredExecutionEnvironment (first entry)
[DEBUG] Adding target definition file "C:\Users\beirti.onunain\Downloads\tycho-example-master\releng\com.vogella.tycho.target\com.vogella.tycho.target.target"
[DEBUG] Resolving target definition content...

!ENTRY org.eclipse.equinox.p2.transport.ecf 2 0 2017-12-18 13:01:13.141
!MESSAGE Connection to http://download.eclipse.org/eclipse/updates/4.6/p2.index failed on Connection timed out: connect. Retry attempt 0 started
!STACK 0
java.net.ConnectException: Connection timed out: connect
	at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method)
	at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:85)
	at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
	at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
	at java.net.Socket.connect(Socket.java:589)
	at org.eclipse.ecf.internal.provider.filetransfer.httpclient4.ECFHttpClientProtocolSocketFactory.connectSocket(ECFHttpClientProtocolSocketFactory.java:86)
	at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:177)
	at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:144)
	at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:131)
	at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:611)
	at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:446)
	at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:863)
	at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
	at org.eclipse.ecf.provider.filetransfer.httpclient4.HttpClientRetrieveFileTransfer.performConnect(HttpClientRetrieveFileTransfer.java:1084)
	at org.eclipse.ecf.provider.filetransfer.httpclient4.HttpClientRetrieveFileTransfer.access$0(HttpClientRetrieveFileTransfer.java:1075)
	at org.eclipse.ecf.provider.filetransfer.httpclient4.HttpClientRetrieveFileTransfer$1.performFileTransfer(HttpClientRetrieveFileTransfer.java:1071)
	at org.eclipse.ecf.filetransfer.FileTransferJob.run(FileTransferJob.java:74)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
[INFO] Adding repository http://download.eclipse.org/eclipse/updates/4.6
[ERROR] Failed to resolve target definition C:\Users\beirti.onunain\Downloads\tycho-example-master\releng\com.vogella.tycho.target\com.vogella.tycho.target.target: Failed to load p2 metadata repository from location http://download.eclipse.org/eclipse/updates/4.6: Unable to connect to repository http://download.eclipse.org/eclipse/updates/4.6/content.xml: Connection timed out: connect -> [Help 1]
org.apache.maven.MavenExecutionException: Failed to resolve target definition C:\Users\beirti.onunain\Downloads\tycho-example-master\releng\com.vogella.tycho.target\com.vogella.tycho.target.target: Failed to load p2 metadata repository from location http://download.eclipse.org/eclipse/updates/4.6
    at org.eclipse.tycho.core.maven.TychoMavenLifecycleParticipant.afterProjectsRead (TychoMavenLifecycleParticipant.java:100)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:267)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:194)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:107)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:955)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:194)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:498)
    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.eclipse.tycho.core.shared.BuildFailureException: Failed to resolve target definition C:\Users\beirti.onunain\Downloads\tycho-example-master\releng\com.vogella.tycho.target\com.vogella.tycho.target.target: Failed to load p2 metadata repository from location http://download.eclipse.org/eclipse/updates/4.6
    at org.eclipse.tycho.p2.target.TargetDefinitionResolver.resolveContent (TargetDefinitionResolver.java:99)
    at org.eclipse.tycho.p2.target.TargetDefinitionResolverService.resolveFromArguments (TargetDefinitionResolverService.java:70)
    at org.eclipse.tycho.p2.target.TargetDefinitionResolverService.getTargetDefinitionContent (TargetDefinitionResolverService.java:60)
    at org.eclipse.tycho.p2.target.TargetPlatformFactoryImpl.resolveTargetDefinitions (TargetPlatformFactoryImpl.java:214)
    at org.eclipse.tycho.p2.target.TargetPlatformFactoryImpl.createTargetPlatform (TargetPlatformFactoryImpl.java:155)
    at org.eclipse.tycho.p2.target.TargetPlatformFactoryImpl.createTargetPlatform (TargetPlatformFactoryImpl.java:128)
    at org.eclipse.tycho.p2.target.TargetPlatformFactoryImpl.createTargetPlatform (TargetPlatformFactoryImpl.java:1)
    at org.eclipse.tycho.p2.manager.ReactorRepositoryManagerImpl.computePreliminaryTargetPlatform (ReactorRepositoryManagerImpl.java:84)
    at org.eclipse.tycho.p2.resolver.P2DependencyResolver.computePreliminaryTargetPlatform (P2DependencyResolver.java:223)
    at org.eclipse.tycho.core.resolver.DefaultTychoResolver.resolveProject (DefaultTychoResolver.java:109)
    at org.eclipse.tycho.core.maven.TychoMavenLifecycleParticipant.afterProjectsRead (TychoMavenLifecycleParticipant.java:95)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:267)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:194)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:107)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:955)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:194)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:498)
    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.eclipse.tycho.p2.target.facade.TargetDefinitionResolutionException: Failed to load p2 metadata repository from location http://download.eclipse.org/eclipse/updates/4.6
    at org.eclipse.tycho.p2.target.TargetDefinitionResolver$LoadedIULocation.loadRepository (TargetDefinitionResolver.java:290)
    at org.eclipse.tycho.p2.target.TargetDefinitionResolver$LoadedIULocation.<init> (TargetDefinitionResolver.java:282)
    at org.eclipse.tycho.p2.target.TargetDefinitionResolver$ResolverRun.addLocation (TargetDefinitionResolver.java:154)
    at org.eclipse.tycho.p2.target.TargetDefinitionResolver.resolveContentWithExceptions (TargetDefinitionResolver.java:121)
    at org.eclipse.tycho.p2.target.TargetDefinitionResolver.resolveContent (TargetDefinitionResolver.java:94)
    at org.eclipse.tycho.p2.target.TargetDefinitionResolverService.resolveFromArguments (TargetDefinitionResolverService.java:70)
    at org.eclipse.tycho.p2.target.TargetDefinitionResolverService.getTargetDefinitionContent (TargetDefinitionResolverService.java:60)
    at org.eclipse.tycho.p2.target.TargetPlatformFactoryImpl.resolveTargetDefinitions (TargetPlatformFactoryImpl.java:214)
    at org.eclipse.tycho.p2.target.TargetPlatformFactoryImpl.createTargetPlatform (TargetPlatformFactoryImpl.java:155)
    at org.eclipse.tycho.p2.target.TargetPlatformFactoryImpl.createTargetPlatform (TargetPlatformFactoryImpl.java:128)
    at org.eclipse.tycho.p2.target.TargetPlatformFactoryImpl.createTargetPlatform (TargetPlatformFactoryImpl.java:1)
    at org.eclipse.tycho.p2.manager.ReactorRepositoryManagerImpl.computePreliminaryTargetPlatform (ReactorRepositoryManagerImpl.java:84)
    at org.eclipse.tycho.p2.resolver.P2DependencyResolver.computePreliminaryTargetPlatform (P2DependencyResolver.java:223)
    at org.eclipse.tycho.core.resolver.DefaultTychoResolver.resolveProject (DefaultTychoResolver.java:109)
    at org.eclipse.tycho.core.maven.TychoMavenLifecycleParticipant.afterProjectsRead (TychoMavenLifecycleParticipant.java:95)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:267)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:194)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:107)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:955)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:194)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:498)
    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.eclipse.equinox.p2.core.ProvisionException: Unable to connect to repository http://download.eclipse.org/eclipse/updates/4.6/content.xml
    at org.eclipse.equinox.internal.p2.repository.CacheManager.createCache (CacheManager.java:243)
    at org.eclipse.tycho.p2.remote.RemoteRepositoryCacheManager.createCache (RemoteRepositoryCacheManager.java:67)
    at org.eclipse.equinox.internal.p2.metadata.repository.SimpleMetadataRepositoryFactory.getLocalFile (SimpleMetadataRepositoryFactory.java:66)
    at org.eclipse.equinox.internal.p2.metadata.repository.SimpleMetadataRepositoryFactory.load (SimpleMetadataRepositoryFactory.java:88)
    at org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager.factoryLoad (MetadataRepositoryManager.java:57)
    at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.loadRepository (AbstractRepositoryManager.java:768)
    at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.loadRepository (AbstractRepositoryManager.java:668)
    at org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager.loadRepository (MetadataRepositoryManager.java:96)
    at org.eclipse.tycho.p2.remote.RemoteMetadataRepositoryManager.loadRepository (RemoteMetadataRepositoryManager.java:61)
    at org.eclipse.tycho.p2.remote.RemoteMetadataRepositoryManager.loadRepository (RemoteMetadataRepositoryManager.java:53)
    at org.eclipse.tycho.p2.target.TargetDefinitionResolver$LoadedIULocation.loadRepository (TargetDefinitionResolver.java:288)
    at org.eclipse.tycho.p2.target.TargetDefinitionResolver$LoadedIULocation.<init> (TargetDefinitionResolver.java:282)
    at org.eclipse.tycho.p2.target.TargetDefinitionResolver$ResolverRun.addLocation (TargetDefinitionResolver.java:154)
    at org.eclipse.tycho.p2.target.TargetDefinitionResolver.resolveContentWithExceptions (TargetDefinitionResolver.java:121)
    at org.eclipse.tycho.p2.target.TargetDefinitionResolver.resolveContent (TargetDefinitionResolver.java:94)
    at org.eclipse.tycho.p2.target.TargetDefinitionResolverService.resolveFromArguments (TargetDefinitionResolverService.java:70)
    at org.eclipse.tycho.p2.target.TargetDefinitionResolverService.getTargetDefinitionContent (TargetDefinitionResolverService.java:60)
    at org.eclipse.tycho.p2.target.TargetPlatformFactoryImpl.resolveTargetDefinitions (TargetPlatformFactoryImpl.java:214)
    at org.eclipse.tycho.p2.target.TargetPlatformFactoryImpl.createTargetPlatform (TargetPlatformFactoryImpl.java:155)
    at org.eclipse.tycho.p2.target.TargetPlatformFactoryImpl.createTargetPlatform (TargetPlatformFactoryImpl.java:128)
    at org.eclipse.tycho.p2.target.TargetPlatformFactoryImpl.createTargetPlatform (TargetPlatformFactoryImpl.java:1)
    at org.eclipse.tycho.p2.manager.ReactorRepositoryManagerImpl.computePreliminaryTargetPlatform (ReactorRepositoryManagerImpl.java:84)
    at org.eclipse.tycho.p2.resolver.P2DependencyResolver.computePreliminaryTargetPlatform (P2DependencyResolver.java:223)
    at org.eclipse.tycho.core.resolver.DefaultTychoResolver.resolveProject (DefaultTychoResolver.java:109)
    at org.eclipse.tycho.core.maven.TychoMavenLifecycleParticipant.afterProjectsRead (TychoMavenLifecycleParticipant.java:95)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:267)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:194)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:107)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:955)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:194)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:498)
    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: java.net.ConnectException: Connection timed out: connect
    at java.net.DualStackPlainSocketImpl.waitForConnect (Native Method)
    at java.net.DualStackPlainSocketImpl.socketConnect (DualStackPlainSocketImpl.java:85)
    at java.net.AbstractPlainSocketImpl.doConnect (AbstractPlainSocketImpl.java:350)
    at java.net.AbstractPlainSocketImpl.connectToAddress (AbstractPlainSocketImpl.java:206)
    at java.net.AbstractPlainSocketImpl.connect (AbstractPlainSocketImpl.java:188)
    at java.net.PlainSocketImpl.connect (PlainSocketImpl.java:172)
    at java.net.SocksSocketImpl.connect (SocksSocketImpl.java:392)
    at java.net.Socket.connect (Socket.java:589)
    at org.apache.http.conn.scheme.PlainSocketFactory.connectSocket (PlainSocketFactory.java:117)
    at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection (DefaultClientConnectionOperator.java:177)
    at org.apache.http.impl.conn.ManagedClientConnectionImpl.open (ManagedClientConnectionImpl.java:304)
    at org.apache.http.impl.client.DefaultRequestDirector.tryConnect (DefaultRequestDirector.java:611)
    at org.apache.http.impl.client.DefaultRequestDirector.execute (DefaultRequestDirector.java:446)
    at org.apache.http.impl.client.AbstractHttpClient.doExecute (AbstractHttpClient.java:863)
    at org.apache.http.impl.client.CloseableHttpClient.execute (CloseableHttpClient.java:82)
    at org.eclipse.ecf.provider.filetransfer.httpclient4.HttpClientFileSystemBrowser.runRequest (HttpClientFileSystemBrowser.java:263)
    at org.eclipse.ecf.provider.filetransfer.browse.AbstractFileSystemBrowser$DirectoryJob.run (AbstractFileSystemBrowser.java:69)
    at org.eclipse.core.internal.jobs.Worker.run (Worker.java:55)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.