IFS-HSR / SConsolidator

An Eclipse plug-in for the build system SCons (scons.org).
24 stars 10 forks source link

Unable to install offline #45

Closed hayleybergman closed 7 years ago

hayleybergman commented 7 years ago

I am using Eclipse CDT 4.6.3 on an offline Linux machine, and need to install SConsolidator. I've downloaded the archive from here.

In Eclipse, I go to help > install new software, and have tried to add SConsolidator both as an archive with the zip folder, and local with the folder unzipped. In both cases, I get the error "could not find file". I've tried storing the zip file both in the workspace and out.

How can I install SConsolidator for Eclipse offline?

Stautob commented 7 years ago

Hi, the steps I would propose are these:

  1. On the computer you used to download the repository: Use the terminal and change to the directory in which the cloned repository (or the unpacked archive) lays.
  2. Execute mvn install - This should have produced a subdirectory ./ch.hsr.ifs.sconsolidator.updates/target/. (To do this, maven needs an Internet connection)
  3. In this directory you should find a zip file named something like "ch.hsr.ifs.sconsolidator.updates-1.0.0-SNAPSHOT.zip"
  4. Move this zip archive to the offline Linux computer (i.e. via USB-Stick)
  5. Open Eclipse on target computer and do "Install new Software" -> "Add" -> "Archive..." -> Pick said zip file.

Hope that helped

hayleybergman commented 7 years ago

Hi, Thanks for you help! I've tried what you've suggested, but run into errors when running mvn install. Here's the error output, do you have any ideas on this?

`<Picked up _JAVA_OPTIONS: -Djava.net.preferIPv4Stack=true

[INFO] Scanning for projects... Downloading: https://repo.maven.apache.org/maven2/org/eclipse/tycho/tycho-maven-plugin/0.25.0/tycho-maven-plugin-0.25.0.pom [ERROR] [ERROR] Some problems were encountered while processing the POMs: [ERROR] Unresolveable build extension: Plugin org.eclipse.tycho:tycho-maven-plugin:0.25.0 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.eclipse.tycho:tycho-maven-plugin:jar:0.25.0 @ @ [ERROR] The build could not read 1 project -> [Help 1] [ERROR] [ERROR] The project ch.hsr.ifs.sconsolidator:parent:1.0.0-SNAPSHOT (S:\data\hayleybe\temp-files\scons-install\SConsolidator-master\pom.xml) has 1 error [ERROR] Unresolveable build extension: Plugin org.eclipse.tycho:tycho-maven-plugin:0.25.0 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.eclipse.tycho:tycho-maven-plugin:jar:0.25.0: Could not transfer artifact org.eclipse.tycho:tycho-maven-plugin:pom:0.25.0 from/to central (https://repo.maven.apache.org/maven2): Connection reset -> [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/PluginManagerException>`

tcorbat commented 7 years ago

I've adapted our build to create a zip file from the update-site and publish it along the online repository.

Could you try installing SConsolidator from this zip? Zipped update site

This should work with the steps you've described above in the opening post. Otherwise, please let us know.

hayleybergman commented 7 years ago

This worked for me, thank you!