maven-plugin

How to auto-update versions only for dependencies within multi-module/reactor build?

回眸只為那壹抹淺笑 提交于 2019-12-11 04:15:19
问题 When I run the following command for the root project, it checks for updates of ALL dependencies: mvn versions:use-latest-versions I want to limit versions update for only those dependencies which are reachable from the root : root/pom.xml ├── A/pom.xml │ └── D/pom.xml │ └── E/pom.xml ├── B/pom.xml └── C/pom.xml ├── F/pom.xml └── G/pom.xml The group and artifact ids of these dependencies are in the current reactor build (multi-module build). For example, I don not want to update external

Using the maven-remote-resources-plugin and specifying the resourcesDirectory

寵の児 提交于 2019-12-11 03:37:27
问题 I'm trying to override the default resources directory (src/main/resources) when using the maven-remote-resources-plugin . However the specified value in the sample below doesn't seem to be taken into account. Would appreciate if someone could give me some pointers. <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/maven-v4_0_0.xsd"> <modelVersion>4.0.0<

Maven Copy Files and Folders Plugin not copeying linux [dot] “.*” hidden files

血红的双手。 提交于 2019-12-11 03:16:49
问题 I have a maven code <plugin> <artifactId>maven-resources-plugin</artifactId> <executions> <execution> <id>copy-resources-from-parent</id> <phase>initialize</phase> <goals> <goal>copy-resources</goal> </goals> <configuration> <outputDirectory>./target/aut-ws</outputDirectory> <resources> <resource> <directory>/prj//workspace-Fm-aut-Testing/</directory> </resource> </resources> </configuration> </execution> </executions> </plugin> This is working fine, but it is not copying .* linux files which

How to run a snapshot plugin

十年热恋 提交于 2019-12-11 02:56:03
问题 When I attempt to run below maven plugin using this command : com.wordpress.pomfromjarmavenplugin:generate:0.0.1-SNAPSHOT:generatepom I get this error : Downloading: https://oss.sonatype.org/content/repositories/snapshots/com/wordpress/pomfromjarmavenplugin/generate/0.0.1-SNAPSHOT/generate-0.0.1-SNAPSHOT.pom [WARNING] The POM for com.wordpress.pomfromjarmavenplugin:generate:jar:0.0.1-SNAPSHOT is missing, no dependency information available [INFO] ----------------------------------------------

Maven RPM Plugin does not generate the scriptlets specified

主宰稳场 提交于 2019-12-10 23:33:55
问题 I am trying to create an rpm package with the help of the rpm-maven-plugin. All goes well until I try to have it generate the %pre scriptlet (or any scriptlet for that matter) The pom.xml excerpt is: <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>rpm-maven-plugin</artifactId> <version>2.0-beta-2</version> <executions> <execution> <goals> <goal>attached-rpm</goal> </goals> </execution> </executions> <configuration> <copyright>Copyright 2010 XXX, Inc. All rights reserved</copyright>

How to resolve Maven exec plugin: classpath too long error?

风流意气都作罢 提交于 2019-12-10 23:09:36
问题 I have a large Java project with a large number of jar file dependencies. When I try to run the project (using exec) from Eclipse or Netbeans, Maven throws an exception which turns out to be a too large number of entries on the classpath (only 2/3 of the needed entries are included). Does anyone know a workaround for this? (Except from building an executable jar and running it from terminal.) Is it possbile to "extend" the "classpath-buffer"-size? 回答1: This is a Maven exec plugin bug, it is

Which maven phase will be always executed after test phase?

瘦欲@ 提交于 2019-12-10 22:15:17
问题 I have implemented a Maven plugin which is used to create test database (with random name) before Maven test phase, and drops that database when the test phase is completed. The plugin need to be executed two times, before test phase (when is used to create database) and after test phase (when is used to drop that test database). Which Maven lifecycle phase will be always executed after test phase, whether test phase is successfully executed or not? 回答1: There are no particular phase in the

Can't find Flyway maven plugin

爱⌒轻易说出口 提交于 2019-12-10 21:28:02
问题 In my pom.xml, I have: <plugin> <groupId>org.flywaydb</groupId> <artifactId>flyway-maven-plugin</artifactId> <version>3.1</version> <configuration></configuration> </plugin> to test the plugin, I'm doing: mvn flyway:migrate But I get an error: [ERROR] No plugin found for prefix 'flyway' in the current project and in the pl ugin groups [org.wildfly.plugins, org.flywaydb.plugins, org.apache.maven.plugins , org.codehaus.mojo] available from the repositories [local (C:\Users\me\. m2\repository),

is there difference between dependencies and dependencies in plugin tags?

守給你的承諾、 提交于 2019-12-10 19:51:54
问题 I have a question. In pom.xml, dependency is included in two places. one place can be in <project> tag and the other place can be in <plugin> tag. I think the dependencies in tags is just related with the plugin? is it correct? thanks in advance :) <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/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <artifactId

Maven 2 plugin, build + surefire

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-10 19:37:19
问题 If i define a plugin in the <build> tag and want to use this in my site command how do i do that? Do i have to define the plugin within <reporting> tag again? And how about the configuration which i probably have done within the build tag and want to take place at the reporting tag as well? (i dont want to specifie for example a location of a configuration file twice just to use a plugin in 2 lifecycles) As example: I define my checkstyle plugin in the build tag and configrue a custom