提交 ded37a2b 编写于 作者: K Kohsuke Kawaguchi

[JENKINS-16368] "mvn hudson-dev:run" to run with context path

This helps us catch a typical error of not using ${rootURL} or
getContextPath() where needed.
上级 a2dc21d8
...@@ -43,7 +43,7 @@ THE SOFTWARE. ...@@ -43,7 +43,7 @@ THE SOFTWARE.
<properties> <properties>
<JENKINS_HOME>${basedir}/work</JENKINS_HOME> <JENKINS_HOME>${basedir}/work</JENKINS_HOME>
<contextPath>/</contextPath><!-- context path during test --> <contextPath>/jenkins</contextPath><!-- context path during test -->
<port>8080</port><!-- HTTP listener port --> <port>8080</port><!-- HTTP listener port -->
</properties> </properties>
...@@ -386,7 +386,6 @@ THE SOFTWARE. ...@@ -386,7 +386,6 @@ THE SOFTWARE.
<artifactId>maven-jenkins-dev-plugin</artifactId> <artifactId>maven-jenkins-dev-plugin</artifactId>
<!-- version specified in grandparent pom --> <!-- version specified in grandparent pom -->
<configuration> <configuration>
<contextPath>${contextPath}</contextPath>
<!-- <!--
Reload webapp when you hit ENTER. (See JETTY-282 for more) Reload webapp when you hit ENTER. (See JETTY-282 for more)
--> -->
...@@ -466,6 +465,7 @@ THE SOFTWARE. ...@@ -466,6 +465,7 @@ THE SOFTWARE.
</systemProperty> </systemProperty>
</systemProperties> </systemProperties>
<webApp> <webApp>
<contextPath>${contextPath}</contextPath>
<configurationDiscovered>false</configurationDiscovered> <configurationDiscovered>false</configurationDiscovered>
</webApp> </webApp>
</configuration> </configuration>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册