maven-plugin

Is the maven-native-plugin widely used to build C++ projects using maven?

空扰寡人 提交于 2019-12-09 10:08:51
问题 It's been a little while since I did C++ development professionally and I'd like to get caught up on what the current state of C++ development is in a number of areas. Most of my recent work has been Java, making heavy use of Maven. When I last did C++ development for work, some variant of make was widely accepted as the way to go for building C++ projects (we were also using make to do builds the Java code in our mixed Java and C++ projects, although I believe ant was starting to become

How to bind plugin mojos (goals) to few phases of default lifecycle?

旧城冷巷雨未停 提交于 2019-12-09 10:06:47
问题 My custom maven plugin have three goals (mojos): convert assigned to default phase: process-test-resources generateStubs assigned to default phase: package generateTests assigned to default phase: generate-test-sources How to bind this three mojo to default lifcycle phase, so the user can simply use plugin without special configuration and any changes to project packaging ? User should simply add: <plugin> <groupId>io.codearte.accurest</groupId> <artifactId>accurest-maven-plugin</artifactId>

Maven: Where to put generated resources for tomcat-maven-plugin?

假装没事ソ 提交于 2019-12-09 08:20:30
问题 I have CSS and JavaScript files in src/main/webapp directory of my project. I want to join add joined and minified version of these resources to my WAR file and to the place where tomcat-maven-plugin picks it up. I used yuicompressor-maven-plugin to create the files and put it to ${project.build.directory}/${project.build.finalName} . It works great for maven package and those resources make their way to WAR file, but somehow tomcat-maven-plugin does not see those at all. Should I use a

Create a GWT Maven Project

孤人 提交于 2019-12-09 05:08:03
问题 I'm trying to create a new project with Eclipse in order to create GWT application under maven 2 system. I have create the project with the follow mvn command mvn archetype:generate -DarchetypeRepository=repo1.maven.org -DarchetypeGroupId=org.codehaus.mojo -DarchetypeArtifactId=gwt-maven-plugin -DarchetypeVersion=2.3.0 I have installed the follow eclipse plugins: * m2eclipse * egit * gwt plugin Here my POM file: <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org

Maven pluginManagement configuration inheritance strange behavior

爱⌒轻易说出口 提交于 2019-12-08 23:54:43
问题 I'm using pluginManagement element in my parent pom.xml to configure plugins for all its children. For example, I have the following configuration: <pluginManagement> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-resources-plugin</artifactId> <version>2.4.3</version> <executions> <execution> <id>copy-artifacts</id> <phase>install</phase> <goals> <goal>copy-resources</goal> </goals> <configuration> <outputDirectory>some/where/else</outputDirectory> <resources>

How can I run a GWT app from gwt-maven-plugin without any browser plugins?

≯℡__Kan透↙ 提交于 2019-12-08 19:09:02
问题 For a GWT application which I build with the GWT Maven Plugin (gwt-maven-plugin), I can run the GWT Development environment with mvn compile war:exploded gwt:run and then launch a browser. This requires that the browser provides the GWT Developer Plugin. (Firefox 6 for example does not yet support the GWT Plugin). Does the GWT Maven Plugin also allow to simply run the included Jetty container with the GWT application, without a development mode? 回答1: After configuring gwt-maven plugin you

custom maven plugin fail: java.lang.ArrayIndexOutOfBoundsException: 3379 at org.objectweb.asm.ClassReader.<init>(Unknown Source)

假装没事ソ 提交于 2019-12-08 17:09:39
问题 I have written a custom maven plugin by java-annotations, and when run "mvn clean install" by jdk8 and maven 3.5.0, then get follow error: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-plugin-plugin:3.5:descriptor (default-descriptor) on project pg-maven-plugin: Execution default-descriptor of goal org.apache.maven.plugins:maven-plugin-plugin:3.5:descriptor failed: 3379 -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven

Determining Maven execution phase within a plugin

↘锁芯ラ 提交于 2019-12-08 15:04:27
问题 I have a plugin which transforms the compiled classes. This transformation needs to be done for both the module's classes and the module's test classes. Thus, I bind the plugin to both the process-classes and process-test-classes phases. The problem I have is that I need to determine which phase the plugin is currently executing in, as I do not (cannot, actually) transform the same set of classes twice. Thus, within the plugin, I would need to know if I'm executing process-classes - in which

Plugin execution not covered by lifecycle configuration

Deadly 提交于 2019-12-08 14:52:24
问题 I am newbiee to maven. I am trying to add JAXB2 plugin and dependencies to generate xml files from xsd. When I add underneath dependencies then a error is thrown under markers:- Plugin execution not covered by lifecycle configuration: org.jvnet.jaxb2.maven2: maven-jaxb2-plugin:0.7.4:generate(execution: default, phase: generate-sources) The error is marked over tag in jaxb2 plugin. I added this tag in reference to solutions over internet, but nothing works. My pom.xml looks like this:- <build>

“Can not set org.eclipse.aether.spi.log.Logger” with custom maven plugin

吃可爱长大的小学妹 提交于 2019-12-08 14:37:51
问题 I have written a small custom maven plugin, and it runs fine.. most of the time. When using it, it's configured to run on test phase, and I see it executing, no problem. Now problem comes later, when I do mvn clean install or mvn clean deploy in the project using the plugin : it fails with a message I can't make sense of. And it clearly comes from my plugin, because if I remove it, then mvn clean install works. Error message is very long and it has 4 similar traces as the one below. I am