ieugen / james-self-hosting-sandbox

A sample project to work on self hosting email server with Apache James
4 stars 1 forks source link

Use released artifacts only #10

Closed dleangen closed 4 years ago

dleangen commented 4 years ago

I just tried building, but got an error:

$ ./gradlew clean build
Starting a Gradle Daemon (subsequent builds will be faster)
> Task :james-cli:startScripts FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':james-cli:startScripts'.
> Could not resolve all files for configuration ':james-cli:runtimeClasspath'.
   > Could not find org.apache.james:james-server-cli:3.6.0-SNAPSHOT.
     Searched in the following locations:
       - file:/Users/dleangen/.m2/repository/org/apache/james/james-server-cli/3.6.0-SNAPSHOT/maven-metadata.xml
       - file:/Users/dleangen/.m2/repository/org/apache/james/james-server-cli/3.6.0-SNAPSHOT/james-server-cli-3.6.0-SNAPSHOT.pom
       - https://repository.apache.org/content/groups/public/org/apache/james/james-server-cli/3.6.0-SNAPSHOT/maven-metadata.xml
       - https://repository.apache.org/content/groups/public/org/apache/james/james-server-cli/3.6.0-SNAPSHOT/james-server-cli-3.6.0-SNAPSHOT.pom
       - https://repository.apache.org/content/groups/staging/org/apache/james/james-server-cli/3.6.0-SNAPSHOT/maven-metadata.xml
       - https://repository.apache.org/content/groups/staging/org/apache/james/james-server-cli/3.6.0-SNAPSHOT/james-server-cli-3.6.0-SNAPSHOT.pom
       - https://repository.apache.org/content/groups/snapshots/org/apache/james/james-server-cli/3.6.0-SNAPSHOT/maven-metadata.xml
       - https://repository.apache.org/content/groups/snapshots/org/apache/james/james-server-cli/3.6.0-SNAPSHOT/james-server-cli-3.6.0-SNAPSHOT.pom
       - https://repo.maven.apache.org/maven2/org/apache/james/james-server-cli/3.6.0-SNAPSHOT/maven-metadata.xml
       - https://repo.maven.apache.org/maven2/org/apache/james/james-server-cli/3.6.0-SNAPSHOT/james-server-cli-3.6.0-SNAPSHOT.pom
       - https://jcenter.bintray.com/org/apache/james/james-server-cli/3.6.0-SNAPSHOT/maven-metadata.xml
       - https://jcenter.bintray.com/org/apache/james/james-server-cli/3.6.0-SNAPSHOT/james-server-cli-3.6.0-SNAPSHOT.pom
     Required by:
         project :james-cli

* 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 31s

I think this is because the version uses a local snapshot, i.e. a snapshot that has not yet been released.

Shouldn't the sandbox use only released artifacts?

dleangen commented 4 years ago

Just an observation: when I changed the version back to 3.5.0-SNAPSHOT ./gradlew clean build works again.

chibenwa commented 4 years ago

We might need to run mvn deploy on 3.6.0-SNAPSHOT artifacts to make this work.

ieugen commented 4 years ago

Yes, I did mention it on gitter. I wanted to use some things merged in master to check them out. This is an experiment / sample repository and the code is free. I'm not committing to maintaining it. It's for show at the moment. Ii gives people an idea of "How can I do this with James" . Of course, you could make it more production ready. It is a good base to make a production ready instance.

dleangen commented 4 years ago

So you don't want comments or any help, is that what you're saying?

I am not able to work at the same pace as you because I have clients I need to take care of. I can only spend a few hours a day. I suspect that may be the same for most people.