From: Jesse M. <jes...@gm...> - 2008-01-25 21:40:31
|
you have jettyEnvXml set in your plugin configuration, correct? -X ought to through out some extra debug information jesse On Jan 25, 2008 3:31 PM, Ben Tomasini <ben...@gm...> wrote: > Jesse, > > Thanks for the advice. > > I only tolerate systemPath in this case because it is simply referring > to a path within the project. I would like to get rid of it. > > As I mentioned previuosly, I have tried editing the jetty-env.xml and > adding a <Set name="extraClasspath">/opt/runtime/classes</Set> with no > success. Is there a way to have jetty dump out its classpath on > startup with the maven plugin? That would help me debug. > > Thanks, > > Ben > > On Jan 25, 2008 11:46 AM, Jesse McConnell <jes...@gm...> > wrote: > > also, if these are not appropriate for going into your build as > artifacts, > > then you can also look into using something like a custom jetty.xml or > > jetty-env.xml files to configure and extra directory to add to the > classpath > > > > http://docs.codehaus.org/display/JETTY/Classloading > > > > look a little ways down on that page > > > > cheers! > > jesse > > > > p.s. pls avoid the system scope dependencies if at all possible, they go > > against build portability and reproducibility big time > > > > > > > > On Jan 25, 2008 1:35 PM, Jesse McConnell <jes...@gm...> > wrote: > > > well, fwiw, systemPath is very frowned upon since it is not a portable > > option in the build > > > > > > making another artifact in your build would work though > > > > > > jesse > > > > > > > > > > > > > > > > > > On Jan 25, 2008 1:30 PM, Ben Tomasini <ben...@gm...> wrote: > > > > > > > Jesse, > > > > > > > > I am trying to use the Jetty plugin in a similar fashion. I ended > up > > > > going with the dependency option, with a slight twist. I actually > > > > created a dummy dependency which references a directory in my > project: > > > > > > > > <plugin> > > > > <groupId>org.mortbay.jetty</groupId> > > > > <artifactId>maven-jetty-plugin</artifactId> > > > > .... > > > > <dependency> > > > > <groupId>runtime</groupId> > > > > <artifactId>runtime</artifactId> > > > > <version>1.0.0</version> > > > > <scope>system</scope> > > > > <systemPath>${basedir}/etc/jetty/classes</systemPath> > > > > </dependency> > > > > </plugin> > > > > > > > > It works, but I am left feeling there may be a better way. > > > > > > > > Thanks for your help. > > > > > > > > Ben > > > > > > > > > > > > > > > > > > > > On Jan 25, 2008 11:25 AM, Jesse McConnell <jes...@gm... > > > > wrote: > > > > > when you say with tomcat, are you saying that you are using the > tomcat > > maven > > > > > plugin to start up tomcat out of that installation directory and > > thereby > > > > > making use of those runtime configuration files which are not > under > > SCM and > > > > > part of the build? > > > > > > > > > > and your trying to use the jetty plugin in a similar fashion and > need > > a > > > > > place for those properties files to be on the classpath? > > > > > > > > > > have you thought about putting them into another artifact and just > > making a > > > > > dependency on that to solve the problem for both cases and then > have > > it a > > > > > part of your build and under scm? > > > > > > > > > > jesse > > > > > > > > > > > > > > > > > > > > On Jan 25, 2008 12:58 PM, Ben Tomasini <ben...@gm...> > wrote: > > > > > > > > > > > > > > > > > > > > > > > > I am using the maven jetty plugin and have a need to add an > extra > > > > > > directory the classpath. The purpose of this directory is to > hold > > > > > > runtime properties files which do not belong in the war itself. > In > > > > > > Tomcat, we simply put these resources into the ./shared/classes > > > > > > directory of the Tomcat install. > > > > > > > > > > > > I have tried editing the jetty-env.xml and adding a <Set > > > > > > name="extraClasspath">/opt/runtime/classes</Set> with no > success. > > > > > > > > > > > > What is the recommended way to do this with the maven plugin? > > > > > > > > > > > > Ben > > > > > > > > > > > > > > > ------------------------------------------------------------------------- > > > > > > This SF.net email is sponsored by: Microsoft > > > > > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > > > > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > > > > _______________________________________________ > > > > > > Jetty-support mailing list > > > > > > Jet...@li... > > > > > > https://lists.sourceforge.net/lists/listinfo/jetty-support > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > jesse mcconnell > > > > > jes...@gm... > > > > > > > > ------------------------------------------------------------------------- > > > > > This SF.net email is sponsored by: Microsoft > > > > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > > > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > > > _______________________________________________ > > > > > Jetty-support mailing list > > > > > Jet...@li... > > > > > https://lists.sourceforge.net/lists/listinfo/jetty-support > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------- > > > > This SF.net email is sponsored by: Microsoft > > > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > > _______________________________________________ > > > > Jetty-support mailing list > > > > Jet...@li... > > > > https://lists.sourceforge.net/lists/listinfo/jetty-support > > > > > > > > > > > > > > > > -- > > > > > > > > > > > > jesse mcconnell > > > jes...@gm... > > > > > > > > -- > > > > > > jesse mcconnell > > jes...@gm... > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Jetty-support mailing list > > Jet...@li... > > https://lists.sourceforge.net/lists/listinfo/jetty-support > > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Jetty-support mailing list > Jet...@li... > https://lists.sourceforge.net/lists/listinfo/jetty-support > -- jesse mcconnell jes...@gm... |