Tag: IntelliJ IDEA
-
IntelliJ: Overriding Log4J Configuration Globally for JUnit
PROBLEM Most of the time, we may have several Log4J configurations depending on the environments, for example:- Since log4j.xml and log4j2.xml are the default configuration files for Log4J and Log4J2, these configurations will always be used unless we override the configuration file path. In another word, if we don’t override the configuration file path and… Read More…
-
IntelliJ: Selectively Disable Line Wrap
PROBLEM Sometimes, we have very lengthy statements that look like this:- When we reformat the code in IntelliJ, it becomes like this:- There are times we really don’t want the long statements to wrap around because they look very messy. SOLUTION While there is no option to selectively disable just the line wrap in IntelliJ,… Read More…
-
IntelliJ: Handling SVN Global Ignore List
PROBLEM Every time we check out a project from SVN for the first time, we always have to remember to set the SVN ignore list in IntelliJ. SOLUTION NOTE: We only need to perform these steps just once per development machine. To do so, we configure the SVN global ignore list and have IntelliJ to… Read More…
-
Maven: Deploying Java Sources to Nexus
By default, mvn deploy will only package and deploy class JAR to Nexus. To deploy the source code too, we need to add the following plugin into pom.xml:- Now, mvn deploy will deploy both class JAR and source code JAR to Nexus:- In IntelliJ, when jumping into a class from the JAR, we are given… Read More…
-
IntelliJ: Auto-generating POJO Builder
I have been searching for an elegant way to auto-generate a POJO fluent builder with minimal typing and configuration. A builder is a great way to promote object immutability, however it is also a pain to create and mantain yet another class that looks almost like the POJO class we create. There are a few… Read More…
-
Intellij v13.1 Bug: NoClassDefFoundError when Running Unit Test With JaCoCo Configured
If you are using IntelliJ and your Maven project relies on JaCoCo Maven Plugin, please consider voting up issue IDEA-122895 to get it fixed by JetBrain as soon as possible. Even if you are not using IntelliJ or JaCoCo, but you find this shitty blog to be helpful, please consider voting up this issue to… Read More…