typelead/etlas

maven-repos option didn't work on redhat 7

clojurians-org opened this issue · 4 comments

i configure the maven-repos for my nexus server url, but it didn't work.

i read the following related code for [frameworks] section, it seems it just work on OS X?
https://github.com/typelead/etlas/blob/master/etlas-cabal/Distribution/Types/BuildInfo.hs

Can you share the output of etlas build -v3?

[op@my-200 eta-first]$ cat eta-first.cabal
-- Initial eta-first.cabal generated by etlas init.  For further
-- documentation, see http://eta-lang.org/docs/

name:                eta-first
version:             0.1.0.0
-- synopsis:
-- description:
license:             BSD3
license-file:        LICENSE
author:              clojurians-org
maintainer:          larluo@clojurians.org
-- copyright:
-- category:
build-type:          Simple
extra-source-files:  ChangeLog.md
cabal-version:       >=1.10

executable eta-first
  main-is:             Main.hs
  -- other-modules:
  -- other-extensions:
  build-depends:       base >=4.11 && <4.12
  hs-source-dirs:      src
  default-language:    Haskell2010
  maven-repos: http://10.132.37.56:8081/repository/aliyun/
  maven-depends: org.apache.kafka:kafka-streams:2.1.0
[op@my-200 eta-first]$ etlas build -v3
File monitor 'config' unchanged.
File monitor 'improved-plan' unchanged.
PreExisting base-4.11.1.0 (base-4.11.1.0-9g5RhDO8RwrLhMSXPi8Eih)
  rts-0.1.0.0-5Dj4qf1Wx9cCeYbpni5T1w
  ghc-prim-0.4.0.0-Jhi6UgHuZdoBZWUpVo3WKE
  integer-0.5.1.0-ACyqTmAMUMGGvisLFeQbAm
Configured eta-first-0.1.0.0 (eta-first-0.1.0.0-inplace-eta-first)
  base-4.11.1.0-9g5RhDO8RwrLhMSXPi8Eih
PreExisting ghc-prim-0.4.0.0 (ghc-prim-0.4.0.0-Jhi6UgHuZdoBZWUpVo3WKE)
  rts-0.1.0.0-5Dj4qf1Wx9cCeYbpni5T1w
PreExisting integer-0.5.1.0 (integer-0.5.1.0-ACyqTmAMUMGGvisLFeQbAm)
  ghc-prim-0.4.0.0-Jhi6UgHuZdoBZWUpVo3WKE
PreExisting rts-0.1.0.0 (rts-0.1.0.0-5Dj4qf1Wx9cCeYbpni5T1w)
In order, the following will be built:
 - eta-first-0.1.0.0-inplace-eta-first (exe:eta-first) (first run)
Executing install plan in parallel using 4 threads.
creating /home/op/my-work/eta-first/dist/build
creating /home/op/my-work/eta-first/dist/tmp
creating
/home/op/my-work/eta-first/dist/build/eta-0.8.6.4/eta-first-0.1.0.0/x/eta-first
creating
/home/op/my-work/eta-first/dist/build/eta-0.8.6.4/eta-first-0.1.0.0/x/eta-first/cache
Using self-exec internal setup method with build-type Simple and args:
["act-as-setup","--build-type=Simple","--","build","--verbose=3","--builddir=/home/op/my-work/eta-first/dist/build/eta-0.8.6.4/eta-first-0.1.0.0/x/eta-first"]
/usr/bin/etlas act-as-setup --build-type=Simple -- build --verbose=3
--builddir=/home/op/my-work/eta-first/dist/build/eta-0.8.6.4/eta-first-0.1.0.0/x/eta-first
Component build order: executable 'eta-first'
Environment: [("ETA_DIST_DIR","/home/op/my-work/eta-first/dist/build/eta-0.8.6.4/eta-first-0.1.0.0/x/eta-first"),("HISTCONTROL","ignoredups"),("HISTSIZE","1000"),("HOME","/home/op"),("HOSTNAME","my-200"),("LANG","en_US.UTF-8"),("LESSOPEN","||/usr/bin/lesspipe.sh %s"),("LOGNAME","op"),("LS_COLORS","rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=01;05;37;41:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=01;36:*.au=01;36:*.flac=01;36:*.mid=01;36:*.midi=01;36:*.mka=01;36:*.mp3=01;36:*.mpc=01;36:*.ogg=01;36:*.ra=01;36:*.wav=01;36:*.axa=01;36:*.oga=01;36:*.spx=01;36:*.xspf=01;36:"),("MAIL","/var/spool/mail/op"),("NIX_PATH","nixpkgs=/home/op/.nix-defexpr/channels/nixpkgs:nixpkgs=/home/op/.nix-defexpr/channels/nixpkgs"),("NIX_SSL_CERT_FILE","/etc/ssl/certs/ca-bundle.crt"),("OLDPWD","/home/op/my-work"),("PATH","/home/op/.nix-profile/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/op/.local/bin:/home/op/bin:/home/op/.etlas/bin:/home/op/.etlas/bin"),("PWD","/home/op/my-work/eta-first"),("SELINUX_LEVEL_REQUESTED",""),("SELINUX_ROLE_REQUESTED",""),("SELINUX_USE_CURRENT_RANGE",""),("SHELL","/bin/bash"),("SHLVL","1"),("SSH_CLIENT","10.132.44.135 65045 22"),("SSH_CONNECTION","10.132.44.135 65045 10.132.37.200 22"),("SSH_TTY","/dev/pts/3"),("TERM","xterm"),("USER","op"),("XDG_RUNTIME_DIR","/run/user/1000"),("XDG_SESSION_ID","3928"),("_","/usr/bin/etlas"),("http_proxy","http://localhost:8118"),("https_proxy","http://localhost:8118")]
/home/op/.etlas/binaries/cdnverify.eta-lang.org/eta-0.8.6.4/binaries/x86_64-linux/eta-pkg init /home/op/my-work/eta-first/dist/build/eta-0.8.6.4/eta-first-0.1.0.0/x/eta-first/package.conf.inplace -v2
Eta Package Manager Version 0.8.6.4
writing cache /home/op/my-work/eta-first/dist/build/eta-0.8.6.4/eta-first-0.1.0.0/x/eta-first/package.conf.inplace/package.cache
creating
/home/op/my-work/eta-first/dist/build/eta-0.8.6.4/eta-first-0.1.0.0/x/eta-first/build/eta-first
creating
/home/op/my-work/eta-first/dist/build/eta-0.8.6.4/eta-first-0.1.0.0/x/eta-first/build/eta-first/autogen
creating
/home/op/my-work/eta-first/dist/build/eta-0.8.6.4/eta-first-0.1.0.0/x/eta-first/build/eta-first/autogen
Preprocessing executable 'eta-first' for eta-first-0.1.0.0..
Building executable 'eta-first' for eta-first-0.1.0.0..
no user package environment file found at /home/op/my-work/eta-first
creating
/home/op/my-work/eta-first/dist/build/eta-0.8.6.4/eta-first-0.1.0.0/x/eta-first/build/eta-first/eta-first-tmp
/home/op/.nix-profile/bin/java -noverify -jar '-Djava.net.useSystemProxies=true' /home/op/.etlas/tools/coursier fetch -a jar --quiet 'org.apache.kafka:kafka-streams:2.1.0' -r 'http://10.132.37.56:8081/repository/aliyun/'
/home/op/.nix-profile/bin/java returned ExitFailure 255 with error message:
Error while downloading
https://repo1.maven.org/maven2/com/github/alexarchambault/case-app-annotations_2.11/1.1.2/case-app-annotations_2.11-1.1.2.jar:
repo1.maven.org, ignoring it
Error while downloading
https://repo1.maven.org/maven2/org/scalaz/scalaz-concurrent_2.11/7.2.7/scalaz-concurrent_2.11-7.2.7.jar:
repo1.maven.org, ignoring it
Error while downloading
https://repo1.maven.org/maven2/com/lihaoyi/fastparse-utils_2.11/0.4.2/fastparse-utils_2.11-0.4.2.jar:
repo1.maven.org, ignoring it
Error while downloading
https://repo1.maven.org/maven2/com/lihaoyi/fastparse_2.11/0.4.2/fastparse_2.11-0.4.2.jar:
repo1.maven.org, ignoring it
Error while downloading
https://repo1.maven.org/maven2/io/get-coursier/coursier-cli_2.11/1.0.0-M15/coursier-cli_2.11-1.0.0-M15.jar:
repo1.maven.org, ignoring it
Error while downloading
https://repo1.maven.org/maven2/org/jsoup/jsoup/1.9.2/jsoup-1.9.2.jar:
repo1.maven.org, ignoring it
Error while downloading
https://repo1.maven.org/maven2/org/scala-lang/scala-library/2.11.8/scala-library-2.11.8.jar:
repo1.maven.org, ignoring it
Error while downloading
https://repo1.maven.org/maven2/org/typelevel/macro-compat_2.11/1.1.1/macro-compat_2.11-1.1.1.jar:
repo1.maven.org, ignoring it
?callStack, called at ./Distribution/Compat/Stack.hs:45:13 in etlas_Ienb7LiyMbVI4n0ghMVWeH:Distribution.Compat.Stack
  callStack, called at ./Distribution/Simple/Utils.hs:591:44 in etlas_Ienb7LiyMbVI4n0ghMVWeH:Distribution.Simple.Utils
  withCallStackPrefix, called at ./Distribution/Simple/Utils.hs:628:7 in etlas_Ienb7LiyMbVI4n0ghMVWeH:Distribution.Simple.Utils
  withMetadata, called at ./Distribution/Simple/Utils.hs:353:15 in etlas_Ienb7LiyMbVI4n0ghMVWeH:Distribution.Simple.Utils
  die', called at ./Distribution/Simple/Program/Run.hs:178:7 in etlas_Ienb7LiyMbVI4n0ghMVWeH:Distribution.Simple.Program.Run
  getProgramInvocationOutput, called at ./Distribution/Simple/Eta.hs:763:3 in etlas_Ienb7LiyMbVI4n0ghMVWeH:Distribution.Simple.Eta
  runJava, called at ./Distribution/Simple/Eta.hs:791:3 in etlas_Ienb7LiyMbVI4n0ghMVWeH:Distribution.Simple.Eta
  runCoursier, called at ./Distribution/Simple/Eta.hs:833:16 in etlas_Ienb7LiyMbVI4n0ghMVWeH:Distribution.Simple.Eta
  fetchMavenDependencies, called at ./Distribution/Simple/Eta.hs:659:21 in etlas_Ienb7LiyMbVI4n0ghMVWeH:Distribution.Simple.Eta
  doWithResolvedDependencyClassPathsOrDie, called at ./Distribution/Simple/Eta.hs:308:21 in etlas_Ienb7LiyMbVI4n0ghMVWeH:Distribution.Simple.Eta

etlas: '/home/op/.nix-profile/bin/java' exited with an error:
Error while downloading
https://repo1.maven.org/maven2/com/github/alexarchambault/case-app-annotations_2.11/1.1.2/case-app-annotations_2.11-1.1.2.jar:
repo1.maven.org, ignoring it
Error while downloading
https://repo1.maven.org/maven2/org/scalaz/scalaz-concurrent_2.11/7.2.7/scalaz-concurrent_2.11-7.2.7.jar:
repo1.maven.org, ignoring it
Error while downloading
https://repo1.maven.org/maven2/com/lihaoyi/fastparse-utils_2.11/0.4.2/fastparse-utils_2.11-0.4.2.jar:
repo1.maven.org, ignoring it
Error while downloading
https://repo1.maven.org/maven2/com/lihaoyi/fastparse_2.11/0.4.2/fastparse_2.11-0.4.2.jar:
repo1.maven.org, ignoring it
Error while downloading
https://repo1.maven.org/maven2/io/get-coursier/coursier-cli_2.11/1.0.0-M15/coursier-cli_2.11-1.0.0-M15.jar:
repo1.maven.org, ignoring it
Error while downloading
https://repo1.maven.org/maven2/org/jsoup/jsoup/1.9.2/jsoup-1.9.2.jar:
repo1.maven.org, ignoring it
Error while downloading
https://repo1.maven.org/maven2/org/scala-lang/scala-library/2.11.8/scala-library-2.11.8.jar:
repo1.maven.org, ignoring it
Error while downloading
https://repo1.maven.org/maven2/org/typelevel/macro-compat_2.11/1.1.1/macro-compat_2.11-1.1.1.jar:
repo1.maven.org, ignoring it
packages definitely up to date:
packages previously probably up to date:
packages now probably up to date:
packages newly up to date:
packages out to date: eta-first-0.1.0.0-inplace-eta-first
packages invalid due to dep change: eta-first-0.1.0.0-inplace-eta-first
packages invalid due to build failure: eta-first-0.1.0.0-inplace-eta-first

it seems related to coursier jars dependency.
i can download related jar package by http proxy. but the coursier don't use http_proxy/https_proxy or maven-repos

[op@my-200 eta-first]$ echo $http_proxy
http://localhost:8118
[op@my-200 eta-first]$ echo $https_proxy
http://localhost:8118

[op@my-200 eta-first]$ wget -O .coursier/cache/v1/https/repo1.maven.org/maven2/io/get-coursier/coursier-cli_2.11/1.0.1/coursier-cli_2.11-1.0.1-standalone.jar https://repo1.maven.org/maven2/io/get-coursier/coursier-cli_2.11/1.0.1/coursier-cli_2.11-1.0.1-standalone.jar

--2019-01-28 10:05:54--  https://repo1.maven.org/maven2/io/get-coursier/coursier-cli_2.11/1.0.1/coursier-cli_2.11-1.0.1-standalone.jar
Resolving localhost (localhost)... ::1, 127.0.0.1
Connecting to localhost (localhost)|::1|:8118... failed: Connection refused.
Connecting to localhost (localhost)|127.0.0.1|:8118... connected.
Proxy request sent, awaiting response... 200 OK
Length: 3667519 (3.5M) [application/java-archive]
Saving to: '.coursier/cache/v1/https/repo1.maven.org/maven2/io/get-coursier/coursier-cli_2.11/1.0.1/coursier-cli_2.11-1.0.1-standalone.jar'

.coursier/cache/v1/https/repo1.maven.org/maven2/io/get 100%[===========================================================================================================================>]   3.50M   840KB/s    in 5.2s

2019-01-28 10:06:01 (689 KB/s) - '.coursier/cache/v1/https/repo1.maven.org/maven2/io/get-coursier/coursier-cli_2.11/1.0.1/coursier-cli_2.11-1.0.1-standalone.jar' saved [3667519/3667519]

i use proxychains to download all coursier dependency.
then the maven-repos work now.