2,991
questions
2914
votes
33
answers
2.0m
views
How can I create an executable/runnable JAR with dependencies using Maven?
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?
21
votes
2
answers
10k
views
Assembling 32-bit binaries on a 64-bit system (GNU toolchain)
I wrote assembly code that successfully compiles:
as power.s -o power.o
However, it fails when I try to link the object file:
ld power.o -o power
In order to run on the 64 bit OS (Ubuntu 14.04), I ...
921
votes
14
answers
1.4m
views
Correct way to add external jars (lib/*.jar) to an IntelliJ IDEA project
When creating a new Java project in IntelliJ IDEA, the following directories and files are created:
./projectname.iml
./projectname.ipr
./projectname.iws
./src/
I want to configure IntelliJ IDEA to ...
273
votes
10
answers
414k
views
Maven: add a dependency to a jar by relative path
I have a proprietary jar that I want to add to my pom as a dependency.
But I don't want to add it to a repository. The reason is that I want my usual maven commands such as mvn compile, etc, to work ...
671
votes
24
answers
927k
views
How to build JARs from IntelliJ IDEA properly?
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 would like to have the ...
17
votes
2
answers
42k
views
Adding external library to artifact jar in IntelliJ IDEA
How can I add an external library to a project in IntelliJ IDEA so that when I build an artifact it still has access to the classes in the library?
I have created a new Jar artifact from Project ...
946
votes
32
answers
795k
views
How can I run multiple npm scripts in parallel?
In my package.json I have these two scripts:
"scripts": {
"start-watch": "nodemon run-babel index.js",
"wp-server": "webpack-dev-server",
}
I have to run these 2 scripts in parallel ...
329
votes
5
answers
223k
views
What is pluginManagement in Maven's pom.xml?
This is a snippet of my pom file.
...
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-...
583
votes
8
answers
285k
views
What does the Visual Studio "Any CPU" target mean?
I have some confusion related to the .NET platform build options in Visual Studio 2008.
What is the "Any CPU" compilation target, and what sort of files does it generate? I examined the output ...
194
votes
27
answers
116k
views
NoClassDefFoundError - Eclipse and Android
I'm having a problem trying to run an Android app which, up until adding a second external library to its build path, was working fine. Since having added the scoreninja jar, I now get a ...
451
votes
20
answers
371k
views
Xcode "Build and Archive" from command line
Xcode 3.2 provides an awesome new feature under the Build menu, "Build and Archive" which generates an .ipa file suitable for Ad Hoc distribution. You can also open the Organizer, go to "Archived ...
215
votes
14
answers
358k
views
Best practices for copying files with Maven
I have config files and various documents that I want to copy from the dev environment to the dev-server directory using Maven2. Strangely, Maven does not seem strong at this task.
Some of the ...
579
votes
7
answers
431k
views
Maven Modules + Building a Single Specific Module
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 all of the ...
284
votes
25
answers
389k
views
Android Studio gradle takes too long to build
My Android Studio project used to build faster but now it takes a long time to build. Any ideas what could be causing the delays?
I have tried https://stackoverflow.com/a/27171878/391401 but no effect....
1026
votes
26
answers
482k
views
How do I get the Git commit count?
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/...