Jenkins CI服务器中的Maven项目问题(Issue with Maven Project in Jenkins CI server)
现在我们尝试使用Jenkins CI工具部署maven项目。
我创建了一个示例maven项目并添加了我的本地存储库的存储库URL和凭据,然后我点击了Build Job。 然后Jenkins将我的代码下载到特定作业的工作空间并下载了所有依赖项,但我在Jenkins控制台输出中收到以下错误,如下所示。
Downloaded: http://repo.maven.apache.org/maven2/commons-logging/commons-logging/1.1.3/commons-logging-1.1.3.jar (61 KB at 31.6 KB/sec) Downloaded: http://repo.maven.apache.org/maven2/commons-codec/commons-codec/1.6/commons-codec-1.6.jar (228 KB at 74.4 KB/sec) Downloaded: http://repo.maven.apache.org/maven2/org/apache/commons/commons-lang3/3.4/commons-lang3-3.4.jar (425 KB at 42.2 KB/sec) Downloading: http://repo.bodar.com/com/googlecode/totallylazy/totallylazy/1.20/totallylazy-1.20.jar Downloaded: http://repo.bodar.com/com/googlecode/totallylazy/totallylazy/1.20/totallylazy-1.20.jar (949 KB at 718.8 KB/sec) [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 3:00.677s [INFO] Finished at: Thu Aug 20 01:44:31 IST 2015 [INFO] Final Memory: 9M/22M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal on project gcrtesting: Could not resolve dependencies for project com.vidyayug.testing:gcrtesting:jar:0.0.1-SNAPSHOT: Could not find artifact com.sun:tools:jar:0 at specified path /usr/lib/jvm/java-7-openjdk-i386/jre/../lib/tools.jar -> [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 [JENKINS] Archiving /var/lib/jenkins/workspace/Maven testing selenium/pom.xml to com.vidyayug.testing/gcrtesting/0.0.1-SNAPSHOT/gcrtesting-0.0.1-SNAPSHOT.pom channel stopped Finished: FAILURE
任何人都可以帮我解决问题
Now we are trying to deploy maven project by using the Jenkins CI tool.
I have created a sample maven project and added the repository URL and credentials of my local repository then i have clicked on the Build Job . then Jenkins downloaded my code into the work space of the particular job and its downloaded all the dependencies but i got the following error in the Jenkins console output as shown in the below.
Downloaded: http://repo.maven.apache.org/maven2/commons-logging/commons-logging/1.1.3/commons-logging-1.1.3.jar (61 KB at 31.6 KB/sec) Downloaded: http://repo.maven.apache.org/maven2/commons-codec/commons-codec/1.6/commons-codec-1.6.jar (228 KB at 74.4 KB/sec) Downloaded: http://repo.maven.apache.org/maven2/org/apache/commons/commons-lang3/3.4/commons-lang3-3.4.jar (425 KB at 42.2 KB/sec) Downloading: http://repo.bodar.com/com/googlecode/totallylazy/totallylazy/1.20/totallylazy-1.20.jar Downloaded: http://repo.bodar.com/com/googlecode/totallylazy/totallylazy/1.20/totallylazy-1.20.jar (949 KB at 718.8 KB/sec) [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 3:00.677s [INFO] Finished at: Thu Aug 20 01:44:31 IST 2015 [INFO] Final Memory: 9M/22M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal on project gcrtesting: Could not resolve dependencies for project com.vidyayug.testing:gcrtesting:jar:0.0.1-SNAPSHOT: Could not find artifact com.sun:tools:jar:0 at specified path /usr/lib/jvm/java-7-openjdk-i386/jre/../lib/tools.jar -> [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 [JENKINS] Archiving /var/lib/jenkins/workspace/Maven testing selenium/pom.xml to com.vidyayug.testing/gcrtesting/0.0.1-SNAPSHOT/gcrtesting-0.0.1-SNAPSHOT.pom channel stopped Finished: FAILURE
Can any one help me to resolve the issue
原文:https://stackoverflow.com/questions/32118166
最满意答案
相关问答
更多-
实际上有很多方法,但我发现以下方式适合我的应用程序。 创建控制台应用程序。 在该应用程序中调用该ssis包。 您可以在该控制台应用程序中设置变量值 这是代码: 使用Microsoft.SqlServer.Dts.Runtime; namespace ConsoleApplication1 {class Program {static void Main(string [] args){string [] argsArray = new string [] {“”,“”,“”,“”}; if(args == ...
-
截图显示OrderDate是包参数 ,而不是变量 。 因此,要通过dtexec传递它,您需要以这种方式调用它 dtexec /f "D:\[location]\ExportOrdersWithParameter.dtsx" /Parameter "$Package::OrderDate(DateTime)";2008-12-22 您的系统如何解析DateTime值可能存在问题; 或许,最好将日期指定为YYYYMMDD或YYYY-DD-MM。 As your screenshot shows that O ...
-
看起来我有一个较新版本的文档。 6.5.x的文档使用-z参数传递密码。 -z Identifies the passphrase on the command line. ( From Page 13 ) 改变我的论点如下解决了这个问题。 -o L:\xxxx\xxxxx\MyFile_decrypted.xml L:\xxxx\xxxxx\MyFile_Encrypted.xml +pubring=L:\pgp\keyring\pubring.pkr +secring=L:\pgp\keyring\se ...
-
如果您有很多要更新的软件包,我建议您编写一个脚本来批量执行。 我几年前做的,我创建了ac #project,处理每个ssis包,udpate传递word然后保存包。 它工作正常。 API: https : //msdn.microsoft.com/en-us/library/microsoft.sqlserver.dts.runtime.package.aspx 例如: https : //github.com/guoliang-dev/ssis-utils/blob/master/SSISHelper/c ...
-
您需要找到一个可以解压缩受密码保护的zip文件的命令行工具 ,然后您可以像往常一样使用Execute Process任务。 如果您不想将密码硬编码到SSIS包中,可以将其放在包变量中,从包配置或dtexec参数填充变量,然后动态设置Execute Process任务的属性。 Finally find it... use a execute process task and set parameter as below: executable : C:\Program Files\WinRAR\WinRAR. ...
-
发生此错误的原因是命令行调用64位DTExec实用程序,该实用程序使程序包以64位运行时模式运行,但是,仅安装了32位Microsoft ACE 12.0 OLE DB驱动程序。 在BIDS中,程序包以32位运行时模式运行(IS项目的Run64BitRuntime属性应设置为False),因此程序包可以成功执行。 要解决此问题,您可以在命令行中指定32位DTExec.exe实用程序,如: "C:\Program Files (x86)\Microsoft SQL Server\110\DTS\Binn\DT ...
-
看到这篇文章。 SSIS产品级-是不足型 See this post. ssis-product-level-is-insufficient
-
如何在SSIS包运行的命令行上指定密码(How to specify a password on the command line of an SSIS package run)[2022-04-04]
那这个呢? / De [crypt]密码 http://msdn.microsoft.com/en-us/library/ms162810.aspx What about this? /De[crypt] password http://msdn.microsoft.com/en-us/library/ms162810.aspx -
您正在寻找SYNCHRONIZED参数 为了使我的链接只回答链接和代码回答,这里是Phil的代码用于TSQL DECLARE @execution_id BIGINT = 0; -- Create a package execution EXEC [SSISDB].[catalog].[create_execution] @package_name=N'Package.dtsx', @execution_id=@execution_id OUTPUT, ...
-
从命令行运行后如何从SSIS包中检测退出代码?(How to detect exit code from SSIS package after running from command line?)[2022-05-24]
我正在检查错误的变量。 IF应该看起来像这样IF ERRORLEVEL 1 ECHO HELLO>>\\tw2-dc02\users$\Akilburn_MORR\Documents\text.txt I was checking the wrong variable. The IF is supposed to look like this IF ERRORLEVEL 1 ECHO HELLO>>\\tw2-dc02\users$\Akilburn_MORR\Documents\text.txt