we are facing problem to mirror the vaadin add-ons tru our own nexus.
We created a proxy repository with url to vaadin add-ons and added it to the public repositories group.
You can browse remote index but the local index is always empty.
settings.xml contains:
In this situation we cannot download any artifacts.
If we execute “update index” on the created add-on proxy-repository the processing is unusual fast and logs(e.g.): Updating repository index “vaadin-addons” from path / and below. : Process started on Wed Jan 30 16:34:09 CET 2013, finished successfully on Wed Jan 30 16:34:09 CET 2013
Sorry, the Vaadin Directory Maven support is not a full-blown Maven repository implementation, and does not support browsing. As far as I know, each add-on can only be downloaded with its direct URL including the version number. What you see when trying to browse the remote repository index is probably only the add-ons you have accessed in the past.
Note that many of the add-ons in the Directory are not Maven projects and do not have much metadata, so what the Directory does at the moment is to expose the JARs and very simplified POMs in those cases. Even for Maven projects, the Directory does not get the deployment of the Maven artifacts directly but only a JAR or a ZIP file. If the project was uploaded as a ZIP package including “-sources” and “-javadoc” JARs, those are also made available, and the POM is taken from the main JAR if available there.
I’m afraid these limitations mean that while you can proxy access to the Directory and cache whatever is downloaded from there, there is no practical way to mirror the whole Directory. As far as I know, there are no plans at the moment to make changes to this.
Had the exact same problem and finally figured out how to solve it.
On your Nexus, select the Vaadin addons repository and select the routing tab.
Deselect the Discovery check and save the repository settings.
Retry and force your Maven to check your Nexus.
Watch the file being downloaded!
We are using Nexus 2.4.0 but sadly enough we found out the fix i found didn’t do the job either. (it seems to help a bit but not fix the problem.)
Our Nexus downloads the POM but doesn’t download the JAR.
After a few days the JAR magically appears.
To by pass the problem I add the Vaadin Addon repository to my local Maven config and download the file’s directly instead of using the Nexus as a proxy.
I’ve solved this problem by downloading the addons directly from vaadin repository, escaping nexus. And copied the folder with addons to the nexus working folder (sonatype-work/nexus/storage/{repo-name})
The following nexus proxy repository settings fixed the problem for us: “Download Remote Indexes: False” and “Include in Search: False”. Since addons are discovered by browsing the vaadin addon website and not by browsing nexus, it is ok that the search in nexus does not work.