etf-validator / etf-webapp

:earth_africa: :mag: ETF is an open source testing framework for spatial data and services
https://www.etf-validator.net
European Union Public License 1.2
19 stars 19 forks source link

etf-sui-ae build error #168

Closed jlgarciasanchez closed 4 years ago

jlgarciasanchez commented 6 years ago

I'm trying to build etf-sui-ae using the gradle script, but I get the next error:

Could not resolve de.interactive_instruments:ii-commons-util:2.0.0-SNAPSHOT.
  Required by:
      project :etf-sui-mapper
   > Could not resolve de.interactive_instruments:ii-commons-util:2.0.0-SNAPSHOT.
      > Unable to load Maven meta-data from https://services.interactive-instruments.de/etfdev-af/snapshot/de/interactive_instruments/ii-commons-util/2.0.0-SNAPSHOT/maven-metadata.xml.
         > Could not GET 'https://services.interactive-instruments.de/etfdev-af/snapshot/de/interactive_instruments/ii-commons-util/2.0.0-SNAPSHOT/maven-metadata.xml'. Received status code 401 from server: Unauthorized
   > Could not resolve de.interactive_instruments:ii-commons-util:2.0.0-SNAPSHOT.
      > Unable to load Maven meta-data from http://services.interactive-instruments.de/etfdev-af/ext-releases-local/de/interactive_instruments/ii-commons-util/2.0.0-SNAPSHOT/maven-metadata.xml.
         > Could not GET 'http://services.interactive-instruments.de/etfdev-af/ext-releases-local/de/interactive_instruments/ii-commons-util/2.0.0-SNAPSHOT/maven-metadata.xml'. Received status code 403 from server: Forbidden
   > Could not resolve de.interactive_instruments:ii-commons-util:2.0.0-SNAPSHOT.
      > Unable to load Maven meta-data from http://services.interactive-instruments.de/etfdev-af/ext-cache/de/interactive_instruments/ii-commons-util/2.0.0-SNAPSHOT/maven-metadata.xml.
         > Could not GET 'http://services.interactive-instruments.de/etfdev-af/ext-cache/de/interactive_instruments/ii-commons-util/2.0.0-SNAPSHOT/maven-metadata.xml'. Received status code 403 from server: Forbidden
jonherrmann commented 6 years ago

Todo:

Temporary workaround:

Comment out, line 20 in build.gradle:

dependencies {
        // ant.unjar src: configurations.classpath.files.find {it.path.contains('etf')}, dest: 'build/gradle'
    }

Replace lines 101 and 102 in build/gradle/ii-bda.gradle :

ext.r_user = project.findProperty("ii.etfdev.repo.username") ?: 'etf-public-releases'
ext.r_pwd = project.findProperty("ii.etfdev.repo.password") ?: 'etf-public-releases'

with


ext.r_user = project.findProperty("ii.etfdev.repo.username") ?: 'etf-public-dev'
ext.r_pwd = project.findProperty("ii.etfdev.repo.password") ?: 'etf-public-dev'
jlgarciasanchez commented 6 years ago

With these changes we can build the jar. Thank you.

jonherrmann commented 6 years ago

You're welcome! I reopen the issue -otherwise I forget to fix it.

thijsbrentjens commented 5 years ago

Just a note that this also occurs when building the etf-stdtot (https://github.com/etf-validator/etf-stdtot) library standalone.

jonherrmann commented 4 years ago

The issue should be fixed.