<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Upload Artifacts Archives - scmGalaxy</title>
	<atom:link href="https://www.scmgalaxy.com/tutorials/tag/upload-artifacts/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.scmgalaxy.com/tutorials/tag/upload-artifacts/</link>
	<description>A Platform for Software Engineers</description>
	<lastBuildDate>Sat, 27 Feb 2021 09:50:29 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1</generator>
	<item>
		<title>How to upload the artifacts in Sonatype Nexus &#124; Tutorial</title>
		<link>https://www.scmgalaxy.com/tutorials/how-to-upload-the-artifacts-in-sonatype-nexus/</link>
					<comments>https://www.scmgalaxy.com/tutorials/how-to-upload-the-artifacts-in-sonatype-nexus/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Mon, 19 Oct 2015 19:45:06 +0000</pubDate>
				<category><![CDATA[SonaType Nexus]]></category>
		<category><![CDATA[artifacts]]></category>
		<category><![CDATA[commands]]></category>
		<category><![CDATA[How]]></category>
		<category><![CDATA[Sonatype Nexus]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[upload]]></category>
		<category><![CDATA[Upload Artifacts]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/2015/10/19/how-to-upload-the-artifacts-in-sonatype-nexus/</guid>

					<description><![CDATA[<p>  1. Upload Artifacts using NEXUS GUI https://books.sonatype.com/nexus-book/reference/using-sect-uploading.html 2. Upload Artifacts using Maven pom.xml using &#8220;mvn deploy&#8221; Update your pom.xml [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-upload-the-artifacts-in-sonatype-nexus/">How to upload the artifacts in Sonatype Nexus | Tutorial</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div> <img fetchpriority="high" decoding="async" class="alignnone size-full wp-image-3075 aligncenter" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2015/10/how-to-upload-the-artifacts.png" alt="artifacts-in-sonatype-nexus" width="600" height="400" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2015/10/how-to-upload-the-artifacts.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2015/10/how-to-upload-the-artifacts-300x200.png 300w" sizes="(max-width: 600px) 100vw, 600px" /></div>
<div></div>
<div><strong>1. Upload Artifacts using NEXUS GUI</strong></div>
<div>https://books.sonatype.com/nexus-book/reference/using-sect-uploading.html</div>
<div></div>
<div><strong>2. Upload Artifacts using Maven pom.xml using &#8220;mvn deploy&#8221;</strong></div>
<div><strong>Update your pom.xml with following&#8230;</strong></div>
<div></div>
<div>&lt;distributionManagement&gt;</div>
<div>  &lt;repository&gt;</div>
<div>  &lt;id&gt;deployment&lt;/id&gt;</div>
<div>  &lt;name&gt;Internal Releases&lt;/name&gt;</div>
<div>  &lt;url&gt;http://uvo1ppw4qmimuo3p1tg.vm.cld.sr:8081/nexus/content/repositories/releases/&lt;/url&gt;</div>
<div>  &lt;/repository&gt;</div>
<div></div>
<div>  &lt;snapshotRepository&gt;</div>
<div>&lt;id&gt;deployment&lt;/id&gt;</div>
<div>&lt;name&gt;Internal Releases&lt;/name&gt;</div>
<div>&lt;url&gt;http://uvo1ppw4qmimuo3p1tg.vm.cld.sr:8081/nexus/content/repositories/snapshots/&lt;/url&gt;</div>
<div>&lt;/snapshotRepository&gt;</div>
<div>&lt;/distributionManagement&gt;</div>
<div></div>
<div><strong>Update your setting.xml with following</strong></div>
<div>&lt;servers&gt;</div>
<div>&lt;server&gt;</div>
<div>&lt;id&gt;deployment&lt;/id&gt;</div>
<div>&lt;username&gt;deployment&lt;/username&gt;</div>
<div>&lt;password&gt;deployment123&lt;/password&gt;</div>
<div>&lt;/server&gt;</div>
<div>&lt;/servers&gt;</div>
<div></div>
<div><strong>3. Upload Artifacts using Linux Commands</strong></div>
<div></div>
<div></div>
<div>&gt; curl -v -u admin:admin123 &#8211;upload-file pom.xml http://localhost:8081/nexus/content/repositories/releases/org/foo/1.0/foo-1.0.pom</div>
<div></div>
<div>&gt; curl -v \</div>
<div>-F &#8220;r=releases&#8221; \</div>
<div>-F &#8220;g=com.acme.widgets&#8221; \</div>
<div>-F &#8220;a=widget&#8221; \</div>
<div>-F &#8220;v=0.1-1&#8221; \</div>
<div>-F &#8220;p=tar.gz&#8221; \</div>
<div>-F &#8220;file=@./widget-0.1-1.tar.gz&#8221; \</div>
<div>-u myuser:mypassword \</div>
<div>http://localhost:8081/nexus/service/local/artifact/maven/content</div>
<div></div>
<div><strong>4. Upload Artifacts using mvn commands</strong></div>
<div></div>
<div>Upload Artifacts using Maven &#8220;deploy-file&#8221; Deployment</div>
<div></div>
<div><strong>Example without a pom file:</strong></div>
<div></div>
<div>mvn deploy:deploy-file -DgroupId=com.somecompany -DartifactId=project -Dversion=1.0.0 -DgeneratePom=true -Dpackaging=jar -DrepositoryId=nexus -Durl=http://localhost:8081/nexus/content/repositories/releases -Dfile=target/project-1.0.0.jar</div>
<div></div>
<div>With a pom file:</div>
<div>mvn deploy:deploy-file -DgroupId=com.somecompany -DartifactId=project -Dversion=1.0.0 -DgeneratePom=false -Dpackaging=jar -DrepositoryId=nexus -Durl=http://localhost:8081/nexus/content/repositories/releases -DpomFile=pom.xml -Dfile=target/project-1.0.0.jar</div>
<div></div>
<div><strong>With a Zip file:</strong></div>
<div></div>
<div>&gt; mvn deploy:deploy-file -DgroupId=com.fanniemae.securitiesprocessor -DartifactId=sp_adapter_mbs -Dversion=0.0.1-SNAPSHOT -Dpackaging=zip -Dfile=sp_adapter.zip -DrepositoryId=deployment -Durl=http://nexus-server:8081/nexus/content/repositories/snapshots/</div>
<div></div>
<div></div>
<div>Note: You need to update your setting.xml with following. where as The &#8220;repositoryId&#8221; parameter is not a Nexus repository ID, it is the ID of a server section in your settings.xml file which has then credentials needed for deployment.</div>
<div>&lt;servers&gt;</div>
<div>&lt;server&gt;</div>
<div>&lt;id&gt;nexus&lt;/id&gt;</div>
<div>&lt;username&gt;deployment&lt;/username&gt;</div>
<div>&lt;password&gt;deployment123&lt;/password&gt;</div>
<div>&lt;/server&gt;</div>
<div>&lt;/servers&gt;</div>
<div></div>
<div></div>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-upload-the-artifacts-in-sonatype-nexus/">How to upload the artifacts in Sonatype Nexus | Tutorial</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/how-to-upload-the-artifacts-in-sonatype-nexus/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
