M2E and having maven generated source folders as eclipse source folders

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

SLF4J: Failed to load class “org.slf4j.impl.StaticLoggerBinder”. error

I can also confirm this error. Workaround: is to use external maven inside m2eclipse, instead of it’s embedded maven. That is done in three steps: 1 Install maven on local machine (the test-machine was Ubuntu 10.10) mvn –version Apache Maven 2.2.1 (rdebian-4) Java version: 1.6.0_20 Java home: /usr/lib/jvm/java-6-openjdk/jre Default locale: de_DE, platform encoding: UTF-8 OS … Read more

Missing Maven dependencies in Eclipse project

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

Plugin execution not covered by lifecycle configuration (JBossas 7 EAR archetype)

This is a “feature” of the M2E plugin that had been introduced a while ago. It’s not directly related to the JBoss EAR plugin but also happens with most other Maven plugins. If you have a plugin execution defined in your pom (like the execution of maven-ear-plugin:generate-application-xml), you also need to add additional config information … Read more

Maven2: Missing artifact but jars are in place

There are a few other options apart from Project->Clean, some of which are more along the lines of turning it off and on again. Try right-clicking on the project and selecting Maven->Update Project Configuration. Disable then re-enable dependency management (right-click Maven->Disable Dependency Management then Maven->Enable Dependency Management Close the project and reopen it. Check that … Read more

maven-dependency-plugin (goals “copy-dependencies”, “unpack”) is not supported by m2e

It seems to be a known issue. You can instruct m2e to ignore this. Option 1: pom.xml Add the following inside your <build/> tag: <pluginManagement> <plugins> <!– Ignore/Execute plugin execution –> <plugin> <groupId>org.eclipse.m2e</groupId> <artifactId>lifecycle-mapping</artifactId> <version>1.0.0</version> <configuration> <lifecycleMappingMetadata> <pluginExecutions> <!– copy-dependency plugin –> <pluginExecution> <pluginExecutionFilter> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> <versionRange>[1.0.0,)</versionRange> <goals> <goal>copy-dependencies</goal> </goals> </pluginExecutionFilter> <action> <ignore /> </action> … Read more

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