Jan,

Thank you for the help. So it seems that Jetty is acting in the desired
manner after all.


On Tue, May 27, 2014 at 3:37 AM, Jan Bartel <[email protected]> wrote:

> Geeze Kyle, jetty-6?! We're up to 9.2.0 :)
>
> In all versions of the jetty maven plugin, we look to make the webapp
> tmp dir in the maven project build directory, specified as:
> ${project.build.directory}
>
> Jan
>
> On 26 May 2014 21:53, Kyle Mera <[email protected]> wrote:
> > Jan,
> >
> > Here is the full plugin
> >
> > <plugin>
> > <groupId>org.mortbay.jetty</groupId>
> > <artifactId>maven-jetty-plugin</artifactId>
> > <version>6.1.26</version>
> > <configuration>
> > <useTestClasspath>true</useTestClasspath>
> > <!-- Log to the console. -->
> > <requestLog implementation="org.mortbay.jetty.NCSARequestLog">
> > <append>true</append>
> > </requestLog>
> > <connectors>
> > <connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">
> > <port>9898</port>
> > </connector>
> > </connectors>
> > <contextPath>/</contextPath>
> > </configuration>
> >
> > <!-- Configuration for integration testing -->
> > <executions>
> > <execution>
> > <id>start-jetty</id>
> > <phase>pre-integration-test</phase>
> > <goals>
> > <goal>run</goal>
> > </goals>
> > <configuration>
> > <daemon>true</daemon>
> > <connectors>
> > <connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">
> > <port>9898</port>
> > </connector>
> > </connectors>
> > </configuration>
> > </execution>
> > <execution>
> > <id>stop-jetty</id>
> > <phase>post-integration-test</phase>
> > </execution>
> > </executions>
> > </plugin>
> >
> >
> > On Mon, May 26, 2014 at 6:57 AM, Jan Bartel <[email protected]> wrote:
> >>
> >> Kyle,
> >>
> >> Do you have your pom.xml configured for your unit tests according to
> >> the following doco:
> >>
> >>
> http://www.eclipse.org/jetty/documentation/current/jetty-maven-plugin.html#jetty-start-goal
> >>
> >> ?
> >>
> >> Jan
> >>
> >> On 25 May 2014 19:19, Kyle Mera <[email protected]> wrote:
> >> > War - Pom.xml
> >> >
> >> > <!-- Run the application using "mvn jetty:run" -->
> >> > <plugin>
> >> > <groupId>org.mortbay.jetty</groupId>
> >> > <artifactId>maven-jetty-plugin</artifactId>
> >> > <version>6.1.26</version>
> >> > <configuration>
> >> > <useTestClasspath>true</useTestClasspath>
> >> > <!-- Log to the console. -->
> >> > <requestLog implementation="org.mortbay.jetty.NCSARequestLog">
> >> > <append>true</append>
> >> > </requestLog>
> >> > <connectors>
> >> > <connector
> >> > implementation="org.mortbay.jetty.nio.SelectChannelConnector">
> >> > <port>9898</port>
> >> > </connector>
> >> > </connectors>
> >> > <contextPath>/</contextPath>
> >> > </configuration>
> >> >                        </plugin>
> >> >
> >> >
> >> > On Sun, May 25, 2014 at 9:15 AM, Jan Bartel <[email protected]> wrote:
> >> >>
> >> >> Can you post the relevant snippets from your web module pom.xml?
> >> >>
> >> >> Jan
> >> >>
> >> >> On 24 May 2014 16:24, Kyle Mera <[email protected]> wrote:
> >> >> > Jan,
> >> >> >
> >> >> > The Core project simply traverses the 3 sub-projects. So when I run
> >> >> > mvn
> >> >> > clean install from the core project it runs tests on all 3
> projects.
> >> >> > When it
> >> >> > gets to the war project it starts up jetty just fine, the only
> issue
> >> >> > is
> >> >> > that
> >> >> > it references the core directory while running, which throws my
> tests
> >> >> > out of
> >> >> > whack.
> >> >> > From my understanding, that is still running it from the webapp
> >> >> > module
> >> >> > since
> >> >> > the core traverses down to the war project.
> >> >> >
> >> >> > Kyle
> >> >> >
> >> >> >
> >> >> > On Sat, May 24, 2014 at 4:47 AM, Jan Bartel <[email protected]>
> wrote:
> >> >> >>
> >> >> >> Kyle,
> >> >> >>
> >> >> >> In general, the jetty-maven-plugin is only designed to be used
> from
> >> >> >> a
> >> >> >> webapp module.
> >> >> >>
> >> >> >> Jan
> >> >> >>
> >> >> >> On 23 May 2014 20:42, Kyle Mera <[email protected]> wrote:
> >> >> >> > Hello fellow Jetty users,
> >> >> >> >
> >> >> >> > I have a multi-module project that includes a war-project that
> >> >> >> > runs a
> >> >> >> > Jetty
> >> >> >> > server.
> >> >> >> >
> >> >> >> > Core
> >> >> >> >
> >> >> >> > api -> impl -> war
> >> >> >> >
> >> >> >> > When I run mvn jetty:run from the war module directory
> everything
> >> >> >> > works
> >> >> >> > as
> >> >> >> > expected. The database files are saved in war/target/database.
> >> >> >> > However, when I run any maven command from the core project,
> Jetty
> >> >> >> > uses
> >> >> >> > the
> >> >> >> > core directory to base the server. So the /target directory that
> >> >> >> > is
> >> >> >> > supposed
> >> >> >> > to be in the war project gets placed in the core directory.
> >> >> >> > Jetty starts from the war module so I'm not sure why it is using
> >> >> >> > the
> >> >> >> > core
> >> >> >> > directory as it's base.
> >> >> >> >
> >> >> >> > Are their any configurations I can use to enable Jetty to run
> from
> >> >> >> > the
> >> >> >> > war
> >> >> >> > directory instead of the core directory or is implemented by
> >> >> >> > design?
> >> >> >> >
> >> >> >> > Thanks!
> >> >> >> >
> >> >> >> > --
> >> >> >> > Kyle Mera - Software Engineer Intern
> >> >> >> > AgileSrc LLC
> >> >> >> > 3259 Progress Drive, Suite 159
> >> >> >> > Orlando, FL 32826
> >> >> >> >
> >> >> >> > _______________________________________________
> >> >> >> > jetty-users mailing list
> >> >> >> > [email protected]
> >> >> >> > https://dev.eclipse.org/mailman/listinfo/jetty-users
> >> >> >> >
> >> >> >>
> >> >> >>
> >> >> >>
> >> >> >> --
> >> >> >> Jan Bartel <[email protected]>
> >> >> >> www.webtide.com
> >> >> >> 'Expert Jetty/CometD developer,production,operations advice'
> >> >> >> _______________________________________________
> >> >> >> jetty-users mailing list
> >> >> >> [email protected]
> >> >> >> https://dev.eclipse.org/mailman/listinfo/jetty-users
> >> >> >
> >> >> >
> >> >> >
> >> >> >
> >> >> > --
> >> >> > Kyle Mera - Software Engineer Intern
> >> >> > AgileSrc LLC
> >> >> > 3259 Progress Drive, Suite 159
> >> >> > Orlando, FL 32826
> >> >> >
> >> >> > _______________________________________________
> >> >> > jetty-users mailing list
> >> >> > [email protected]
> >> >> > https://dev.eclipse.org/mailman/listinfo/jetty-users
> >> >> >
> >> >>
> >> >>
> >> >>
> >> >> --
> >> >> Jan Bartel <[email protected]>
> >> >> www.webtide.com
> >> >> 'Expert Jetty/CometD developer,production,operations advice'
> >> >> _______________________________________________
> >> >> jetty-users mailing list
> >> >> [email protected]
> >> >> https://dev.eclipse.org/mailman/listinfo/jetty-users
> >> >
> >> >
> >> >
> >> >
> >> > --
> >> > Kyle Mera - Software Engineer Intern
> >> > AgileSrc LLC
> >> > 3259 Progress Drive, Suite 159
> >> > Orlando, FL 32826
> >> >
> >> > _______________________________________________
> >> > jetty-users mailing list
> >> > [email protected]
> >> > https://dev.eclipse.org/mailman/listinfo/jetty-users
> >> >
> >>
> >>
> >>
> >> --
> >> Jan Bartel <[email protected]>
> >> www.webtide.com
> >> 'Expert Jetty/CometD developer,production,operations advice'
> >> _______________________________________________
> >> jetty-users mailing list
> >> [email protected]
> >> https://dev.eclipse.org/mailman/listinfo/jetty-users
> >
> >
> >
> >
> > --
> > Kyle Mera - Software Engineer Intern
> > AgileSrc LLC
> > 3259 Progress Drive, Suite 159
> > Orlando, FL 32826
> >
> > _______________________________________________
> > jetty-users mailing list
> > [email protected]
> > https://dev.eclipse.org/mailman/listinfo/jetty-users
> >
>
>
>
> --
> Jan Bartel <[email protected]>
> www.webtide.com
> 'Expert Jetty/CometD developer,production,operations advice'
> _______________________________________________
> jetty-users mailing list
> [email protected]
> https://dev.eclipse.org/mailman/listinfo/jetty-users
>



-- 
Kyle Mera - Software Engineer Intern
AgileSrc LLC
3259 Progress Drive, Suite 159
Orlando, FL 32826
_______________________________________________
jetty-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/jetty-users

Reply via email to