[MRM-290] Ability to pre-configure the Jetty port in conf/plexus.xml

Submitted by: Olivier Lamy


git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@560419 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Porter 2007-07-27 23:13:16 +00:00
parent baa1c8af97
commit f96925f95c
3 changed files with 21 additions and 1 deletions

View File

@ -32,7 +32,7 @@
<standardWebappClassloader>true</standardWebappClassloader>
<listeners>
<http-listener>
<port>8080</port>
<port>${jetty.port}</port>
</http-listener>
<!--
<proxy-http-listener>

View File

@ -87,6 +87,11 @@
<artifactId>mail</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-contextualizer</artifactId>
<version>1.0-alpha-1</version>
</dependency>
</dependencies>
<build>
<plugins>
@ -123,6 +128,7 @@
<additionalCoreArtifact>directory-naming:naming-config</additionalCoreArtifact>
<additionalCoreArtifact>javax.mail:mail</additionalCoreArtifact>
<additionalCoreArtifact>javax.activation:activation</additionalCoreArtifact>
<additionalCoreArtifact>org.codehaus.plexus:plexus-contextualizer</additionalCoreArtifact>
</additionalCoreArtifacts>
</configuration>
</plugin>

View File

@ -24,6 +24,10 @@
<role>org.codehaus.plexus.naming.Naming</role>
<role-hint>dataSources</role-hint>
</component>
<component>
<role>org.codehaus.plexus.contextualizer.Contextualizer</role>
<role-hint>jettyConfiguration</role-hint>
</component>s
</load-on-start>
<components>
<component>
@ -108,6 +112,16 @@
</resources>
</configuration>
</component>
<component>
<role>org.codehaus.plexus.contextualizer.Contextualizer</role>
<role-hint>jettyConfiguration</role-hint>
<implementation>org.codehaus.plexus.contextualizer.DefaultContextualizer</implementation>
<configuration>
<contextValues>
<jetty.port>8080</jetty.port>
</contextValues>
</configuration>
</component>
</components>
</plexus>