我在Eclipse里面运行了很好的ant脚本以下是它的一部分:
<p2.composite.repository failOnExists="true">
<repository location="file:/${basedir}/compRepo" name="Repository description goes here" />
<add>
<repository location="http://url/Eclipse/repo/Galileo-3.5.1/" />
<repository location="http://another-url/Java/repo/4.0/" />
<repository location="${diag.location}" />
</add>
</p2.composite.repository>
Run Code Online (Sandbox Code Playgroud)
但我希望Hudson CI服务器能够运行它,但是,无论我放在ANT_HOME/lib中的所有jar都无法让这个任务在一个简单的命令行中运行ant ...我被困在这个错误:
C:\workspaces\workspace\project\junit.script\createCompRepo.xml:10: Problem: failed to create task or type p2.composite.repository
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.
Run Code Online (Sandbox Code Playgroud)
p2 ant任务在哪里定义?有没有办法在Eclipse之外运行它们?非常感谢你的帮助!安东尼
Maven的3.1.0版本依赖于Eclipse Aether(org.eclipse.aether)而不是Sonatype Aether(org.sonatype.aether).这似乎打破了依赖于Sonatype aether的插件的兼容性:尝试运行这样的插件,你会遇到:
java.lang.NoClassDefFoundError: org/sonatype/aether/*
Caused by: java.lang.ClassNotFoundException: org.sonatype.aether.*
Run Code Online (Sandbox Code Playgroud)
如https://cwiki.apache.org/confluence/display/MAVEN/AetherClassNotFound中所述
现在,是否有可能依赖于以太类(例如org.sonatype.aether.RepositorySystemSession)与Maven 3.0.x和Maven 3.1.x一起运行?
或者我是否必须发布同一插件的两个版本,一个用于3.0.x,另一个用于3.1.x?像这样执行强制执行规则:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>1.3</version>
<executions>
<execution>
<id>enforce-maven</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<requireMavenVersion>
<version>[3.0,3.1)</version>
</requireMavenVersion>
</rules>
</configuration>
</execution>
</executions>
</plugin>
Run Code Online (Sandbox Code Playgroud)
我已经在Maven开发者邮件列表上发布了这个问题,但到目前为止还没有答案......
我注意到,当我创建并挂载包含一些文本文件的配置映射时,容器会将这些文件视为的符号链接../data/myfile.txt。
例如,如果我的配置映射名为tc-configs并包含2个名为stripe1.xml和stripe2.xml的xml文件,如果我将此配置映射安装到容器中的/ configs,则容器中将包含:
bash-4.4# ls -al /configs/
total 12
drwxrwxrwx 3 root root 4096 Jun 4 14:47 .
drwxr-xr-x 1 root root 4096 Jun 4 14:47 ..
drwxr-xr-x 2 root root 4096 Jun 4 14:47 ..2018_06_04_14_47_03.291041453
lrwxrwxrwx 1 root root 31 Jun 4 14:47 ..data -> ..2018_06_04_14_47_03.291041453
lrwxrwxrwx 1 root root 18 Jun 4 14:47 stripe1.xml -> ..data/stripe1.xml
lrwxrwxrwx 1 root root 18 Jun 4 14:47 stripe2.xml -> ..data/stripe2.xml
Run Code Online (Sandbox Code Playgroud)
我猜Kubernetes需要这些符号链接以及../data和..timestamp /文件夹,但是我知道某些应用程序如果看到意外的文件或文件夹,可能会启动失败
有没有办法告诉Kubernetes不要生成所有这些符号链接并直接挂载文件?
我希望泽西岛能够轻松部署到谷歌应用引擎,因为它应该得到支持(http://code.google.com/p/googleappengine/wiki/WillItPlayInJava),有几个人提到他们让它工作(http:// tugdualgrall.blogspot.ca/2010/02/create-and-deploy-jax-rs-rest-service.html)但它不起作用......
我添加到我的web.xml:
<servlet>
<servlet-name>Jersey REST Service</servlet-name>
<servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer</servlet-class>
<init-param>
<param-name>com.sun.jersey.config.property.packages</param-name>
<param-value>sample.hello.resources</param-value>
</init-param>
<init-param>
<param-name>com.sun.jersey.config.feature.DisableWADL</param-name>
<param-value>true</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
Run Code Online (Sandbox Code Playgroud)我添加到类路径:jersey-bundle-1.14.jar(我甚至尝试过只使用核心,servlet和服务器而我甚至只尝试过1.5)
但我仍然坚持这个:
WARNING: failed Jersey REST Service: java.lang.IncompatibleClassChangeError: Implementing class
Oct 27, 2012 6:17:06 PM com.google.apphosting.utils.jetty.JettyLogger warn
WARNING: failed com.google.appengine.tools.development.DevAppEngineWebAppContext@68c12474{/,/Users/anthony/workspaces/gae/restfulapp/war}: java.lang.IncompatibleClassChangeError: Implementing class
Oct 27, 2012 6:17:06 PM com.google.apphosting.utils.jetty.JettyLogger warn
WARNING: failed JettyContainerService$ApiProxyHandler@365878d2: java.lang.IncompatibleClassChangeError: Implementing class
Oct 27, 2012 6:17:06 PM com.google.apphosting.utils.jetty.JettyLogger warn
WARNING: Error starting handlers
java.lang.IncompatibleClassChangeError: Implementing class
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) …Run Code Online (Sandbox Code Playgroud) aether ×1
ant ×1
configmap ×1
eclipse ×1
jersey ×1
kubernetes ×1
maven ×1
maven-3 ×1
maven-plugin ×1
p2 ×1