You are viewing a plain text version of this content. The canonical link for it is here.
Posted to site-commits@maven.apache.org by kh...@apache.org on 2014/08/27 22:28:02 UTC
svn commit: r920547 [11/47] - in
/websites/production/maven/content/plugins-archives/maven-deploy-plugin-LATEST:
./ apidocs/ apidocs/org/apache/maven/plugin/deploy/
apidocs/org/apache/maven/plugin/deploy/class-use/ apidocs/resources/ css/
examples/ tes...
Modified: websites/production/maven/content/plugins-archives/maven-deploy-plugin-LATEST/examples/deploying-in-legacy-layout.html
==============================================================================
--- websites/production/maven/content/plugins-archives/maven-deploy-plugin-LATEST/examples/deploying-in-legacy-layout.html (original)
+++ websites/production/maven/content/plugins-archives/maven-deploy-plugin-LATEST/examples/deploying-in-legacy-layout.html Wed Aug 27 20:27:59 2014
@@ -1,214 +1,230 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<!--
- | Generated by Apache Maven Doxia at Oct 14, 2013
- | Rendered using Apache Maven Stylus Skin 1.5
--->
-<html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <title>Apache Maven Deploy Plugin - Deploy an artifact in legacy layout</title>
- <style type="text/css" media="all">
- @import url("../css/maven-base.css");
- @import url("../css/maven-theme.css");
- @import url("../css/site.css");
- </style>
- <link rel="stylesheet" href="../css/print.css" type="text/css" media="print" />
- <meta name="author" content="Allan Ramirez" />
- <meta name="Date-Revision-yyyymmdd" content="20131014" />
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
-
-<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
-
-<script type="text/javascript">_uacct = "UA-140879-1";
- urchinTracker();</script>
- </head>
- <body class="composite">
- <div id="banner">
- <a href="../../../" id="bannerLeft">
- <img src="../../../images/apache-maven-project-2.png" alt="" />
- </a>
- <span id="bannerRight">
- <img src="../../../images/maven-logo-2.gif" alt="" />
- </span>
- <div class="clear">
- <hr/>
- </div>
- </div>
- <div id="breadcrumbs">
-
- <div class="xleft">
- <a href="http://www.apache.org/" class="externalLink">Apache</a>
- >
- <a href="../../../index.html">Maven</a>
- >
- <a href="../../index.html">Plugins</a>
- >
- <a href="../">Apache Maven Deploy Plugin</a>
- >
- Deploy an artifact in legacy layout
- </div>
- <div class="xright">
- Last Published: 2013-10-14
- | Version: 2.8.1
- </div>
- <div class="clear">
- <hr/>
- </div>
- </div>
- <div id="leftColumn">
- <div id="navcolumn">
-
- <h5>Overview</h5>
- <ul>
- <li class="none">
- <a href="../index.html">Introduction</a>
- </li>
- <li class="none">
- <a href="../plugin-info.html">Goals</a>
- </li>
- <li class="none">
- <a href="../usage.html">Usage</a>
- </li>
- <li class="none">
- <a href="../faq.html">FAQ</a>
- </li>
- <li class="none">
- <a href="../jira-report.html">Release Notes</a>
- </li>
- </ul>
- <h5>Examples</h5>
- <ul>
- <li class="collapsed">
- <a href="../project-deployment.html">Project Deployment</a>
- </li>
- <li class="expanded">
- <a href="../file-deployment.html">File Deployment</a>
- <ul>
- <li class="none">
- <a href="../examples/disabling-generic-pom.html">Disable the generation of pom</a>
- </li>
- <li class="none">
- <a href="../examples/deploying-with-customed-pom.html">Deploy an artifact with a customed pom</a>
- </li>
- <li class="none">
- <a href="../examples/deploying-with-classifiers.html">Deploy an artifact with classifier</a>
- </li>
- <li class="none">
- <a href="../examples/deploying-sources-javadoc.html">Deploy an artifact with sources and javadoc</a>
- </li>
- <li class="none">
- <strong>Deploy an artifact in legacy layout</strong>
- </li>
- </ul>
- </li>
- </ul>
- <h5>Project Documentation</h5>
- <ul>
- <li class="collapsed">
- <a href="../project-info.html">Project Information</a>
- </li>
- <li class="collapsed">
- <a href="../project-reports.html">Project Reports</a>
- </li>
- </ul>
- <h5>Maven Projects</h5>
- <ul>
- <li class="none">
- <a href="../../../ant-tasks/index.html">Ant Tasks</a>
- </li>
- <li class="none">
- <a href="../../../archetype/index.html">Archetype</a>
- </li>
- <li class="none">
- <a href="../../../doxia/index.html">Doxia</a>
- </li>
- <li class="none">
- <a href="../../../jxr/index.html">JXR</a>
- </li>
- <li class="none">
- <a href="../../../maven-1.x/index.html">Maven 1.x</a>
- </li>
- <li class="none">
- <a href="../../../index.html">Maven 2 & 3</a>
- </li>
- <li class="none">
- <a href="../../../pom/index.html">Parent POMs</a>
- </li>
- <li class="none">
- <a href="../../index.html">Plugins</a>
- </li>
- <li class="none">
- <a href="../../../plugin-tools/index.html">Plugin Tools</a>
- </li>
- <li class="none">
- <a href="../../../scm/index.html">SCM</a>
- </li>
- <li class="none">
- <a href="../../../shared/index.html">Shared Components</a>
- </li>
- <li class="none">
- <a href="../../../skins/index.html">Skins</a>
- </li>
- <li class="none">
- <a href="../../../surefire/index.html">Surefire</a>
- </li>
- <li class="none">
- <a href="../../../wagon/index.html">Wagon</a>
- </li>
- </ul>
- <h5>ASF</h5>
- <ul>
- <li class="none">
- <a href="http://www.apache.org/foundation/how-it-works.html" class="externalLink">How Apache Works</a>
- </li>
- <li class="none">
- <a href="http://www.apache.org/foundation/" class="externalLink">Foundation</a>
- </li>
- <li class="none">
- <a href="http://www.apache.org/foundation/sponsorship.html" class="externalLink">Sponsoring Apache</a>
- </li>
- <li class="none">
- <a href="http://www.apache.org/foundation/thanks.html" class="externalLink">Thanks</a>
- </li>
- </ul>
- <a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy">
- <img alt="Built by Maven" src="../images/logos/maven-feather.png"/>
- </a>
-
- </div>
- </div>
- <div id="bodyColumn">
- <div id="contentBox">
- <!-- Licensed to the Apache Software Foundation (ASF) under one --><!-- or more contributor license agreements. See the NOTICE file --><!-- distributed with this work for additional information --><!-- regarding copyright ownership. The ASF licenses this file --><!-- to you under the Apache License, Version 2.0 (the --><!-- "License"); you may not use this file except in compliance --><!-- with the License. You may obtain a copy of the License at --><!-- --><!-- http://www.apache.org/licenses/LICENSE-2.0 --><!-- --><!-- Unless required by applicable law or agreed to in writing, --><!-- software distributed under the License is distributed on an --><!-- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY --><!-- KIND, either express or implied. See the License for the --><!-- specific language governing permissions and limitations --><!-- under the License. --><!-- NOTE: For help with the syntax of this file, see: --><!-- http://maven.apache.org/doxia/references/apt-
format.html --><div class="section"><h2>Deploy an artifact in legacy layout<a name="Deploy_an_artifact_in_legacy_layout"></a></h2><p>"Legacy" is the layout used in maven 1 repositories while maven 2 uses "default". They are different in terms of directory structure, timestamp of snapshots in default and existence of metadata files in default.</p><ul><li>legacy layout directory structure:<div class="source"><pre> groupId
- |--artifactId
- |--jars
- `--artifact
-</pre></div></li><li>default layout directory structure:<div class="source"><pre> groupId
- |--artifactId
- |--version
- | `---artifact
- |---metadata
-</pre></div><p>In able to deploy an artifact in a legacy layout of repository, set the <b>repositoryLayout</b> parameter to <tt>legacy</tt> value.</p><div class="source"><pre>mvn org.apache.maven.plugins:maven-deploy-plugin:2.8.1:deploy-file -Durl=file:///C:/m2-repo \
- -DrepositoryId=some.id \
- -Dfile=your-artifact-1.0.jar \
- -DpomFile=your-pom.xml \
- -DrepositoryLayout=legacy
-</pre></div><p><b>Note</b>: By using the fully qualified path of a goal, you're ensured to be using the preferred version of the maven-deploy-plugin. When using <tt>mvn deploy:deploy-file</tt> its version depends on its specification in the pom or the version of Apache Maven.</p></li></ul></div>
- </div>
- </div>
- <div class="clear">
- <hr/>
- </div>
- <div id="footer">
- <div class="xright">
- © 2004-2013
- The Apache Software Foundation
-
- - <a href="http://maven.apache.org/privacy-policy.html">Privacy Policy</a>.
- Apache Maven, Maven, Apache, the Apache feather logo, and the Apache Maven project logos are trademarks of The Apache Software Foundation.
- </div>
- <div class="clear">
- <hr/>
- </div>
- </div>
- </body>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<!--
+ | Generated by Apache Maven Doxia at 2014-08-27
+ | Rendered using Apache Maven Stylus Skin 1.5
+-->
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <title>Apache Maven Deploy Plugin - Deploy an artifact in legacy layout</title>
+ <style type="text/css" media="all">
+ @import url("../css/maven-base.css");
+ @import url("../css/maven-theme.css");
+ @import url("../css/site.css");
+ </style>
+ <link rel="stylesheet" href="../css/print.css" type="text/css" media="print" />
+ <meta name="author" content="Allan Ramirez" />
+ <meta name="Date-Revision-yyyymmdd" content="20140827" />
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+
+<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
+
+<script type="text/javascript">_uacct = "UA-140879-1";
+ urchinTracker();</script>
+ </head>
+ <body class="composite">
+ <div id="banner">
+ <a href="../../../" id="bannerLeft">
+ <img src="../../../images/apache-maven-project-2.png" alt="" />
+ </a>
+ <span id="bannerRight">
+ <img src="../../../images/maven-logo-2.gif" alt="" />
+ </span>
+ <div class="clear">
+ <hr/>
+ </div>
+ </div>
+ <div id="breadcrumbs">
+
+ <div class="xleft">
+ <a href="http://www.apache.org/" class="externalLink">Apache</a>
+ >
+ <a href="../../../index.html">Maven</a>
+ >
+ <a href="../../index.html">Plugins</a>
+ >
+ <a href="../">Apache Maven Deploy Plugin</a>
+ >
+ Deploy an artifact in legacy layout
+ </div>
+ <div class="xright">
+ Last Published: 2014-08-27
+ | Version: 2.8.2
+ </div>
+ <div class="clear">
+ <hr/>
+ </div>
+ </div>
+ <div id="leftColumn">
+ <div id="navcolumn">
+
+ <h5>Overview</h5>
+ <ul>
+ <li class="none">
+ <a href="../index.html">Introduction</a>
+ </li>
+ <li class="none">
+ <a href="../plugin-info.html">Goals</a>
+ </li>
+ <li class="none">
+ <a href="../usage.html">Usage</a>
+ </li>
+ <li class="none">
+ <a href="../faq.html">FAQ</a>
+ </li>
+ <li class="none">
+ <a href="../jira-report.html">Release Notes</a>
+ </li>
+ <li class="none">
+ <a href="http://www.apache.org/licenses/" class="externalLink">License</a>
+ </li>
+ <li class="none">
+ <a href="../download.html">Download</a>
+ </li>
+ </ul>
+ <h5>Examples</h5>
+ <ul>
+ <li class="collapsed">
+ <a href="../project-deployment.html">Project Deployment</a>
+ </li>
+ <li class="expanded">
+ <a href="../file-deployment.html">File Deployment</a>
+ <ul>
+ <li class="none">
+ <a href="../examples/disabling-generic-pom.html">Disable the generation of pom</a>
+ </li>
+ <li class="none">
+ <a href="../examples/deploying-with-customed-pom.html">Deploy an artifact with a customed pom</a>
+ </li>
+ <li class="none">
+ <a href="../examples/deploying-with-classifiers.html">Deploy an artifact with classifier</a>
+ </li>
+ <li class="none">
+ <a href="../examples/deploying-sources-javadoc.html">Deploy an artifact with sources and javadoc</a>
+ </li>
+ <li class="none">
+ <strong>Deploy an artifact in legacy layout</strong>
+ </li>
+ </ul>
+ </li>
+ </ul>
+ <h5>Project Documentation</h5>
+ <ul>
+ <li class="collapsed">
+ <a href="../project-info.html">Project Information</a>
+ </li>
+ <li class="collapsed">
+ <a href="../project-reports.html">Project Reports</a>
+ </li>
+ </ul>
+ <h5>Maven Projects</h5>
+ <ul>
+ <li class="none">
+ <a href="../../../ant-tasks/index.html">Ant Tasks</a>
+ </li>
+ <li class="none">
+ <a href="../../../archetype/index.html">Archetype</a>
+ </li>
+ <li class="none">
+ <a href="../../../doxia/index.html">Doxia</a>
+ </li>
+ <li class="none">
+ <a href="../../../jxr/index.html">JXR</a>
+ </li>
+ <li class="none">
+ <a href="../../../maven-1.x/index.html">Maven 1.x</a>
+ </li>
+ <li class="none">
+ <a href="../../../index.html">Maven 2 & 3</a>
+ </li>
+ <li class="none">
+ <a href="../../../pom/index.html">Parent POMs</a>
+ </li>
+ <li class="none">
+ <a href="../../index.html">Plugins</a>
+ </li>
+ <li class="none">
+ <a href="../../../plugin-tools/index.html">Plugin Tools</a>
+ </li>
+ <li class="none">
+ <a href="../../../scm/index.html">SCM</a>
+ </li>
+ <li class="none">
+ <a href="../../../shared/index.html">Shared Components</a>
+ </li>
+ <li class="none">
+ <a href="../../../skins/index.html">Skins</a>
+ </li>
+ <li class="none">
+ <a href="../../../surefire/index.html">Surefire</a>
+ </li>
+ <li class="none">
+ <a href="../../../wagon/index.html">Wagon</a>
+ </li>
+ </ul>
+ <h5>ASF</h5>
+ <ul>
+ <li class="none">
+ <a href="http://www.apache.org/foundation/how-it-works.html" class="externalLink">How Apache Works</a>
+ </li>
+ <li class="none">
+ <a href="http://www.apache.org/foundation/" class="externalLink">Foundation</a>
+ </li>
+ <li class="none">
+ <a href="http://www.apache.org/foundation/sponsorship.html" class="externalLink">Sponsoring Apache</a>
+ </li>
+ <li class="none">
+ <a href="http://www.apache.org/foundation/thanks.html" class="externalLink">Thanks</a>
+ </li>
+ </ul>
+ <a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy">
+ <img alt="Built by Maven" src="../images/logos/maven-feather.png"/>
+ </a>
+
+ </div>
+ </div>
+ <div id="bodyColumn">
+ <div id="contentBox">
+ <!-- Licensed to the Apache Software Foundation (ASF) under one --><!-- or more contributor license agreements. See the NOTICE file --><!-- distributed with this work for additional information --><!-- regarding copyright ownership. The ASF licenses this file --><!-- to you under the Apache License, Version 2.0 (the --><!-- "License"); you may not use this file except in compliance --><!-- with the License. You may obtain a copy of the License at --><!-- --><!-- http://www.apache.org/licenses/LICENSE-2.0 --><!-- --><!-- Unless required by applicable law or agreed to in writing, --><!-- software distributed under the License is distributed on an --><!-- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY --><!-- KIND, either express or implied. See the License for the --><!-- specific language governing permissions and limitations --><!-- under the License. --><!-- NOTE: For help with the syntax of this file, see: --><!-- http://maven.apache.org/doxia/references/apt-
format.html --><div class="section">
+<h2>Deploy an artifact in legacy layout<a name="Deploy_an_artifact_in_legacy_layout"></a></h2>
+<p>"Legacy" is the layout used in maven 1 repositories while maven 2 uses "default". They are different in terms of directory structure, timestamp of snapshots in default and existence of metadata files in default.</p>
+<ul>
+<li>legacy layout directory structure:
+<div class="source">
+<pre> groupId
+ |--artifactId
+ |--jars
+ `--artifact</pre></div></li>
+<li>default layout directory structure:
+<div class="source">
+<pre> groupId
+ |--artifactId
+ |--version
+ | `---artifact
+ |---metadata</pre></div>
+<p>In able to deploy an artifact in a legacy layout of repository, set the <b>repositoryLayout</b> parameter to <tt>legacy</tt> value.</p>
+<div class="source">
+<pre>mvn org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy-file -Durl=file:///C:/m2-repo \
+ -DrepositoryId=some.id \
+ -Dfile=your-artifact-1.0.jar \
+ -DpomFile=your-pom.xml \
+ -DrepositoryLayout=legacy</pre></div>
+<p><b>Note</b>: By using the fully qualified path of a goal, you're ensured to be using the preferred version of the maven-deploy-plugin. When using <tt>mvn deploy:deploy-file</tt> its version depends on its specification in the pom or the version of Apache Maven.</p></li></ul></div>
+ </div>
+ </div>
+ <div class="clear">
+ <hr/>
+ </div>
+ <div id="footer">
+ <div class="xright">
+ © 2004-2014
+ The Apache Software Foundation
+
+ - <a href="http://maven.apache.org/privacy-policy.html">Privacy Policy</a>.
+ Apache Maven, Maven, Apache, the Apache feather logo, and the Apache Maven project logos are trademarks of The Apache Software Foundation.
+ </div>
+ <div class="clear">
+ <hr/>
+ </div>
+ </div>
+ </body>
</html>
\ No newline at end of file
Modified: websites/production/maven/content/plugins-archives/maven-deploy-plugin-LATEST/examples/deploying-sources-javadoc.html
==============================================================================
--- websites/production/maven/content/plugins-archives/maven-deploy-plugin-LATEST/examples/deploying-sources-javadoc.html (original)
+++ websites/production/maven/content/plugins-archives/maven-deploy-plugin-LATEST/examples/deploying-sources-javadoc.html Wed Aug 27 20:27:59 2014
@@ -1,208 +1,220 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<!--
- | Generated by Apache Maven Doxia at Oct 14, 2013
- | Rendered using Apache Maven Stylus Skin 1.5
--->
-<html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <title>Apache Maven Deploy Plugin - Deploy sources and javadocs for an artifact</title>
- <style type="text/css" media="all">
- @import url("../css/maven-base.css");
- @import url("../css/maven-theme.css");
- @import url("../css/site.css");
- </style>
- <link rel="stylesheet" href="../css/print.css" type="text/css" media="print" />
- <meta name="Date-Revision-yyyymmdd" content="20131014" />
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
-
-<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
-
-<script type="text/javascript">_uacct = "UA-140879-1";
- urchinTracker();</script>
- </head>
- <body class="composite">
- <div id="banner">
- <a href="../../../" id="bannerLeft">
- <img src="../../../images/apache-maven-project-2.png" alt="" />
- </a>
- <span id="bannerRight">
- <img src="../../../images/maven-logo-2.gif" alt="" />
- </span>
- <div class="clear">
- <hr/>
- </div>
- </div>
- <div id="breadcrumbs">
-
- <div class="xleft">
- <a href="http://www.apache.org/" class="externalLink">Apache</a>
- >
- <a href="../../../index.html">Maven</a>
- >
- <a href="../../index.html">Plugins</a>
- >
- <a href="../">Apache Maven Deploy Plugin</a>
- >
- Deploy sources and javadocs for an artifact
- </div>
- <div class="xright">
- Last Published: 2013-10-14
- | Version: 2.8.1
- </div>
- <div class="clear">
- <hr/>
- </div>
- </div>
- <div id="leftColumn">
- <div id="navcolumn">
-
- <h5>Overview</h5>
- <ul>
- <li class="none">
- <a href="../index.html">Introduction</a>
- </li>
- <li class="none">
- <a href="../plugin-info.html">Goals</a>
- </li>
- <li class="none">
- <a href="../usage.html">Usage</a>
- </li>
- <li class="none">
- <a href="../faq.html">FAQ</a>
- </li>
- <li class="none">
- <a href="../jira-report.html">Release Notes</a>
- </li>
- </ul>
- <h5>Examples</h5>
- <ul>
- <li class="collapsed">
- <a href="../project-deployment.html">Project Deployment</a>
- </li>
- <li class="expanded">
- <a href="../file-deployment.html">File Deployment</a>
- <ul>
- <li class="none">
- <a href="../examples/disabling-generic-pom.html">Disable the generation of pom</a>
- </li>
- <li class="none">
- <a href="../examples/deploying-with-customed-pom.html">Deploy an artifact with a customed pom</a>
- </li>
- <li class="none">
- <a href="../examples/deploying-with-classifiers.html">Deploy an artifact with classifier</a>
- </li>
- <li class="none">
- <strong>Deploy an artifact with sources and javadoc</strong>
- </li>
- <li class="none">
- <a href="../examples/deploying-in-legacy-layout.html">Deploy an artifact in legacy layout</a>
- </li>
- </ul>
- </li>
- </ul>
- <h5>Project Documentation</h5>
- <ul>
- <li class="collapsed">
- <a href="../project-info.html">Project Information</a>
- </li>
- <li class="collapsed">
- <a href="../project-reports.html">Project Reports</a>
- </li>
- </ul>
- <h5>Maven Projects</h5>
- <ul>
- <li class="none">
- <a href="../../../ant-tasks/index.html">Ant Tasks</a>
- </li>
- <li class="none">
- <a href="../../../archetype/index.html">Archetype</a>
- </li>
- <li class="none">
- <a href="../../../doxia/index.html">Doxia</a>
- </li>
- <li class="none">
- <a href="../../../jxr/index.html">JXR</a>
- </li>
- <li class="none">
- <a href="../../../maven-1.x/index.html">Maven 1.x</a>
- </li>
- <li class="none">
- <a href="../../../index.html">Maven 2 & 3</a>
- </li>
- <li class="none">
- <a href="../../../pom/index.html">Parent POMs</a>
- </li>
- <li class="none">
- <a href="../../index.html">Plugins</a>
- </li>
- <li class="none">
- <a href="../../../plugin-tools/index.html">Plugin Tools</a>
- </li>
- <li class="none">
- <a href="../../../scm/index.html">SCM</a>
- </li>
- <li class="none">
- <a href="../../../shared/index.html">Shared Components</a>
- </li>
- <li class="none">
- <a href="../../../skins/index.html">Skins</a>
- </li>
- <li class="none">
- <a href="../../../surefire/index.html">Surefire</a>
- </li>
- <li class="none">
- <a href="../../../wagon/index.html">Wagon</a>
- </li>
- </ul>
- <h5>ASF</h5>
- <ul>
- <li class="none">
- <a href="http://www.apache.org/foundation/how-it-works.html" class="externalLink">How Apache Works</a>
- </li>
- <li class="none">
- <a href="http://www.apache.org/foundation/" class="externalLink">Foundation</a>
- </li>
- <li class="none">
- <a href="http://www.apache.org/foundation/sponsorship.html" class="externalLink">Sponsoring Apache</a>
- </li>
- <li class="none">
- <a href="http://www.apache.org/foundation/thanks.html" class="externalLink">Thanks</a>
- </li>
- </ul>
- <a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy">
- <img alt="Built by Maven" src="../images/logos/maven-feather.png"/>
- </a>
-
- </div>
- </div>
- <div id="bodyColumn">
- <div id="contentBox">
- <!-- Licensed to the Apache Software Foundation (ASF) under one --><!-- or more contributor license agreements. See the NOTICE file --><!-- distributed with this work for additional information --><!-- regarding copyright ownership. The ASF licenses this file --><!-- to you under the Apache License, Version 2.0 (the --><!-- "License"); you may not use this file except in compliance --><!-- with the License. You may obtain a copy of the License at --><!-- --><!-- http://www.apache.org/licenses/LICENSE-2.0 --><!-- --><!-- Unless required by applicable law or agreed to in writing, --><!-- software distributed under the License is distributed on an --><!-- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY --><!-- KIND, either express or implied. See the License for the --><!-- specific language governing permissions and limitations --><!-- under the License. --><!-- NOTE: For help with the syntax of this file, see: --><!-- http://maven.apache.org/doxia/references/apt-
format.html --><div class="section"><h2>Deploy sources and javadoc jars<a name="Deploy_sources_and_javadoc_jars"></a></h2><p>A project may include a main jar and associated sources and javadoc jars.</p><div class="source"><pre> artifact-name-1.0.jar
- artifact-name-1.0-sources.jar
- artifact-name-1.0-javadoc.jar
-</pre></div><p>The sources jar contains the Java sources, and the javadoc jar contains the generated javadocs. To include these files in your deployment, set the <b>sources</b> and <b>javadoc</b> parameters to the paths to the sources and javadoc jar files.</p><div class="source"><pre>mvn org.apache.maven.plugins:maven-deploy-plugin:2.8.1:deploy-file -Durl=file:///home/me/m2-repo \
- -DrepositoryId=some.repo.id \
- -Dfile=./path/to/artifact-name-1.0.jar \
- -DpomFile=./path/to/pom.xml \
- -Dsources=./path/to/artifact-name-1.0-sources.jar \
- -Djavadoc=./path/to/artifact-name-1.0-javadoc.jar
-</pre></div><p><b>Note</b>: By using the fully qualified path of a goal, you're ensured to be using the preferred version of the maven-deploy-plugin. When using <tt>mvn deploy:deploy-file</tt> its version depends on its specification in the pom or the version of Apache Maven.</p></div>
- </div>
- </div>
- <div class="clear">
- <hr/>
- </div>
- <div id="footer">
- <div class="xright">
- © 2004-2013
- The Apache Software Foundation
-
- - <a href="http://maven.apache.org/privacy-policy.html">Privacy Policy</a>.
- Apache Maven, Maven, Apache, the Apache feather logo, and the Apache Maven project logos are trademarks of The Apache Software Foundation.
- </div>
- <div class="clear">
- <hr/>
- </div>
- </div>
- </body>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<!--
+ | Generated by Apache Maven Doxia at 2014-08-27
+ | Rendered using Apache Maven Stylus Skin 1.5
+-->
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <title>Apache Maven Deploy Plugin - Deploy sources and javadocs for an artifact</title>
+ <style type="text/css" media="all">
+ @import url("../css/maven-base.css");
+ @import url("../css/maven-theme.css");
+ @import url("../css/site.css");
+ </style>
+ <link rel="stylesheet" href="../css/print.css" type="text/css" media="print" />
+ <meta name="Date-Revision-yyyymmdd" content="20140827" />
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+
+<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
+
+<script type="text/javascript">_uacct = "UA-140879-1";
+ urchinTracker();</script>
+ </head>
+ <body class="composite">
+ <div id="banner">
+ <a href="../../../" id="bannerLeft">
+ <img src="../../../images/apache-maven-project-2.png" alt="" />
+ </a>
+ <span id="bannerRight">
+ <img src="../../../images/maven-logo-2.gif" alt="" />
+ </span>
+ <div class="clear">
+ <hr/>
+ </div>
+ </div>
+ <div id="breadcrumbs">
+
+ <div class="xleft">
+ <a href="http://www.apache.org/" class="externalLink">Apache</a>
+ >
+ <a href="../../../index.html">Maven</a>
+ >
+ <a href="../../index.html">Plugins</a>
+ >
+ <a href="../">Apache Maven Deploy Plugin</a>
+ >
+ Deploy sources and javadocs for an artifact
+ </div>
+ <div class="xright">
+ Last Published: 2014-08-27
+ | Version: 2.8.2
+ </div>
+ <div class="clear">
+ <hr/>
+ </div>
+ </div>
+ <div id="leftColumn">
+ <div id="navcolumn">
+
+ <h5>Overview</h5>
+ <ul>
+ <li class="none">
+ <a href="../index.html">Introduction</a>
+ </li>
+ <li class="none">
+ <a href="../plugin-info.html">Goals</a>
+ </li>
+ <li class="none">
+ <a href="../usage.html">Usage</a>
+ </li>
+ <li class="none">
+ <a href="../faq.html">FAQ</a>
+ </li>
+ <li class="none">
+ <a href="../jira-report.html">Release Notes</a>
+ </li>
+ <li class="none">
+ <a href="http://www.apache.org/licenses/" class="externalLink">License</a>
+ </li>
+ <li class="none">
+ <a href="../download.html">Download</a>
+ </li>
+ </ul>
+ <h5>Examples</h5>
+ <ul>
+ <li class="collapsed">
+ <a href="../project-deployment.html">Project Deployment</a>
+ </li>
+ <li class="expanded">
+ <a href="../file-deployment.html">File Deployment</a>
+ <ul>
+ <li class="none">
+ <a href="../examples/disabling-generic-pom.html">Disable the generation of pom</a>
+ </li>
+ <li class="none">
+ <a href="../examples/deploying-with-customed-pom.html">Deploy an artifact with a customed pom</a>
+ </li>
+ <li class="none">
+ <a href="../examples/deploying-with-classifiers.html">Deploy an artifact with classifier</a>
+ </li>
+ <li class="none">
+ <strong>Deploy an artifact with sources and javadoc</strong>
+ </li>
+ <li class="none">
+ <a href="../examples/deploying-in-legacy-layout.html">Deploy an artifact in legacy layout</a>
+ </li>
+ </ul>
+ </li>
+ </ul>
+ <h5>Project Documentation</h5>
+ <ul>
+ <li class="collapsed">
+ <a href="../project-info.html">Project Information</a>
+ </li>
+ <li class="collapsed">
+ <a href="../project-reports.html">Project Reports</a>
+ </li>
+ </ul>
+ <h5>Maven Projects</h5>
+ <ul>
+ <li class="none">
+ <a href="../../../ant-tasks/index.html">Ant Tasks</a>
+ </li>
+ <li class="none">
+ <a href="../../../archetype/index.html">Archetype</a>
+ </li>
+ <li class="none">
+ <a href="../../../doxia/index.html">Doxia</a>
+ </li>
+ <li class="none">
+ <a href="../../../jxr/index.html">JXR</a>
+ </li>
+ <li class="none">
+ <a href="../../../maven-1.x/index.html">Maven 1.x</a>
+ </li>
+ <li class="none">
+ <a href="../../../index.html">Maven 2 & 3</a>
+ </li>
+ <li class="none">
+ <a href="../../../pom/index.html">Parent POMs</a>
+ </li>
+ <li class="none">
+ <a href="../../index.html">Plugins</a>
+ </li>
+ <li class="none">
+ <a href="../../../plugin-tools/index.html">Plugin Tools</a>
+ </li>
+ <li class="none">
+ <a href="../../../scm/index.html">SCM</a>
+ </li>
+ <li class="none">
+ <a href="../../../shared/index.html">Shared Components</a>
+ </li>
+ <li class="none">
+ <a href="../../../skins/index.html">Skins</a>
+ </li>
+ <li class="none">
+ <a href="../../../surefire/index.html">Surefire</a>
+ </li>
+ <li class="none">
+ <a href="../../../wagon/index.html">Wagon</a>
+ </li>
+ </ul>
+ <h5>ASF</h5>
+ <ul>
+ <li class="none">
+ <a href="http://www.apache.org/foundation/how-it-works.html" class="externalLink">How Apache Works</a>
+ </li>
+ <li class="none">
+ <a href="http://www.apache.org/foundation/" class="externalLink">Foundation</a>
+ </li>
+ <li class="none">
+ <a href="http://www.apache.org/foundation/sponsorship.html" class="externalLink">Sponsoring Apache</a>
+ </li>
+ <li class="none">
+ <a href="http://www.apache.org/foundation/thanks.html" class="externalLink">Thanks</a>
+ </li>
+ </ul>
+ <a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy">
+ <img alt="Built by Maven" src="../images/logos/maven-feather.png"/>
+ </a>
+
+ </div>
+ </div>
+ <div id="bodyColumn">
+ <div id="contentBox">
+ <!-- Licensed to the Apache Software Foundation (ASF) under one --><!-- or more contributor license agreements. See the NOTICE file --><!-- distributed with this work for additional information --><!-- regarding copyright ownership. The ASF licenses this file --><!-- to you under the Apache License, Version 2.0 (the --><!-- "License"); you may not use this file except in compliance --><!-- with the License. You may obtain a copy of the License at --><!-- --><!-- http://www.apache.org/licenses/LICENSE-2.0 --><!-- --><!-- Unless required by applicable law or agreed to in writing, --><!-- software distributed under the License is distributed on an --><!-- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY --><!-- KIND, either express or implied. See the License for the --><!-- specific language governing permissions and limitations --><!-- under the License. --><!-- NOTE: For help with the syntax of this file, see: --><!-- http://maven.apache.org/doxia/references/apt-
format.html --><div class="section">
+<h2>Deploy sources and javadoc jars<a name="Deploy_sources_and_javadoc_jars"></a></h2>
+<p>A project may include a main jar and associated sources and javadoc jars.</p>
+<div class="source">
+<pre> artifact-name-1.0.jar
+ artifact-name-1.0-sources.jar
+ artifact-name-1.0-javadoc.jar</pre></div>
+<p>The sources jar contains the Java sources, and the javadoc jar contains the generated javadocs. To include these files in your deployment, set the <b>sources</b> and <b>javadoc</b> parameters to the paths to the sources and javadoc jar files.</p>
+<div class="source">
+<pre>mvn org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy-file -Durl=file:///home/me/m2-repo \
+ -DrepositoryId=some.repo.id \
+ -Dfile=./path/to/artifact-name-1.0.jar \
+ -DpomFile=./path/to/pom.xml \
+ -Dsources=./path/to/artifact-name-1.0-sources.jar \
+ -Djavadoc=./path/to/artifact-name-1.0-javadoc.jar</pre></div>
+<p><b>Note</b>: By using the fully qualified path of a goal, you're ensured to be using the preferred version of the maven-deploy-plugin. When using <tt>mvn deploy:deploy-file</tt> its version depends on its specification in the pom or the version of Apache Maven.</p></div>
+ </div>
+ </div>
+ <div class="clear">
+ <hr/>
+ </div>
+ <div id="footer">
+ <div class="xright">
+ © 2004-2014
+ The Apache Software Foundation
+
+ - <a href="http://maven.apache.org/privacy-policy.html">Privacy Policy</a>.
+ Apache Maven, Maven, Apache, the Apache feather logo, and the Apache Maven project logos are trademarks of The Apache Software Foundation.
+ </div>
+ <div class="clear">
+ <hr/>
+ </div>
+ </div>
+ </body>
</html>
\ No newline at end of file
Modified: websites/production/maven/content/plugins-archives/maven-deploy-plugin-LATEST/examples/deploying-with-classifiers.html
==============================================================================
--- websites/production/maven/content/plugins-archives/maven-deploy-plugin-LATEST/examples/deploying-with-classifiers.html (original)
+++ websites/production/maven/content/plugins-archives/maven-deploy-plugin-LATEST/examples/deploying-with-classifiers.html Wed Aug 27 20:27:59 2014
@@ -1,212 +1,230 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<!--
- | Generated by Apache Maven Doxia at Oct 14, 2013
- | Rendered using Apache Maven Stylus Skin 1.5
--->
-<html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <title>Apache Maven Deploy Plugin - Deploy an artifact with classifier</title>
- <style type="text/css" media="all">
- @import url("../css/maven-base.css");
- @import url("../css/maven-theme.css");
- @import url("../css/site.css");
- </style>
- <link rel="stylesheet" href="../css/print.css" type="text/css" media="print" />
- <meta name="author" content="Robert Scholte" />
- <meta name="Date-Revision-yyyymmdd" content="20131014" />
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
-
-<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
-
-<script type="text/javascript">_uacct = "UA-140879-1";
- urchinTracker();</script>
- </head>
- <body class="composite">
- <div id="banner">
- <a href="../../../" id="bannerLeft">
- <img src="../../../images/apache-maven-project-2.png" alt="" />
- </a>
- <span id="bannerRight">
- <img src="../../../images/maven-logo-2.gif" alt="" />
- </span>
- <div class="clear">
- <hr/>
- </div>
- </div>
- <div id="breadcrumbs">
-
- <div class="xleft">
- <a href="http://www.apache.org/" class="externalLink">Apache</a>
- >
- <a href="../../../index.html">Maven</a>
- >
- <a href="../../index.html">Plugins</a>
- >
- <a href="../">Apache Maven Deploy Plugin</a>
- >
- Deploy an artifact with classifier
- </div>
- <div class="xright">
- Last Published: 2013-10-14
- | Version: 2.8.1
- </div>
- <div class="clear">
- <hr/>
- </div>
- </div>
- <div id="leftColumn">
- <div id="navcolumn">
-
- <h5>Overview</h5>
- <ul>
- <li class="none">
- <a href="../index.html">Introduction</a>
- </li>
- <li class="none">
- <a href="../plugin-info.html">Goals</a>
- </li>
- <li class="none">
- <a href="../usage.html">Usage</a>
- </li>
- <li class="none">
- <a href="../faq.html">FAQ</a>
- </li>
- <li class="none">
- <a href="../jira-report.html">Release Notes</a>
- </li>
- </ul>
- <h5>Examples</h5>
- <ul>
- <li class="collapsed">
- <a href="../project-deployment.html">Project Deployment</a>
- </li>
- <li class="expanded">
- <a href="../file-deployment.html">File Deployment</a>
- <ul>
- <li class="none">
- <a href="../examples/disabling-generic-pom.html">Disable the generation of pom</a>
- </li>
- <li class="none">
- <a href="../examples/deploying-with-customed-pom.html">Deploy an artifact with a customed pom</a>
- </li>
- <li class="none">
- <strong>Deploy an artifact with classifier</strong>
- </li>
- <li class="none">
- <a href="../examples/deploying-sources-javadoc.html">Deploy an artifact with sources and javadoc</a>
- </li>
- <li class="none">
- <a href="../examples/deploying-in-legacy-layout.html">Deploy an artifact in legacy layout</a>
- </li>
- </ul>
- </li>
- </ul>
- <h5>Project Documentation</h5>
- <ul>
- <li class="collapsed">
- <a href="../project-info.html">Project Information</a>
- </li>
- <li class="collapsed">
- <a href="../project-reports.html">Project Reports</a>
- </li>
- </ul>
- <h5>Maven Projects</h5>
- <ul>
- <li class="none">
- <a href="../../../ant-tasks/index.html">Ant Tasks</a>
- </li>
- <li class="none">
- <a href="../../../archetype/index.html">Archetype</a>
- </li>
- <li class="none">
- <a href="../../../doxia/index.html">Doxia</a>
- </li>
- <li class="none">
- <a href="../../../jxr/index.html">JXR</a>
- </li>
- <li class="none">
- <a href="../../../maven-1.x/index.html">Maven 1.x</a>
- </li>
- <li class="none">
- <a href="../../../index.html">Maven 2 & 3</a>
- </li>
- <li class="none">
- <a href="../../../pom/index.html">Parent POMs</a>
- </li>
- <li class="none">
- <a href="../../index.html">Plugins</a>
- </li>
- <li class="none">
- <a href="../../../plugin-tools/index.html">Plugin Tools</a>
- </li>
- <li class="none">
- <a href="../../../scm/index.html">SCM</a>
- </li>
- <li class="none">
- <a href="../../../shared/index.html">Shared Components</a>
- </li>
- <li class="none">
- <a href="../../../skins/index.html">Skins</a>
- </li>
- <li class="none">
- <a href="../../../surefire/index.html">Surefire</a>
- </li>
- <li class="none">
- <a href="../../../wagon/index.html">Wagon</a>
- </li>
- </ul>
- <h5>ASF</h5>
- <ul>
- <li class="none">
- <a href="http://www.apache.org/foundation/how-it-works.html" class="externalLink">How Apache Works</a>
- </li>
- <li class="none">
- <a href="http://www.apache.org/foundation/" class="externalLink">Foundation</a>
- </li>
- <li class="none">
- <a href="http://www.apache.org/foundation/sponsorship.html" class="externalLink">Sponsoring Apache</a>
- </li>
- <li class="none">
- <a href="http://www.apache.org/foundation/thanks.html" class="externalLink">Thanks</a>
- </li>
- </ul>
- <a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy">
- <img alt="Built by Maven" src="../images/logos/maven-feather.png"/>
- </a>
-
- </div>
- </div>
- <div id="bodyColumn">
- <div id="contentBox">
- <!-- Licensed to the Apache Software Foundation (ASF) under one --><!-- or more contributor license agreements. See the NOTICE file --><!-- distributed with this work for additional information --><!-- regarding copyright ownership. The ASF licenses this file --><!-- to you under the Apache License, Version 2.0 (the --><!-- "License"); you may not use this file except in compliance --><!-- with the License. You may obtain a copy of the License at --><!-- --><!-- http://www.apache.org/licenses/LICENSE-2.0 --><!-- --><!-- Unless required by applicable law or agreed to in writing, --><!-- software distributed under the License is distributed on an --><!-- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY --><!-- KIND, either express or implied. See the License for the --><!-- specific language governing permissions and limitations --><!-- under the License. --><!-- NOTE: For help with the syntax of this file, see: --><!-- http://maven.apache.org/doxia/references/apt-
format.html --><div class="section"><h2>Deploy an artifact with classifier<a name="Deploy_an_artifact_with_classifier"></a></h2><p>Beside the main artifact there can be additional files which are attached to the Maven project. Such attached filed can be recognized and accessed by their classifier.</p><p>For example: from the following artifact names, the classifier is be located between the version and extension name of the artifact.</p><ul><li><tt>artifact-name-1.0.jar</tt> the main jar which contains classes compiled without <a class="externalLink" href="http://maven.apache.org/plugins/maven-compiler-plugin/compile-mojo.html#debug">debugging</a> information (such as linenumbers)</li><li><tt>artifact-name-1.0-debug.jar</tt> the classified jar which contains classes compiled with <a class="externalLink" href="http://maven.apache.org/plugins/maven-compiler-plugin/compile-mojo.html#debug">debugging</a> information, so will be smaller</li><li><tt>artifact-name-1.0-site.pdf</tt> a pdf w
hich contains an export of the site documentation. </li></ul><p>You can deploy the main artifact and the classified artifacts in a single run. Let's assume the original filename for the documentation is <tt>site.pdf</tt>: </p><div class="source"><pre>mvn org.apache.maven.plugins:maven-deploy-plugin:2.8.1:deploy-file -Durl=http://localhost:8081/repomanager/ \
- -DrepositoryId=some.id \
- -Dfile=path/to/artifact-name-1.0.jar \
- -DpomFile=path-to-your-pom.xml \
- -Dfiles=path/to/artifact-name-1.0-debug.jar,path/to/site.pdf \
- -Dclassifiers=debug,site \
- -Dtypes=jar,pdf
-</pre></div><p>If you only want to deploy the <tt>debug</tt>-jar and want to keep the classifier, you can execute the <tt>deploy-file</tt> like</p><div class="source"><pre>mvn org.apache.maven.plugins:maven-deploy-plugin:2.8.1:deploy-file -Durl=http://localhost:8081/repomanager/ \
- -DrepositoryId=some.id \
- -Dfile=path-to-your-artifact-jar \
- -DpomFile=path-to-your-pom.xml \
- -Dclassifier=bin
-</pre></div><p><b>Note</b>: By using the fully qualified path of a goal, you're ensured to be using the preferred version of the maven-deploy-plugin. When using <tt>mvn deploy:deploy-file</tt> its version depends on its specification in the pom or the version of Apache Maven.</p></div>
- </div>
- </div>
- <div class="clear">
- <hr/>
- </div>
- <div id="footer">
- <div class="xright">
- © 2004-2013
- The Apache Software Foundation
-
- - <a href="http://maven.apache.org/privacy-policy.html">Privacy Policy</a>.
- Apache Maven, Maven, Apache, the Apache feather logo, and the Apache Maven project logos are trademarks of The Apache Software Foundation.
- </div>
- <div class="clear">
- <hr/>
- </div>
- </div>
- </body>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<!--
+ | Generated by Apache Maven Doxia at 2014-08-27
+ | Rendered using Apache Maven Stylus Skin 1.5
+-->
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <title>Apache Maven Deploy Plugin - Deploy an artifact with classifier</title>
+ <style type="text/css" media="all">
+ @import url("../css/maven-base.css");
+ @import url("../css/maven-theme.css");
+ @import url("../css/site.css");
+ </style>
+ <link rel="stylesheet" href="../css/print.css" type="text/css" media="print" />
+ <meta name="author" content="Robert Scholte" />
+ <meta name="Date-Revision-yyyymmdd" content="20140827" />
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+
+<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
+
+<script type="text/javascript">_uacct = "UA-140879-1";
+ urchinTracker();</script>
+ </head>
+ <body class="composite">
+ <div id="banner">
+ <a href="../../../" id="bannerLeft">
+ <img src="../../../images/apache-maven-project-2.png" alt="" />
+ </a>
+ <span id="bannerRight">
+ <img src="../../../images/maven-logo-2.gif" alt="" />
+ </span>
+ <div class="clear">
+ <hr/>
+ </div>
+ </div>
+ <div id="breadcrumbs">
+
+ <div class="xleft">
+ <a href="http://www.apache.org/" class="externalLink">Apache</a>
+ >
+ <a href="../../../index.html">Maven</a>
+ >
+ <a href="../../index.html">Plugins</a>
+ >
+ <a href="../">Apache Maven Deploy Plugin</a>
+ >
+ Deploy an artifact with classifier
+ </div>
+ <div class="xright">
+ Last Published: 2014-08-27
+ | Version: 2.8.2
+ </div>
+ <div class="clear">
+ <hr/>
+ </div>
+ </div>
+ <div id="leftColumn">
+ <div id="navcolumn">
+
+ <h5>Overview</h5>
+ <ul>
+ <li class="none">
+ <a href="../index.html">Introduction</a>
+ </li>
+ <li class="none">
+ <a href="../plugin-info.html">Goals</a>
+ </li>
+ <li class="none">
+ <a href="../usage.html">Usage</a>
+ </li>
+ <li class="none">
+ <a href="../faq.html">FAQ</a>
+ </li>
+ <li class="none">
+ <a href="../jira-report.html">Release Notes</a>
+ </li>
+ <li class="none">
+ <a href="http://www.apache.org/licenses/" class="externalLink">License</a>
+ </li>
+ <li class="none">
+ <a href="../download.html">Download</a>
+ </li>
+ </ul>
+ <h5>Examples</h5>
+ <ul>
+ <li class="collapsed">
+ <a href="../project-deployment.html">Project Deployment</a>
+ </li>
+ <li class="expanded">
+ <a href="../file-deployment.html">File Deployment</a>
+ <ul>
+ <li class="none">
+ <a href="../examples/disabling-generic-pom.html">Disable the generation of pom</a>
+ </li>
+ <li class="none">
+ <a href="../examples/deploying-with-customed-pom.html">Deploy an artifact with a customed pom</a>
+ </li>
+ <li class="none">
+ <strong>Deploy an artifact with classifier</strong>
+ </li>
+ <li class="none">
+ <a href="../examples/deploying-sources-javadoc.html">Deploy an artifact with sources and javadoc</a>
+ </li>
+ <li class="none">
+ <a href="../examples/deploying-in-legacy-layout.html">Deploy an artifact in legacy layout</a>
+ </li>
+ </ul>
+ </li>
+ </ul>
+ <h5>Project Documentation</h5>
+ <ul>
+ <li class="collapsed">
+ <a href="../project-info.html">Project Information</a>
+ </li>
+ <li class="collapsed">
+ <a href="../project-reports.html">Project Reports</a>
+ </li>
+ </ul>
+ <h5>Maven Projects</h5>
+ <ul>
+ <li class="none">
+ <a href="../../../ant-tasks/index.html">Ant Tasks</a>
+ </li>
+ <li class="none">
+ <a href="../../../archetype/index.html">Archetype</a>
+ </li>
+ <li class="none">
+ <a href="../../../doxia/index.html">Doxia</a>
+ </li>
+ <li class="none">
+ <a href="../../../jxr/index.html">JXR</a>
+ </li>
+ <li class="none">
+ <a href="../../../maven-1.x/index.html">Maven 1.x</a>
+ </li>
+ <li class="none">
+ <a href="../../../index.html">Maven 2 & 3</a>
+ </li>
+ <li class="none">
+ <a href="../../../pom/index.html">Parent POMs</a>
+ </li>
+ <li class="none">
+ <a href="../../index.html">Plugins</a>
+ </li>
+ <li class="none">
+ <a href="../../../plugin-tools/index.html">Plugin Tools</a>
+ </li>
+ <li class="none">
+ <a href="../../../scm/index.html">SCM</a>
+ </li>
+ <li class="none">
+ <a href="../../../shared/index.html">Shared Components</a>
+ </li>
+ <li class="none">
+ <a href="../../../skins/index.html">Skins</a>
+ </li>
+ <li class="none">
+ <a href="../../../surefire/index.html">Surefire</a>
+ </li>
+ <li class="none">
+ <a href="../../../wagon/index.html">Wagon</a>
+ </li>
+ </ul>
+ <h5>ASF</h5>
+ <ul>
+ <li class="none">
+ <a href="http://www.apache.org/foundation/how-it-works.html" class="externalLink">How Apache Works</a>
+ </li>
+ <li class="none">
+ <a href="http://www.apache.org/foundation/" class="externalLink">Foundation</a>
+ </li>
+ <li class="none">
+ <a href="http://www.apache.org/foundation/sponsorship.html" class="externalLink">Sponsoring Apache</a>
+ </li>
+ <li class="none">
+ <a href="http://www.apache.org/foundation/thanks.html" class="externalLink">Thanks</a>
+ </li>
+ </ul>
+ <a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy">
+ <img alt="Built by Maven" src="../images/logos/maven-feather.png"/>
+ </a>
+
+ </div>
+ </div>
+ <div id="bodyColumn">
+ <div id="contentBox">
+ <!-- Licensed to the Apache Software Foundation (ASF) under one --><!-- or more contributor license agreements. See the NOTICE file --><!-- distributed with this work for additional information --><!-- regarding copyright ownership. The ASF licenses this file --><!-- to you under the Apache License, Version 2.0 (the --><!-- "License"); you may not use this file except in compliance --><!-- with the License. You may obtain a copy of the License at --><!-- --><!-- http://www.apache.org/licenses/LICENSE-2.0 --><!-- --><!-- Unless required by applicable law or agreed to in writing, --><!-- software distributed under the License is distributed on an --><!-- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY --><!-- KIND, either express or implied. See the License for the --><!-- specific language governing permissions and limitations --><!-- under the License. --><!-- NOTE: For help with the syntax of this file, see: --><!-- http://maven.apache.org/doxia/references/apt-
format.html --><div class="section">
+<h2>Deploy an artifact with classifier<a name="Deploy_an_artifact_with_classifier"></a></h2>
+<p>Beside the main artifact there can be additional files which are attached to the Maven project. Such attached filed can be recognized and accessed by their classifier.</p>
+<p>For example: from the following artifact names, the classifier is be located between the version and extension name of the artifact.</p>
+<ul>
+<li><tt>artifact-name-1.0.jar</tt> the main jar which contains classes compiled without <a class="externalLink" href="http://maven.apache.org/plugins/maven-compiler-plugin/compile-mojo.html#debug">debugging</a> information (such as linenumbers)</li>
+<li><tt>artifact-name-1.0-debug.jar</tt> the classified jar which contains classes compiled with <a class="externalLink" href="http://maven.apache.org/plugins/maven-compiler-plugin/compile-mojo.html#debug">debugging</a> information, so will be smaller</li>
+<li><tt>artifact-name-1.0-site.pdf</tt> a pdf which contains an export of the site documentation. </li></ul>
+<p>You can deploy the main artifact and the classified artifacts in a single run. Let's assume the original filename for the documentation is <tt>site.pdf</tt>: </p>
+<div class="source">
+<pre>mvn org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy-file -Durl=http://localhost:8081/repomanager/ \
+ -DrepositoryId=some.id \
+ -Dfile=path/to/artifact-name-1.0.jar \
+ -DpomFile=path-to-your-pom.xml \
+ -Dfiles=path/to/artifact-name-1.0-debug.jar,path/to/site.pdf \
+ -Dclassifiers=debug,site \
+ -Dtypes=jar,pdf</pre></div>
+<p>If you only want to deploy the <tt>debug</tt>-jar and want to keep the classifier, you can execute the <tt>deploy-file</tt> like</p>
+<div class="source">
+<pre>mvn org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy-file -Durl=http://localhost:8081/repomanager/ \
+ -DrepositoryId=some.id \
+ -Dfile=path-to-your-artifact-jar \
+ -DpomFile=path-to-your-pom.xml \
+ -Dclassifier=bin</pre></div>
+<p><b>Note</b>: By using the fully qualified path of a goal, you're ensured to be using the preferred version of the maven-deploy-plugin. When using <tt>mvn deploy:deploy-file</tt> its version depends on its specification in the pom or the version of Apache Maven.</p></div>
+ </div>
+ </div>
+ <div class="clear">
+ <hr/>
+ </div>
+ <div id="footer">
+ <div class="xright">
+ © 2004-2014
+ The Apache Software Foundation
+
+ - <a href="http://maven.apache.org/privacy-policy.html">Privacy Policy</a>.
+ Apache Maven, Maven, Apache, the Apache feather logo, and the Apache Maven project logos are trademarks of The Apache Software Foundation.
+ </div>
+ <div class="clear">
+ <hr/>
+ </div>
+ </div>
+ </body>
</html>
\ No newline at end of file