Use properties in settings. Subir
-----Original Message----- From: darniz [mailto:[email protected]] Sent: Thursday, April 29, 2010 10:57 PM To: [email protected] Subject: Re: Configure jetty port in profiles Any update guys. i know if i am in a hurry darniz wrote: > > Hi All > I figured out how to start jetty on default port on 80 with http and > https. > <plugin> > <groupId>org.mortbay.jetty</groupId> > <artifactId>maven-jetty-plugin</artifactId> > <version>6.1.16</version> > <configuration> > <scanIntervalSeconds>10</scanIntervalSeconds> > > <jettyEnvXml>${basedir}/src/test/resources/jetty-env.xml</jettyEnvXml> > <connectors> > <connector > implementation="org.mortbay.jetty.nio.SelectChannelConnector"> > <port>80</port> > <maxIdleTime>60000</maxIdleTime> > </connector> > > <connector > implementation="org.mortbay.jetty.security.SslSocketConnector"> > <port>443</port> > <maxIdleTime>60000</maxIdleTime> > <keystore>c:/xxx-ssl.keystore</keystore> > <password>xxx</password> > <keyPassword>xxx</keyPassword> > </connector> > </connectors> > </configuration> > </plugin> > The issue is that i want to change the jetty port only for my machine. > So i came accorss setting profiles.i can activate a specific profile > using maven jetty:run -Denvironment=mylocaljetty then that profile is > pulled in something like this > <profile> > <activation> > <property> > <name>environment</name> > <value>mylocaljetty</value> > </property> > </activation> > ... > </profile> > > the issue is that in profile element how can i speciy the jetty:port > and the https credential detail. any examples. > Thanks > darniz > -- View this message in context: http://old.nabble.com/Configure-jetty-port-in-profiles-tp28394619p284035 09.html Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] Please do not print this email unless it is absolutely necessary. The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
