Questions tagged [maven-install-plugin]

The Maven Install Plugin is used during the install phase to add artifact(s) to the local repository.

83 questions
158
votes
15 answers

Maven: The packaging for this project did not assign a file to the build artifact

I'm using Maven 3.0.3 on Mac 10.6.6. I have a JAR project and when I run the command "mvn clean install:install", I'm getting the error, [ERROR] Failed to execute goal org.apache.maven.plugins:maven-install-plugin:2.3.1:install (default-cli) on…
Dave
  • 8,667
  • 25
  • 72
  • 90
21
votes
3 answers

Install local jar dependency as part of the lifecycle, before Maven attempts to resolve it

Because of some incompatibilities between two dependencies, I was forced to make a shaded version of one of my dependencies. This means my project now depends on a local .jar file. I was previously perfectly fine with just using mvn install-file to…
Wiwiweb
  • 1,076
  • 2
  • 8
  • 24
8
votes
2 answers

Maven install transitive dependencies

I have a project, and I need to install a library on Maven so that I can use it on said project. The problem I ran into is that said library, say libA, has a dependency itself, libB, which is also a third party one. I have added both to my local…
ricardolecocq
  • 127
  • 1
  • 7
6
votes
3 answers

Maven does not read POM when installing JAR to repository

I've followed the guide here to install a JAR file into my local repository. I run following command: mvn org.apache.maven.plugins:maven-install-plugin:2.5.2:install-file -Dfile=log4j-weblayout-0.0.1-SNAPSHOT.jar The JAR file is built using Maven…
Kshitiz Sharma
  • 17,947
  • 26
  • 98
  • 169
6
votes
2 answers

How do I force Maven to use maven-install-plugin version 2.5?

I want to install few jars to my local maven repo with maven-install-plugin. My maven 3.2.1 installation uses version 2.4 of this plugin which requires a lot of parameters to specify. I would like to use version 2.5 that requires less parameters, as…
Alexander
  • 847
  • 1
  • 9
  • 18
5
votes
3 answers

How can I embed Maven into my application?

I'd like to embed Maven or the library that does all the magic into my Java application. The keypoints : They are two tasks I want to perform : 1/ Publishing a jar in local repository 2/ Publishing a jar in a private enterprise repository…
Stephan
  • 41,764
  • 65
  • 238
  • 329
4
votes
1 answer

How to generate and upload checksums with maven deploy plugin 3.0.0-M1?

The feature to generate checksums seems to have moved from install to deploy plugin (see MDEPLOY-231). There seems to be no parameter to control the generation and the deployment of checksums any more, neither in install plugin 3.0.0-M1 (the…
Gustave
  • 3,359
  • 4
  • 31
  • 64
4
votes
1 answer

Create a checksum for all maven artifacts

I'm trying to create an SHA-1 checksum for ALL the artifacts currently in my maven build and write these checksums to a file. Currently I am looking into using the maven-install-plugin which has a built in checksum…
4
votes
1 answer

How to resolve a Maven "The packaging for this project did not assign a file to the build artifact" error?

I’m using Maven 3.2.3. I used to be able to run “mvn clean install” on my WAR project and the WAR would get installed to my local repository. However, I recently added a configuration so that my WAR would be constructed in place (config is below).…
Dave
  • 15,639
  • 133
  • 442
  • 830
4
votes
1 answer

Android: Maven final archive name

At the end of a maven mvn clean install run, the created artifacts are automatically installed in the repository by the maven-install-plugin: [INFO] --- maven-install-plugin:2.3.1:install (default-install) @ project --- [INFO] Installing…
whlk
  • 15,487
  • 13
  • 66
  • 96
3
votes
1 answer

maven plugin ignored from local pom plugins

I am new to maven, and cannot figure it out. I have this configuration for the plugin in my pom.xml file, but it looks like mvn does not use my configuration.…
vlr
  • 780
  • 4
  • 16
  • 33
3
votes
1 answer

Installing build artifact without running the build again

I have a fairly complicated build workflow for one of my Jenkins builds. The project contains two modules. Module M1 builds a service and module M2 builds the service client. M1 is dependent on M2 (don't ask me why). M2 needs stubs created from the…
Peter Schuetze
  • 16,185
  • 4
  • 44
  • 58
3
votes
1 answer

Keep maven artifact name on maven-install-plugin (default-install)

I try to include the git commit hash in the artifact name to distinguish between Snapshot-Versions in an CI scenario. The git hash is successfully included in the target/ folder of my project, but in the last maven step it copies the artifact into…
Steffen Schmitz
  • 860
  • 3
  • 16
  • 34
3
votes
1 answer

Install custom maven plugin from local jar into local repository with dependencies

I have a maven plugin, which I have not uploaded to the central repository, but which I want to use in my projects. What works I can install the maven plugin like this: git clone https://github.com/RudolfVonKrugstein/jinja-maven-plugin.git cd…
Nathan
  • 7,099
  • 14
  • 61
  • 125
3
votes
1 answer

Why 'mvn install' war projects?

My maven project packages a war, which only gets deployed and is itself not a dependency to other projects (in other words is a final deployable). Questions: is there any reason to ever run mvn install on that package, which, in addition to mvn…
amphibient
  • 29,770
  • 54
  • 146
  • 240
1
2 3 4 5 6