first build of maven project with jenkins failed - maven

I am trying to start my first build on Jenkins, but it failed, since I am a beginner, even I got those console output, still don't know how to solve the problem, anyone can help me?jenkins version: 1.6.0.4 JDK: 1.8.0 maven:3.5.0
enter image description here

It is a bug opened with maven 3.5.0
https://issues.jenkins-ci.org/browse/JENKINS-43446
Downgrading the maven to any old stable version, i.e., 3.2.5 or 3.3.1, would make it work.

Related

Gradle conflicting with Idea

Up from 6.6.1 to 7.2 version of gradle ruined all the build.
My $JAVA_HOME, gradle version, java version:
My idea's settings:
Deleting .idea, restarting not helpful at all.
Also, running terminal from Idea shows error during gradle -version command:
Where should I start at, opinions?

Upgrade Maven Version in Windows

I want to upgrade to Maven latest version from 3.2.2v in windows. I know that there is a command as I used it before, but unable to recollect it now and haven't found in google even after an hour. So, can some one please help me with the command.
Thanks,
Likitha
Maven has no command to upgrade to Maven 3.X. You should download and extract new version.

Running Gradle on macbook

I have recently bought a macbook and tried to install Gradle with brew install gradle
When I do gradle -v I get my Gradle specifications with no problem, bit when I try to run a Gradle task on my project I got this error:
org.gradle.api.tasks.SourceSetOutput.getClassesDir()Ljava/io/File;
On windows I usually compile the project by doing ./gradlew task_name, but the ./gradlew isn't working here on Mac OS.
What Im I doing wrong?
SourceSetOutput.getClassesDir() was deprecated in Gradle 4 and removed in Gradle 5. It's now SourceSetOutput.getClassesDirs(). I'm guessing you are running a newer version of Gradle on the macbook than you were running on the Windows box. A simple fix is to downgrade the Gradle version.
If you want to actually fix your build to work with Gradle 5+ I suggest you run with --stacktrace on the command line to find out what's using the old API (ie if it's your Gradle script or one of your plugins).
Perhaps a fix is as simple as upgrading one or two of your plugins to a new version which supports Gradle 5+

Hudson Sonar error

I am using Hudson 3.1.0 version and sonar 3.7.4 version. SInce yesterday I am getting this weird error while doing sonar analysis:
This was working fine until yesterday. sonar-maven-plugin-3.3.0.603 version is used.Can somebody help here?
You are using a version of the SonaQube Scanner for Maven that is too recent (3.3.0.603). You should lock this version (in your POM) to an older version to make sure this keeps on working correctly.
As a side note, please consider upgrading to more recent software:
SonarQube 3.7.4 is 4 years old and no more supported (which means nobody will help you in case of trouble)
Hudson is kind-of dead - the best option for you is to move on Jenkins

Jack compilation stuck with AndroidStudio 2.3

I have upgraded my AndroidStudio today to latest stable version 2.3 (with gradle plugin 2.3.0 and gradle 3.3): now, I am not able to build my project which ran fine under AndroidStudio 2.2.3.
When I try, I am stuck at :app:transformJackWithJackForDebug as long as I don't kill my java platform process.
It is the same problem than this post I guess but on stable release.
Any help will be greatly appreciated :)
I killed many hours for the same issues after that i got link and its working fine at my end.
To use "Retrolambda" add few dependency.
dependency to your build.gradle file.
classpath 'me.tatarka:gradle-retrolambda:3.2.0'
Added dependency into app/build.gradle file.
apply plugin: 'me.tatarka.retrolambda'
Please clean your build and run. it will work fine.
For more detail please visit below link:
http://www.vogella.com/tutorials/Retrolambda/article.html
https://barta.me/lambda-expressions-in-android/
all the best.
With Android Studio 3.0 (plugin 3.0) they are recommending to disable the Jack compiler as its been deprecated.

Resources