Maybe consider removing "install" from the build command? -- Misagh
On Mon, Mar 29, 2021, 8:57 PM Christian Migowski < [email protected]> wrote: > Hello, > > I want to make a contribution to the CAS project and am trying to build > the server locally, unfortunately it seems I am too stupid to do so :( > I followed the instructions > https://apereo.github.io/cas/developer/Build-Process-6X.html which seem > pretty straight-forward. I have only used Maven so far and have never used > Gradle, so there is probably something very obvious missing in my local > setup, I would be very glad if someone could point me in the right > direction. > > First I tried to built it from the command line with the following error: > --- > /cygdrive/c/git/upstream/cas-server > $ ./gradlew build install --parallel -x test -x javadoc -x check > --build-cache --configure-on-demand > Configuration on demand is an incubating feature. > > FAILURE: Build failed with an exception. > > * Where: > Build file 'C:\git\upstream\cas-server\build.gradle' line: 150 > > * What went wrong: > A problem occurred evaluating root project 'cas-server'. > > Plugin with id 'maven' not found. > > * 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 3s > --- > > Next I tried to import the project to IntelliJ Idea (New -> Project frome > existing sources -> Build model Gradle) which brings me this: > --- > Unable to find method ''java.lang.String > org.gradle.api.artifacts.result.ComponentSelectionReason.getDescription()''. > Possible causes for this unexpected error include: > Gradle's dependency cache may be corrupt (this sometimes occurs after a > network connection timeout.) > Re-download dependencies and sync project (requires network) > > The state of a Gradle build process (daemon) may be corrupt. Stopping all > Gradle daemons may solve this problem. > Stop Gradle build processes (requires restart) > > Your project may be using a third-party plugin which is not compatible > with the other plugins in the project or the version of Gradle requested by > the project. > > In the case of corrupt Gradle processes, you can also try closing the IDE > and then killing all Java processes. > --- > > I stopped the gradle build daemon (using gradlew --stop) and deleted my > ~./.gradle/ directory multiple times - no luck :( > > Could someone of the experienced CAS developers point me in the right > direction what's wrong with my attempts? > > Thanks & best regards, > christian > > -- > You received this message because you are subscribed to the Google Groups > "CAS Developer" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/a/apereo.org/d/msgid/cas-dev/b1dded24-1a81-4d50-b811-e2acbf6fce91n%40apereo.org > <https://groups.google.com/a/apereo.org/d/msgid/cas-dev/b1dded24-1a81-4d50-b811-e2acbf6fce91n%40apereo.org?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "CAS Developer" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-dev/CAGSBKkfFN0GDbOg9fEARURPT6-P_t5Z6czZS8eQ-T7fEiOkxbw%40mail.gmail.com.
