maven-plugin

Add additional path to exec-maven-plugin

帅比萌擦擦* 提交于 2019-12-05 07:49:39
I would like to add an additional class path to the exec-maven-plugin. Besides the %classpath, I would like to add an extra path to a directory containing resources (/Users/kornp/resources). Currently, my pom looks like this: <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>exec-maven-plugin</artifactId> <version>1.1.1</version> <configuration> <executable>java</executable> <classpathScope>runtime</classpathScope> <arguments> <argument>%classpath:/Users/kornp/resources</argument> <argument>org.drrabbit.maventest.App</argument> </arguments> </configuration> </plugin> How should I

converting an eclipse formatter file to a checkstyle file

拜拜、爱过 提交于 2019-12-05 05:44:39
I have an eclipse formatting file (which contains some configurations) and i want to make the same thing (these configurations) for a checkstyle file to use after with maven build. The Eclipse-Checkstyle plugin provides an export feature to export your preferences. crasp Unfortunately, there is no way to convert a formatter file to a checkstyle ruleset at the moment. You have to do it the other way around as explained here . Otherwise you have to adjust every setting in your formatter manually for checkstyle. 来源: https://stackoverflow.com/questions/8327498/converting-an-eclipse-formatter-file

Add Maven generated site to generated package

走远了吗. 提交于 2019-12-05 04:10:22
问题 In order to deliver an all-in-one Jar for our project, we are wondering if it is possible to include the project's generated site (generated via the site plugin) into the generated project's package? The idea behind this is very simple, we have a project named "sample" that demonstrates the usage of our API and we want to give the user documentation on the API and its usage in a single bundle. Is it possible using Maven to create such a Jar? Thanks in advance! 回答1: Using site:jar and then the

Custom Maven packaging, transitive dependencies aren't included

限于喜欢 提交于 2019-12-05 04:03:27
I'm playing around with a custom Maven 3 packaging plugin for some non-java artifacts, and having an issue getting transitive dependencies to work. I've got three projects defined, model , model-impl , and cli , with dependencies like this: cli model-impl model My custom lifecycle plugins are being called in each project, and I can successfully build model and model-impl . For each of those projects, the expected artifacts are being stored in my local repository. cli however is failing because I don't get model as a dependency in my Mojo. I'm not completely sure that this is a problem in my

Making HTTP requests during maven archetype:generate

二次信任 提交于 2019-12-05 03:18:42
问题 I'm building an archetype for creating standardised projects within the company. The actual project files generated are fine, I'd now like to integrate the archetype with the process of setting up infrastructure, such as Stash repositories and Jenkins jobs. For example, simplistically I'd like the maven archetype:generate process to include an HTTP REST POST to http://stash.example.com/rest/api/1.0/projects/LABS/repos/{artifactId} in order to create a GIT repo. Likewise something similar for

How do I configure maven 2's surefire plugin to run Junit 4.5?

依然范特西╮ 提交于 2019-12-05 03:16:39
问题 Maven 2 does not seem to consider my @Test and @Ignore annotations. How do I configure the surefire plugin to run and use the annotations? This question is still not answered. 回答1: I would first configure your master POM to default the surefire plugin to the latest version. This is done by adding an entry to the plugin management section of the POM. For example: <pluginManagement> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId>

Get dependencies of WAR Artifact using Maven 2 API

不羁岁月 提交于 2019-12-05 02:21:45
问题 I have found a few posts surrounding the question of artifact retrieval however the answers don't seem to work in my specific case. I am writing a plugin that will help with skinny war EAR generation and I am running a plugin that I have written for my EAR maven module. In the plugin code I have got to the stage where I want to be able to get the dependencies / artifacts of the WAR dependencies - currently these are not coming through with anything I have tried. I presume this is because even

How to deploy war on remote Tomcat

孤街浪徒 提交于 2019-12-05 02:09:02
问题 I would like to deploy a WAR on remotely located Tomcat using maven-tomcat plugin. But having problems with it and getting exception (mentioned below). Please guide. Command Used: mvn tomcat:redeploy Error Log: [ERROR] Failed to execute goal org.codehaus.mojo:tomcat-maven-plugin:1.1:deploy (default-cli) on project PageNameService: Cannot invoke Tomcat manager: Connection refused: connect - [Help 1] settings.xml <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.4.3:test (default-test) on project smrr: There are test failures

风流意气都作罢 提交于 2019-12-05 01:56:58
问题 Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.4.3:test (default-test) on project smrr: There are test failures. Please refer to C:\Users\root\Downloads\smrr\target\surefire-reports for the individual test results. -> [Help 1] To see the full stack trace of the errors, re-run Maven with the -e switch. Re-run Maven using the -X switch to enable full debug logging. For more information about the errors and possible solutions, please read the following articles: [Help 1]

Build JavaFX 8 with Maven

旧街凉风 提交于 2019-12-04 23:39:41
问题 I tested to create JavaFX 8 project with Netbeans 7.4. But unfortunately with no luck. This is the POM file: <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.dx57dc</groupId> <artifactId>JFX8M</artifactId> <version>1.0</version> <packaging>jar</packaging