Tag Archives: maven

Single or Multiple Maven pom.xml configuration files?

Questions: I would like to ask these questions related to pom.xml files in Maven projects. What is a reason to have multiple pom.xml for all dependency libraries instead of having all dependencies in one single pom.xml? Where should be these pom.xml files in Maven project placed? This is an example of pom.xml for Spring framework… Read More »

stop maven from checking for updates

Questions: How can I stop maven from checking for updates each time I start debugging a project from Eclipse? I hope this makes sense as I’m not too familiar with the java development environment. It’s just that everytime I start debugging, it will go checking for snapshot updates for dependent libraries. And this gets annoying… Read More »

Maven: adding a reference to a parent pom project

Questions: I’m not sure if I’m understanding how to use a parent pom project correctly. I have the following parent pom defined: <modelVersion>4.0.0</modelVersion> <groupId>com.example</groupId> <artifactId>parent</artifactId> <version>0.0.1-SNAPSHOT</version> <packaging>pom</packaging> <modules> <module>../child1</module> <module>../child2</module> </modules> And then the children pom reference the parent (each child has their own set of dependencies which are not shown): <parent> <groupId>com.example</groupId> <artifactId>parent</artifactId> <version>0.0.1-SNAPSHOT</version>… Read More »

Maven couldn't installed correctly

Questions: The operation cannot be completed. See the details. Cannot complete the install because one or more required items could not be found. Software being installed: m2e – Maven Integration for Eclipse (includes Incubating components) 1.6.1.20150625-2338 (org.eclipse.m2e.feature.feature.group 1.6.1.20150625-2338) Missing requirement: Maven Integration for Eclipse 1.6.0.20150526-2032 (org.eclipse.m2e.core 1.6.0.20150526-2032) requires ‘bundle org.eclipse.osgi 3.10.0’ but it could not… Read More »

Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.4.1

Questions: I’m doing a maven project,and my IDE is Eclipse。What I cannot grasp is when I use “clean -X” in Eclipse,it will report the following error: Apache Maven 3.0.4 (r1232337; 2012-01-17 16:44:56+0800) Maven home: /usr/share/java/apache-maven-3.0.4 Java version: 1.7.0_05, vendor: Oracle Corporation Java home: /Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home/jre Default locale: zh_CN, platform encoding: EUC_CN OS name: “mac os x”,… Read More »

Maven discovery completed without finding any extensions

Questions: I have installed eclipse 4.3 on my system and recently installed the Maven integration plugin. I get the following error: Discovery completed without finding any extensions. Please check your network connection and try again. The catalog url is http://download.eclipse.org/technology/m2e/discovery/directory-1.4.xml Note: No proxies, no network issues Answers: There is a Java update 1.7.0_45 which fixes… Read More »