All Downloads are FREE. Search and download functionalities are using the official Maven repository.

nexus.nexus-rapture.3.0.0-03.source-code.pom.xml Maven / Gradle / Ivy

<?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.0.0-03</version>
  </parent>

  <artifactId>nexus-rapture</artifactId>
  <name>${project.groupId}:${project.artifactId}</name>
  <packaging>bundle</packaging>

  <properties>
    <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.osgi</groupId>
      <artifactId>org.osgi.core</artifactId>
      <scope>provided</scope>
    </dependency>

    <dependency>
      <groupId>com.codahale.metrics</groupId>
      <artifactId>metrics-annotation</artifactId>
      <scope>provided</scope>
    </dependency>

    <dependency>
      <groupId>org.sonatype.goodies</groupId>
      <artifactId>goodies-testsupport</artifactId>
      <scope>test</scope>
    </dependency>
  </dependencies>

  <build>
    <plugins>
      <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>
    </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>

    <profile>
      <id>install-ext</id>

      <build>
        <defaultGoal>install:install-file</defaultGoal>

        <plugins>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-install-plugin</artifactId>
            <configuration>
              <file>${ext.dist}</file>
              <groupId>com.sencha</groupId>
              <artifactId>ext</artifactId>
              <classifier>commercial</classifier>
              <packaging>zip</packaging>
              <version>${ext.version}</version>
            </configuration>
          </plugin>
        </plugins>
      </build>
    </profile>

    <profile>
      <id>driver</id>

      <dependencies>
        <dependency>
          <groupId>com.sencha</groupId>
          <artifactId>ext</artifactId>
          <classifier>commercial</classifier>
          <type>zip</type>
        </dependency>
      </dependencies>

      <build>
        <defaultGoal>initialize</defaultGoal>
        <plugins>
          <plugin>
            <groupId>org.codehaus.gmaven</groupId>
            <artifactId>gmaven-plugin</artifactId>
            <executions>
              <execution>
                <phase>initialize</phase>
                <goals>
                  <goal>execute</goal>
                </goals>
                <configuration>
                  <source>${project.basedir}/src/main/script/driver.groovy</source>
                </configuration>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>

</project>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy