nexus-rapture
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency>
<groupId>org.sonatype.nexus</groupId>
<artifactId>nexus-rapture</artifactId>
<version>3.85.0-03</version>
</dependency><?xml version="1.0" encoding="UTF-8"?>
<!--
Sonatype Nexus (TM) Open Source Version
Copyright (c) 2008-present Sonatype, Inc.
All rights reserved. Includes the third-party code listed at http://links.sonatype.com/products/nexus/oss/attributions.
This program and the accompanying materials are made available under the terms of the Eclipse Public License Version 1.0,
which accompanies this distribution and is available at http://www.eclipse.org/legal/epl-v10.html.
Sonatype Nexus (TM) Professional Version is available from Sonatype, Inc. "Sonatype" and "Sonatype Nexus" are trademarks
of Sonatype, Inc. Apache Maven is a trademark of the Apache Software Foundation. M2eclipse is a trademark of the
Eclipse Foundation. All other trademarks are the property of their respective owners.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.sonatype.nexus</groupId>
<artifactId>nexus-components</artifactId>
<version>3.85.0-03</version>
</parent>
<artifactId>nexus-rapture</artifactId>
<name>${project.groupId}:${project.artifactId}</name>
<properties>
<resource.url.suffix>?_v=${project.version}&_dc=${resource.url.suffix.timestamp}</resource.url.suffix>
<sonar.sources>src/main/java,src/main/resources/static/rapture</sonar.sources>
<sonar.exclusions>
src/main/resources/static/rapture/baseapp-*.js
</sonar.exclusions>
</properties>
<dependencies>
<dependency>
<groupId>org.sonatype.nexus</groupId>
<artifactId>nexus-extdirect</artifactId>
</dependency>
<dependency>
<groupId>org.sonatype.nexus</groupId>
<artifactId>nexus-capability</artifactId>
</dependency>
<dependency>
<groupId>org.sonatype.nexus</groupId>
<artifactId>nexus-ui-plugin</artifactId>
</dependency>
<dependency>
<groupId>org.sonatype.nexus</groupId>
<artifactId>nexus-base</artifactId>
</dependency>
<dependency>
<groupId>io.dropwizard.metrics</groupId>
<artifactId>metrics-annotation</artifactId>
</dependency>
<dependency>
<groupId>org.sonatype.nexus</groupId>
<artifactId>nexus-testsupport</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.dropwizard.metrics</groupId>
<artifactId>metrics-healthchecks</artifactId>
</dependency>
<dependency>
<groupId>io.dropwizard.metrics</groupId>
<artifactId>metrics-core</artifactId>
</dependency>
<dependency>
<groupId>org.sonatype.nexus</groupId>
<artifactId>nexus-scheduling</artifactId>
</dependency>
<dependency>
<groupId>cglib</groupId>
<artifactId>cglib-nodep</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<configuration>
<excludePackageNames>
org.sonatype.nexus.rapture.internal.branding:org.sonatype.nexus.rapture.internal.security
</excludePackageNames>
</configuration>
</plugin>
<plugin>
<groupId>org.sonatype.nexus.buildsupport</groupId>
<artifactId>extjs-maven-plugin</artifactId>
<configuration>
<namespace>NX</namespace>
<excludes>
<exclude>baseapp-*.js</exclude>
</excludes>
</configuration>
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>yuicompressor-maven-plugin</artifactId>
<executions>
<execution>
<id>loading-css</id>
<goals>
<goal>aggregate-css</goal>
</goals>
<configuration>
<output>${project.build.outputDirectory}/static/rapture/resources/loading-prod.css</output>
<sourceDirectory>${project.basedir}/src/main/resources/static/rapture/resources</sourceDirectory>
<includes>
<include>loading-debug.css</include>
</includes>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>buildnumber-maven-plugin</artifactId>
<executions>
<execution>
<id>resource-timestamp</id>
<phase>initialize</phase>
<goals>
<goal>create-timestamp</goal>
</goals>
<configuration>
<timestampPropertyName>resource.url.suffix.timestamp</timestampPropertyName>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<executions>
<execution>
<!-- remove the _dc query parameter for non-SNAPSHOT versions -->
<id>resource-timestamp-clean</id>
<phase>initialize</phase>
<goals>
<goal>regex-property</goal>
</goals>
<configuration>
<name>resource.url.suffix</name>
<value>${resource.url.suffix}</value>
<regex><![CDATA[(_v=[\d\.\-]+)&_dc=\d+]]></regex>
<replacement>$1</replacement>
<failIfNoMatch>false</failIfNoMatch>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>add-react-sources</id>
<phase>package</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<zip destfile="${project.build.directory}/${project.artifactId}-${project.version}-sources.jar"
update="true">
<zipfileset dir="${project.basedir}/src/frontend" prefix="${project.artifactId}/src/frontend"/>
<zipfileset dir="${project.basedir}" includes=".swcrc" prefix="${project.artifactId}"/>
<zipfileset dir="${project.basedir}" includes="rspack*.js" prefix="${project.artifactId}"/>
<zipfileset dir="${project.basedir}" includes="package.json" prefix="${project.artifactId}"/>
</zip>
</target>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>jslint</id>
<build>
<plugins>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>yuicompressor-maven-plugin</artifactId>
<configuration>
<sourceDirectory>${project.basedir}/src/main/resources/static/rapture</sourceDirectory>
<excludes>
<exclude>Ext/ux/**</exclude>
</excludes>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>