Hi,
My project has a need to use a custom maven2 repository. I have setup
a directory to be exposed through our web server. Our server is only
accessible through HTTPS (with a valid certificate) and a
username/password had to be setup as well. One of my other
requirements was not to allow maven to download from a publicly
available repository (not even the plugins), but only go to our own
server. The repository itself is browseable, so I know that works just
fine. However, maven can't seem anything and fails right away with
this:
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] The plugin 'org.apache.maven.plugins:maven-clean-plugin' does
not exist or no valid version could be found
This happens when I do a regular 'mvn clean'
To accomplish what I needed to do, I placed the following entries into
my pom.xml:
<repositories>
<repository>
<id>central</id>
<name>FES Unclass Maven Repository</name>
<url>https://custom-repo/maven/</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>central</id>
<name>FES Unclass Maven Repository</name>
<url>https://custom-repo/maven/</url>
</pluginRepository>
</pluginRepositories>
The 'custom-repo' in the URL is obviously a real URL in the actual pom.xml.
Since our server requires authentication, I also placed the following
into the settings.xml file:
<servers>
<server>
<id>central</id>
<username>UserNamer</username>
<password>Password</password>
</server>
</servers>
Again, obviously, the username/password are real in the real settings.xml.
Could someone point out to me what I am doing wrong here?
Thanks,
Yaakov.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]