Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] Jetty startup directory

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 <janb@xxxxxxxxxxx> wrote:
Can you post the relevant snippets from your web module pom.xml?

Jan

On 24 May 2014 16:24, Kyle Mera <kyle.mera@xxxxxxxxxxxx> 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 <janb@xxxxxxxxxxx> 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 <kyle.mera@xxxxxxxxxxxx> 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
>> > jetty-users@xxxxxxxxxxx
>> > https://dev.eclipse.org/mailman/listinfo/jetty-users
>> >
>>
>>
>>
>> --
>> Jan Bartel <janb@xxxxxxxxxxx>
>> www.webtide.com
>> 'Expert Jetty/CometD developer,production,operations advice'
>> _______________________________________________
>> jetty-users mailing list
>> jetty-users@xxxxxxxxxxx
>> 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
> jetty-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/jetty-users
>



--
Jan Bartel <janb@xxxxxxxxxxx>
www.webtide.com
'Expert Jetty/CometD developer,production,operations advice'
_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/jetty-users



--
Kyle Mera - Software Engineer Intern
AgileSrc LLC
3259 Progress Drive, Suite 159
Orlando, FL 32826

Back to the top