Questions tagged [maven-resources-plugin]

The Maven Resources Plugin handles the copying of project resources to the output directory.

There are two different kinds of resources: main resources and test resources. The difference is that the main resources are the resources associated to the main source code while the test resources are associated to the test source code. Thus, this allows the separation of resources for the main source code and its unit tests. Starting with version 2.3 this plugin uses the Maven Filtering shared component for filtering resources.

188 questions
0
votes
0 answers

Having troubles building a maven project

I'm getting the following... [ERROR] Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.6: 3…
GregMa
  • 740
  • 2
  • 10
  • 25
0
votes
0 answers

can you provide overwrite on a per resource basis using the maven-resources-plugin?

So I'm having a problem with sharing a resources root because of IntelliJ, We have some resources we already add with the resource plugin, some of these resources I do not want to overwrite for performance reasons. In other cases I would like them…
xenoterracide
  • 16,274
  • 24
  • 118
  • 243
0
votes
0 answers

Execution tag in maven resources plugin has an error Macbook M1

I try to update this poject but it has the error in pom.xml at this point. The plugin part at the pom.xml true org.apache.maven.plugins
0
votes
1 answer

IllegalArgumentException in maven-resources-plugin during deploy goal

I am trying to build my spring-boot application using maven using below command. mvn -X -Dmaven.test.skip=true deploy During this step, maven-resources-plugin tries to copy my application.yaml file to my target\classes folder. And this fails with an…
Halley
  • 521
  • 10
  • 35
0
votes
0 answers

Injecting maven properties to resources

I'm trying to achieve a relatively simple task - To inject a maven property to my properties file. In my pom.xml I have: staging UTF-8
forhas
  • 11,551
  • 21
  • 77
  • 111
0
votes
1 answer

unable to transfer unix executable file to target folder

I can use maven-resources-plugin to copy resource files from source to target successfully. But problem happens while copying unix executable sh files. It's unix executable file under my resources and executed successfully when I double click it.…
Tonyukuk
  • 5,745
  • 7
  • 35
  • 63
0
votes
1 answer

Copy/include resource from another maven project

let me explain you what I am looking for. There is one project whose POM.xml is at path project/ui/application/pom.xml. I generally build my WAR file using ui/applicatio.pom.xml. In UI's POM I have included few modules say "applicationDTO" and…
G.Chahar
  • 185
  • 6
  • 19
0
votes
1 answer

Maven testResource filtering is not working in pom.xml

I am using testResource to filter data in pom.xml. But instead of printing the data, I am getting back the variable itself as shown in the code. Looks resource filtering is not happening. Can someone please advise me what am I doing wrong here and…
pk786
  • 2,140
  • 3
  • 18
  • 24
0
votes
1 answer

Spring boot parent prevents resources:resources

I have a spring boot maven project with a property file in which I need to replace the property value for spring.cloud.config.server.git.username and spring.cloud.config.server.git.password properties using mvn resources:resources, but the values…
Marcel
  • 146
  • 1
  • 2
  • 13
0
votes
1 answer

Maven resource filtering not executed

I have a Dockerfile containing the following line: ENTRYPOINT ["java", "-Dconversion.rules.folder=/var/rules", "-jar", "/var/gateway-service-${project.version}.jar"] I am configuring the maven-resources-plugin as following:
Yanick Salzmann
  • 1,456
  • 1
  • 15
  • 27
0
votes
1 answer

Generate SQL-scheme and copy it to include to WAR-file: problem with plugins' dependencies

Before running integration tests I need to setup database. This include generating SQL-scheme (based on JPA-annotations), save it to file and copy it with other resources to directory which later will be used for creating war file (which will be…
Slava Semushin
  • 14,904
  • 7
  • 53
  • 69
0
votes
1 answer

Maven Filtering of WSDL URL

I am trying to use resource filtering to generate the SOAP addresses for WSDLs. But somehow it is not working. I have written the plugin and resource element as: org.apache.maven.plugins
hell_storm2004
  • 1,401
  • 2
  • 33
  • 66
0
votes
1 answer

Deploy resources as separate Maven artifact

My web application is organised as a multi module Maven project. There are multiple submodules building individual jars and the "main" WAR module has the former as dependencies. The web application loads its resources from the file system. Packaging…
Marko
  • 33
  • 4
0
votes
1 answer

Maven exclude resources not working as expected

I am trying to exclude from a build all YAML resource files, but the ones with a prod clause within the filename. For example, given that my resource directory contains application-dev.yaml, application-test.yaml and application-prod.yaml, I would…
Lev
  • 287
  • 3
  • 13
0
votes
0 answers

Overwrite resource file in output main directory

I have two different java modules A and B, where A is a dependecy of B. In both modules I have a .property file: operation=${my-prop} The value of ${my-prop} is different depending on module (I have a property inside the main pom of each module,…
S-Wing
  • 485
  • 6
  • 25