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
1 answer

Does some Java specification require `resources` content to be copied into `target`?

Or is it just my IntelliJ IDEA's voluntary behavior? I have 8 files, each 3.5 GiB in size and IDEA copies them from src/main/resources into target/classes/resources during the make task. Is it possible to avoid such a behaviour?
tkroman
  • 4,811
  • 1
  • 26
  • 46
0
votes
1 answer

maven-resources-plugin does not handle resources tag?

I'm using the maven-resources-plugin 2.6 vith maven 3.0.5 (also tried 3.0.4). I have different executions : org.apache.maven.plugins
Jerome VDL
  • 3,376
  • 4
  • 32
  • 33
0
votes
3 answers

Spring application with external context and resources via maven

Is it possible to build a spring application jar file /w all jar dependencies packaged inside the jar as usual, but resources folder + spring app-context.xml defined outside the jar? If so can anyone point me to an example? I want to build using…
niken
  • 2,499
  • 3
  • 33
  • 56
0
votes
1 answer

Maven filter src/main/resources of a JAR dependency

My maven top level project refers to a common-db project. In this project I have a spring file which defines the DB parameters. However, I want the top-level project to define the DB parameters through the profile and inject these into the spring…
DD.
  • 21,498
  • 52
  • 157
  • 246
0
votes
1 answer

Maven plugin output to recourse file using filtering

I have resource file containing: ${project.version} ${dependency.tree} Is it possible to replace (filtering) ${dependency.tree} property with mvn dependency:tree -Dincludes=com.foo.bar command output ?
0
votes
1 answer

Resource Filtering with own plugin

Currently i develop my own plugin which will do resource filtering with loading of a an other file which influence the resource filtering. I have the following code in my plugin (execute) method: public void execute() throws MojoExecutionException…
khmarbaise
  • 92,914
  • 28
  • 189
  • 235
0
votes
1 answer

How to use maven filtering function from maven resources plugin

I have a java-project that is developed with help of maven. Part of the project is unit-testing. I plan to put all temporary files that are produced by unittests into maven's target directory. This might be a good idea, because if for whatever…
Matthias
  • 3,458
  • 4
  • 27
  • 46
0
votes
2 answers

Maven: copy file from workspace to folder which is outside of target

During build, I need to copy 5 properties files from my project workspace src/main/resources/my, to the folder C:\my (I develop on Windows 7). C:\my exists but empty. I am using the following code in my pom.xml file, but the files are not…
rapt
  • 11,810
  • 35
  • 103
  • 145
1 2 3
12
13