插件 com.tibco.plugins:bw6-maven-plugin:1.1.0 或其依赖项之一无法解决 - BW6 maven 插件构建问题
Plugin com.tibco.plugins:bw6-maven-plugin:1.1.0 or one of its dependencies could not be resolved - BW6 maven plugin build issue
我正在使用 BWCE Studio (2.1.0)、BW6 maven 插件 (1.1.0)。当我尝试使用 BW6 maven 插件从 Jenkins 构建 BWCE 应用程序时,出现以下错误:
Jenkins 控制台输出::
Started by user admin
在工作区 C:\Program Files (x86) 中构建\Jenkins\workspace\bwce-app-build
C:\Program Files\Git\bin\git.exe rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
C:\Program Files\Git\bin\git.exe config remote.origin.url _https://github.com/RajibBiswasTibco/BWCEJenkins.git # timeout=10
Fetching upstream changes from _https://github.com/RajibBiswasTibco/BWCEJenkins.git
C:\Program Files\Git\bin\git.exe --version # timeout=10
C:\Program Files\Git\bin\git.exe fetch --tags --progress _https://github.com/RajibBiswasTibco/BWCEJenkins.git +refs/heads/:refs/remotes/origin/
C:\Program Files\Git\bin\git.exe rev-parse "refs/remotes/origin/master^{commit}" # timeout=10
C:\Program Files\Git\bin\git.exe rev-parse "refs/remotes/origin/origin/master^{commit}" # timeout=10
Checking out Revision 8d093265f7e348f79e506c905be3702abe41ec33 (refs/remotes/origin/master)
C:\Program Files\Git\bin\git.exe config core.sparsecheckout # timeout=10
C:\Program Files\Git\bin\git.exe checkout -f 8d093265f7e348f79e506c905be3702abe41ec33
C:\Program Files\Git\bin\git.exe rev-list 8d093265f7e348f79e506c905be3702abe41ec33 # timeout=10
Parsing POMs
Established TCP socket on 53491
[bwce-test-app.application.parent] $ java -cp "C:\Program Files (x86)\Jenkins\plugins\maven-plugin\WEB-INF\lib\maven33-agent-1.8.1.jar;C:\sw\apache-maven-3.3.9\boot\plexus-classworlds-2.5.2.jar;C:\sw\apache-maven-3.3.9/conf/logging" jenkins.maven3.agent.Maven33Main C:\sw\apache-maven-3.3.9 "C:\Program Files (x86)\Jenkins\war\WEB-INF\lib\remoting-2.62.jar" "C:\Program Files (x86)\Jenkins\plugins\maven-plugin\WEB-INF\lib\maven33-interceptor-1.8.1.jar" "C:\Program Files (x86)\Jenkins\plugins\maven-plugin\WEB-INF\lib\maven3-interceptor-commons-1.8.1.jar" 53491
<===[JENKINS REMOTING CAPACITY]===>channel started
Executing Maven: -B -f C:\Program Files (x86)\Jenkins\workspace\bwce-app-build\bwce-test-app.application.parent\pom.xml clean package
[INFO] Scanning for projects...
[WARNING] The POM for com.tibco.plugins:bw6-maven-plugin:jar:1.1.0 is missing, no dependency information available
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[ERROR] Unresolveable build extension: Plugin com.tibco.plugins:bw6-maven-plugin:1.1.0 or one of its dependencies could not be resolved: Failure to find com.tibco.plugins:bw6-maven-plugin:jar:1.1.0 in _https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced @
[ERROR] Unknown packaging: bwmodule @ com.tibco.bw:bwce-test-app:[unknown-version], C:\Program Files (x86)\Jenkins\workspace\bwce-app-build\bwce-test-app\pom.xml, line 12, column 14
[ERROR] Unresolveable build extension: Plugin com.tibco.plugins:bw6-maven-plugin:1.1.0 or one of its dependencies could not be resolved: Failure to find com.tibco.plugins:bw6-maven-plugin:jar:1.1.0 in _https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced @
[ERROR] Unknown packaging: bwear @ com.tibco.bw:bwce-test-app.application:[unknown-version], C:\Program Files (x86)\Jenkins\workspace\bwce-app-build\bwce-test-app.application\pom.xml, line 12, column 14
@
[ERROR] The build could not read 2 projects -> [Help 1]
[ERROR]
[ERROR] The project com.tibco.bw:bwce-test-app:1.0.0-SNAPSHOT (C:\Program Files (x86)\Jenkins\workspace\bwce-app-build\bwce-test-app\pom.xml) has 2 errors
[ERROR] Unresolveable build extension: Plugin com.tibco.plugins:bw6-maven-plugin:1.1.0 or one of its dependencies could not be resolved: Failure to find com.tibco.plugins:bw6-maven-plugin:jar:1.1.0 in _https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 2]
[ERROR] Unknown packaging: bwmodule @ com.tibco.bw:bwce-test-app:[unknown-version], C:\Program Files (x86)\Jenkins\workspace\bwce-app-build\bwce-test-app\pom.xml, line 12, column 14
[ERROR]
[ERROR] The project com.tibco.bw:bwce-test-app.application:1.0.0-SNAPSHOT (C:\Program Files (x86)\Jenkins\workspace\bwce-app-build\bwce-test-app.application\pom.xml) has 2 errors
[ERROR] Unresolveable build extension: Plugin com.tibco.plugins:bw6-maven-plugin:1.1.0 or one of its dependencies could not be resolved: Failure to find com.tibco.plugins:bw6-maven-plugin:jar:1.1.0 in _https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 2]
[ERROR] Unknown packaging: bwear @ com.tibco.bw:bwce-test-app.application:[unknown-version], C:\Program Files (x86)\Jenkins\workspace\bwce-app-build\bwce-test-app.application\pom.xml, line 12, column 14
[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/ProjectBuildingException
[ERROR] [Help 2] _http://cwiki.apache.org/confluence/display/MAVEN/PluginManagerException
channel stopped
Finished: FAILURE
问题是 maven 本地存储库在 jenkins 和 maven 之间是不同的。
你有 2 个选项:
- 您将更新 jenkins 中 maven 的配置选项(
setting.xml
)。
或
- 您将此路径
C:\Users$USER_NAME\.m2\repository\com\tibco\plugins\bw6-maven-plugin
复制到 jenkins 的本地存储库中。
我正在使用 BWCE Studio (2.1.0)、BW6 maven 插件 (1.1.0)。当我尝试使用 BW6 maven 插件从 Jenkins 构建 BWCE 应用程序时,出现以下错误:
Jenkins 控制台输出::
Started by user admin
在工作区 C:\Program Files (x86) 中构建\Jenkins\workspace\bwce-app-build
C:\Program Files\Git\bin\git.exe rev-parse --is-inside-work-tree # timeout=10 Fetching changes from the remote Git repository C:\Program Files\Git\bin\git.exe config remote.origin.url _https://github.com/RajibBiswasTibco/BWCEJenkins.git # timeout=10 Fetching upstream changes from _https://github.com/RajibBiswasTibco/BWCEJenkins.git C:\Program Files\Git\bin\git.exe --version # timeout=10 C:\Program Files\Git\bin\git.exe fetch --tags --progress _https://github.com/RajibBiswasTibco/BWCEJenkins.git +refs/heads/:refs/remotes/origin/ C:\Program Files\Git\bin\git.exe rev-parse "refs/remotes/origin/master^{commit}" # timeout=10 C:\Program Files\Git\bin\git.exe rev-parse "refs/remotes/origin/origin/master^{commit}" # timeout=10 Checking out Revision 8d093265f7e348f79e506c905be3702abe41ec33 (refs/remotes/origin/master) C:\Program Files\Git\bin\git.exe config core.sparsecheckout # timeout=10 C:\Program Files\Git\bin\git.exe checkout -f 8d093265f7e348f79e506c905be3702abe41ec33 C:\Program Files\Git\bin\git.exe rev-list 8d093265f7e348f79e506c905be3702abe41ec33 # timeout=10 Parsing POMs Established TCP socket on 53491 [bwce-test-app.application.parent] $ java -cp "C:\Program Files (x86)\Jenkins\plugins\maven-plugin\WEB-INF\lib\maven33-agent-1.8.1.jar;C:\sw\apache-maven-3.3.9\boot\plexus-classworlds-2.5.2.jar;C:\sw\apache-maven-3.3.9/conf/logging" jenkins.maven3.agent.Maven33Main C:\sw\apache-maven-3.3.9 "C:\Program Files (x86)\Jenkins\war\WEB-INF\lib\remoting-2.62.jar" "C:\Program Files (x86)\Jenkins\plugins\maven-plugin\WEB-INF\lib\maven33-interceptor-1.8.1.jar" "C:\Program Files (x86)\Jenkins\plugins\maven-plugin\WEB-INF\lib\maven3-interceptor-commons-1.8.1.jar" 53491 <===[JENKINS REMOTING CAPACITY]===>channel started Executing Maven: -B -f C:\Program Files (x86)\Jenkins\workspace\bwce-app-build\bwce-test-app.application.parent\pom.xml clean package [INFO] Scanning for projects... [WARNING] The POM for com.tibco.plugins:bw6-maven-plugin:jar:1.1.0 is missing, no dependency information available [ERROR] [ERROR] Some problems were encountered while processing the POMs: [ERROR] Unresolveable build extension: Plugin com.tibco.plugins:bw6-maven-plugin:1.1.0 or one of its dependencies could not be resolved: Failure to find com.tibco.plugins:bw6-maven-plugin:jar:1.1.0 in _https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced @ [ERROR] Unknown packaging: bwmodule @ com.tibco.bw:bwce-test-app:[unknown-version], C:\Program Files (x86)\Jenkins\workspace\bwce-app-build\bwce-test-app\pom.xml, line 12, column 14 [ERROR] Unresolveable build extension: Plugin com.tibco.plugins:bw6-maven-plugin:1.1.0 or one of its dependencies could not be resolved: Failure to find com.tibco.plugins:bw6-maven-plugin:jar:1.1.0 in _https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced @ [ERROR] Unknown packaging: bwear @ com.tibco.bw:bwce-test-app.application:[unknown-version], C:\Program Files (x86)\Jenkins\workspace\bwce-app-build\bwce-test-app.application\pom.xml, line 12, column 14 @ [ERROR] The build could not read 2 projects -> [Help 1] [ERROR]
[ERROR] The project com.tibco.bw:bwce-test-app:1.0.0-SNAPSHOT (C:\Program Files (x86)\Jenkins\workspace\bwce-app-build\bwce-test-app\pom.xml) has 2 errors [ERROR] Unresolveable build extension: Plugin com.tibco.plugins:bw6-maven-plugin:1.1.0 or one of its dependencies could not be resolved: Failure to find com.tibco.plugins:bw6-maven-plugin:jar:1.1.0 in _https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 2] [ERROR] Unknown packaging: bwmodule @ com.tibco.bw:bwce-test-app:[unknown-version], C:\Program Files (x86)\Jenkins\workspace\bwce-app-build\bwce-test-app\pom.xml, line 12, column 14 [ERROR]
[ERROR] The project com.tibco.bw:bwce-test-app.application:1.0.0-SNAPSHOT (C:\Program Files (x86)\Jenkins\workspace\bwce-app-build\bwce-test-app.application\pom.xml) has 2 errors [ERROR] Unresolveable build extension: Plugin com.tibco.plugins:bw6-maven-plugin:1.1.0 or one of its dependencies could not be resolved: Failure to find com.tibco.plugins:bw6-maven-plugin:jar:1.1.0 in _https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 2] [ERROR] Unknown packaging: bwear @ com.tibco.bw:bwce-test-app.application:[unknown-version], C:\Program Files (x86)\Jenkins\workspace\bwce-app-build\bwce-test-app.application\pom.xml, line 12, column 14 [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/ProjectBuildingException [ERROR] [Help 2] _http://cwiki.apache.org/confluence/display/MAVEN/PluginManagerException channel stopped Finished: FAILURE
问题是 maven 本地存储库在 jenkins 和 maven 之间是不同的。
你有 2 个选项:
- 您将更新 jenkins 中 maven 的配置选项(
setting.xml
)。
或
- 您将此路径
C:\Users$USER_NAME\.m2\repository\com\tibco\plugins\bw6-maven-plugin
复制到 jenkins 的本地存储库中。