soapui icon indicating copy to clipboard operation
soapui copied to clipboard

Maven project doesn't compile

Open frankydee opened this issue 7 years ago • 22 comments

I have just cloned the project, followed the instructions in README.md and mvn clean install fails with the following error:

[ERROR] Failed to execute goal on project soapui: Could not resolve dependencies for project com.smartbear.soapui:soapui:jar:5.5.0-SNAPSHOT: The following artifacts could not be resolved: com.smartbear.utils.analytics:analytics-core:jar:5.5.0-SNAPSHOT, com.smartbear.utils.analytics:out-app-analytics-provider:jar:5.5.0-SNAPSHOT: Failure to find com.smartbear.utils.analytics:analytics-core:jar:5.5.0-SNAPSHOT in http://www.soapui.org/repository/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of smartbear-sweden-repository has elapsed or updates are forced -> [Help 1]

Here is a copy of the full commands I executed:

Home@thinkpad MINGW64 /c/Users/home/code
$ git clone https://github.com/SmartBear/soapui.git
Cloning into 'soapui'...
remote: Enumerating objects: 683, done.
remote: Counting objects: 100% (683/683), done.
remote: Compressing objects: 100% (363/363), done.
Receiving objects: 100% (132727/132727), 93.58 MiB | 1.21 MiB/s, done.
remote: Total 132727 (delta 358), reused 506 (delta 242), pack-reused 132044
Resolving deltas: 100% (86074/86074), done.
Checking out files: 100% (3122/3122), done.

Home@thinkpad MINGW64 /c/Users/home/code
$ cd soapui/

Home@thinkpadMINGW64 /c/Users/home/code/soapui (next)
$ mvn clean install
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] SoapUI project
[INFO] SoapUI
[INFO] SoapUI Maven plugin
[INFO] SoapUI installer
[INFO] SoapUI Maven plugin tester
[INFO] SoapUI system test
[INFO] soapui-testserver-api
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building SoapUI project 5.5.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ soapui-project ---
[INFO] Deleting C:\Users\home\code\soapui (includes = [*.log], excludes = [])
[INFO]
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-versions) @ soapui-project ---
[INFO]
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-bytecode-version) @ soapui-project ---
[INFO]
[INFO] --- animal-sniffer-maven-plugin:1.15:check (animal-sniffer-check) @ soapui-project ---
[INFO] Checking unresolved references to org.codehaus.mojo.signature:java18:1.0
Downloading from smartbear-sweden-repository: http://www.soapui.org/repository/maven2/org/codehaus/mojo/signature/java18/1.0/java18-1.0.signature
Downloading from central: https://repo.maven.apache.org/maven2/org/codehaus/mojo/signature/java18/1.0/java18-1.0.signature
Downloaded from central: https://repo.maven.apache.org/maven2/org/codehaus/mojo/signature/java18/1.0/java18-1.0.signature (2.0 MB at 922 kB/s)
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) @ soapui-project ---
[INFO] Installing C:\Users\home\code\soapui\pom.xml to C:\Users\home\.m2\repository\com\smartbear\soapui\soapui-project\5.5.0-SNAPSHOT\soapui-project-5.5.0-SNAPSHOT.pom
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building SoapUI 5.5.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for com.smartbear.utils.analytics:analytics-core:jar:5.5.0-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for com.smartbear.utils.analytics:out-app-analytics-provider:jar:5.5.0-SNAPSHOT is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] SoapUI project ..................................... SUCCESS [  7.321 s]
[INFO] SoapUI ............................................. FAILURE [  1.564 s]
[INFO] SoapUI Maven plugin ................................ SKIPPED
[INFO] SoapUI installer ................................... SKIPPED
[INFO] SoapUI Maven plugin tester ......................... SKIPPED
[INFO] SoapUI system test ................................. SKIPPED
[INFO] soapui-testserver-api .............................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 9.213 s
[INFO] Finished at: 2019-02-03T15:51:50+01:00
[INFO] Final Memory: 15M/174M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project soapui: Could not resolve dependencies for project com.smartbear.soapui:soapui:jar:5.5.0-SNAPSHOT: The following artifacts could not be resolved: com.smartbear.utils.analytics:analytics-core:jar:5.5.0-SNAPSHOT, com.smartbear.utils.analytics:out-app-analytics-provider:jar:5.5.0-SNAPSHOT: Failure to find com.smartbear.utils.analytics:analytics-core:jar:5.5.0-SNAPSHOT in http://www.soapui.org/repository/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of smartbear-sweden-repository has elapsed or updates are forced -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :soapui
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=128m; support was removed in 8.0

My environment details:

OS: Windows 7 Java: java version "1.8.0_171" Java(TM) SE Runtime Environment (build 1.8.0_171-b11) Java HotSpot(TM) 64-Bit Server VM (build 25.171-b11, mixed mode)

frankydee avatar Feb 03 '19 14:02 frankydee

Hi, sorry for inconviniences, please use 5.4.0 for the mentioned artifacts atm, right after release we'll fix it on our end.

IlyaAvdeev avatar Feb 03 '19 16:02 IlyaAvdeev

Looks maven repo url might got changed as it could not find the analytics at the url mentioned in the current pom file

nmrao avatar Feb 08 '19 06:02 nmrao

Found this new maven repo url, give it a try http://smartbearsoftware.com/repository/maven2

nmrao avatar Feb 08 '19 07:02 nmrao

Thank you @IlyaAvdeev, branch remotes/origin/release-5.4.0 does compile. I'll use that in the meantime. Please leave this issue open until the next branch compiles.

@nmrao, thanks for the tip but that didn't work. The current pom.xml URL (http://www.soapui.org/repository/maven2) already redirects to http://smartbearsoftware.com/repository/maven2 so it made no difference.

frankydee avatar Feb 08 '19 07:02 frankydee

What error do you get? The same or new error?

nmrao avatar Feb 08 '19 08:02 nmrao

Same, analytics jars missing.

frankydee avatar Feb 08 '19 10:02 frankydee

If you look at the above maven repository, there is file available, analytics-core-5.5.0.jar, but the name does not have 'SNAPSHOT' in it which is what maven is looking for.

nmrao avatar Feb 08 '19 10:02 nmrao

Hang on, I'll deploy 5.4.0-SNAPSHOT

IlyaAvdeev avatar Feb 08 '19 11:02 IlyaAvdeev

I'll deploy 5.5.0-SNAPSHOT soon, but I advise to use release-5.5.0 branch, since it will be released soon and contains the latest bug fixes and features

IlyaAvdeev avatar Feb 08 '19 11:02 IlyaAvdeev

Should be fixed now for "next" branch, but I still suggest to focus on release-.5.5.0 branch :)

IlyaAvdeev avatar Feb 08 '19 13:02 IlyaAvdeev

FYI I just tried a rebuild, looks like I'm still unable to resolve the snapshot.

https://gist.github.com/lhanson/84640e735a09dbc1ccf6af85284836f2

lhanson avatar Feb 08 '19 18:02 lhanson

what about release-5.5.0 branch?

IlyaAvdeev avatar Feb 08 '19 19:02 IlyaAvdeev

FYI I just tried a rebuild, looks like I'm still unable to resolve the snapshot.

https://gist.github.com/lhanson/84640e735a09dbc1ccf6af85284836f2

Looks there is another dependency, 'out-app-analytics-provider' has similar problem as 'analytics-core'

nmrao avatar Feb 09 '19 09:02 nmrao

what about release-5.5.0 branch?

release-5.5.0 branch builds successfully for me.

lhanson avatar Feb 10 '19 22:02 lhanson

Thank you for that @lhanson . I was just following the readme. So, building 5.5.0 needs change in main pom.xml. Correct?

nmrao avatar Feb 11 '19 03:02 nmrao

So, building 5.5.0 needs change in main pom.xml. Correct?

I was able to build release-5.5.0 without any changes. As far as I can tell, the only issue with the next branch is a missing com.smartbear.utils.analytics:out-app-analytics-provider:jar:5.5.0-SNAPSHOT.

lhanson avatar Feb 11 '19 13:02 lhanson

please pull the latest changes for the "next" branch and try to build.

IlyaAvdeev avatar Feb 11 '19 15:02 IlyaAvdeev

Works now, thanks @IlyaAvdeev .

lhanson avatar Feb 11 '19 15:02 lhanson

Thank you for help, closing the issue

IlyaAvdeev avatar Feb 11 '19 15:02 IlyaAvdeev

I'm having a problem building latest, release 5.5, and release 5.4 I'm not sure where I should start explaining stuff without wasting a lot of time. Should I write up 3 different bugs, or should I continue working in this closed inc?

MalcolmAnderson avatar Apr 24 '19 00:04 MalcolmAnderson