Project

General

Profile

Actions

Bug #13881

closed

Build error on Centos: missing antlr version

Added by François ARMAND about 6 years ago. Updated about 6 years ago.

Status:
Rejected
Priority:
N/A
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
Fix check:
Regression:

Description

When trying to build Datasources (tag

The full output is here: https://gist.github.com/luc310/d7b65892c574a2f95d3e6705c3850ed6
Interesting part:

Failed to execute goal net.alchim31.maven:scala-maven-plugin:3.2.2:compile (scala-compile-first) on project datasources: 
Execution scala-compile-first of goal net.alchim31.maven:scala-maven-plugin:3.2.2:compile failed: For artifact {antlr:antlr:null:jar}: The version cannot be empty. -> [Help 1]

Reference: https://serverfault.com/questions/940731/rudder-plugin-compilation-error?noredirect=1

Actions #1

Updated by François ARMAND about 6 years ago

  • Description updated (diff)
Actions #2

Updated by François ARMAND about 6 years ago

I'm not able to reproduce the problem.

What I did:

- start a new fresh centos 7 VM
- install openjdk headless
- try to install maven, notice that packaging for java is still a mess, install it by hand:
- wget http://apache.mediamirrors.org/maven/maven-3/3.6.0/binaries/apache-maven-3.6.0-bin.tar.gz
- tar xzf apache-maven-3.6.0-bin.tar.gz
- export PATH="$PATH:/path/to/apache-maven-3.6.0/bin"
- git clone https://github.com/Normation/rudder-plugins.git
- cd rudder-plugins
- git checkout datasources-5.0-1.5
- make clean && make generate-all-pom && make datasources

The build finishes successfully:

... maven download the world several times...
... build build build....

ar r rudder-plugin-datasources-5.0-1.5.rpkg target/metadata target/files.txz target/scripts.txz
ar: creating rudder-plugin-datasources-5.0-1.5.rpkg
make[1]: Leaving directory `/home/vagrant/rudder-plugins/datasources
Actions #3

Updated by Benoît PECCATTE about 6 years ago

  • Status changed from New to Rejected

Fixed with above procedure

Actions

Also available in: Atom PDF