Re: Maven Jetty Plugin won't honor webAppSourceDirectory

2011-09-07 Thread dizzyd

This link helped me to solve my issue:

http://maven.40175.n5.nabble.com/Does-the-lt-pluginGroup-gt-in-the-setting-xml-work-td115219.html


my metadata file for org.mortbay.jetty had configured the prefix to always
call jetty-maven-plugin vs maven-jetty-plugin.  Both were in the file, but
seems like the first one is the one that is honored. Removed the entry for
the newer plugin artifact and then jetty:run worked like a charm with the
older version and all configurations were honored. 

Thanks!


--
View this message in context: 
http://maven.40175.n5.nabble.com/Maven-Jetty-Plugin-won-t-honor-webAppSourceDirectory-tp4774500p4778595.html
Sent from the Maven - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Maven Jetty Plugin won't honor webAppSourceDirectory

2011-09-06 Thread dizzyd
A follow up.  

We have a very large and complex system that is being deployed to jetty
6.1.22, so I'd like to try to keep things a close to the same as possible
with the plugin. 

One issue I am running into is that, the config isn't being honored for:

>  
>   org.mortbay.jetty 
>   maven-jetty-plugin 
>   6.1.22 
>
> 
> ${basedir}/src/main/webapp2 
>  ${basedir}/src/main/webapp2/WEB-INF/web.xml 
>
>  

when I do a mvn: jetty:run looks like it is looking for the newest version
of the plugin and defaulting to the "jetty-maven-plugin" (the newest one)
and skipping this configuration all together.  I think this has something to
do with my plugin groups declaration in my settings.xml file:

...

   org.mortbay.jetty

...

to get it to actually use the 6.1.22 version I have to use the fully
qualified plugin name as such:

mvn org.mortbay.jetty:maven-jetty-plugin:run

This uses the correct version of the plugin, but why?  What setting is
telling maven to use the newer one when I call jetty:run?

--
View this message in context: 
http://maven.40175.n5.nabble.com/Maven-Jetty-Plugin-won-t-honor-webAppSourceDirectory-tp4774500p4775657.html
Sent from the Maven - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Maven Jetty Plugin won't honor webAppSourceDirectory

2011-09-06 Thread dizzyd
Noted...added version number. 

Thanks!


--
View this message in context: 
http://maven.40175.n5.nabble.com/Maven-Jetty-Plugin-won-t-honor-webAppSourceDirectory-tp4774500p4774652.html
Sent from the Maven - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Maven Jetty Plugin won't honor webAppSourceDirectory

2011-09-06 Thread Anders Hammar
Always specify a version number to ensure reproducable builds!

/Anders (mobile)
Den 6 sep 2011 16.26 skrev "dizzyd" :
> got this fixed, thanks for the suggestion Jason.
>
> I changed this FROM:
>
>> 
>> org.mortbay.jetty
>> maven-jetty-plugin
>> 6.1.22
>> 
>>
>>
${basedir}/src/main/webapp2
>> ${basedir}/src/main/webapp2/WEB-INF/web.xml
>> 
>> 
>
> TO
>
> 
> org.mortbay.jetty
> jetty-maven-plugin <--NOTE, changed name
> to jetty-maven-plugin (looks like the artifact name changed in the newer
> version)also removed the version number
>
> 
>
>
> ${basedir}/src/main/webapp2

>
> 
> 
>
> --
> View this message in context:
http://maven.40175.n5.nabble.com/Maven-Jetty-Plugin-won-t-honor-webAppSourceDirectory-tp4774500p4774583.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>


Re: Maven Jetty Plugin won't honor webAppSourceDirectory

2011-09-06 Thread dizzyd
got this fixed, thanks for the suggestion Jason.

I changed this FROM:

>  
>   org.mortbay.jetty 
>   maven-jetty-plugin 
>   6.1.22 
>
> 
> ${basedir}/src/main/webapp2 
>  ${basedir}/src/main/webapp2/WEB-INF/web.xml 
>
>  

TO 

 
   org.mortbay.jetty 
   jetty-maven-plugin<--NOTE, changed name
to jetty-maven-plugin (looks like the artifact name changed in the newer
version)also removed the version number


 
   
${basedir}/src/main/webapp2 


  

--
View this message in context: 
http://maven.40175.n5.nabble.com/Maven-Jetty-Plugin-won-t-honor-webAppSourceDirectory-tp4774500p4774583.html
Sent from the Maven - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Maven Jetty Plugin won't honor webAppSourceDirectory

2011-09-06 Thread Jason van Zyl
You probably want to use the newer versions of Jetty, and the Jetty Maven 
Plugin, which is now an Eclipse project[1]. You can find the mailing lists 
here[2].

http://www.eclipse.org/jetty/mailinglists.php

[1]: http://www.eclipse.org/jetty/
[2]: http://www.eclipse.org/jetty/

On Sep 6, 2011, at 9:59 AM, dizzyd wrote:

> Based on the documentation the Jetty plugin is supposed to allow you to be
> able to change the default location of the webapp directory
> (http://docs.codehaus.org/display/JETTY/Maven+Jetty+Plugin)
> 
> when I issue a mvn jetty:run in the plugin configuration I keep seeing this:
> 
> ...
> [INFO] webAppSourceDirectory : [PROJ-PATH]\src\main\webapp\ does not exist.
> Defaulting to [PROJ-PATH]\src\main\webapp. 
> ...
> [INFO] web.xml file =  [PROJ-PATH]\src\main\webapp\WEB-INF\web.xml
> [INFO] webapp directory = [PROJ-PATH]\src\main\webapp
> ...
> 
> In my directory structure I do have the src\main\webapp directory, so I an
> not sure why jetty isn't seeing it.  Also when I attempt to change the
> webapp directory jetty doesn't see that and attempts to use the default
> again. 
> 
> directory structure:
> 
> PROJ
> PROJ\src
> PROJ\src\webapp
> PROJ\src\webapp\WEB-INF
> PROJ\src\webapp\WEB-INF]web.xml
> PROJ\src\webapp2
> PROJ\src\webapp2\WEB-INF
> PROJ\src\webapp2\WEB-INF]web.xml
> 
> Plugin config:
> ...
> 
>   org.mortbay.jetty
>   maven-jetty-plugin
>   6.1.22
>   
> 
> ${basedir}/src/main/webapp2
>  ${basedir}/src/main/webapp2/WEB-INF/web.xml
>   
> 
> ...
> 
> I have tried to use the webapp2 for the source dir and it doesn't recognize
> it at all, maven doesn't seem to be reading the configuration at all. Also
> tried to use the webpp default configuration, and that initial error is
> still displayed:
> 
> [INFO] webAppSourceDirectory : [PROJ-PATH]\src\main\webapp\ does not exist.
> Defaulting to [PROJ-PATH]\src\main\webapp. 
> 
> Any direction on this?  All of the documentation suggests that this should
> work. 
> 
> --
> View this message in context: 
> http://maven.40175.n5.nabble.com/Maven-Jetty-Plugin-won-t-honor-webAppSourceDirectory-tp4774500p4774500.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
> 

Thanks,

Jason

--
Jason van Zyl
Founder,  Apache Maven
http://twitter.com/jvanzyl
-

the course of true love never did run smooth ...

 -- Shakespeare





Re: maven jetty plugin - running two jetty's with different ports

2011-02-28 Thread Anders Hammar
As that's a specific question for that plugin, you should probably ask on a
mailing list specific for that plugin.
I believe these are the appropriate ones:
http://jetty.codehaus.org/jetty/maven-plugin/mail-lists.html

/Anders

On Mon, Feb 28, 2011 at 10:59, Hauschel Fred Robert <
fredrobert.hausc...@cirquent.de> wrote:

> Hi List,
> is it possible to run two jetty instances one on port 8080 and one on
> port 8090?
> Both jetty's should start several webApps.
>
> "Running Multiple Webapps" is decribed in
> http://docs.codehaus.org/display/JETTY/Maven+Jetty+Plugin I hope this
> works.
>
> Thanks Fredy
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


Re: maven-jetty-plugin VS Tomcat

2009-12-28 Thread ykyuen

I found the failure reason.

It was because i tried to replace some strings when copying the webapps
folder using maven-antrun-plugin. and the .jar files in the ~/WEB-INF/lib
were corrupted during the string replacement. that's y there were
java.util.zip.ZipException and java.lang.ClassNotFoundException.

The problem is solved. Thanks.

Regards,
Kit
-- 
View this message in context: 
http://old.nabble.com/maven-jetty-plugin-VS-Tomcat-tp26897619p26950332.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Maven jetty plugin and excluding activation jar

2009-10-15 Thread richard schmidt
Okay, get it now...thanks for the hint!

On Thu, Oct 15, 2009 at 4:16 PM, richard schmidt wrote:

> I am sorry but I dont understand what you mean?
>
>
> On Thu, Oct 15, 2009 at 3:24 PM, Wayne Fay  wrote:
>
>> > How can I configure the maven-jetty-plugin to exclude the activation.jar
>> > when jetty starts up?
>>
>> Proper usage of profiles is nearly always the solution to these kinds
>> of problems.
>>
>> Wayne
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>> For additional commands, e-mail: users-h...@maven.apache.org
>>
>>
>


Re: Maven jetty plugin and excluding activation jar

2009-10-14 Thread richard schmidt
I am sorry but I dont understand what you mean?

On Thu, Oct 15, 2009 at 3:24 PM, Wayne Fay  wrote:

> > How can I configure the maven-jetty-plugin to exclude the activation.jar
> > when jetty starts up?
>
> Proper usage of profiles is nearly always the solution to these kinds
> of problems.
>
> Wayne
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


Re: Maven jetty plugin and excluding activation jar

2009-10-14 Thread Wayne Fay
> How can I configure the maven-jetty-plugin to exclude the activation.jar
> when jetty starts up?

Proper usage of profiles is nearly always the solution to these kinds
of problems.

Wayne

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Maven Jetty Plugin and filtered resources

2008-03-28 Thread Bruno Aranda
I have the same problem as explained below. Does someone know of a
solution or alternative?

Thanks,

Bruno

On 26/10/2006, Martin Gilday <[EMAIL PROTECTED]> wrote:
> Hi,
>  I am trying to use the Jetty plugin for Maven but have my web.xml
>  filtered with properties.  This is mainly as I have a "sandbox" profile
>  which when active would change the spring config file being used.
>
>  I have tried using the WAR plugin to define some filtered resources
>
>  
>   
> org.apache.maven.plugins
> maven-war-plugin
> 2.0
> 
>   
> 
>   src/main/webapp
>   true
> 
>   
> 
>   
>  
>
>  When I use "mvn package" the web.xml is filtered correctly, for both
>  profiles.  However when I use "mvn jetty:run" the properties are not
>  substituted.
>
>  Is it possible to do this?
>
>  Thanks,
>  Martin.
>
>  -
>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: maven jetty plugin

2007-11-15 Thread John Coleman
Thanks, but is that possible using the Mavenide? I'd like to be able to
easy run jetty with or without debug, the control being in a profile.

TIA
John

-Original Message-
From: Hugo Palma [mailto:[EMAIL PROTECTED] 
Sent: 14 November 2007 17:27
To: Maven Users List
Subject: Re: maven jetty plugin

Just provide those parameters to the maven JVM and jetty will use them.
I usually just set the env variable MAVEN_OPTS with:

MAVEN_OPTS="-Xdebug 
-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005"

and then just run:

mvn jetty:run

John Coleman wrote:
> Hi,
>
>  
>
> How do I run the jetty goal with jetty configured with a debug socket?
I
> need to pass -Xdebug and other properties to jetty.
>
>  
>
> TIA
>
> John
>
>  
>
>
> Eurobase International Limited and its subsidiaries (Eurobase) are
unable to exercise control over the content of information in E-Mails.
Any views and opinions expressed may be personal to the sender and are
not necessarily those of Eurobase. Eurobase will not enter into any
contractual obligations in respect of any part of its business in any
E-mail. 
>
> Privileged / confidential information may be contained in this message
and /or any attachments. This E-mail is intended for the use of the
addressee(s) only and may contain confidential information. If you are
not the / an intended recipient, you are hereby notified that any use or
dissemination of this communication is strictly prohibited.  If you
receive this transmission in error, please notify us immediately, and
then delete this E-mail. 
>
> Neither the sender nor Eurobase accepts any liability whatsoever for
any defects of any kind either in or arising from this E-mail
transmission. E-Mail transmission cannot be guaranteed to be secure or
error-free, as messages can be intercepted, lost, corrupted, destroyed,
contain viruses, or arrive late or incomplete. Eurobase does not accept
any responsibility for viruses and it is your responsibility to scan any
attachments.
>
> Eurobase Systems Limited is the main trading company in the Eurobase
International Group; registered in England and Wales as company number
02251162; registered address: Essex House, 2 County Place, Chelmsford,
Essex CM2 0RE, UK.
>
>
>   

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: maven jetty plugin

2007-11-14 Thread Hugo Palma

Just provide those parameters to the maven JVM and jetty will use them.
I usually just set the env variable MAVEN_OPTS with:

MAVEN_OPTS="-Xdebug 
-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005"


and then just run:

mvn jetty:run

John Coleman wrote:

Hi,

 


How do I run the jetty goal with jetty configured with a debug socket? I
need to pass -Xdebug and other properties to jetty.

 


TIA

John

 



Eurobase International Limited and its subsidiaries (Eurobase) are unable to exercise control over the content of information in E-Mails. Any views and opinions expressed may be personal to the sender and are not necessarily those of Eurobase. Eurobase will not enter into any contractual obligations in respect of any part of its business in any E-mail. 

Privileged / confidential information may be contained in this message and /or any attachments. This E-mail is intended for the use of the addressee(s) only and may contain confidential information. If you are not the / an intended recipient, you are hereby notified that any use or dissemination of this communication is strictly prohibited.  If you receive this transmission in error, please notify us immediately, and then delete this E-mail. 


Neither the sender nor Eurobase accepts any liability whatsoever for any 
defects of any kind either in or arising from this E-mail transmission. E-Mail 
transmission cannot be guaranteed to be secure or error-free, as messages can 
be intercepted, lost, corrupted, destroyed, contain viruses, or arrive late or 
incomplete. Eurobase does not accept any responsibility for viruses and it is 
your responsibility to scan any attachments.

Eurobase Systems Limited is the main trading company in the Eurobase 
International Group; registered in England and Wales as company number 
02251162; registered address: Essex House, 2 County Place, Chelmsford, Essex 
CM2 0RE, UK.


  


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: maven-jetty-plugin PluginDescriptor

2006-09-14 Thread franz see



franz see wrote:
> 
> Good day to you, Edwin,
> 
> I tried getting the sources of 6.0.0rc0 to 4 from [1] and installed them
> all in my repo but the error remains the same.
> 
> I've also tried downloading 6.0.0rc4 jar from [2] and install-file it but
> still the same error.
> 
> Any idea what's causing the error, or where should i start looking? :-)
> 
> Thanks a bunch,
> Franz
> 
> [1]
> http://sourceforge.net/project/showfiles.php?group_id=7322&package_id=106252
> [2] http://www.ibiblio.org/maven2/org/mortbay/jetty/maven-jetty-plugin/
> 
>> Edwin Punzalan wrote:
>> Hi.
>> 
>> I had the same problem and resolved it by using this instead:
>> 
>> mvn org.mortbay.jetty:maven-jetty-plugin:6.0.0rc4:run
>> 
>> Hope that helped.
>> 
>> 
>> ^_^
>> 
>> 
>> franz see wrote:
>> > Good day, 
>> >
>> > I have just checked out jetty from [1], and I built it using "mvn clean
>> > install -DupdateReleaseInfo=true. And it builds successfully. However,
>> > everytime I try to use it, I get a "The PluginDescriptor for the plugin
>> > Plugin [org.mortbay.jetty:jetty] was not found" error. 
>> >
>> > I've also checked the jar of that plugin, and indeed, it does contain
>> > META-INF/maven/plugin.xml.
>> >
>> > A sampe out build when I'm trying to use it in [2].
>> >
>> > What could  be wrong here and what coud be the solution? ^_^
>> >
>> > Thanks a bunch,
>> > Franz
>> >
>> > [1] http://svn.codehaus.org/jetty/jetty/trunk
>> > [2] http://rafb.net/paste/results/s2hUpB26.html
>> >
>> >
>> >   
> 
> 

Good day,

I actually stopped bothering to make this work and I simply launched jetty
itself (after manually transferring the WAR to .../jetty/webapps). It was
only recently that a friend of mine pointed out the solution.

Simply execute 

mvn -cpu -U jetty:run 

I don't really know if this would have work back when i asked this here
(though I do remember trying to use those arguements to make it
work)..nonetheless, my maven jetty plugin now works (finally) ^_^ 

Cheers, 
Franz
-- 
View this message in context: 
http://www.nabble.com/maven-jetty-plugin-PluginDescriptor-tf2225230.html#a6318047
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: maven-jetty-plugin PluginDescriptor

2006-09-06 Thread franz see

Good day to you, Edwin,

I tried getting the sources of 6.0.0rc0 to 4 from [1] and installed them all
in my repo but the error remains the same.

I've also tried downloading 6.0.0rc4 jar from [2] and install-file it but
still the same error.

Any idea what's causing the error, or where should i start looking? :-)

Thanks a bunch,
Franz

[1]
http://sourceforge.net/project/showfiles.php?group_id=7322&package_id=106252
[2] http://www.ibiblio.org/maven2/org/mortbay/jetty/maven-jetty-plugin/

> Edwin Punzalan wrote:
> Hi.
> 
> I had the same problem and resolved it by using this instead:
> 
> mvn org.mortbay.jetty:maven-jetty-plugin:6.0.0rc4:run
> 
> Hope that helped.
> 
> 
> ^_^
> 
> 
> franz see wrote:
> > Good day, 
> >
> > I have just checked out jetty from [1], and I built it using "mvn clean
> > install -DupdateReleaseInfo=true. And it builds successfully. However,
> > everytime I try to use it, I get a "The PluginDescriptor for the plugin
> > Plugin [org.mortbay.jetty:jetty] was not found" error. 
> >
> > I've also checked the jar of that plugin, and indeed, it does contain
> > META-INF/maven/plugin.xml.
> >
> > A sampe out build when I'm trying to use it in [2].
> >
> > What could  be wrong here and what coud be the solution? ^_^
> >
> > Thanks a bunch,
> > Franz
> >
> > [1] http://svn.codehaus.org/jetty/jetty/trunk
> > [2] http://rafb.net/paste/results/s2hUpB26.html
> >
> >
> >   

-- 
View this message in context: 
http://www.nabble.com/maven-jetty-plugin-PluginDescriptor-tf2225230.html#a6183595
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: maven-jetty-plugin PluginDescriptor

2006-09-06 Thread Edwin Punzalan

Hi.

I had the same problem and resolved it by using this instead:

   mvn org.mortbay.jetty:maven-jetty-plugin:6.0.0rc4:run

Hope that helped.


^_^


franz see wrote:
Good day, 


I have just checked out jetty from [1], and I built it using "mvn clean
install -DupdateReleaseInfo=true. And it builds successfully. However,
everytime I try to use it, I get a "The PluginDescriptor for the plugin
Plugin [org.mortbay.jetty:jetty] was not found" error. 


I've also checked the jar of that plugin, and indeed, it does contain
META-INF/maven/plugin.xml.

A sampe out build when I'm trying to use it in [2].

What could  be wrong here and what coud be the solution? ^_^

Thanks a bunch,
Franz

[1] http://svn.codehaus.org/jetty/jetty/trunk
[2] http://rafb.net/paste/results/s2hUpB26.html


  


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Maven Jetty Plugin

2004-06-26 Thread Nick Lothian
> > -Original Message-
> > From: Nick Lothian [mailto:[EMAIL PROTECTED]
> > Sent: samedi 26 juin 2004 10:42
> > To: [EMAIL PROTECTED]
> > Subject: Maven Jetty Plugin
> >
> > Is there any information for how to use the jetty plugin?
> >
> > I'd like to use it to start up a servlet and then run some JUnit tests
> > against it. I've figured out how to start it and configure it, but
> > starting jetty blocks the build process.
> >
> > Is there a way to fork the maven process that starts jetty, run the
> > JUnit tests and then signal to close it down?
> >
> 
> 
> 
>  
> 
> 
>  
> 
> 
> 
> 
> -Vincent
> 

Thanks - that's what I was looking for.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Maven Jetty Plugin

2004-06-26 Thread Vincent Massol


> -Original Message-
> From: Nick Lothian [mailto:[EMAIL PROTECTED]
> Sent: samedi 26 juin 2004 10:42
> To: [EMAIL PROTECTED]
> Subject: Maven Jetty Plugin
> 
> Is there any information for how to use the jetty plugin?
> 
> I'd like to use it to start up a servlet and then run some JUnit tests
> against it. I've figured out how to start it and configure it, but
> starting jetty blocks the build process.
> 
> Is there a way to fork the maven process that starts jetty, run the
> JUnit tests and then signal to close it down?
> 



  


  




-Vincent 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.710 / Virus Database: 466 - Release Date: 23/06/2004
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]