Difference between and tag in Maven `pom.xml` [duplicate]

From Maven documentation: pluginManagement: is an element that is seen along side plugins. Plugin Management contains plugin elements in much the same way, except that rather than configuring plugin information for this particular project build, it is intended to configure project builds that inherit from this one. However, this only configures plugins that are actually … Read more

How to include a config file in the “META-INF/services” folder of a JAR using Maven

Create a new source folder with the location src/main/resources, then create your META-INF/services folder in there and drop in your fully-qualified class name (FQCN) file. This should copy them into the jar file automatically. So for implementations of an interface with a FQCN of com.acme.MyInterface, you’ll have: Project | src | | main | | … Read more

Maven Build Failure — DependencyResolutionException

You don’t have to downgrade Maven. What happens here is that since 3.8.1, Maven comes with a default configuration to block all HTTP (insecure) repositories. The best way would be to upgrade your repositories and make them secure (HTTPS). However, you can tell Maven to allow downloading from your insecure repository by adding this mirror … Read more

What does the parent tag in Maven pom represent?

Yes, maven reads the parent POM from your local repository (or proxies like nexus) and creates an ‘effective POM’ by merging the information from parent and module POM. See also Introduction to the POM One reason to use a parent is that you have a central place to store information about versions of artifacts, compiler-settings … Read more

Missing artifact com.microsoft.sqlserver:sqljdbc4:jar:4.0

UPDATE Microsoft now provide this artifact in maven central. See @nirmal’s answer for further details: https://stackoverflow.com/a/41149866/1570834 ORIGINAL ANSWER The issue is that Maven can’t find this artifact in any of the configured maven repositories. Unfortunately Microsoft doesn’t make this artifact available via any maven repository. You need to download the jar from the Microsoft website, … Read more

Is there a way to exclude a Maven dependency globally?

Does this help? http://jlorenzen.blogspot.com/2009/06/maven-global-excludes.html “Assuming I want to exclude avalon-framework from my WAR, I would add the following to my projects POM with a scope of provided. This works across all transitive dependencies and allows you to specify it once. <dependencies> <dependency> <artifactId>avalon-framework</artifactId> <groupId>avalon-framework</groupId> <version>4.1.3</version> <scope>provided</scope> </dependency> </dependencies> This even works when specifying it in … Read more

Maven: Lifecycle vs. Phase vs. Plugin vs. Goal [closed]

A Maven lifecycle is an (abstract) concept that covers all steps (or better: all the steps the Maven designers decided to support) that are expected to occur in a project’s development lifetime. These steps (or stages) are called phases in Maven terminology. A Maven plugin is a container for/supplier of goals. Code implemented in goals … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)