Opened 5 years ago
Closed 5 years ago
#2169 closed defect (fixed)
petascope fails to build on Ubuntu 18.04
Reported by: | Dimitar Misev | Owned by: | Bang Pham Huu |
---|---|---|---|
Priority: | critical | Milestone: | 10.0 |
Component: | petascope | Version: | 9.8 |
Keywords: | Cc: | ||
Complexity: | Medium |
Description
[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:1.5.2.RELEASE:repackage (default) on project petascope-main: Execution default of goal org.springframework.boot:spring-boot-maven-plugin:1.5.2.RELEASE:repackage failed: Plugin org.springframework.boot:spring-boot-maven-plugin:1.5.2.RELEASE or one of its dependencies could not be resolved: Could not transfer artifact org.apache.maven.shared:maven-dependency-tree:jar:2.1 from/to central (https://repo.maven.apache.org/maven2): GET request of: org/apache/maven/shared/maven-dependency-tree/2.1/maven-dependency-tree-2.1.jar from central failed: Tag mismatch! -> [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/display/MAVEN/PluginResolutionException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn <goals> -rf :petascope-main ...... 313s to build custom target in petascope: /usr/bin/mvn -q -B package -f pom.xml -DbuildDir=/opt/rasdaman/source/build/applications/petascope/ -DgdalJavaVersion=2.2.1 -Dversion=9.8.0 applications/petascope/CMakeFiles/petascope.dir/build.make:57: recipe for target 'applications/petascope/CMakeFiles/petascope' failed CMakeFiles/Makefile2:1469: recipe for target 'applications/petascope/CMakeFiles/petascope.dir/all' failed Makefile:140: recipe for target 'all' failed
Change History (6)
comment:1 by , 5 years ago
comment:2 by , 5 years ago
Maybe you should follow the installation guide (step 1)?
http://doc.rasdaman.org/02_inst-guide.html#deb-packages
comment:3 by , 5 years ago
I think the problem from the Internet connection. I tested on Ubuntu 18.04 and it can build Petascope normally. You can consider closing the ticket.
/rasdaman/build/applications/petascope$ make ... custom target in petascope: /usr/bin/mvn -q -B package -f pom.xml -DbuildDir=/home/vagrant/rasdaman/build/applications/petascope/ -DgdalJavaVersion=2.2.1 -Dversion=9.8.0 [100%] Built target petascope
comment:5 by , 5 years ago
I still cannot reproduce the problem on Ubuntu 18.04, for example: build nightly package on a clean VM
Vagrant.configure(2) do |config| #config.vm.box = "ubuntu/bionic64" config.vm.box = "rasdaman/ubuntu1804" config.vm.box_check_update = true config.vm.synced_folder ".", "/vagrant", type: "rsync" config.vm.provider "virtualbox" do |vb| vb.memory = "5000" vb.cpus = 2 vb.customize [ "modifyvm", :id, "--uartmode1", "disconnected" ] end config.vm.provision "fix-no-tty", type: "shell" do |s| s.privileged = true s.inline = "sed -i '/tty/!s/mesg n/tty -s \\&\\& mesg n \\|\\| true/' /root/.profile" end config.vm.provision "disable-apt-periodic-updates", type: "shell" do |s| s.privileged = true s.inline = "echo 'APT::Periodic::Enable \"0\";' > /etc/apt/apt.conf.d/02periodic" end config.vm.provision "shell", inline: <<-SHELL # set the default locale for testing echo 'LANGUAGE="en_US.UTF-8"' >> /etc/default/locale echo 'LC_ALL="en_US.UTF-8"' >> /etc/default/locale SHELL end
Result is rasdaman can be built:
vagrant@ubuntu-bionic:~/rasdamaninstaller$ sudo ./pkg_build.sh nightly noupload pkg_build.sh: Checking OS... pkg_build.sh: Done, detected OS 'bionic'. Review the installation settings: Install path: /opt/rasdaman/ User: rasdaman Database: sqlite, /opt/rasdaman/data/ Repository: git://rasdaman.org/rasdaman.git Version: master Debug: False Install webapps: True Petascopedb url: jdbc:postgresql://localhost:5432/petascopedb Petascopedb user: petauser Deployment: external Webapps path: /var/lib/tomcat8/webapps Webapps logs: /var/log/tomcat8 Insert demos: True Run systemtest: False Generate package: True Profile path: profiles/package/install.toml Name: rasdaman Description: Rasdaman is the leading Array Database for flexible, scalable analytics of massive multi-dimensional array (raster) data, such as spatio-temporal datacubes. Version: 9.8.0 Iteration: 145 Vendor: rasdaman Licence: GPLv3 Category: devel Maintainer: Dimitar Misev <misev@rasdaman.com> URL: http://rasdaman.org Validating system... System was validated. Installing third party dependencies on Ubuntu 18.04... Installing packages: make libtool gawk autoconf automake bison flex git g++ unzip libpng-dev libjpeg-dev libboost-filesystem-dev libboost-thread-dev libboost-system-dev libtiff-dev libgdal-dev zlib1g-dev libffi-dev libboost-dev libnetcdf-dev libedit-dev libreadline-dev libsqlite3-dev libgrib2c-dev curl libdw-dev libssl1.0-dev libeccodes-dev openjdk-8-jdk maven ant libgdal-java cmake ccache ruby-dev ruby rsync python-pip python-setuptools latexmk texlive-latex-base texlive-fonts-recommended texlive-latex-extra doxygen Packages installed successfully. Installing pip packages ['sphinx', 'sphinx_rtd_theme']... Pip packages installed successfully. Checking user rasdaman.... rasdaman user does not exist. Creating... User 'rasdaman' created successfully. User rasdaman checked successfully. Creating directory structure... Directory structure created successfully. Downloading a supported version of cmake... Cmake installed in '/opt/rasdaman/third_party'... Setting up the PATH environment variable in '/etc/profile.d/rasdaman.sh'... The PATH environment variable was set up successfully. Third party dependencies installed. Retrieving rasdaman... Cloning rasdaman repository at /opt/rasdaman/source/. Rasdaman retrieved. Building rasdaman... Configuring rasdaman with cmake... Rasdaman was configured with params: ['', '-DUSE_JPEG=ON', '-DUSE_TIFF=ON', '-DCMAKE_BUILD_TYPE=Release', '-DUSE_GRIB=ON', u'-DFILE_DATA_DIR=/opt/rasdaman/data/', '-DUSE_PNG=ON', u'-DCMAKE_INSTALL_PREFIX=/opt/rasdaman/', '-DUSE_NETCDF=ON', '-DGDAL_JAVA_VERSION=2.2.1', '-DUSE_HDF4=ON']. Compiling rasdaman with make -j2 (this will take some time)... Rasdaman was compiled successfully. Installing rasdaman... Rasdaman installed successfully. Rasdaman built. Preparing rasdaman... Rasdaman prepared. Finalizing installation... Installation finalized. Testing rasdaman... TEST STATUS: SUCCESS Testing done. Packaging... Packaging rasdaman as deb package... Generated preinst script at '/tmp/rasdaman-packager/opt/rasdaman/share/rasdaman/installer/preinst.sh'. Generated postinst script at '/tmp/rasdaman-packager/opt/rasdaman/share/rasdaman/installer/postinst.sh'. Rasdaman packaged successfully at: /tmp/rasdaman-packager/package Packaging done. Rasdaman installation finished in 27.5m
comment:6 by , 5 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Not related to the problem, cannot install rasdaman from package in Ubuntu 18.04
after
Solution