How to skip install phase in Maven build if I already have this version installed in repo

I have a project that consist of 3 different libraries. When I run install script it takes all libraries from repo and run mvn clean install on them. But this version of library already installed in repo. Is there a way to skip install phase if version in pom.xml equal version in my local repo.

I know that I can use local repo and just set dependencies. But my boss want that our project can build only with public repos and without any our repos.

-------------Problems Reply------------

You can bypass like this



Last week Olivier Lamy patched this jira.


Most maven plugins can be skipped by specifying something like:


you can also set up build profiles to set properties and use that to determine the value. for example, running the command: mvn -Pexample would select the "example" profile. The POM would then contain:



Using these POM additions, the default behavior for the install plugin will be to perform its default goal, but if the example profile is selected, then the install plugin will skip its goal.

I know that I can use local repo and just set dependencies. But my boss want that our project can build only with public repos and without any our repos.

Are you sure you understood correctly what you boss meant? I interpret the above as "don't install third party libraries in your local repository, use only libraries available in public repositories". This is different from "don't use your local repository" which is basically impossible, that's just not how maven works. I'd try to clarify this point.

Apart from that, I don't get the question which is very confusing (what repo are you talking about? What is the install script doing? Why do you call clean install on libraries? etc).

Category:maven 2 Views:0 Time:2010-06-30

Related post

  • How should I configure the eclipse to make use of different values of environment variable for different maven phases, during maven building process? 2011-07-15

    Prehistory Our project builds with maven. We use eclipse. In project i have two DB property file: with the same structure: jdbc.driverClassName= jdbc.url= jdbc.username= jdbc.password= value of username and p

  • Maven2: How to be sure Maven build is using a specific plugin version? 2009-08-27

    I just found something that sounds weird with Maven plugin management. While working on the site generation I wanted to use a specific version of the maven site plugin in order to have a specific functionnalty working. Let's say I want to use version


    I JUST INSTALLED IE-8 "CANT OPEN BECAUSE THERE IS A NEWER VERSION INSTRALLED" HOW IS THIS POSSIBLE DON SEAL --------------Solutions------------- You may have a beta version of IE8 currently installed. How to uninstall Internet Explorer 8 Beta 2 http:

  • Error when installing OneNote 2010 on an XP machine with the 2007 version installed 2015-01-12

    When I tried to install the software, it goes through the long process of installing the software - I'm watching the status bar slowly fill in. After it finishes, it say installation error. Nothing else, not code or anything, and shuts down the insta

  • I cannot download flashplayer, it says it has been installed 100% but every site says I need a newer version installed 2012-02-21

    I can not download flashplayer, it says it has been installed 100% however every site I visit says i have to download new version of flashplayer , frustrating for a 75 year young man , tks jim Original title:flashplayer caannot download ,any help ---

  • How to install jars in maven repository which is eclipse embedded? 2010-12-01

    My objective is to install jar file in the Maven repository. From the below link I came to know how to install in MVN. how to install jars in maven But What is my problem is "I have Maven embedded in Eclipse. I dont know where to run the following co

  • Maven building, but not testing 2011-03-07

    We are trying to develop an Android application in Eclipse using TDD/Continuous Integration. We have Maven 3 and Atlassian Bamboo running on a server. Our problem is, that when running mvn clean install from cli, Maven builds the App and AppTest succ

  • Maven BUILD FAILURE when installing Mahout on Ubuntu 2013-06-27

    I am trying to build mahout in Ubuntu 12.04, but on a virtual machine running on a Windows 7 host machine. Maven does not seem to like this, and I don't really understand how to fix the problem. This is the result of a good long period of build tests

  • Maven:install jar file during build process 2011-01-14

    I have got a requirement as follows. I need to run ant build file during maven build process. I need to invoke the build.xml from my pom.xml file. I have done that using maven-antrun-plugin. Now I need to install the ant build generated jar file auto

  • Skip validation and maven build on startup in eclipse 2011-02-28

    Technically I'm using Springsource Toolsuite, but I think this is a general eclipse question. My eclipse startup is now in the minutes, because on startup its running Maven Builder: FULL_BUILD and validation over all the open projects. I recently sta

  • Copy a file during maven build phase 2011-12-06

    My situation is: I have a Maven project, I have my java classes in /app/src/main/java, my resources in /app/src/main/resources and my webapp files in /app/src/main/webapp I have a javascript file in /common/script.js Now what I want is to include (co

  • How to externalize pieces of maven build file? 2009-01-30

    I was faced to a problem how to version a configuration file in XML format. The easiest way is to write XSLT updates. Every release of the application has its own XSLT update. All these update files are small enough to be managable by the IDE, especi

  • Why does adding a test jar blow up this maven build? 2009-02-12

    Ok, so I'm getting a little annoyed with Maven 2 right now. The project setup we've got is simple: A "core" project, which is depended on by both a "batch" and "web" project, and an "ear" project which depends on "web". Pretty simple stuff. Well, sin

  • How to send out email notification for Maven build 2009-08-07

    Is there a simple way to send out email notifications in Maven for each build without outside CI tools, just like Ant? --------------Solutions------------- If CI is not an option I would use a simple script wrapper: mvn install 2>&1 | tee buil

  • Fail maven build when maven-antrun-plugin failed 2009-09-07

    I'm running an Ant task that runs a junit test from within maven, using maven-antrun-plugin. The invocation looks like this: <plugin> <artifactId>maven-antrun-plugin</artifactId> <executions> <execution> <id>ant-te

  • How can I fail Maven build if exec:java goal fails? 2010-03-02

    We're using the Maven exec:java goal to run a custom java application that configures a database for use with our integration tests. We want to use exec:java over exec:exec to be able to use the project dependencies in the classpath of the main class

  • Integrating ant resource generation targets into a Maven build 2011-06-01

    I'm currently working on a fairly large project that has been migrated from Ant to Maven. There are no problems with the actual build process (it compiles and packages the source code fine). The problem is that I also have a lot of targets that gener

  • How to solve "Plugin execution not covered by lifecycle configuration" for Spring Data Maven Builds 2011-06-15

    I am trying to work with Spring Data and Neo4j. I started by trying to follow this guide linked to by the main site. In particular I based my pom.xml off of the Hello World example file. Here is a snip from my pom.xml for the plugin that is causing t

  • Flex Mobile Maven Build 2011-07-13

    I'm trying to find out if there is any way to build my flex mobile project using maven. When I run my maven build I want to have an apk-file and an ipa-file as output of the build process. It would be really cool if there would be a way to run the un

Copyright (C), All Rights Reserved.

processed in 0.117 (s). 11 q(s)