Skip to content
This repository has been archived by the owner on Sep 22, 2019. It is now read-only.

Exception when running buildProduct #13

Closed
chespinoza opened this issue Mar 7, 2018 · 5 comments
Closed

Exception when running buildProduct #13

chespinoza opened this issue Mar 7, 2018 · 5 comments

Comments

@chespinoza
Copy link

Hi, trying to build the server I'm getting an exception, please could you guide me to solve this?

/irma/irma_api_server # gradle --version

------------------------------------------------------------
Gradle 4.6
------------------------------------------------------------

Build time:   2018-02-28 13:36:36 UTC
Revision:     8fa6ce7945b640e6168488e4417f9bb96e4ab46c

Groovy:       2.4.12
Ant:          Apache Ant(TM) version 1.9.9 compiled on February 2 2017
JVM:          1.8.0_151 (Oracle Corporation 25.151-b12)
OS:           Linux 4.9.60-linuxkit-aufs amd64
/irma/irma_api_server # gradle buildProduct

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'irma_api_server'.
> Could not resolve all dependencies for configuration ':runtimeCopy'.
   > Could not find org.irmacard.api:irma_api_common:0.9.0.
     Searched in the following locations:
         file:/root/.m2/repository/org/irmacard/api/irma_api_common/0.9.0/irma_api_common-0.9.0.pom
         file:/root/.m2/repository/org/irmacard/api/irma_api_common/0.9.0/irma_api_common-0.9.0.jar
         https://credentials.github.io/repos/maven2/org/irmacard/api/irma_api_common/0.9.0/irma_api_common-0.9.0.pom
         https://credentials.github.io/repos/maven2/org/irmacard/api/irma_api_common/0.9.0/irma_api_common-0.9.0.jar
         https://repo.maven.apache.org/maven2/org/irmacard/api/irma_api_common/0.9.0/irma_api_common-0.9.0.pom
         https://repo.maven.apache.org/maven2/org/irmacard/api/irma_api_common/0.9.0/irma_api_common-0.9.0.jar
     Required by:
         project :
   > Could not find org.irmacard.api:irma_api_common:0.9.0.
     Searched in the following locations:
         file:/root/.m2/repository/org/irmacard/api/irma_api_common/0.9.0/irma_api_common-0.9.0.pom
         file:/root/.m2/repository/org/irmacard/api/irma_api_common/0.9.0/irma_api_common-0.9.0.jar
         https://credentials.github.io/repos/maven2/org/irmacard/api/irma_api_common/0.9.0/irma_api_common-0.9.0.pom
         https://credentials.github.io/repos/maven2/org/irmacard/api/irma_api_common/0.9.0/irma_api_common-0.9.0.jar
         https://repo.maven.apache.org/maven2/org/irmacard/api/irma_api_common/0.9.0/irma_api_common-0.9.0.pom
         https://repo.maven.apache.org/maven2/org/irmacard/api/irma_api_common/0.9.0/irma_api_common-0.9.0.jar
     Required by:
         project : > foundation.privacybydesign.common:irma_server_common:0.3.0

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 1s
@confiks
Copy link
Collaborator

confiks commented Mar 7, 2018

The master branch currently depends on an unreleased version of irma_api_common. Using version 1.3.1 should work, i.e. git checkout v1.3.1. Unfortunately, units tests are failing for that version, so gradle buildProduct will fail there (edit: actually not; I forgot to update the testing git submodule), and instead you could run the server with gradle appRun (after setting the correct irma_configuration path, see README).

That being said, a new release should be cut.

@chespinoza
Copy link
Author

Hi, ok I'll try that, thanks!

@confiks
Copy link
Collaborator

confiks commented Mar 7, 2018

I edited the above reply multiple times, so you might need to refresh the page.

@sietseringers
Copy link
Member

Apologies! I've released the missing version of irma_api_common, so everything should work normally again, including the unit tests.

@confiks confiks closed this as completed Mar 7, 2018
@chespinoza
Copy link
Author

Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants