jbake plugin requires maven upgrade in eclipse - eclipse

I'm using a maven plugin in my POM file. When I build the project, I get an error:
`[ERROR] Failed to execute goal br.com.ingenieux:jbake-maven-plugin:0.0.9:generate (default-cli) on project uts-documentation: The plugin br.com.ingenieux:jbake-maven-plugin:0.0.9 requires Maven version 3.1.1 -> [Help 1]`
My embedded maven version is 3.0.4. How can I update to the required version without installing a separate instance of maven (would like to avoid that if possible)?

Upgrading to a more recent Eclipse version will bring an updated embedded version of Maven. For example the Eclipse Luna installation that I am running has Maven 3.2.1 embedded.

Related

how to use maven to trigger eclipse project build?

when I'm using mvn install, and found that the number of compiling sources is different from that built from eclipse project build.
that is when compiled from mvn there's info message telling
[INFO] Compiling 359 source files to E:\workspace\project\target\classes
but when using eclipse-> project -> build project, there's over 400 classes, that means some classes are not compiled when using maven.
Is there anyone ever met similar problem?
ps: the tried with JDK 1.7, JDK1.8 and maven 3.2.1, 3.3, 3.1.1 and meet the same problem.

How to use sbt eclipse plugin to put all dependencies in eclipse Library Folder ClasspathContainer?

After I run activator eclipse command and import project into eclipse, we can see all dependencies be separated. I want to put all dependencies(jar) into a Library Folder ClasspathContainer when i run activator eclipse. So how to do it?
Just upgrade eclipse for the latest version.

maven in command line succeed, but failed when using the same maven in eclipse

I'm trying to build the project of hadoop. I followed the official document as follows on how to do that.
http://wiki.apache.org/hadoop/HowToContribute
https://wiki.apache.org/hadoop/EclipseEnvironment
I've git clone the project, maven install it successfully, but when I import the project, or even a sub-project like 'hadoop-yarn-api', I got the following errors on maven:
Description Resource Path Location Type
Plugin execution not covered by lifecycle configuration: org.apache.hadoop:hadoop-maven-plugins:3.0.0-SNAPSHOT:protoc (execution: compile-protoc, phase: generate-sources) pom.xml /hadoop-yarn-api line 73 Maven Project Build Lifecycle Mapping Problem
Then I'm trying to mvn clean install the project via External Tools Configuration in eclipse, it also failed on:
[ERROR] Failed to execute goal org.apache.hadoop:hadoop-maven-plugins:3.0.0-SNAPSHOT:protoc (compile-protoc) on project hadoop-yarn-api: org.apache.maven.plugin.MojoExecutionException: 'protoc --version' did not return a version -> [Help 1]
But the curious part is that when I cd into the root directory of 'hadoop-yarn-api' and invoke mvn clean install, it can be built successfully.
I'm using m2ecipse in eclipse, and I'm sure that I've changed to the maven which is exactly the one that I'm used in command line, not the embedded one.
And I've installed protocol buffers 2.5.0:
$ protoc --version
libprotoc 2.5.0
Could anyone give me some idea? Many thanks!
P.S.
Eclipse Java EE IDE - Juno Service Release 2
m2e - 1.4.1.20140328-1905
Mac 1- 0.9.4
maven - 3.0.5
Hadoop - 2.2.0

Eclipse: Error installing m2e connector for liferay-maven-plugin

When importing a maven project into Eclipse (after installing the maven plugin) I get the following errors:
UNKNOWN HOST: http://releases.liferay.com/tools/ide/latest/stable/compositeContent.xml
softlayer-ams.dl.sourceforge.net
Error installing m2e connector for liferay-maven-plugin contacting repository http://releases.liferay.com/tools/ide/latest/stable/
Should I install Liferay IDE? liferay - http://releases.liferay.com/tools/ide/latest/milestone/
Any ideas?
I installed liferay plugin now I get
Cannot complete the install because of a conflicting dependency.
m2e connector for jaxb2 3.0.0.20130330-0126
m2e connector for mavenarchiver pom properties 0.16.0.201401211452
m2e-liferay - Maven Integration for Liferay IDE 2.0.1.201401270944-ga2
I was able to import the project but now it says:
The container 'Maven Dependencies' references non existing library jnlp-1.6.jar
Solved: Uninstall Eclipse. Then re-install with the needed plugins.
I solved the problem installing "Maven Integration for WTP"
For Eclipse Kepler you can find it here:
http://download.eclipse.org/releases/kepler
m2e-wtp - Maven Integration for WTP (version 1.0.1)
It's inside "Web, XML, Java EE and OSGi..."
This package includes "m2e - Maven Integration for Eclipse" and my problem before was I used to install only this one

How can I generate-sources on project import/update with m2e

I used to add "generate-resources" to Maven's "Goals to run on project import" setting in older m2e.
Now I have new version of eclispe and m2e, and the setting is gone.
How can I add the generated-sources o the eclipse project automatically?
see this older question:
Problems by import of a multiple modules maven 2 project into eclipse workspace
I am using m2e 1.0.200.20111228-1245,
Eclipse version is as follows
Version: Indigo Service Release 2
Build id: 20120216-1857
Maven is: 3.0.4 (r1232337; 2012-01-17 09:44:56+0100)
Pls. note that this is a centrally managed system, I have no root access etc.