Questions tagged [build-helper-maven-plugin]

For questions relating to the Maven plugin build-helper-maven-plugin.

Documentation: http://www.mojohaus.org/build-helper-maven-plugin/index.html

38 questions
1
vote
1 answer

build-helper-maven-plugin goal:regex-property how to access generated property

I try to parse version of project into new variable named build-number, i use following plugin org.codehaus.mojo build-helper-maven-plugin 1.7
Stigyi
  • 31
  • 1
  • 4
1
vote
2 answers

Build helper Maven Plugin property not working for resource targetPath

I'm using the Build Helper Maven Plugin to construct a property that is the version with "-" for "."... I have it configured as follows: org.codehaus.mojo build-helper-maven-plugin
Dave Draper
  • 1,837
  • 11
  • 25
1
vote
1 answer

Maven extra sources wildcards

I'm adding some extra sources to my Maven project and until now all is working well. I just want to make the extra source selection a little more more generic, because today I have something…
MarcosTonina
  • 351
  • 1
  • 3
  • 16
1
vote
2 answers

build-helper-maven-plugin adding additional source

I am trying to add an additional source folder to my current maven project by using build-helper-maven plugin. This source folder contains some common classes, like utility classes. For that, here is my relevant pom.xml
1
vote
0 answers

attach-artifact goal from builder-helper-maven-plugin cancels default packaging deploy

i'm building my web service project with maven. In my pom.xml i have : war This result in having my .war deployed in nexus. But i also want to extract a jar from a subset of classes of this project using…
Jef Grezes
  • 11
  • 3
1
vote
2 answers

Maven: release single file, set line endings

I would like to release single file to Nexus repo (deploy script, sh) and for that purpose I am using build-helper-maven-plugin:attach-artifact Unlike Maven Assembly Plugin, it hasn't explicit option to set line ending of the deployed file. How can…
0
votes
0 answers

Maven - two sources folders with precedence

I have the following situation. I have two different source folders, say src/main/java and src/main/java2. The two folders are something like two "branches" of the same project. First folder contains all Java files. Second folder contains only a…
luca.vercelli
  • 898
  • 7
  • 24
0
votes
0 answers

Use extracted java sources to compile with maven

I'm using maven-dependency-plugin to extract some classes from a big jar and add them to my project classes. Right no, there 2 jars, each build with a classifier: sources and helper. The sources jar has all java files. The helper jar has most of the…
0
votes
0 answers

Avoid attaching Maven artifact when file is not present

I'm using the Build Helper Maven plugin to attach the SQL changes as an artifact of the deployment, but the plugin crashes when the extra artifact is not present. Failed to install artifact org.test.app1:app1:sql:1.2.1:…
Joe DiNottra
  • 836
  • 8
  • 26
0
votes
1 answer

Using build-helper-maven-plugin

I have the pom.xml below. I'd like to pass a tag property to my build, using this command: mvn clean package -Dtag=test It should split this property into two others, my.group an my.version, and then use it in a URI to build an XLDeploy package,…
pataluc
  • 569
  • 4
  • 19
0
votes
0 answers

Build Helper Maven Plugin not removing entire regular expression

I'm using the Build Helper Maven Plugin with the regex-property goal. I want to remove any qualifiers from a version, giving me a project.releaseVersion property. Let's say my project is using version 1.2.3-SNAPSHOT. I can use the…
Garret Wilson
  • 18,219
  • 30
  • 144
  • 272
0
votes
1 answer

Cannot run tests with build-helper-maven-plugin on a groovy project

I have a groovy project in Eclipse. I have to change from Gradle to Maven and now I cannot run the tests that exist in it. Here is the structure of the project: Here are the contents of the pom.xml: ...
Stanislav Ivanov
  • 425
  • 2
  • 7
  • 19
0
votes
1 answer

Maven wildfly deployment with multiple servers (standalone)

in my environment I have two wildfly server where I want to deploy with the wildfly-maven-plugin. The servers differ in the name dev01 and dev02 but have the same port 9993 and username and password. My understanding is that the wildfly-maven-plugin…
0
votes
1 answer

Confused with maven assembly plugin vs build-helper-maven:attach-artifact

I'm a bit confused between maven assembly plugin and build-helper-maven plugin. I've also read in the maven documentation that The assemblies/archive created by the Assembly Plugin gets deployed during the deployed phase.Hence, they can be deployed…
Sandy
  • 459
  • 2
  • 6
  • 19
0
votes
1 answer

buid-helper-plugin with multiple active profiles

I have a project which may take different sources / resources based on the selected profiles. Some profiles are mutually exclusive, some should be combinable, for example the profiles local and wildfly defined in the snippet below should be…
Stefano Cazzola
  • 1,597
  • 1
  • 20
  • 36