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
3
votes
2 answers

Maven project packaging is war but also building/installing jar

I have a Maven 3.3 project, and the main output is a war file: pro 1.0-SNAPSHOT war I am using the maven plugin to also build a jar file, which goes into target/pro-1.0-SNAPSHOT.jar…
mikeb
  • 10,578
  • 7
  • 62
  • 120
3
votes
1 answer

How to change jar output directory when running as maven install in Eclipse?

I am making a Minecraft plugin for Bukkit 1.8, and everything works fine. I right click on the project name > Run As > Maven install. It outputs the .jar file to the target directory. I then copy the file to the plugins folder of my Minecraft…
marisusis
  • 342
  • 4
  • 20
3
votes
1 answer

rpm-maven-plugin how to control the name under which rpm is stored in m2 repository?

Our organization has a convention for naming rpms. Typically, the rpm will have a shorter base name than the Maven project. There is also a convention around how releases are named. So we want a name…
Steve Cohen
  • 4,679
  • 9
  • 51
  • 89
3
votes
2 answers

Maven install 3rd party dependency in build process

I have a 3rd party dependency jar which need to be installed in order to build my project. I know this can be done using the install command, but what I need is to install it when I build my project. So no need to manually install the jar, is there…
Roy Justin
  • 653
  • 3
  • 10
  • 23
3
votes
3 answers

STS: run as -> maven install error

I'm using Spring Tool Suite (basically the same as Eclipse, can't actually find a difference but I'm being made to use it) for an assignment and I'm having an error when I right click on the project and click 'Run As -> Maven Install'. Exception in…
3
votes
1 answer

How can I exclude a project from a mvn clean install?

Possible Duplicate: How do I exclude certain modules from a maven build using the commandline I am running a maven clean install in a pom file which includes several modules (and sub-modules). I was wondering if it is possible to run a maven…
Thomas
  • 2,751
  • 5
  • 31
  • 52
2
votes
1 answer

Why does Maven trim the "lib" prefix when installing native libraries when Java expects this convention for linking?

I have been reviving two projects lately involving JNI-based (Java with native libraries) code. The build system is legacy (Makefile based, not Maven or Gradle), but that's ok given the age of the projects (their inception predates Maven), and…
2
votes
1 answer

Maven install failure: Install doesn't see packaged artifact

I have a Maven build failing during the install phase to a No such file or directory error, despite the fact that the file exists (and was created during package phase). [INFO] --- maven-assembly-plugin:2.2-beta-5:single (lev-sys-test-output) @…
Suriname0
  • 527
  • 1
  • 8
  • 21
2
votes
1 answer

Error with mvn install local jar: Failed to execute goal org.apache.maven.plugins:maven-install-plugin...(Is a directory) -> [Help 1]

i am trying to install a local jar to my maven project, i am running this command from my project folder : mvn install:install-file -Dfile= ~/Downloads/ -DgroupId= -DartifactId= -Dversion= -Dpackaging=jar…
Ayoub
  • 112
  • 1
  • 9
2
votes
1 answer

how to exclude jar file from getting installed using maven-install-plugin?

I have a jar file created using maven-jar-plugin. Is there a way to skip this jar file from getting installed in repository? Thanks in advance.
Sanchit Nagpal
  • 141
  • 1
  • 1
  • 4
2
votes
4 answers

Why during the install phase of maven cycle, package phase is called as well?

I have in my pom.xml a section org.apache.maven.plugins maven-install-plugin ./lib/pom.xml ./lib/wls-maven-plugin.jar
Oleksandr Papchenko
  • 2,071
  • 21
  • 30
2
votes
1 answer

"grails maven-install" vs "grails install-plugin maven-publisher"

I am using Grails 2.3.6 and have a few questions surrounding these 2 SDK commands. I usually don't like to write "multi-questions" like this, but as you can see, they are so close in concept that I'd rather just put them all here than bog down SO…
AdjustingForInflation
  • 1,571
  • 2
  • 26
  • 50
2
votes
1 answer

Installing maven project locally with a classifier

If the version of a project foo is 1.0-SNAPSHOT, should running the command mvn install -Dclassifier=bar install foo-1.0-SNAPSHOT-bar.jar in my local .m2 directory? I tried doing this but it installs foo-1.0-SNAPSHOT.jar and maven install plugin…
fo_x86
  • 2,583
  • 1
  • 30
  • 41
2
votes
2 answers

Can I install several files into one artifact with Maven2 instal:install-file command

I'm developping application with JOGL2 and my favorite IDE Eclipse, also I want to use Maven2 for this purpose. Unfortunately, JOGL2 has no artifact yet. Also, I plan to deploy it as a runnable jar file. So I want to install JOGL artifact locally :…
loloof64
  • 5,252
  • 12
  • 41
  • 78
2
votes
1 answer

Maven install:install-file seems not to work

I've created a Maven project with some dependencies on libraries (.jar files) which are not in Maven central. The internal repository that we had is being taken offline and we have not been authorized to make a new one, so I modified the POM to use…
Platinum Azure
  • 45,269
  • 12
  • 110
  • 134