We've started using Maven Release a lot - and then pulled that repository in 
through Nexus, been pretty happy with it (though every once in a while Nexus 
seems to need a poke to refresh its indexes.)

Also, not sure if anyone else using Release has seen this, we've found we often 
need to do a "svn up" right after release:prepare or the release won't go 
through - though it tosses up a pretty bogus error mentioning an apparently 
random file.

Jason

On 6/26/09 10:06 AM, "Scott Battaglia" <[email protected]> wrote:

That worked perfectly.  CAS 3.3.3 is uploading as I write this ;-)

Thanks!
-Scott


On Fri, Jun 26, 2009 at 9:51 AM, Robert Oschwald 
<[email protected]> wrote:
Scott,

I don't use Nexus, but Artifactory. I think it's quite similliar

Prerequisites:
 - Add your respository and your credentials to your settings.xml e.g.
        <!--
Server settings (e.g. for deployment). Id must match the one in your
pom.xml distributionManagement section.
-->
<servers>
<server>
<id>nexus.your-server.local-releases</id>
<username>yourusername</username>
<password>yourpass</password>
</server>
<server>
<id>nexus. your-server.local-snapshots</id>
<username> yourusername </username>
<password> yourpass </password>
</server>
</servers>

 - Add the distributionManagement section to your main pom, e.g.
   <distributionManagement>
<repository>
<id>nexus.your-server.local-releases</id>
<name>nexus.your-server.local-releases</name>
<url>http://nexus.your-server.local/url_to_your_release_repo</url>
</repository>
<snapshotRepository>
<id>nexus. your-server.local-snapshots</id>
<name>nexus. your-server.local-snapshots</name>
<url>http://192.168.121.100:8081/url_to_your_release_repo </url>
</snapshotRepository>
   </distributionManagement>

- Maybe other mvn plugins you need for JavaDoc and Source generation.

To deploy to the repo, simply perform:


mvn javadoc:jar source:jar deploy
This deploys the artifact, javadoc jar and source jar to the repo

Hope this helps!

Robert

Am 26.06.2009 um 15:35 schrieb Scott Battaglia:

Is anyone familiar with a quick way to upload multiple artifacts to a Nexus 
repository?  I have CAS 3.3.3 ready to go but uploading each file individually 
is quite time-consuming.

Cheers,
Scott



--
Jason Shao
Director of Product Development
CampusEAI Consortium
1940 East 6th Street, 11th Floor
Cleveland, OH 44114
Tel: 216.589.9626x249
Fax: 216.589.9639

________________________________
Your input is important to improve upon our continuous efforts to service you 
better. Please e-mail my manager at [email protected] with any feedback.

CONFIDENTIALITY NOTICE:
This e-mail together with any attachments is proprietary and confidential; 
intended for only the recipient(s) named above and may contain information that 
is privileged. You should not retain, copy or use this e-mail or any 
attachments for any purpose, or disclose all or any part of the contents to any 
person. Any views or opinions expressed in this e-mail are those of the author 
and do not represent those of CampusEAI Consortium or the Open Student 
Television Network. If you have received this e-mail in error, or are not the 
named recipient(s), you are hereby notified that any review, dissemination, 
distribution or copying of this communication is prohibited by the sender and 
to do so might constitute a violation of the Electronic Communications Privacy 
Act, 18 U.S.C. section 2510-2521. Please immediately notify the sender and 
delete this e-mail and any attachments from your computer. Warning: Although 
precautions have been taken to make sure no viruses are present in this e-mail, 
the companies cannot accept responsibility for any loss or damage that arise 
from the use of this e-mail or attachments.

-- 
You are currently subscribed to [email protected] as: 
[email protected]
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-dev

Reply via email to