m2eclipse

Define .eclipseproduct during build

谁都会走 提交于 2019-12-12 06:02:03
问题 When I build my product .eclipseproduct is generated. Is this file still relevant for Eclipse 3.6+? Is there a way to modify this file to reflect my product? I know I can alter this file myself, but was wondering if there is a plugin that can do this? 回答1: In the installation profile ( p2/org.eclipse.equinox.p2.engine/profileRegistry/<ProfileName>.profile/<highest number>.profile.gz ) of your product installation, you can find out where the .eclipseproduct file comes from: It is extracted

Eclipse Luna git checkout ssl fails

笑着哭i 提交于 2019-12-12 05:27:34
问题 when I try to checkout from git in eclipse Luna it says git@-myrepo:myproj-.git: ProxyHTTP: java.io.IOException: proxy error: Proxy Error ( The specified Secure Sockets Layer (SSL) port is not allowed. Forefront TMG is not configured to allow SSL requests from this port. Most Web browsers use port 443 for SSL requests. ) git@-myrepo:myproj-.git: ProxyHTTP: java.io.IOException: proxy error: Proxy Error ( The specified Secure Sockets Layer (SSL) port is not allowed. Forefront TMG is not

Changed JDK version in pom.xml but eclipse still using default of 1.5

浪子不回头ぞ 提交于 2019-12-12 04:08:48
问题 I'm trying to get an existing project building using maven and m2eclipse. I've created a new maven project for it and imported my source files and added necessary dependencies, but I'm getting compile errors because it's defaulting to using Java 1.5 settings. I've tried updating the pom.xml file to instruct the system to use Java 1.7, following which I've told eclipse to update the project settings from maven, closed and reopened the project, and restarted eclipse to see if it would flush the

Maven error - can't create Maven project in eclipse

最后都变了- 提交于 2019-12-12 01:23:51
问题 After try this getting below error Log Shows: Could not resolve archetype org.apache.maven.archetypes:maven-archetype-webapp:1.0 from any of the configured repositories. Could not resolve artifact org.apache.maven.archetypes:maven-archetype-webapp:pom:1.0 Could not transfer artifact org.apache.maven.archetypes:maven-archetype-webapp:pom:1.0 from/to central (https://repo.maven.apache.org/maven2): connect timed out Could not transfer artifact org.apache.maven.archetypes:maven-archetype-webapp

Maven dependency with scope “test” & Workspace Resolution enabled in m2eclipse - compile error shown only after the Maven build

﹥>﹥吖頭↗ 提交于 2019-12-11 21:15:17
问题 This question is a result of an answer to the following question: Injection of an autowired field failed in a multi-module Maven project - NoSuchBeanDefinitionException According to the answer from the aforementioned question, I configured the following structure of my Maven modules: In this case, the class Foo from the base module can be used in tests in the module A (e.g. when it's autowired using the IFoo interface), but can't be used in the production code (which is contained in src/main

error while loading maven project into eclipse

限于喜欢 提交于 2019-12-11 20:46:33
问题 I am using Maven 2.2.0 and Eclipse Juno. I am trying to import one of the existing Maven project into workspace. I got following error. Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.5 Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved: Failed to read

Cannot make executable jar using m2eclipse

烈酒焚心 提交于 2019-12-11 17:33:10
问题 I have just started learning how to use m2eclipse. What I am trying to do is make a very simple program (Hello, World) and turn it into an executable jar. The java code itself is: public class Speak { /** * @param args */ public static void main(String[] args) { System.out.println("Meow!"); } } which runs fine as a Java application. I then try to use Maven to build the program, which it does, but then when I try to run the .jar it tells me "Failed to load Main-Class attribute from ...". This

how to customize maven to generate the .classpath that i want?

一个人想着一个人 提交于 2019-12-11 16:21:41
问题 using the following command mvn eclipse:eclipse i can get a .classpath with the line such as: <classpathentry kind="src" path="src/main/java" including="**/*.java"/> but this is not the configuration i want, i want it to be <classpathentry kind="src" path="src/main/java" including="**/*.*"/> that means it should be including=" / . "** and not including=" / . *jave " why i should do in order to customize maven to generate the .classpath that i want? 来源: https://stackoverflow.com/questions

How can I add an apklib dependency to your android maven project?

☆樱花仙子☆ 提交于 2019-12-11 09:33:57
问题 I have an android project which I am developing on eclipse and building with maven. I wanted to include a lib (apklib) in it, and similarly to other includes, I have tried appending the dependency to my pom in the following way: <dependency> <groupId>groupID.name</groupId> <artifactId>artifact.name</artifactId> <version>version</version> </dependency> However, when trying to build it either from m2eclipse or from maven on the console, I would get an error (Failed to execute goal on project

The eclipse autobuilder often ignore the resource directory

别等时光非礼了梦想. 提交于 2019-12-11 08:36:56
问题 I use eclipse and the maven plugin. I have a big multi-module project (~6 modules in the workspace). I often have the problem that when running my program (jetty:run) my application does not start because resource files are missing. Looking in the target folder, I noticed they haven't been copied. Only "project" "clean" helps in this case. Any idea what is going wrong or where I could start debugging the issue? It really slows down my development. Cheers, Jan EDIT: Upgrade to eclipse Helios