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 sv...@apache.org on 2024/03/12 23:50:32 UTC

svn commit: r1916263 - in /maven/website/content: guides/mini/guide-relocation.html maven-site-1.0-site.jar

Author: svn-site-role
Date: Tue Mar 12 23:50:31 2024
New Revision: 1916263

Log:
Site checkin for project Apache Maven Site

Modified:
    maven/website/content/guides/mini/guide-relocation.html
    maven/website/content/maven-site-1.0-site.jar

Modified: maven/website/content/guides/mini/guide-relocation.html
==============================================================================
--- maven/website/content/guides/mini/guide-relocation.html (original)
+++ maven/website/content/guides/mini/guide-relocation.html Tue Mar 12 23:50:31 2024
@@ -205,7 +205,64 @@
 <li>has published its releases until 3.0-alpha-3 to Maven 1-compliant <code>poi:poi</code> coordinates (see <a class="externalLink" href="https://repo.maven.apache.org/maven2/poi/poi/">repository content</a>),</li>
 <li>starting with 3.0-FINAL, moved to reverse-DNS compliant Maven 2+ <code>org.apache.poi:poi</code> coordinates, (see <a class="externalLink" href="https://repo.maven.apache.org/maven2/org/apache/poi/poi/">repository content</a>),</li>
 <li>published <code>poi:poi:3.0-FINAL</code> relocation POM <b>with jars</b> in old groupId to advertise about the move (see <a class="externalLink" href="https://repo.maven.apache.org/maven2/poi/poi/3.0-FINAL/">repository content</a>).</li>
-<li>published <code>poi:poi</code> relocation POMs for 3.0.1-FINAL, 3.0.2-beta1/beta2/FINAL and 3.1-beta1/beta2/FINAL in old groupId to advertise about the move (see <a class="externalLink" href="https://repo.maven.apache.org/maven2/poi/poi/">repository content</a>).</li></ol></section></section></section>
+<li>published <code>poi:poi</code> relocation POMs for 3.0.1-FINAL, 3.0.2-beta1/beta2/FINAL and 3.1-beta1/beta2/FINAL in old groupId to advertise about the move (see <a class="externalLink" href="https://repo.maven.apache.org/maven2/poi/poi/">repository content</a>).</li></ol></section><section>
+<h3>Testing</h3>
+<p>Using <code>pom.xml</code></p>
+<div class="verbatim source"><pre class="prettyprint linenums">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
+&lt;project xmlns=&quot;http://maven.apache.org/POM/4.0.0&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; xsi:schemaLocation=&quot;http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd&quot;&gt;
+    &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
+
+    &lt;groupId&gt;test&lt;/groupId&gt;
+    &lt;artifactId&gt;relocation-test&lt;/artifactId&gt;
+    &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
+
+    &lt;dependencies&gt;
+        &lt;dependency&gt;
+            &lt;groupId&gt;ant&lt;/groupId&gt;
+            &lt;artifactId&gt;ant&lt;/artifactId&gt;
+            &lt;version&gt;1.7.0&lt;/version&gt;&lt;!-- https://repo.maven.apache.org/maven2/ant/ant/1.7.0/ --&gt;
+        &lt;/dependency&gt;
+        &lt;dependency&gt;
+            &lt;groupId&gt;poi&lt;/groupId&gt;
+            &lt;artifactId&gt;poi&lt;/artifactId&gt;
+            &lt;version&gt;3.0-FINAL&lt;/version&gt;&lt;!-- https://repo.maven.apache.org/maven2/poi/poi/3.0-FINAL/ --&gt;
+        &lt;/dependency&gt;
+    &lt;/dependencies&gt;
+&lt;/project&gt;</pre></div>
+<p>Dependency resolution of these relocated artifacts follows to the new relocated coordinates, issuing a warning:</p>
+<div class="verbatim">
+<pre>$ mvn dependency:list dependency:tree
+[INFO] Scanning for projects...
+[INFO]
+[INFO] ------------------------&lt; test:relocation-test &gt;------------------------
+[INFO] Building relocation-test 1.0-SNAPSHOT
+[INFO]   from pom.xml
+[INFO] --------------------------------[ jar ]---------------------------------
+[WARNING] The artifact ant:ant:jar:1.7.0 has been relocated to org.apache.ant:ant:jar:1.7.0
+[WARNING] The artifact poi:poi:jar:3.0-FINAL has been relocated to org.apache.poi:poi:jar:3.0-FINAL
+[INFO]
+[INFO] --- dependency:3.6.0:list (default-cli) @ relocation-test ---
+[INFO]
+[INFO] The following files have been resolved:
+[INFO]    org.apache.ant:ant:jar:1.7.0:compile -- module ant (auto)
+[INFO]    org.apache.ant:ant-launcher:jar:1.7.0:compile -- module ant.launcher (auto)
+[INFO]    org.apache.poi:poi:jar:3.0-FINAL:compile -- module poi (auto)
+[INFO]    commons-logging:commons-logging:jar:1.1:compile -- module commons.logging (auto)
+[INFO]    log4j:log4j:jar:1.2.13:compile -- module log4j (auto)
+[INFO]
+[INFO]
+[INFO] --- dependency:3.6.0:tree (default-cli) @ relocation-test ---
+[WARNING] The artifact ant:ant:jar:1.7.0 has been relocated to org.apache.ant:ant:jar:1.7.0
+[WARNING] The artifact poi:poi:jar:3.0-FINAL has been relocated to org.apache.poi:poi:jar:3.0-FINAL
+[INFO] test:relocation-test:jar:1.0-SNAPSHOT
+[INFO] +- org.apache.ant:ant:jar:1.7.0:compile
+[INFO] |  \- org.apache.ant:ant-launcher:jar:1.7.0:compile
+[INFO] \- org.apache.poi:poi:jar:3.0-FINAL:compile
+[INFO]    +- commons-logging:commons-logging:jar:1.1:compile
+[INFO]    \- log4j:log4j:jar:1.2.13:compile
+[INFO] ------------------------------------------------------------------------
+[INFO] BUILD SUCCESS
+[INFO] ------------------------------------------------------------------------</pre></div></section></section></section>
         </main>
       </div>
     </div>

Modified: maven/website/content/maven-site-1.0-site.jar
==============================================================================
Binary files - no diff available.