m2e

Maven Java EE Configuration Marker with Java Server Faces 1.2

こ雲淡風輕ζ 提交于 2019-12-17 22:44:59
问题 I'm having a weird configuration problem with Maven in Eclipse. Although I can build the project and deploy it to tomcat without any errors, The Marker tab keeps showing the following message: [-] Maven Java EE Configuration Problem (x) JavaServer Faces 1.2 can not be installed : One or more constraints have not been satisfied. (x) JavaServer Faces 1.2 requires Dynamic Web Module 2.5 or newer. I am in fact using Dynamic Web Module 2.4, which would be the source of the message. I would need to

Automatically generate Java from .proto with maven/m2e in Eclipse IDE

不想你离开。 提交于 2019-12-17 22:25:37
问题 For my team, I'd like to configure maven/eclipse build to automatically generate Java code from *.proto files (in a project that uses gRPC). Currently one needs to run mvn generate-source or mvn protobuf:compile (as in plugin usage page). Or what is the same add Run configuration to invoke maven goal compile . Whenever Eclipse Maven project is refreshed ( Alt + F5 ) or IDE is restarted, project is rebuilt but without what should appear in target/generated , thus turning project into red. So

m2Eclipse plugin: What does 'Resolve Workspace Artifacts' do?

此生再无相见时 提交于 2019-12-17 15:38:40
问题 I'm sorry if I am asking a possibly-trivial question, but I am having so much trouble finding out exactly what Resolve Workspace Artifacts does in the Maven build window in the Eclipse IDE, using the M2Eclipse plugin. I'm referring to this: Does anyone have any idea? I tried google-ing and stackoverflow-ing the solution; there are lots of bug requests/reports but no clear-cut descriptions of this option. Thanks for the help. 回答1: Assume you have two or more projects in your workspace e.g.

Plugin error: execution not covered by lifecycle configuration

我是研究僧i 提交于 2019-12-17 10:49:20
问题 I am trying to use the maven-warpath-plugin available here. But I keep getting an error in my pom.xml file that says: Plugin execution not covered by lifecycle configuration: org.appfuse.plugins:maven-warpath-plugin:2.1.0:add-classes (execution: default, phase: generate-sources) How do I resolve this? Here is my pom.xml snippet for the plugin: <plugin> <groupId>org.appfuse.plugins</groupId> <artifactId>maven-warpath-plugin</artifactId> <version>2.1.0</version> <extensions>true</extensions>

Compiler error “archive for required library could not be read” - Spring Tool Suite

吃可爱长大的小学妹 提交于 2019-12-17 08:30:56
问题 I am starting to configure my development environment and I am using Spring Tool Suite 2.8.1 along with m2E 1.01. As far as I can tell, since this is a Maven Project (my first), my Maven POM is dictating (along with m2E smarts) my project build configuration and dependencies. What I would like to know is why my IDE is displaying Java Build Problems that read "Archive required for library library/path/somejar.jar cannot be read or is not a valid zip file" when I can see the jars in my .m2

Eclipse - “Run as Java Application” when maven is involved

坚强是说给别人听的谎言 提交于 2019-12-13 14:27:23
问题 I have a maven project. As activeByDefault I have the production profile. It seems I can't find a way to run it as application in Eclipse using the staging profile unless I put the activeByDefault in the staging profile. Is there a way to configure this so I don't have to edit the pom every time? 回答1: The only thing is affected in running Java app from Maven project in Eclipse is how application classpath is constructed. Generally in Maven there are several different classpaths scopes:

Eclipse is not downloading plugin from central maven repo

做~自己de王妃 提交于 2019-12-13 03:47:21
问题 I am trying to create a JAX-RPC webservice client using maven-jaxrpc-plugin in Eclipse using M2E. Here is the corresponding snippet from pom.xml <pluginManagement> <plugins> <plugin> <groupId>net.sf.jaxrpc-maven</groupId> <artifactId>maven-jaxrpc-plugin</artifactId> <version>0.3</version> <executions> <execution> <id>jax-rpc-scoring-client</id> <phase>install</phase> <goals> <goal>wscompile</goal> </goals> </execution> </executions> <configuration> <config>${project.basedir}/config.xml<

Why is my target not getting executed?

风格不统一 提交于 2019-12-13 01:44:49
问题 I am trying to get ready for deployment and therefore I want to copy the correct configuration files to WEB-INF/classes/ before everything gets packed into the WAR file for either deployment or development . In the end I want to execute deployment-tasks whenever I call mvn glcoud:deploy - which is when I need deployment configuration files - and development-tasks whenever something else gets executed in my project directory. At the moment I have not decided how exactly I'm going to do it but

Eclipse M2E / change Order and Export

▼魔方 西西 提交于 2019-12-12 11:50:40
问题 I'm working with maven projects in Eclipse (Indigo). In order to compile some classes that need endorsed libraries (webservices-api.jar) I go to "Properties/Java Build Path/Order and Export" and move "Maven Dependecies" before "JRE System Library". The problem is that whenever I click on the "Maven/Update Project configuration" option the entries are rearranged and "JRE System Library" is always the first entry, and the code no longer compiles. Is there a way to have M2E remember my choice

When and how does m2e use the Maven test scope to include test dependencies in Eclipse Run Configurations?

人走茶凉 提交于 2019-12-12 11:01:18
问题 It took me a while to make this observation, but I see that m2e "magically" manages the classpath. Examples: If I Run as a Java application in the "src/java/main" source folder it excludes "test" scope. Note: The class was able to compile, but not able to run. But if I move that same class to the "src/java/test" folder then it is able to compile and run. If I Run as JUnit Test then the "test" scope is always included (even if the class is in the "main" source folder). The only way I made