How to install a maven artifact into your local repository
Tech-Today

How to install a maven artifact into your local repository


For example, you are working on a maven project application that integrates with paypal. You download paypal sdk (jars),  but you don't have any repository manager installed/setup on your local machine.

What you can do are:
1.) Include the jar as a scope=system and specify the path (not adviseable).

2.) Install the jar on your repository manager (if you have).

3.) If you don't have a repository manager, try the following command on the command prompt, it will install the jar in your local repository (normally ~/.m2/repository).

mvn3 install:install-file -Dfile=merchant-java-sdk_1.2.95.jar -DgroupId=com.paypal.sdk -DartifactId=merchant-java-sdk -Dversion=1.2.95 -Dpackaging=jar




- Repository Management
GITHow to invoke a Jenkins build from Assembla on GIT pushHow to initialize a git repository and linked it to a remote repository providerSVNHow to setup your google code repository to be accessible in mavenMAVENHow to push external jar into artifactory...

- Git: How To Have 2 Local Branch Pushing To 2 Different Remote Repositories So That You Can Merge Code
This tutorial will explain how to create 2 local branches with the same code base, each linked to different repository. The purpose is that you can share code between repositories. For example in a multi-module project, it's possible that 1 project...

- Deploy A Javaee6 War In Tomcat7 Using Maven
Recently, I'm trying to deploy a simple web application (war) in tomcat7 but it seems the old maven way of deploying a war will not work on it. The plugin I used to use for tomcat6 is: <plugin> <groupId>org.codehaus.mojo</groupId>...

- Could Not Resolve Dependencies For Project Com.xxxjar:-snapshot: Failed To Collect Dependencies For
I just have this weird problem using maven + artifactory. I have a project which I first build using maven-compiler 2.3.2, and maven2. It build successfully and I was able to deploy in artifatory 2.5. Eventually I've added several modules and one...

- How To Install Maven 3 In Ubuntu 11.10
To install maven 3 you need to remove first, if you have, the previous versions installed (maven2). And execute the ff command in the terminal: sudo apt-get remove maven2 sudo add-apt-repository ppa:natecarlson/maven3 sudo apt-get install maven3 You...



Tech-Today








.