I am new to web hosting.
I want to use an Apache HTTP server to host the site for my artifact built with Maven.
Since Maven uses protocols like SCP, what else should I require to configure the system?
How should I configure the system so that my artifact is available on my HTTP server?
I could set up Artifactory, but I want to know if it is possible to do so without any other third party artifact management system.
Thanks!
Related
I have nexus installed behind of apache server. apache is configured to use SSO, it's triggered in the apache level and then I pass uid through headers.
the problem is that does not work when I want to deploy to nexus with maven.
Have you any idea please
Regards
We are currently moving from Nexus 2 to Artifactory.
While Nexus 2 had dedicated support for Maven Sites, Artifactory has not.
I guess that I could deploy Maven Sites to an Apache HTTP Server, a Tomcat or anything similar, but I am not sure.
What are the prerequisites for using a server as a "Maven Site server"?
The following seems to work:
Install a Apache httpd on a Linux system. Configure the www directory.
Use scp to deploy the site to the defined www directory.
For scp, you need the wagon dependency for ssh and an appropriate user for your Linux server.
I am using Spring roo.But i found that roo uses internet to download the maven plugins at first time. To avoid it am trying to use Apache archiva Stand alone.But i don know how can i configure it for maven.Can you help me to solve this
Apache Archiva can serve the artifacts you need for Spring Roo, but if you do not have an internet connection from the Apache Archiva server then you have to upload the artifacts yourself.
But if you can get the server connected to the internet once, then you can let the archiva server download the artifacts for you, because it can act as a proxy and then caches the artifacts. Once connected to internet, let Spring Roo retrieve the artifacts from the Archiva server. When you have done this one time, archiva should have cached the artifacts. Then you could disconnect it from the internet.
If you want to know how you can configure maven to use the Apache Archiva repository, look at:
http://archiva.apache.org/docs/1.0.1/userguide/using-repository.html
Right now I have a JBoss application server and I want to setup an internal maven2 repository. I want the repository to be located on the application server. How would I go about doing this? Basically I want to host files on a JBoss application server similar to: http://repo1.maven.org/maven2/
I want the repository to be located on the application server. How would I go about doing this?
In that case, your best option is to deploy a Repository Manager like Nexus, Artifactory or Archiva. My preference goes to Nexus.
the easiest way is to deploy archiva on your JBOSS and create the archive through it:
http://archiva.apache.org/
I have an artifactory within a corporate network. I configured a http proxy for each remote repository. It doesn't work. How could I possibly find out why it doesn't work? Are there any log settings which I could tweak?
Using the same proxy within Firefox works just fine.
Artifactory 2 uses logback for logging, you can find its configuration in $ARTIFACTORY_HOME/etc/logback.xml
If you can access the repository through the browser, it's likely the problem is in your Maven configuration. If you've a proxy configuration defined, you'll need to ensure the proxy is set to exclude your internal http proxy server.
If you run Maven with the -X switch, it will give you more details on the connection attempts Maven is making.