I'm trying to setup the pom.xml for one of my projects. And I can't figure out how to make it fetch dependencies via HTTP, but deploy new artifacts via FTP.
Here's the situation. I have a multi-module project on which I am working collaboratively with some other people. I also happen to rent a cheap web server that could allow me to share release and snapshot versions of some of my modules via a maven repository.
I want deployment to the repository to be authenticated (so that only authorized people can write to it) and to be done via FTP.
On the other hand, I want everyone to be able to download the published version of the artifacts anonymously via HTTP.
So far, the only thing I found was to add the following section to my pom.xml
<distributionManagement>
<snapshotRepository>
<id>my.repo.snapshots</id>
<name>My Repository - Snapshots</name>
<url>${url}/snapshots</url>
</snapshotRepository>
<repository>
<id>my.repo.releases</id>
<name>My Repository - Releases</name>
<url>${url}/releases</url>
</repository>
</distributionManagement>
The problem with this setup is that it doesn't let me pick FTP for upload and HTTP for download.
Is there any way to configure my pom.xml to do that?