Profile activation is fine by environment, but if you're using maven, just use the explicit profile activation -P profile-name.
mvn jetty:run -P build-profile-id Towards the bottom of the page (way past the build activation portion of profiles) is a section devoted to what you can put in a profile, which includes properties, reporting and build plugins, etc.,. http://maven.apache.org/guides/introduction/introduction-to-profiles.html -Nick On Thu, Apr 29, 2010 at 12:27 PM, darniz <[email protected]> wrote: > > 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-tp28394619p28403509.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] > >
