Why am I getting Unknown error in line 1 of pom.xml?

answer according to current status This issue got fixed: Please install the m2e connector for mavenarchiver plugin 0.17.3 from https://download.eclipse.org/m2e-wtp/releases/1.4/ obsolete answer A less profound change than a downgrade from Spring Boot 2.1.5.RELEASE to 2.1.4.RELEASE would be downgrading only the affected Maven JAR Plugin from 3.1.2 to 3.1.1 as long as this bug exists: <properties> … Read more

What is the difference between “pom” type dependency with scope “import” and without “import”?

You can only import managed dependencies. This means you can only import other POMs into the dependencyManagement section of your project’s POM. i.e. … <dependencyManagement> <dependencies> <dependency> <groupId>other.pom.group.id</groupId> <artifactId>other-pom-artifact-id</artifactId> <version>SNAPSHOT</version> <scope>import</scope> <type>pom</type> </dependency> </dependencies> </dependencyManagement> … What then happens is that all the dependencies defined in the dependencyManagement section of the other-pom-artifact-id are included in … Read more

What is the difference in Maven between dependency and plugin tags in pom.xml?

Both plugins and dependencies are Jar files. But the difference between them is, most of the work in maven is done using plugins; whereas dependency is just a Jar file which will be added to the classpath while executing the tasks. For example, you use a compiler-plugin to compile the java files. You can’t use … Read more

Maven: The packaging for this project did not assign a file to the build artifact

I don’t know if this is the answer or not but it might lead you in the right direction… (I believe these steps are for people working with Intellij IDE. The install:install is available in the Maven panel on the right by default. The below steps are alternative to it.) The command install:install is actually … Read more

stop IntelliJ IDEA to switch java language level every time the pom is reloaded (or change the default project language level)

As per Mark’s comment, here is how to do it: <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.5.1</version> <configuration> <source>1.8</source> <target>1.8</target> </configuration> </plugin> </plugins> </build>

What does mvn install in maven exactly do

As you might be aware of, Maven is a build automation tool provided by Apache which does more than dependency management. We can make it as a peer of Ant and Makefile which downloads all of the dependencies required. On a mvn install, it frames a dependency tree based on the project configuration pom.xml on … Read more

How to refer environment variable in POM.xml?

Check out the Maven Properties Guide… As Seshagiri pointed out in the comments, ${env.VARIABLE_NAME} will do what you want. I will add a word of warning and say that a pom.xml should completely describe your project so please use environment variables judiciously. If you make your builds dependent on your environment, they are harder to … Read more

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