Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Jquery and Jquery UI webjars #464

Merged
merged 3 commits into from
May 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
103 changes: 103 additions & 0 deletions webapp/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,89 @@

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>3.6.1</version>
<executions>
<execution>
<id>unpack-webjars</id>
<phase>prepare-package</phase>
<goals>
<goal>unpack</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>org.mvnpm</groupId>
<artifactId>datatables.net</artifactId>
<type>jar</type>
<includes>
META-INF/resources/_static/datatables.net/*/js/*.js
</includes>
<fileMappers>
<org.codehaus.plexus.components.io.filemappers.RegExpFileMapper>
<pattern>^META-INF/resources/_static/datatables.net/[^/]+/</pattern>
<replacement>./</replacement>
</org.codehaus.plexus.components.io.filemappers.RegExpFileMapper>
</fileMappers>
<outputDirectory>target/${project.artifactId}-${project.version}/webjars/datatables/</outputDirectory>
</artifactItem>
<artifactItem>
<groupId>org.webjars</groupId>
<artifactId>jquery</artifactId>
<type>jar</type>
<includes>
META-INF/resources/webjars/jquery/*/*.map,
META-INF/resources/webjars/jquery/*/*.js
</includes>
<fileMappers>
<org.codehaus.plexus.components.io.filemappers.RegExpFileMapper>
<pattern>^META-INF/resources/webjars/jquery/[^/]+/</pattern>
<replacement>./</replacement>
</org.codehaus.plexus.components.io.filemappers.RegExpFileMapper>
</fileMappers>
<outputDirectory>target/${project.artifactId}-${project.version}/webjars/jquery/</outputDirectory>
</artifactItem>
<artifactItem>
<groupId>org.webjars.npm</groupId>
<artifactId>jquery-migrate</artifactId>
<type>jar</type>
<includes>
META-INF/resources/webjars/jquery-migrate/*/dist/*.js
</includes>
<fileMappers>
<org.codehaus.plexus.components.io.filemappers.RegExpFileMapper>
<pattern>^META-INF/resources/webjars/jquery-migrate/[^/]+/</pattern>
<replacement>./</replacement>
</org.codehaus.plexus.components.io.filemappers.RegExpFileMapper>
</fileMappers>
<outputDirectory>target/${project.artifactId}-${project.version}/webjars/jquery-migrate/</outputDirectory>
</artifactItem>
<artifactItem>
<groupId>org.webjars</groupId>
<artifactId>jquery-ui</artifactId>
<type>jar</type>
<includes>
META-INF/resources/webjars/jquery-ui/*/*.css,
META-INF/resources/webjars/jquery-ui/*/images/*.png,
META-INF/resources/webjars/jquery-ui/*/*.js
</includes>
<fileMappers>
<org.codehaus.plexus.components.io.filemappers.RegExpFileMapper>
<pattern>^META-INF/resources/webjars/jquery-ui/[^/]+/</pattern>
<replacement>./</replacement>
</org.codehaus.plexus.components.io.filemappers.RegExpFileMapper>
</fileMappers>
<outputDirectory>target/${project.artifactId}-${project.version}/webjars/jquery-ui/</outputDirectory>
</artifactItem>
</artifactItems>
<overWriteReleases>true</overWriteReleases>
<overWriteSnapshots>true</overWriteSnapshots>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-war-plugin</artifactId>
<configuration>
Expand All @@ -38,6 +121,26 @@
</build>

<dependencies>
<dependency>
<groupId>org.webjars.npm</groupId>
<artifactId>jquery-migrate</artifactId>
<version>3.4.1</version>
</dependency>
<dependency>
<groupId>org.mvnpm</groupId>
chenejac marked this conversation as resolved.
Show resolved Hide resolved
<artifactId>datatables.net</artifactId>
<version>2.0.5</version>
</dependency>
<dependency>
<groupId>org.webjars</groupId>
<artifactId>jquery</artifactId>
<version>3.7.1</version>
</dependency>
<dependency>
<groupId>org.webjars</groupId>
<artifactId>jquery-ui</artifactId>
<version>1.13.2</version>
</dependency>
<dependency>
<groupId>org.vivoweb</groupId>
<artifactId>vitro-api</artifactId>
Expand Down
Loading