Hi John,
It seems you have read some documentation but may have missed some relevant
pieces. Artifactory is a binary repository manager which means it is also a
Maven repository manager. A repository manager, as explained on the Apache
website (http://maven.apache.org/repository-management.html) does just what you
are asking Artifactory to do. Do not confuse a Maven repository with a Maven
repository manager, a repository manager aggregates both internal and external
repositories. The internal repositories store artifacts while the external
repositories proxy and cache artifacts. The Artifactory user guide should
explain everything you need to configure both your third party jars internal
repository and your external repository to proxy Maven Central
(http://wiki.jfrog.org/confluence/display/RTF/Artifactory+User+Guide).
As for publishing the artifacts to Artifactory, I don't use Jenkins so I'm not
sure what Maven goal is being called. Make sure it is calling the deploy
plugin. Providing the log snippets would help.
HTH,
Ken
_____________________________________________________
Ken Pacileo
UnitedHealth Group | Continuous Integration Services
From: John Manko [mailto:[email protected]]
Sent: Tuesday, March 26, 2013 12:07 AM
To: [email protected]
Subject: Re: [Artifactory-users] Confused about Artifactory as a maven
repository
Still not making any headway. Any suggestions?
Thanks.
On Mar 21, 2013 11:39 AM, "John Manko" <[email protected]> wrote:
Please forgiven my ignorance. I'm new to both Atrifactory (running 2.6.6) and
Maven, and I need a little guidance. I'm confused on how to use Artifactory
(OSS edition) for both my libraries and 3rd party libraries. Currently, my
projects (libraries and web apps) are Netbeans Ant based, but I'm in the
process of converting them to Maven (maybe I should go Ivy, but whatever). So,
some of my web apps and libraries I'd like to add to Artifactory, but only if
Artifactory can be used as a Maven repo. Then, I need to add third party
libraries because they aren't in Maven central, yet.
I'd like to break this out into a few issues.
First, is Artifactory meant to replace, or proxy, Maven Central? So, I'm under
the impression that I configure my development Maven settings.xml to point to
my Artifactory instance and it will act as a central for my projects and a
proxy to Maven Central. Is that correct? If that is the case, how to I
configure both the Artifactory server (which has maven installed) and my
development machine?
Second, as of now, LibreOffice is not in Maven Central. There is an open task
at LibreOffice, but I'd like to set up my own local Maven repo to make these
available for now. I found the page to upload jar artifacts, which I've added
each jar one at a time. But how can I package multiple jars to use the
multi-artifact upload feature? I'd like them to act as a single unit of
artifacts.
Third, since I'm using Netbeans Ant based projects with Jenkins, how can I
publish my libraries to Artifactory? I was able to configure Jenkins to
publish the artifacts, and the project build tree is created, but no artifacts
are published? My Jenkins job settings are as follows:
[X] Ant/Ivy-Artifactory Integration
[X] Capture and publish build info
[X] Publish artifacts to Artifactory
[X] Use Maven compatible patterns
Ivy pattern: [organisation]/[module]/ivy-[revision].xml
Artifact pattern:
[organisation]/[module]/[revision]/[artifact]-[revision](-[classifier]).[ext]
Include Patterns: dist/*.jar
Exclude Patterns: dist/javadoc
Again, I can see my project in Artifactory with the following details, but no
artifacts are published. I checked the logs and can't find an error. BTW, I'm
running Artifactory in Glassfish 3.1.2.2.
General Build Info:
Name: my-lib
Number: 89
Type: Ivy
Agent: Jenkins/1.504
Build Agent: Ivy/2.0.0
Started: 2013-03-20T16:00:44.959-0400
Duration: 4.6 seconds
Principal: jmanko
Artifactory Principal: jenkins-deployment
URL: http://jenkins/job/my-lib/89/
Any help would be greatly appreciated.
This e-mail, including attachments, may include confidential and/or
proprietary information, and may be used only by the person or entity
to which it is addressed. If the reader of this e-mail is not the intended
recipient or his or her authorized agent, the reader is hereby notified
that any dissemination, distribution or copying of this e-mail is
prohibited. If you have received this e-mail in error, please notify the
sender by replying to this message and delete this e-mail immediately.
------------------------------------------------------------------------------
Own the Future-Intel® Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest.
Compete for recognition, cash, and the chance to get your game
on Steam. $5K grand prize plus 10 genre and skill prizes.
Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d
_______________________________________________
Artifactory-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/artifactory-users