草庐IT

jenkins-plugins

全部标签

java - Maven 3 : Failed to execute goal org. apache.maven.plugins :maven-archetype-plugin:2. 2:生成

我正在尝试使用测试ma​​venmvnarchetype:generate-DgroupId=org.sonatype.mavenbook-DartifactId=quickstart-Dversion=1.0-SNAPSHOT-DpackageName=org.sonatype.mavenbook-DarchetypeGroupId=org.apache.maven.archetypes-DarchetypeArtifactId=maven-archetype-quickstart-DarchetypeVersion=1.0-DinteractiveMode=false几分钟后,系统

java - 使用 maven-jaxb2-plugin 生成 java 源代码时,如何为集合启用 setter?

我正在使用maven-jab2-plugin从XSD模式生成POJO。我生成的类没有任何集合字段的setter。如何为集合生成setter?谁能解释默认不启用setter的原因? 最佳答案 使用Settersplugin包含在JAXB2-Basics中,如文档所述here.我已经复制粘贴了他们的用法示例(并对其进行了修改以专门显示setter):org.jvnet.jaxb2.maven2maven-jaxb2-plugin0.7.0generate-Xsettersorg.jvnet.jaxb2_commonsjaxb2-basi

java - 如何使用 license-maven-plugin

我想使用license-maven-plugin以便能够为我的项目生成许可证header。所以我有以下pom.xml:4.0.0org.foobar-parent1.0-SNAPSHOTpomBar:ParentApache2.0http://www.apache.org/licenses/LICENSE-2.0.txtrepoAbusiness-friendlyOSSlicenseMyCorp.http://www.mycorp.org/2014UTF-8apache_v2org.codehaus.mojolicense-maven-plugin1.6false**/*.javage

java.io.IOException : No X-Jenkins-CLI2-Port (jenkins cli not working ) 异常

我正在尝试运行以下命令:java-jarjenkins-cli.jar-shttp://jenkins_URL/--usernamemyusername--passwordmypassword帮助但是我得到了错误:java.io.IOException:NoX-Jenkins-CLI2-Portamong[null,X-Required-Permission,X-Jenkins,X-You-Are-In-Group,X-Hudson,Content-Length,Expires,X-You-Are-Authenticated-As,X-Permission-Implied-By,Set

java - 添加附加路径到 exec-maven-plugin

我想向exec-maven-plugin添加一个额外的类路径。除了%classpath之外,我还想添加一个额外的路径到包含资源的目录(/Users/kornp/resources)。目前,我的pom看起来像这样:org.codehaus.mojoexec-maven-plugin1.1.1javaruntime%classpath:/Users/kornp/resourcesorg.drrabbit.maventest.App我该如何配置? 最佳答案 我在源文件夹之外的特定目录中有一些配置文件。所以我为我的pom.xml文件定义了额

java - 在 SWT 中使用 Maven tycho-p2-plugin

如何使用EclipseP2存储库和Maventycho-p2-plugin构建SWT应用程序? 最佳答案 您可以为“目标平台配置”插件定义目标环境。无论您正在为多个环境构建RCP或功能,您都可以让您的功能包含这些主机的swt片段。org.eclipse.tychotarget-platform-configuration${tycho-version}p2linuxgtkx86win32win32x86solarisgtksparcfeature.xml中的代码段 关于java-在SWT

java - 扩展 Jenkins/Hudson 插件以设置环境变量对

我正在扩展现有的Jenkins/Hudson插件。我希望它为正在运行的项目设置一个环境变量对。最简单的方法是什么? 最佳答案 在构建过程中,例如在Builder的perform()方法中,您至少可以这样做:@Overridepublicbooleanperform(Buildbuild,Launcherlauncher,BuildListenerlistener)throwsInterruptedException,IOException{//...Listparams=newArrayList();params.add(newSt

java - 使用 Cargo Java API 和 Jenkins 部署到 Wildfly 时出现 "XNIO001001: No XNIO provider found"错误

我正在开发一个Jenkins插件,它使用CodehausCargoJavaAPI管理EAR文件到JavaEE容器的部署,但是我在使用API部署到远程Wildfly容器时遇到了问题。当部署到其他容器(如Glassfish)时,代码工作正常,但当尝试将EAR文件部署到Wildfly容器时,返回错误消息XNIO001001:NoXNIOproviderfound。我花了几个小时研究这个问题,但找不到任何可能解决问题的方法。尝试部署到在Windows和Ubuntu上运行的Wildfly8.1和8.2时会出现此问题。我还检查了Wildfly服务器日志,但它不包含与此问题相关的任何内容。我的问题是

java - 目标 org.codehaus.mojo :rpm-maven-plugin:2. 1.5:rpm 的参数 'group' 丢失或无效

运行时mvncleanrpm:rpm我收到此错误:目标org.codehaus.mojo:rpm-maven-plugin:2.1.5:rpm的参数“组”丢失或无效我的父pom.xml:4.0.0net.brewspberrybrewspberry-rpm-parent0.1.0-SNAPSHOTbrewspberry-rpm-parentbrewspberry-rpm-parentpom/opt/tomcat${rpm.install.basedir}/webapps${rpm.install.basedir}/libUTF-8Internetbrewspberry-regulato

java - 如何将 Jenkins 环境变量注入(inject) Maven 构建?

我需要获取一些Jenkins环境变量,例如BUILD_NUMBER和BUILD_URL,并将它们作为变量注入(inject)到我的MavenJava构建中。我已将其添加到pom.xml${env.BUILD_URL}在仅使用mvninstall进行构建时,我试图通过以下方式获取变量privatestaticfinalStringJENKINS_BUILD_URL=System.getProperty("jenkins.buildUrl");但不幸的是结果为空...我做错了什么伙计们? 最佳答案 猜测您正在尝试将此值读入您的单元测试?