On Wed, May 26, 2010 at 12:10 AM, Vincent Massol <[email protected]> wrote:
Hi James,
I don't know what the problem is with m2eclipse (I haven't used it to run an archetype) but for the second problem it was because of an invalid dependency. I've fixed it in SVN.
For now you can simply edit the generated pom.xml and replace xwiki-core-rendering-parser-wikimodel
with
xwiki-core-rendering-syntax-wikimodel
Thanks for reporting this. -Vincent
Thanks, that fixed it! Now have Eclipse working pretty well for coding, however I'm confused how I can debug or run my code within Eclipse for testing. It appears to me that the maven build process is working. When I click on "Run" or "Debug" it also looks like it is able to start a Tomcat 6.0 instance on my local machine. However, going to either "http://localhost" or "http://localhost/xwiki" in my browser results in an "unable to connect" message. I tried right clicking on the server instance within the "Servers" tab in Eclipse and choosing "Add and Remove" and then added the only thing in the list ("xem-web-debug" ) to the "Configured" resources side of the dialog. This results in the following error: eclipse.buildId=unknown java.version=1.6.0_20 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US Framework arguments: -product org.eclipse.epp.package.php.product Command-line arguments: -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.php.product Error Thu May 27 17:07:44 MDT 2010 Task failed org.eclipse.core.runtime.CoreException: Publishing failed with multiple errors at org.eclipse.jst.server.tomcat.core.internal.PublishOperation2.throwException(PublishOperation2.java:169) at org.eclipse.jst.server.tomcat.core.internal.PublishOperation2.execute(PublishOperation2.java:82) at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.performTasks(ServerBehaviourDelegate.java:1136) at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:853) at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:708) at org.eclipse.wst.server.core.internal.Server.publishImpl(Server.java:2731) at org.eclipse.wst.server.core.internal.Server$PublishJob.run(Server.java:278) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) Contains: File not found: /xem-web-debug/src/main/webapp/WEB-INF/commons-logging.properties. Contains: File not found: /xem-web-debug/src/main/webapp/WEB-INF/portlet.xml. Contains: File not found: /xem-web-debug/src/main/webapp/WEB-INF/struts-bean.tld. Contains: File not found: /xem-web-debug/src/main/webapp/WEB-INF/struts-config.xml. Contains: File not found: /xem-web-debug/src/main/webapp/WEB-INF/struts-form.tld. Contains: File not found: /xem-web-debug/src/main/webapp/WEB-INF/struts-html.tld. Contains: File not found: /xem-web-debug/src/main/webapp/WEB-INF/struts-logic.tld. Contains: File not found: /xem-web-debug/src/main/webapp/WEB-INF/struts-template.tld. Contains: File not found: /xem-web-debug/src/main/webapp/WEB-INF/struts.tld. Contains: File not found: /xem-web-debug/src/main/webapp/WEB-INF/web.xml. Contains: File not found: /xem-web-debug/src/main/webapp/redirect. ---------------------------------------------------- Am I doing this right? Thanks again, - James Cuzella