What I am looking to do is take my local maven repo (stored in .m2/repository/) and upload all the artefacts up to a ProGet server.
I cant seem to find any documents or maven plugin even that gives me this functionality?
Can anyone help please?
You could try the Wagon Maven Plugin but its latest version is almost two years old and I experienced things not working with recent Maven versions.
You could use the Exec Maven Plugin to run a script that uploads your files.
Related
I'm trying to download the latest version of an artifact from JFROG Artifactory repository present in a common folder using the artifactory plugin in Teamcity.
Following is how the artifcatory repository looks like
My_Repo/my_tool
1.0/too1.zip
2.0/tool.zip
3.0/tool.zip
4.0/tool.zip
5.0/tool.zip
I tried using the following syntax in the artifactory plugin of teamcity but neither of them work in downloading the latest artifact.
Under "Custom build dependencies:"
My_Repo:my_tool/#LATEST
My_Repo:my_tool/LATEST
Currently I should download version 5.0 of the tool but if there is a new version 6.0, that should get automatically downloaded as soon as it is available and I do not want to hard-code the version number in my Teamicty jobs.
Can any of the experienced users of teamcity shed some light on how to achieve this.
I tried to install the Nexus Artifact Usage Plugin into my Nexus 2.12.1-01: I copied it to the plugin-repository folder and restarted Nexus, but all I got was:
Unfortunately, this error message does not help very much.
Is this plugin deprecated?
Should it be replaced?
Or is there some kind of trick to make it work?
Sonatype told me that this plugin is not supported and probably won't work with newer versions of Nexus. It is unclear whether there is a reasonable replacement.
In out project we are using using deployed war file in /archiva-2.2.0/repositories/internal/com/xyz/1-SNAPSHOT/proj-1-20160204.122021-15.war path using shell script to copy to jboss. However finding the latest build timestamp and build number is very difficult. Is there a way to avoid using timestamp while storing it in archiva like proj-1-SNAPSHOT.war?
I have already read about <uniqueVersion>false</uniqueVersion> whcih is not supported in maven 3.
I am using archiva-2.2.0, maven-3.3.9.
Maven repositories wasn't designed to distribute deployable components, your continuous integration environment should take care of this. Jenkins has eg Archive Artifacts (native) and Copy Artifact Plugin which you can use to store and recover binaries in your pipelines.
But you can workaround this behavior changing the version of the war to a stable one - removing the -SNAPSHOT suffix. This will lead you with a predictable URL.
I am posting this as it is a new finding, if I wget http://xx.xx.xx.xx:8083/repository/internal/com/xyz/1-SNAPSHOT/proj-1-SNAPSHOT.war. I get the latest deployed artifact in the archiva repository. So archiva does a 302 redirect to point to url of http://xx.xx.xx.xx:8083/repository/internal/com/xyz/1-SNAPSHOT/proj-1-20160204.122021-15.war location and downloads the latest build. I am not sure if this works for other repositories like nexus or artifactory etc.
Ofcourse I will need a cron job to periodically clear of the stale snapshot artifacts.
I searched everywhere and I cannot seem to be able to find maven Dependencies artifact for com.adobe.fdf
I am working on a very old project and am importing com.adobe.fdf.FDFDoc
Does anyone know what should I do?
I think it is not available within a public Maven repository - maybe because of the license. You have to download it from the Adobe website and install it by yourself at your local Maven repository.
Please see the maven-install-plugin: Goal install-file
Is there any way to put my JAR file in remote repository, so my maven project can get this JAR file from any place via Internet?
I have downloaded and did some fixes in the ReportNG project: https://github.com/dwdyer/reportng .
Using ANT I have compiled this project into JAR, now I want to put it into remote Maven repository, but don't know how I can do that.
Could somebody please suggest me the way, how I can perform that?
If it is a released version you want to make available in maven central follow this guide: http://maven.apache.org/guides/mini/guide-central-repository-upload.html
I'm no github professional but since a maven repo is just a file structure with some meta-data you can put it anywhere maven can read it (ftp, http, ...). so you could create a git repo to host your maven artifacts. see http://cemerick.com/2010/08/24/hosting-maven-repos-on-github/ for an example. (it may be outdated - github may have something like maven repo hosting, I just dont know)
A lightweight way to create your own maven repository is to store it on github. See Hosting a Maven repository on github for more details
I followed sonatype open source project maven deployment guide https://docs.sonatype.org/display/Repository/Sonatype+OSS+Maven+Repository+Usage+Guide and successfully deployed the latest version of reportNG into maven central repository. Now maven have both 1.1.3 and 1.1.4
http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22org.uncommons%22%20AND%20a%3A%22reportng%22
You should do a pull request to the github project. If the maintainer likes your fix he will put it in the next version.
If you need your fix in a remote repo NOW then you'll have to setup your own maven repository.