JetBrains / TeamCity.SonarQubePlugin

A plugin for TeamCity server allowing you to configure and run SonarQube analysis from the CI
Apache License 2.0
53 stars 31 forks source link

Unable to build from source missing jar in repository folder #55

Closed bdbogjoe closed 4 years ago

bdbogjoe commented 5 years ago

here my error :

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-install-plugin:2.4:install-file (org.jetbrains.teamcity:common-tools) on project repository: The specified file '/home/......./TeamCity.SonarQubePlugin/repository/lib/common-tools.jar' not exists -> [Help 1]

Seems one local jar is missing in repository folder

axel3rd commented 4 years ago

Required JARs are common-tools.jar & server-tools.jar, but not findable in https://download.jetbrains.com/teamcity-repository or in TeamCity achive. No idea where found them, as workaround 😢.

Linfar commented 4 years ago

Which branch and which modification do you try to build?

Linfar commented 4 years ago

Ah, ok, I've understood the problem. You should place these 2 jars to the repository/lib/. Jars could be found in TC server distribution in webapps/ROOT/WEB-INF/lib/.

axel3rd commented 4 years ago

Jars could be found in TC server distribution in webapps/ROOT/WEB-INF/lib/.

Humm ... checking quickly this weekend in a TeamCity tar.gz download, common-tools.jar (the first problem occues) seems not present.

More calmly this morning, currently on a TeamCity installation:

$ find webapps/ROOT/WEB-INF/lib/ | grep tools
webapps/ROOT/WEB-INF/lib/server-tools.jar

=> server-tools.jar can be found.

But no common-tools.jar seems exist in TeamCity directory.

Linfar commented 4 years ago

I see in in 2017.1 (servers/2017.1/buildAgent/lib/common-tools.jar) but it seems 2019.1 don't contain it. Probably this jar isn't needed now but I have to check it. BTW you can use mvn tc-sdk:start and a TC distribution will be downloaded and unpacked to servers folder. Then you can just copy needed jar from downloaded location.