Question: I have a multi-module Maven project with a parent project P and three sub-modules A, B, and C. Both B and C are war projects and both depend on A. I can type mvn compile in P and have ...

Question: I have a project that contains a single module, and some dependencies. I’d like to create a jar, in a separate directory, that contains the compiled module. In addition, I’d like to have the dependencies present beside my module. ...

Question: How can I limit my post-build events to running only for one type of build? I’m using the events to copy DLL files to a local IIS virtual directory, but I don’t want this happening on the build server ...

Question: I’d like to get the number of commits of my Git repository, a bit like SVN revision numbers. The goal is to use it as a unique, incrementing build number. I currently do like that, on Unix/Cygwin/msysGit: But I ...

Question: I want to package my project in a single executable JAR for distribution. How can I make a Maven project package all dependency JARs into my output JAR? Best Answer: and you run it with Compile goal should be ...