mirror of https://github.com/jenkinsci/jenkins.git
generate license from the war, to really include everything
This commit is contained in:
parent
80576ef0d6
commit
31bb961f4d
|
@ -225,13 +225,6 @@ THE SOFTWARE.
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin><!-- generate licenses.xml -->
|
|
||||||
<groupId>com.cloudbees</groupId>
|
|
||||||
<artifactId>maven-license-plugin</artifactId>
|
|
||||||
<configuration>
|
|
||||||
<generateLicenseXml>target/classes/META-INF/licenses.xml</generateLicenseXml>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
|
|
34
war/pom.xml
34
war/pom.xml
|
@ -132,6 +132,22 @@ THE SOFTWARE.
|
||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
<plugin><!-- generate licenses.xml -->
|
||||||
|
<groupId>com.cloudbees</groupId>
|
||||||
|
<artifactId>maven-license-plugin</artifactId>
|
||||||
|
<configuration>
|
||||||
|
<generateLicenseXml>target/classes/META-INF/licenses.xml</generateLicenseXml>
|
||||||
|
<inlineScript>
|
||||||
|
filter {
|
||||||
|
// add Winstone since we are bundling it.
|
||||||
|
def d = project.dependencies.find { it.artifactId=="winstone" };
|
||||||
|
def a = mojo.artifactFactory.createProjectArtifact(d.groupId,d.artifactId,d.version);
|
||||||
|
def p = mojo.projectBuilder.buildFromRepository(a, project.getRemoteArtifactRepositories(), mojo.localRepository)
|
||||||
|
models.put(a,p);
|
||||||
|
}
|
||||||
|
</inlineScript>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
<!-- this is really just a patched version of maven-jetty-plugin to workaround issue #932 -->
|
<!-- this is really just a patched version of maven-jetty-plugin to workaround issue #932 -->
|
||||||
<groupId>org.jenkins-ci.tools</groupId>
|
<groupId>org.jenkins-ci.tools</groupId>
|
||||||
|
@ -148,14 +164,16 @@ THE SOFTWARE.
|
||||||
<port>${port}</port>
|
<port>${port}</port>
|
||||||
</connector>
|
</connector>
|
||||||
</connectors>
|
</connectors>
|
||||||
<!--
|
<additionalClassesDirectories>
|
||||||
read directly from core module's output directory,
|
<!-- load resoures straight from source -->
|
||||||
so that changes are picked up right away without running mvn.
|
<additionalClassesDirectory>../core/src/main/resources</additionalClassesDirectory>
|
||||||
-->
|
|
||||||
<classesDirectory>../core/target/classes</classesDirectory>
|
<!--
|
||||||
<!-- use the test classpath for loading resources, since this takes priority -->
|
read directly from core module's output directory,
|
||||||
<testClassesDirectory>../core/src/main/resources</testClassesDirectory>
|
so that changes are picked up right away without running mvn.
|
||||||
<useTestClasspath>true</useTestClasspath>
|
-->
|
||||||
|
<additionalClassesDirectory>../core/target/classes</additionalClassesDirectory>
|
||||||
|
</additionalClassesDirectories>
|
||||||
<userRealms>
|
<userRealms>
|
||||||
<userRealm implementation="org.mortbay.jetty.security.HashUserRealm">
|
<userRealm implementation="org.mortbay.jetty.security.HashUserRealm">
|
||||||
<name>default</name>
|
<name>default</name>
|
||||||
|
|
Loading…
Reference in New Issue