Hi,
I managed to setup eclipse with sysdeo plugin for
appfuse projects.
This allows to work more productively as the tomcat directly refers to
the target/SNAPSHOT/dir,
so after mvn:package the app is instantly available to tomcat
On top of this I found the nice filesync plugin that allows to preview
the effect of tweaking on jsps instantly
this is how it goes:
after sysdeo (com.sysdeo.eclipse.tomcat_3.2.1) and filesync
(de.loskutov.FileSync_1.3.2.1.jar) are in place
you
- create the archetype
- run eclipse:eclipse
- import existing project into eclipse
- add nature/buiilder to the .project file (see below)
- modify the .tomcatplugin file (see below)
- modify the .settings/de.loskutov.FileSync.prefs file
<cid:part1.09060106.04070600@efficientron.de>
- inside eclipse go Project>Tomcat>update Context
- start tomcat through sysdeo
- view your app at http://localhost:8080/myproject123-1.0-SNAPSHOT
the files described below can also be edited via the plugin dialogs, but
- it is easier to include them than screenshots and describing the
eclipse UI
- maybe someone will write a maven plugin that does this extended
eclipse:eclipse-sysdeo-filesync goal
#######################################
.project file
#######################################
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>myproject123</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.wst.common.project.facet.core.builder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.wst.validation.validationbuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.springframework.ide.eclipse.core.springbuilder</name>
<arguments>
</arguments>
</buildCommand>
<!-- THIS IS FOR FILESYNC -->
<buildCommand>
<name>de.loskutov.FileSync.FSBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
<nature>org.springframework.ide.eclipse.core.springnature</nature>
<!-- THIS IS FOR SYSDEO -->
<nature>com.sysdeo.eclipse.tomcat.tomcatnature</nature>
</natures>
</projectDescription>
####################################################################
###############################
.tomcatplugin
##########################################
<?xml version="1.0" encoding="UTF-8"?>
<tomcatProjectProperties>
<rootDir>/target/myproject123-1.0-SNAPSHOT</rootDir>
<exportSource>false</exportSource>
<reloadable>false</reloadable>
<redirectLogger>true</redirectLogger>
<updateXml>true</updateXml>
<warLocation></warLocation>
<extraInfo></extraInfo>
<webPath>myproject123-1.0-SNAPSHOT</webPath>
<webClassPathEntries>
..........
#################################################
##########################################
.settings/de.loskutov.FileSync.prefs file
<cid:part1.09060106.04070600@efficientron.de>
##############################################
#Sat Nov 03 14:30:15 CET 2007
WARNING=DO NOT MODIFY THIS FILE IF YOU DON'T UNDERSTAND - we do :)
defaultDestination=\:myproject123/target/myproject123-1.0-SNAPSHOT
defaultVariables=
eclipse.preferences.version=1
map|0=src/main/webapp|,|,|,|,
useCurrentDateForDestinationFiles=false
##################################################
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]