[英]Using OC4J Server Adapter with Eclipse Kepler
After banging my head against the wall for awhile (trying to figure out how to set up an OC4J server adapter in Eclipse), I finally realized that Eclipse Kepler has retired all support for the Oracle generic OC4J server adapter. 在将我的头撞到墙上一段时间后(试图弄清楚如何在Eclipse中设置OC4J服务器适配器),我终于意识到Eclipse Kepler已经退出了对Oracle通用OC4J服务器适配器的所有支持。 Is there anyway to manually install the server adapter for use with Eclipse Kepler?
反正手动安装服务器适配器是否与Eclipse Kepler一起使用? Unfortunately, I am limited in my options, and am required to use the OC4J Oracle Containers.
不幸的是,我的选择有限,我需要使用OC4J Oracle Containers。
If I can't directly work with the server in Eclipse Kepler, is there an easy way to deploy the application for testing purposes? 如果我无法直接使用Eclipse Kepler中的服务器,是否有一种简单的方法来部署应用程序以进行测试? I know you can export it to an EAR file and deploy it manually, but would love to find a quicker way for me to easily test the application when making changes.
我知道您可以将其导出到EAR文件并手动部署,但是我希望能够更快地找到一种方法,以便在进行更改时轻松测试应用程序。
Thanks for your help! 谢谢你的帮助!
-Laura -Laura
You should use the maven-cargo plugin and see if it is of use to you. 您应该使用maven-cargo插件,看看它是否对您有用。 It supports OC4J quick deploy and would allow you to copy your target folder to the OC4J runtime.
它支持OC4J快速部署,并允许您将目标文件夹复制到OC4J运行时。
Maven Cargo Plugin Maven Cargo插件
Another quick and dirty way which i just tried is using the maven-antrun-plugin to specify ant tasks and tie them to a phase and copy them to wherever as needed. 我刚试过的另一种快速而又脏的方法是使用maven-antrun-plugin来指定ant任务并将它们绑定到一个阶段并将它们复制到任何需要的地方。
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.6</version>
<executions>
<execution>
<phase>install</phase>
<configuration>
<target>
<copydir src="src/main/webapp"
dest="f://temp" />
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
It isnt perfect, but you get the idea, that you can do something like this and tie it to a phase and execute the goal to get your webapp directory in your OC4J deployable directory. 它并不完美,但是您可以理解,您可以执行类似的操作并将其绑定到某个阶段并执行目标以将您的webapp目录放在OC4J可部署目录中。
The cargo plugin would definately be something you should look at considering it has much more capabilities of starting and stopping the server runtime as well. 货物插件肯定是你应该看的东西,因为它具有启动和停止服务器运行时的更多功能。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.