Skip to content

Commit

Permalink
Adding jquery
Browse files Browse the repository at this point in the history
  • Loading branch information
cuioss committed Oct 25, 2023
1 parent 7abf62a commit b9b8927
Showing 1 changed file with 67 additions and 0 deletions.
67 changes: 67 additions & 0 deletions web-modules/cui-javascript/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,24 @@
<maven.jar.plugin.automatic.module.name>de.cuioss.jsf.javascript</maven.jar.plugin.automatic.module.name>
<plugin.resources.cuijs.target>
${project.build.directory}/classes/META-INF/resources/de.cuioss.javascript</plugin.resources.cuijs.target>
<thirdparty.js.target>
${project.build.directory}/classes/META-INF/resources/thirdparty.js</thirdparty.js.target>

<build.dependency.unpack>
${project.build.directory}/unpack</build.dependency.unpack>
<!-- Output from grunt-uglify task-->
<plugin.resources.cuijs.src>${project.build.directory}/uglify</plugin.resources.cuijs.src>
<version.webjar.jquery>3.7.1</version.webjar.jquery>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.webjars</groupId>
<artifactId>jquery</artifactId>
<version>${version.webjar.jquery}</version>
</dependency>
</dependencies>
</dependencyManagement>
<build>
<plugins>
<plugin>
Expand Down Expand Up @@ -54,6 +69,7 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<configuration>

<outputDirectory>${plugin.resources.cuijs.target}</outputDirectory>
<resources>
<resource>
Expand All @@ -64,6 +80,57 @@
</resources>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>unpack-thirdparty</id>
<phase>package</phase>
<goals>
<goal>unpack</goal>
</goals>
<configuration>
<artifactItems>
<artifact>
<groupId>org.webjars</groupId>
<artifactId>jquery</artifactId>
<version>${version.webjar.jquery}</version>
<type>jar</type>
<outputDirectory>${build.dependency.unpack}</outputDirectory>
<includes>**/webjars/jquery/**/*</includes>
</artifact>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<id>copy-files</id>
<phase>package</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${thirdparty.js.target}</outputDirectory>
<resources>
<resource>
<directory>
${build.dependency.unpack}/META-INF/resources/webjars/jquery/${version.webjar.jquery}/</directory>
<includes>
<include>**/jquery*</include>
</includes>
<filtering>false</filtering>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

0 comments on commit b9b8927

Please sign in to comment.