他のほとんどのWebファイルにsrc/main / webappを使用しながら、javascriptファイルのソースディレクトリとしてsrc / main / javascriptを使用したいのですが、maven jetty:runプラグインはデフォルトでこのディレクトリを認識しません。
以下は私がこれまでに得た限りですが、Jettyに私のjavascriptディレクトリを認識させていないようです。
<build>
<plugins>
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>maven-jetty-plugin</artifactId>
<version>6.1.12</version>
<configuration>
<webAppConfig>
<contextPath>/${project.artifactId}</contextPath>
<extraClasspath>target/classes/:src/main/javascript</extraClasspath>
</webAppConfig>
<webResources>
<resource>
<directory>src/main/webapp</directory>
<directory>src/main/javascript</directory>
</resource>
</webResources>
</configuration>
</plugin>
Maven Jettyプラグインにこの追加のWebディレクトリを認識させるにはどうすればよいですか?