Tag: java

  • MojoFailureException: Fix Maven’s Compilation Failure:

    Today, I faced a compilation failure in Bitbucket pipelines for a simple Java project. The project compiles successfully in the local machine. The stack trace of the failure was not useful at all: The stack trace doesn’t report any file names or lines numbers. This means the compilation error is not with the source code…

  • Avoiding Wildcard imports in Java/Kotlin with IntelliJ

    What is a wildcard import or a star import? When you want to import multiple classes from the same package like this: Java has an option to combine them into a single line using wildcard imports: Is it bad? Performance-wise, no. Using a wildcard import doesn’t actually import all the classes in the package. When…