Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 84ff0b1459
Fetching contributors…

Cannot retrieve contributors at this time

526 lines (499 sloc) 23.349 kb
<!--
Sonatype Nexus (TM) Open Source Version
Copyright (c) 2007-2012 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">
<!-- the version of maven's project object model -->
<modelVersion>4.0.0</modelVersion>
<!-- Parent POM -->
<parent>
<groupId>org.sonatype.nexus</groupId>
<artifactId>nexus</artifactId>
<version>2.3-SNAPSHOT</version>
</parent>
<!-- a unique name for this project -->
<artifactId>nexus-webapp</artifactId>
<!--we don't need this to be a jar except that the app assembler crashes if it's not -->
<packaging>war</packaging>
<!-- a short but descriptive name for the project -->
<name>Nexus : Web Application</name>
<properties>
<nexus-tools-input>target/nexus-tools</nexus-tools-input>
<compressed-dir>${project.build.directory}/ui-compressed</compressed-dir>
<plugin-repository.directory>${project.build.finalName}/WEB-INF/plugin-repository</plugin-repository.directory>
<optional-plugins.directory>${project.build.finalName}/WEB-INF/optional-plugins</optional-plugins.directory>
</properties>
<dependencies>
<!-- This is here to prevent it coming into WAR -->
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.sonatype.nexus.plugins</groupId>
<artifactId>nexus-lvo-plugin</artifactId>
<version>${project.version}</version>
</dependency>
<!-- The bundle -->
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-slf4j-logging</artifactId>
</dependency>
<dependency>
<groupId>org.sonatype.nexus</groupId>
<artifactId>nexus-web-utils</artifactId>
</dependency>
<dependency>
<groupId>org.sonatype.nexus</groupId>
<artifactId>nexus-logging-extras</artifactId>
</dependency>
<dependency>
<groupId>org.sonatype.nexus</groupId>
<artifactId>nexus-rest-api</artifactId>
<exclusions>
<exclusion>
<groupId>org.mortbay.jetty</groupId>
<artifactId>servlet-api-2.5</artifactId>
</exclusion>
<exclusion>
<groupId>org.mortbay.jetty</groupId>
<artifactId>servlet-api</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.sonatype.nexus</groupId>
<artifactId>nexus-plugin-manager</artifactId>
</dependency>
<dependency>
<groupId>org.sonatype.plugin</groupId>
<artifactId>plugin-api</artifactId>
</dependency>
<!-- There are problems with the Maven reactor that would require these modules However if we include as a test scope the reactor will be happy and the dependency pom will be correct -->
<dependency>
<groupId>org.sonatype.nexus.plugins</groupId>
<artifactId>nexus-plugin-console-plugin</artifactId>
<version>${project.version}</version>
<classifier>bundle</classifier>
<type>zip</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.sonatype.nexus.plugins</groupId>
<artifactId>nexus-core-documentation-plugin</artifactId>
<version>${project.version}</version>
<classifier>bundle</classifier>
<type>zip</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.sonatype.nexus.plugins.ldap</groupId>
<artifactId>nexus-ldap-realm-plugin</artifactId>
<version>${project.version}</version>
<classifier>bundle</classifier>
<type>zip</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.sonatype.nexus.plugins</groupId>
<artifactId>nexus-maven-bridge-plugin</artifactId>
<version>${project.version}</version>
<classifier>bundle</classifier>
<type>zip</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.sonatype.nexus.plugins</groupId>
<artifactId>nexus-rrb-plugin</artifactId>
<version>${project.version}</version>
<classifier>bundle</classifier>
<type>zip</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.sonatype.nexus.plugins</groupId>
<artifactId>nexus-indexer-lucene-plugin</artifactId>
<version>${project.version}</version>
<classifier>bundle</classifier>
<type>zip</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.sonatype.nexus.plugins</groupId>
<artifactId>nexus-timeline-plugin</artifactId>
<version>${project.version}</version>
<classifier>bundle</classifier>
<type>zip</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.sonatype.nexus.plugins</groupId>
<artifactId>nexus-archetype-plugin</artifactId>
<version>${project.version}</version>
<classifier>bundle</classifier>
<type>zip</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.sonatype.nexus.plugins</groupId>
<artifactId>nexus-groovy-console-plugin</artifactId>
<version>${project.version}</version>
<classifier>bundle</classifier>
<type>zip</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>httpunit</groupId>
<artifactId>httpunit</artifactId>
<version>1.6.2</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>unpack-plugins</id>
<phase>prepare-package</phase>
<goals>
<goal>unpack</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>org.sonatype.nexus.plugins</groupId>
<artifactId>nexus-plugin-console-plugin</artifactId>
<version>${project.version}</version>
<classifier>bundle</classifier>
<type>zip</type>
<outputDirectory>target/${plugin-repository.directory}</outputDirectory>
</artifactItem>
<artifactItem>
<groupId>org.sonatype.nexus.plugins</groupId>
<artifactId>nexus-core-documentation-plugin</artifactId>
<version>${project.version}</version>
<classifier>bundle</classifier>
<type>zip</type>
<outputDirectory>target/${plugin-repository.directory}</outputDirectory>
</artifactItem>
<artifactItem>
<groupId>org.sonatype.nexus.plugins.ldap</groupId>
<artifactId>nexus-ldap-realm-plugin</artifactId>
<version>${project.version}</version>
<classifier>bundle</classifier>
<type>zip</type>
<outputDirectory>target/${plugin-repository.directory}</outputDirectory>
</artifactItem>
<artifactItem>
<groupId>org.sonatype.nexus.plugins</groupId>
<artifactId>nexus-rrb-plugin</artifactId>
<version>${project.version}</version>
<classifier>bundle</classifier>
<type>zip</type>
<outputDirectory>target/${plugin-repository.directory}</outputDirectory>
</artifactItem>
<artifactItem>
<groupId>org.sonatype.nexus.plugins</groupId>
<artifactId>nexus-indexer-lucene-plugin</artifactId>
<version>${project.version}</version>
<classifier>bundle</classifier>
<type>zip</type>
<outputDirectory>target/${plugin-repository.directory}</outputDirectory>
</artifactItem>
<artifactItem>
<groupId>org.sonatype.nexus.plugins</groupId>
<artifactId>nexus-timeline-plugin</artifactId>
<version>${project.version}</version>
<classifier>bundle</classifier>
<type>zip</type>
<outputDirectory>target/${plugin-repository.directory}</outputDirectory>
</artifactItem>
<artifactItem>
<groupId>org.sonatype.nexus.plugins</groupId>
<artifactId>nexus-archetype-plugin</artifactId>
<version>${project.version}</version>
<classifier>bundle</classifier>
<type>zip</type>
<outputDirectory>target/${plugin-repository.directory}</outputDirectory>
</artifactItem>
<artifactItem>
<groupId>org.sonatype.nexus.plugins</groupId>
<artifactId>nexus-groovy-console-plugin</artifactId>
<version>${project.version}</version>
<classifier>bundle</classifier>
<type>zip</type>
<outputDirectory>target/${optional-plugins.directory}</outputDirectory>
</artifactItem>
<artifactItem>
<groupId>org.sonatype.nexus.plugins</groupId>
<artifactId>nexus-maven-bridge-plugin</artifactId>
<version>${project.version}</version>
<classifier>bundle</classifier>
<type>zip</type>
<outputDirectory>target/${optional-plugins.directory}</outputDirectory>
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>net.sf.alchim</groupId>
<artifactId>yuicompressor-maven-plugin</artifactId>
<version>0.7.1</version>
<dependencies>
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-utils</artifactId>
<version>2.0.1</version>
</dependency>
</dependencies>
<executions>
<execution>
<id>jsfiles</id>
<goals>
<goal>compress</goal>
</goals>
<configuration>
<aggregations>
<aggregation>
<output>${compressed-dir}/js/sonatype-all.js</output>
<!-- files to include, path relative to output's directory or absolute path -->
<includes>
<include>${basedir}/src/main/webapp/ext-2.3/adapter/ext/ext-base.js</include>
<include>${basedir}/src/main/webapp/ext-2.3/ext-all.js</include>
<include>${compressed-dir}/js/nexus/common.js</include>
<include>${compressed-dir}/js/nexus/error/common.js</include>
<include>${compressed-dir}/js/nexus/error/ErrorHandler.js</include>
<include>${compressed-dir}/js/nexus/util/common.js</include>
<include>${compressed-dir}/js/nexus/util/Format.js</include>
<include>${compressed-dir}/js/extensions/ext-override.js</include>
<include>${compressed-dir}/js/filetree/js/Ext.ux.form.BrowseButton.js</include>
<include>${compressed-dir}/js/groupcombo/groupcombo.js</include>
<include>${compressed-dir}/js/groupcombo/groupdataview.js</include>
<include>${compressed-dir}/js/Sonatype.js</include>
<include>${compressed-dir}/js/extensions/Ext.messagebox.js</include>
<include>${compressed-dir}/js/extensions/Ext.form.js</include>
<include>${compressed-dir}/js/extensions/SearchField.js</include>
<include>${compressed-dir}/js/extensions/Sonatype.ext.FeedGrid.js</include>
<include>${compressed-dir}/js/extensions/Ext.tree.js</include>
<include>${compressed-dir}/js/extensions/ext.util.md5.js</include>
<include>${compressed-dir}/js/extensions/MultiSelectTree.js</include>
<include>${compressed-dir}/js/extensions/TwinPanelController.js</include>
<include>${compressed-dir}/js/extensions/TextEntryList.js</include>
<include>${compressed-dir}/js/extensions/Sonatype.events.js</include>
<include>${compressed-dir}/js/extensions/Sonatype.navigation.js</include>
<include>${compressed-dir}/js/extensions/Sonatype.panels.js</include>
<include>${compressed-dir}/js/extensions/Ext.ux.form.LovCombo.js</include>
<include>${compressed-dir}/js/extensions/Ext.ux.ThemeCombo.js</include>
<include>${compressed-dir}/js/extensions/RoleSelector.js</include>
<include>${compressed-dir}/js/nexus/form/common.js</include>
<include>${compressed-dir}/js/nexus/form/LabelField.js</include>
<include>${compressed-dir}/js/Sonatype.utils.js</include>
<include>${compressed-dir}/js/Sonatype.config.js</include>
<include>${compressed-dir}/js/Sonatype.lib.js</include>
<include>${compressed-dir}/js/Sonatype.resources.js</include>
<include>${compressed-dir}/js/Sonatype.headLinks.js</include>
<include>${compressed-dir}/js/Sonatype.view.js</include>
<include>${compressed-dir}/js/extensions/ZeroClipboard.js</include>
<include>${compressed-dir}/js/formFieldGenerator.js</include>
<include>${compressed-dir}/js/repoServer/repoServer.referenceData.js</include>
<include>${compressed-dir}/js/repoServer/repoServer.resources.js</include>
<include>${compressed-dir}/js/repoServer/repoServer.FeedViewPanel.js</include>
<include>${compressed-dir}/js/repoServer/repoServer.ArtifactContainer.js</include>
<include>${compressed-dir}/js/repoServer/repoServer.LogsViewPanel.js</include>
<include>${compressed-dir}/js/repoServer/repoServer.ServerEditPanel.js</include>
<include>${compressed-dir}/js/repoServer/repoServer.RoutesEditPanel.js</include>
<include>${compressed-dir}/js/repoServer/repoServer.SchedulesEditPanel.js</include>
<include>${compressed-dir}/js/repoServer/repoServer.UserEditPanel.js</include>
<include>${compressed-dir}/js/repoServer/repoServer.RoleEditPanel.js</include>
<include>${compressed-dir}/js/repoServer/repoServer.PrivilegeEditPanel.js</include>
<include>${compressed-dir}/js/repoServer/repoServer.AbstractRepoPanel.js</include>
<include>${compressed-dir}/js/repoServer/repoServer.FileUploadPanel.js</include>
<include>${compressed-dir}/js/repoServer/repoServer.RepoMaintPanel.js</include>
<include>${compressed-dir}/js/repoServer/repoServer.RepositoryBrowserContainer.js</include>
<include>${compressed-dir}/js/repoServer/repoServer.RepoEditPanel.js</include>
<include>${compressed-dir}/js/repoServer/repoServer.GroupsEditPanel.js</include>
<include>${compressed-dir}/js/repoServer/repoServer.RepoServer.js</include>
<include>${compressed-dir}/js/repoServer/repoServer.RepoTargetEditPanel.js</include>
<include>${compressed-dir}/js/repoServer/repoServer.helpAbout.js</include>
<include>${compressed-dir}/js/repoServer/repoServer.Documentation.js</include>
<include>${compressed-dir}/js/repoServer/repoServer.LogEditPanel.js</include>
<include>${compressed-dir}/js/repoServer/repoServer.MirrorConfigPanel.js</include>
<include>${compressed-dir}/js/repoServer/repoServer.UserBrowserPanel.js</include>
<include>${compressed-dir}/js/repoServer/repoServer.UserPrivilegeBrowserPanel.js</include>
<include>${compressed-dir}/js/repoServer/repoServer.RepoSummaryPanel.js</include>
<include>${compressed-dir}/js/repoServer/repoServer.Maven2InformationPanel.js</include>
<include>${compressed-dir}/js/nexus/profile/common.js</include>
<include>${compressed-dir}/js/nexus/profile/UserProfile.js</include>
<include>${compressed-dir}/js/nexus/profile/Summary.js</include>
</includes>
</aggregation>
</aggregations>
</configuration>
</execution>
<execution>
<id>cssfiles</id>
<goals>
<goal>compress</goal>
</goals>
<configuration>
<aggregations>
<aggregation>
<output>${compressed-dir}/style/sonatype-all.css</output>
<!-- files to include, path relative to output's directory or absolute path -->
<includes>
<include>${compressed-dir}/style/Ext.ux.form.LovCombo.css</include>
<include>${compressed-dir}/style/Sonatype.css</include>
</includes>
</aggregation>
</aggregations>
</configuration>
</execution>
</executions>
<configuration>
<outputDirectory>${compressed-dir}</outputDirectory>
<sourceDirectory>${basedir}/src/main/webapp</sourceDirectory>
<webappDirectory>${compressed-dir}</webappDirectory>
<nosuffix>true</nosuffix>
<nomunge>true</nomunge>
<jswarn>false</jswarn>
<excludes>
<exclude>**/ext-2.3/**/*.js</exclude>
</excludes>
<aggregations>
<aggregation>
<!-- insert new line after each concatenation (default: false) -->
<insertNewLine>true</insertNewLine>
</aggregation>
</aggregations>
</configuration>
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>sisu-maven-plugin</artifactId>
<executions>
<execution>
<id>index-war</id>
<phase>prepare-package</phase>
<goals>
<goal>index</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-war-plugin</artifactId>
<version>2.1-alpha-2</version>
<configuration>
<warSourceIncludes>
*,
ext-2.3/ext-all-debug.js,
ext-2.3/ext-all.js,
ext-2.3/adapter/ext/ext-base.js,
ext-2.3/resources/css/ext-all.css,
ext-2.3/resources/css/xtheme-gray.css,
ext-2.3/resources/images/**,
images/**,
js/*,
js/extensions/*,
js/filetree/js/Ext.ux.form.BrowseButton.js,
js/groupcombo/*,
js/repoServer/*,
style/Sonatype.css,
style/Sonatype-content.css,
style/Ext.ux.form.LovCombo.css,
WEB-INF/*,
js/sonatype-all.js,
style/sonatype-all.css
</warSourceIncludes>
<webResources>
<webResource>
<directory>${compressed-dir}</directory>
<includes>
<include>**/sonatype-all.js</include>
<include>**/sonatype-all.css</include>
</includes>
</webResource>
</webResources>
</configuration>
</plugin>
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>${jetty.version}</version>
<configuration>
<webXml>${basedir}/src/main/webapp-war-extras/WEB-INF/web.xml</webXml>
</configuration>
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>plx-maven-plugin</artifactId>
<version>1.4</version>
<configuration>
<includeTestClasspath>true</includeTestClasspath>
<!-- prependClasspaths> <prependClasspath>${project.build.directory}/plexus-home/conf</prependClasspath> </prependClasspaths -->
<systemProperties>
<plexus.host.control.socket.enabled>true</plexus.host.control.socket.enabled>
</systemProperties>
<platformArtifact>
<groupId>org.sonatype.appbooter.plexus-platforms</groupId>
<artifactId>plexus-platform-base</artifactId>
<version>${plexus.appbooter.version}</version>
</platformArtifact>
<debugOutput>true</debugOutput>
</configuration>
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>provided-dependencies-maven-plugin</artifactId>
<version>1.5</version>
<executions>
<execution>
<id>generate-dependency-poms</id>
<phase>process-resources</phase>
<goals>
<goal>generate</goal>
</goals>
</execution>
<execution>
<id>attach-signatures</id>
<phase>verify</phase>
<goals>
<goal>attach-signatures</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.simplericity.jettyconsole</groupId>
<artifactId>jetty-console-maven-plugin</artifactId>
<version>1.42</version>
<executions>
<execution>
<configuration>
<backgroundImage>${basedir}/src/main/jettyconsole/background-image-nexus.jpg</backgroundImage>
<additionalDependencies>
<additionalDependency>
<artifactId>jetty-console-jettyxml-plugin</artifactId>
</additionalDependency>
</additionalDependencies>
</configuration>
<goals>
<goal>createconsole</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
Jump to Line
Something went wrong with that request. Please try again.