I'm getting error of cannot find snapshot for id while building the project.
on running the command ./gradlew build --info I received the information saying that PROJECT_FOLDER/build/libs/projectName.jar has been removed.
I tried to look for the same, but its generating the jar at said location.
It was running fine till yesterday all of a sudden started facing this issue.
Now, I have no clue how should I go ahead finding the root cause.
Any suggestion would be really appreciated.
I'm using gradle 4.2.1 for building the project
Could you please try to remove .gradle directory from your project and build your gradle again
Related
I'm new to Corda, so am following the "Getting started developing CorDapps".
On my MacBook Pro, I have:
- installed the JDK, IntelliJ Community edition and Git,
- have downloaded the sample project (using git clone) by following Step One)
- created an IntelliJ project (by following Step Two)
but, when following instructions for Deploy the CorDapp locally (using ./gradlew clean deployNodes), I get the following errors:
Task :contracts-java:compileJava FAILED
/Users/samples/cordapp-example/contracts-java/src/main/java/com/example/state/IOUState.java:5: error: package com.google.common.collect does not exist
import com.google.common.collect.ImmutableList;
^
... and another 3 similar.
I've searched google, gradle and IntelliJ forums, but cannot find anyhting that helps resolve my issue.
Can someone point me in the right direction please?
Thanks a lot!
As recommended here, Open IOUState.java and:
Remove this import: import com.google.common.collect.ImmutableList;
Modify ImmutableList.of(new IOUSchemaV1()) to Arrays.asList(new IOUSchemaV1())
The recent 4.4 upgrades have removed the ImmutableList from the dependencies. You could change the ImmutableList.of to Arrays.asList or Collections.singletonList as a workaround.
Thanks for raising this, we will fix it ASAP.
I checked out newly created Spring boot project from the Git. it is a Gradle project.
Im using Intellij Idea as my editor. after open the project i hit gradle build on the terminal. So it gives build Fails
What went wrong:
Task 'build' not found in root project 'genie-voucher-module'.
What I have tried so far:
Run gradle tasks to get a list of available tasks.
Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get.
How to fix this?
This happens because of importing wrong project module.so that IDE cannot identify the place where necessary files located to build the project. please check it and upload the correct one.
The problem:
Bamboo executes old unit tests that don't exist my current develop branch which causes a build error.
The situation that causes this problem:
After a big refactoring process of my maven java project, where I basically moved, modified and renamed every file, I committed my changes to my remote repository.
That triggered my bamboo build plan, to start the build process.
The git code checkout seems to work, but the next step, running the unit tests, fails!
Looking in the log file I see that an old, no more existing java Unit test class gets executed and of course fails because of NullPointerExceptions.
Things I tried to fix this problem
A. Remove caches in the Administration section
I went to Bamboo->Administration->Repository Settings and selected
the cache of my project and deleted it.
I started the build plan again
BUILD ERROR ! Same problem
B. Delete the cache directory in the file system
Start a RDP session on the bamboo server
stop bamboo
go to D:\bamboo-home_64\xml-data\build-dir_git-repositories-cache
delete all files in this folder
start bamboo
start the build plan again
BUILD ERROR! same problem
Meta info
bamboo version: 6.1.0 build 60103 - 18 Jul 17
I don't know what I can do to fix this..
There's Clean working directory task. Add it as first task to your Job and see if it solves the issue.
Every time I execute a gradle command on Mac I get a message saying:
"This build could be faster, please consider using the Gradle Daemon: https://docs.gradle.org/2.10/userguide/gradle_daemon.html"
I've created a gradle.properties file with the line org.gradle.daemon=true as mentioned in the web page given in the message. However no matter what I do, I still continue to get that message.
If I execute the command
gradle --daemon
then it executes successfully, but still next time I do something I get that message about it could be faster and builds are just as slow as before I started the daemon.
My installation directory is no /Users/username as in gradle_daemon.html as I'm falling a Udacity course (https://www.udacity.com/course/viewer#!/c-ud867/) and they recommend installing it to /usr/local/gradle
How can I actually get the gradle dameon to work and get rid of that could be faster message?
(Using Gradle version 2.10)
just put
org.gradle.daemon=true
in the ~/.gradle/gradle.properties file. Then each build on your machine will use the gradle wrapper and the message dissapears.
The page doesn't say anywhere that gradle must be installed in /Users/username. It says that this directory is your home directory, and that's where the .gradle/gradle.properties file must be located. The place where gradle is installed is irrelevant.
I am unable to debug remote applications due to: No executable code at line
I am running ultimate edition of Intellij, version 14.0.3. My application is running inside tomcat 8 and i'm building it from the command line using Maven. This problem appeared after i switched from the community edition to the ultimate edition.
Project sources are the same and I am able to connect to tomcat for remote debugging. The only issue is that all my breakpoints are invalidated.
Please advice on how to fix this issue.
Cheers.
Remove all IDEA related project files and open the project by the .pom file.
I've had the same problem. Simply compile the directory that the class resides, and the debugger will pick up the break point.
I had the same problem and I implemented a similar solution.
Remove all IDEA related project files and open the project by the .pom file.
I use Gradle for my projecto, so i removed the project from intellij and then reimported it.
I hope others could read it and helps them
if you are developing an Atlassian plug-in and connected to the server via remote debug, run atlas-package to sync deployed plug-in and your source code.
If you are running a maven project execute the following commands in cmd prompt.
mvn clean install
mvn compile
This will resolve the problem.
The solution that worked for me is much more embarrassing. I put the breakpoint on the wrong line.
You see two breakpoints, first one is working and the second one is complaining about "no executable code ...".
It turns out there really is no executable code, just a string.