有没有办法将ecilpse(Galileo)指向位于URL的pom.xml文件,并根据pom.xml文件中的内容设置我的工作区.我已经尝试通过将pom.xml文件下载到我的桌面并导入pom.xml文件来在eclipse中使用import maven项目功能.这导致我的项目包含我桌面上的所有项目.
SVN还有一个Checkout Maven项目的功能,我也试过了,但是遇到了以下错误:
无法重命名c:\ users\leto\FunJavaDevelopment\maven.1250263290804
SVN URL是http://dbunit.svn.sourceforge.net/svnroot/dbunit/trunk
我只是误解了如何使用pom.xml文件?任何帮助将不胜感激.
顺便说一下,我在stackoverflow而不是dbunits网站上发布这个,因为我认为其他人可能会找到答案来提供信息.
提前致谢.
我目前在websphere 6.1环境中使用Spring 3.0框架.我使用的IDE是RAD(Rational Application Developer)7.5.昨晚我正在处理一个问题,我发现在我的工作区进行更改后,我的代码在服务器上没有100%刷新.我的问题是websphere在以下方面的观点有何不同:
在开发J2EE应用程序时,其他Application Server/IDE是否具有相同类型的syning问题?
我刚刚在websphere中部署EARS时遇到了问题.我在安装应用程序后遇到的错误如下所示.
------Start of DE processing------ = [7/18/10 10:51:19:309 CDT] , key = javax.management.MBeanException com.ibm.ws.management.AdminServiceImpl.invoke 679
Exception = javax.management.MBeanException
Source = com.ibm.ws.management.AdminServiceImpl.invoke
probeid = 679
Stack Dump = javax.management.MBeanException: Exception thrown in RequiredModelMBean while trying to invoke operation startApplication
at javax.management.modelmbean.RequiredModelMBean.invokeMethod(RequiredModelMBean.java:1119)
at javax.management.modelmbean.RequiredModelMBean.invoke(RequiredModelMBean.java:973)
...
...
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:881)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1497)
Caused by: com.ibm.ws.exception.RuntimeError: java.lang.RuntimeException: java.lang.NullPointerException
at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:955)
at com.ibm.ws.runtime.component.ApplicationMgrImpl$1.run(ApplicationMgrImpl.java:1437)
at com.ibm.ws.security.auth.ContextManagerImpl.runAs(ContextManagerImpl.java:4191)
at com.ibm.ws.security.auth.ContextManagerImpl.runAsSystem(ContextManagerImpl.java:4289)
at com.ibm.ws.security.core.SecurityContext.runAsSystem(SecurityContext.java:245)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:1442)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
...
...
at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:271)
at javax.management.modelmbean.RequiredModelMBean.invokeMethod(RequiredModelMBean.java:1092)
... 64 …Run Code Online (Sandbox Code Playgroud) 我正在Maven中的Ant任务中复制一些文件,我无法弄清楚如何告诉ant不要记录它正在复制某些文件的事实.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.7</version>
<executions>
<execution>
<id>generateContext</id>
<phase>compile</phase>
<configuration>
<target>
<copy file="src/main/context/context.xml"
toDir="target/context/"
overwrite="true" verbose="false">
<filterset>
<filter token="deploy.path" value="${deploy.path}" />
<filter token="build.env.deployment.war.name"
value="${build.env.deployment.war.name}" />
</filterset>
</copy>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
Run Code Online (Sandbox Code Playgroud)
每次执行任务时,我都会在控制台中看到以下内容:
[INFO] --- maven-antrun-plugin:1.7:run (generateContext) @ jive-web ---
[INFO] Executing tasks
main:
[copy] Copying 1 file to /Users/jmajors/turbinetrunk/jive/jive-web/target/context
Run Code Online (Sandbox Code Playgroud)
根据蚂蚁复制任务文档,我不会想到我甚至需要担心它,因为默认情况下似乎关闭了日志记录,但这似乎不会影响是否记录某些内容.还有其他一些我应该注意的环境吗?
谢谢,杰里米