{"action":"created","issue":{"url":"https://api.github.com/repos/allure-framework/allure-teamcity-plugin/issues/26","labels_url":"https://api.github.com/repos/allure-framework/allure-teamcity-plugin/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/allure-framework/allure-teamcity-plugin/issues/26/comments","events_url":"https://api.github.com/repos/allure-framework/allure-teamcity-plugin/issues/26/events","html_url":"https://github.com/allure-framework/allure-teamcity-plugin/issues/26","id":95480465,"number":26,"title":"Can't resolve allure-report-data artifact while evaluating the plugin","user":{"login":"grmaxxon","id":13368886,"avatar_url":"https://avatars.githubusercontent.com/u/13368886?v=3","gravatar_id":"","url":"https://api.github.com/users/grmaxxon","html_url":"https://github.com/grmaxxon","followers_url":"https://api.github.com/users/grmaxxon/followers","following_url":"https://api.github.com/users/grmaxxon/following{/other_user}","gists_url":"https://api.github.com/users/grmaxxon/gists{/gist_id}","starred_url":"https://api.github.com/users/grmaxxon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grmaxxon/subscriptions","organizations_url":"https://api.github.com/users/grmaxxon/orgs","repos_url":"https://api.github.com/users/grmaxxon/repos","events_url":"https://api.github.com/users/grmaxxon/events{/privacy}","received_events_url":"https://api.github.com/users/grmaxxon/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-16T17:05:23Z","updated_at":"2015-08-19T14:51:21Z","closed_at":"2015-08-19T14:51:21Z","body":"We are using TeamCity with many different agents (Windows, Linux, OS X, Solaris, AIX etc). We are living behind the proxy server and use the single access to remove repositories with Nexus Professional (Nexus OSS, Artifactory are similar repository software). Our Maven installations on agents configured with separated global settings.xml (with the list of local repositories on our Nexus) and user's settings.xml in ~/.m2/settings.xml with secured credentials for basic authentication in Nexus for downloading all maven artifacts.\r\n\r\nThe allure-teamcity-plugin has direct URLs for getting necessary artifacts and cannot be used in this environment. I tried many steps for making it work, but unsuccessfully:\r\n1. Setting of M2_HOME cannot help\r\n2. Setting maven.home and user.home variables (according the code of clay-maven-settings-builder v. 2.3) also does not work\r\n3. I downloaded allure-report-builder trunk and concatenated it with allure-teamcity-plugin - unsuccessfully\r\n4. I downloaded necessary jar * war manually and modified allure-report-builder for using local jars. The main issue has been skipped, but build failed because of dependencies of allure-report-data.jar was not downloaded and not added to the classpath. Hell!\r\n5. I found that clay-maven-settings-builder read only one settings.xml (which will be found first), I modified sources for reading both global and user settings.xml, but also unfotunately - the library now skip messages about unavailability of hardcoded repo URLs (repo1.maven.org and oss.sonatype.org), but I'm still not lucky:\r\n\r\n\r\n=======================================================================\r\n\r\n[19:39:50]Allure report generation\r\n[19:39:50][Allure report generation] analyse results pattern **/allure-results\r\n[19:39:51][Allure report generation] analyse results directories [C:\\TeamCity\\buildAgent\\work\\d6f20466435135e0\\common\\reports\\allure-results, C:\\TeamCity\\buildAgent\\work\\d6f20466435135e0\\cte\\target\\allure-results]\r\n[19:39:51][Allure report generation] prepare allure report directory [C:\\TeamCity\\buildAgent\\temp\\agentTmp\\allure]\r\n[19:39:51][Allure report generation] prepare report generator with version: 1.4.15\r\n[19:39:51][Allure report generation] process tests results to directory [C:\\TeamCity\\buildAgent\\temp\\agentTmp\\allure]\r\n[19:39:51]\r\n[Allure report generation] ru.yandex.qatools.allure.report.AllureReportBuilderException: ru.yandex.qatools.clay.AetherException: Can't resolve given artifact ru.yandex.qatools.allure:allure-report-data:jar:1.4.15\r\n\tat ru.yandex.qatools.allure.report.AllureReportBuilder.processResults(AllureReportBuilder.java:185)\r\n\tat ru.yandex.qatools.allure.teamcity.AgentBuildEventsProvider.beforeBuildFinish(AgentBuildEventsProvider.java:72)\r\n\tat sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.lang.reflect.Method.invoke(Method.java:497)\r\n\tat jetbrains.buildServer.util.EventDispatcher.dispatch(EventDispatcher.java:120)\r\n\tat jetbrains.buildServer.util.EventDispatcher$2.invoke(EventDispatcher.java:67)\r\n\tat com.sun.proxy.$Proxy6.beforeBuildFinish(Unknown Source)\r\n\tat jetbrains.buildServer.agent.impl.buildStages.finishStages.FireBeforeBuildFinishFStage.doFinishStage(FireBeforeBuildFinishFStage.java:32)\r\n\tat jetbrains.buildServer.agent.impl.buildStages.BuildFinishStagesExecutor.runFinishStage(BuildFinishStagesExecutor.java:28)\r\n\tat jetbrains.buildServer.agent.impl.buildStages.BuildFinishStagesExecutor.doBuildFinishStages(BuildFinishStagesExecutor.java:20)\r\n\tat jetbrains.buildServer.agent.impl.BuildRunActionImpl.runBuild(BuildRunActionImpl.java:58)\r\n\tat jetbrains.buildServer.agent.impl.BuildAgentImpl.doActualBuild(BuildAgentImpl.java:281)\r\n\tat jetbrains.buildServer.agent.impl.BuildAgentImpl.access$100(BuildAgentImpl.java:55)\r\n\tat jetbrains.buildServer.agent.impl.BuildAgentImpl$1.run(BuildAgentImpl.java:245)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\nCaused by: ru.yandex.qatools.clay.AetherException: Can't resolve given artifact ru.yandex.qatools.allure:allure-report-data:jar:1.4.15\r\n\tat ru.yandex.qatools.clay.Aether.resolveWithTransitives(Aether.java:179)\r\n\tat ru.yandex.qatools.clay.Aether.resolve(Aether.java:131)\r\n\tat ru.yandex.qatools.clay.Aether.resolve(Aether.java:109)\r\n\tat ru.yandex.qatools.allure.report.AllureReportBuilder.processResults(AllureReportBuilder.java:175)\r\n\t... 15 more\r\nCaused by: org.eclipse.aether.resolution.DependencyResolutionException: Could not find artifact ru.yandex.qatools.allure:allure-report-data:jar:1.4.15\r\n\tat org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:384)\r\n\tat ru.yandex.qatools.clay.Aether.resolveWithTransitives(Aether.java:177)\r\n\t... 18 more\r\nCaused by: org.eclipse.aether.resolution.ArtifactResolutionException: Could not find artifact ru.yandex.qatools.allure:allure-report-data:jar:1.4.15\r\n\tat org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:444)\r\n\tat org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:246)\r\n\tat org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:367)\r\n\t... 19 more\r\nCaused by: org.eclipse.aether.transfer.ArtifactNotFoundException: Could not find artifact ru.yandex.qatools.allure:allure-report-data:jar:1.4.15\r\n\tat org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:434)\r\n\t... 21 more\r\n\r\n=======================================================================\r\n\r\nUnfortunately, I can't set system proxy on all agents or set the proxy into user's maven settings.xml - everything should use the single Nexus server for accessing artifacts from maven, gradle, grapes etc.\r\n\r\n\r\nPlease, add the support of separated settings.xml and using of them with highest priority because they're main configuration files for everybody who are living outside of Internet.\r\nOr add the reading of environment variables with paths of global settings.xml and user's settings.xml for ignoring default Internet URLs.\r\n\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/allure-framework/allure-teamcity-plugin/issues/comments/132625765","html_url":"https://github.com/allure-framework/allure-teamcity-plugin/issues/26#issuecomment-132625765","issue_url":"https://api.github.com/repos/allure-framework/allure-teamcity-plugin/issues/26","id":132625765,"user":{"login":"baev","id":2149631,"avatar_url":"https://avatars.githubusercontent.com/u/2149631?v=3","gravatar_id":"","url":"https://api.github.com/users/baev","html_url":"https://github.com/baev","followers_url":"https://api.github.com/users/baev/followers","following_url":"https://api.github.com/users/baev/following{/other_user}","gists_url":"https://api.github.com/users/baev/gists{/gist_id}","starred_url":"https://api.github.com/users/baev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/baev/subscriptions","organizations_url":"https://api.github.com/users/baev/orgs","repos_url":"https://api.github.com/users/baev/repos","events_url":"https://api.github.com/users/baev/events{/privacy}","received_events_url":"https://api.github.com/users/baev/received_events","type":"User","site_admin":false},"created_at":"2015-08-19T14:51:21Z","updated_at":"2015-08-19T14:51:21Z","body":"fixed via https://github.com/allure-framework/allure-teamcity-plugin/pull/28 . The release and documentation is coming soon."}}