maven-archetype-webapp eclipse problem
Simply create a java directory under main (i.e. src/main/java) and right-click on your project and select Maven > Update Project Configuration.
Simply create a java directory under main (i.e. src/main/java) and right-click on your project and select Maven > Update Project Configuration.
Did you check your Project Properties -> Project Facets panel? (From that post) A WTP project is composed of multiple units of functionality (known as facets). The Java facet version needs to always match the java compiler compliance level. The best way to change java level is to use the Project Facets properties panel as … Read more
The org.eclipse.m2e:lifecycle-mapping plugin doesn’t exist actually. It should be used from the <build><pluginManagement> section of your pom.xml. That way, it’s not resolved by Maven but can be read by m2e. But a more practical solution to your problem would be to install the m2e build-helper connector in eclipse. You can install it from the Window … Read more
All of the answers above may work for the time being but whenever you run maven on the command line or Maven → Update project… the JDK will be reset, this was also the question as I understand it. To fix this for good add the following code to your pom file. Remember to do … Read more
Well, I tried everything posted here, unfortunately nothings works in my case. So, trying different combinations I came out with this one that solved my problem. 1) Open the .classpath file at the root of your eclipse’s project. 2) Insert the following entry to the file: <classpathentry kind=”con” path=”org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER”> <attributes> <attribute name=”maven.pomderived” value=”true”/> <attribute name=”org.eclipse.jst.component.nondependency” … Read more
I had the same problem. I fixed it by adding the maven archetype catalog to eclipse. Steps are provided below: Open Window > Preferences Open Maven > Archetypes Click ‘Add Remote Catalog’ and add the following: Catalog File: http://repo1.maven.org/maven2/archetype-catalog.xml Description: maven catalog
My solution is: -vm D:/work/Java/jdk1.6.0_13/bin/javaw.exe -showsplash org.eclipse.platform –launcher.XXMaxPermSize 256M -framework plugins\org.eclipse.osgi_3.4.3.R34x_v20081215-1030.jar -vmargs -Dosgi.requiredJavaVersion=1.5 -Xms40m -Xmx512m
The m2eclipse plugin doesn’t use Eclipse defaults, the m2eclipse plugin derives the settings from the POM. So if you want a Maven project to be configured to use Java 1.6 settings when imported under Eclipse, configure the maven-compiler-plugin appropriately, as I already suggested: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>2.1</version> <configuration> <source>1.6</source> <target>1.6</target> </configuration> </plugin> If your project … Read more
You can right-click on your project then Maven > Update Project…, then select Force Update of Snapshots/Releases checkbox then click OK.
You need to attach the source directory with the build-helper-plugin. Like so: <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>build-helper-maven-plugin</artifactId> <executions> <execution> <id>add-source</id> <phase>generate-sources</phase> <goals> <goal>add-source</goal> </goals> <configuration> <sources> <source>${project.build.directory}/generated-sources/java/</source> </sources> </configuration> </execution> </executions> </plugin> You will also need to: Install the “Apt M2E Connector” from the Eclipse Marketplace. To do so click the error in the Overview tab of … Read more