duguo.org »
last updated 16:30, 14 August 2007 by Du, Guo
Browse File System With Maven Jetty Plugin
From duguo.org
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.duguo.maven.sample</groupId>
<artifactId>browse-fs</artifactId>
<version>1.0.0-SNAPSHOT</version>
<build>
<defaultGoal>validate</defaultGoal>
<plugins>
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>maven-jetty-plugin</artifactId>
<executions>
<execution>
<phase>validate</phase>
<goals>
<goal>run-exploded</goal>
</goals>
</execution>
</executions>
<configuration>
<connectors>
<connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">
<port>9090</port>
</connector>
</connectors>
<webApp>c:\</webApp>
<contextPath>/</contextPath>
<requestLog implementation="org.mortbay.jetty.NCSARequestLog">
<filename>target/yyyy_mm_dd.request.log</filename>
<retainDays>90</retainDays>
<append>true</append>
<extended>false</extended>
<logTimeZone>GMT</logTimeZone>
</requestLog>
</configuration>
</plugin>
</plugins>
</build>
</project>
Deploy
Then you may deploy the file to repository
mvn deploy:deploy-file -Durl=${mediaServer}/repository -DrepositoryId=mediaServer -Dfile=pom.xml -DpomFile=pom.xml