If you don't have internet access, you will want to install Nexus or some other Maven Repo, locally. Then you can download jars and put them in your local repo and point Maven to that.

Even if you could access the Internet, I strongly recommend a repo. It makes your life with Maven so much easier and makes Maven a pleasure to use rather than a battle with a mysterious and devious partner.

Ron

On 08/07/2011 7:34 AM, skmoorthy02 wrote:
I'm new to maven project. I'm changing an ant project to maven project. To
install the 3rd party jar's in maven local repository, I used install
command. Its trying to download the resource jar.pom. I don't have download
access in my organization so the build failed for installation. After
request i got the resource jar and clean jar in my desktop(also i can get
other necessary jar). How to make maven to use these jar for the process and
how to install the jar in local repository without internet access.

I downloaded the jar and placed in local repository but it couldn't point
the path and use those jars.

please let me know what steps i have follow to run maven install and other
commands to build the project without internet access.

where should i placed the jar which i have downloaded by external way.

Please guide me for building and deploying the project.

Thanks in advance.

Thanks for the reply. But i have not reached the solution. Because I used
the command install-file,mvn *install:install-file -Dfile=Logger.jar \
-DgroupId=Log \ -DartifactId=Logger \ -Dversion=1.1 \ -DgeneratePom=true
*..... It tries to download
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/2.3.2/maven-compiler-plugin-2.3.2.pom
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/2.3.2/maven-compiler-plugin-2.3.2.pom
.. It will not be allowed by my organisation.. so i downloaded maven compler
plugin,clean,install,resource and placed in local repostiory still it fails
to install jar..

from which directory we should run install-file command because it prompts
for pom file when i used the command from default structure


I've posted the same question in stackoverflow.com
http://stackoverflow.com/questions/6609443/maven-installation-and-using-in-project-without-internet-conncetion
http://stackoverflow.com/questions/6609443/maven-installation-and-using-in-project-without-internet-conncetion
.
I couldn't solve the issue with the replies.
I believe this is the right place to post the question.
Please help me out to solve the issue.
Thanks in advance.. Awaiting solution for my issue.



--
View this message in context: 
http://maven.40175.n5.nabble.com/Maven-installation-and-using-in-project-without-Internet-conncetion-tp4564443p4564443.html
Sent from the Maven - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]




---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to