You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Elliotte Rusty Harold (Jira)" <ji...@apache.org> on 2019/12/23 12:07:00 UTC

[jira] [Closed] (MRRESOURCES-96) Overriding "resourcesDirectory" doesn't appear to work

     [ https://issues.apache.org/jira/browse/MRRESOURCES-96?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Elliotte Rusty Harold closed MRRESOURCES-96.
--------------------------------------------

> Overriding "resourcesDirectory" doesn't appear to work
> ------------------------------------------------------
>
>                 Key: MRRESOURCES-96
>                 URL: https://issues.apache.org/jira/browse/MRRESOURCES-96
>             Project: Maven Remote Resources Plugin
>          Issue Type: Bug
>    Affects Versions: 1.5
>            Reporter: Jitesh Vassa
>            Priority: Critical
>
> I'm not sure if I'm using the plugin correctly, but when I specify the "resourcesDirectory" in configuration, the plugin doesn't appear to process those resources.
> First mentioned on [StackOverflow|http://stackoverflow.com/questions/30669013/using-the-maven-remote-resources-plugin-and-specifying-the-resourcesdirectory]
> Here's the pom I'm using:
> {code:xml}
> <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>
> 	<groupId>my.resource.library</groupId>
> 	<artifactId>resource-library</artifactId>
> 	<version>1.0</version>
> 	<name>ResourceLibrary</name>
> 	<build>
> 		<plugins>
> 			<plugin>
> 				<groupId>org.apache.maven.plugins</groupId>
> 				<artifactId>maven-remote-resources-plugin</artifactId>
> 				<version>1.5</version>
> 				<executions>
> 					<execution>
> 						<goals>
> 							<goal>bundle</goal>
> 						</goals>
> 					</execution>
> 				</executions>
> 				<configuration>
> 					<resourcesDirectory>${project.basedir}/common</resourcesDirectory>
> 					<includes>
> 						<include>**/*</include>
> 					</includes>
> 				</configuration>
> 			</plugin>
> 		</plugins>
> 	</build>
> </project>
> {code}
> I also see the following debug output which indicates that the configuration is being picked up.
> {code}
> [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-remote-resources-plugin:1.5:bundle' with basic configurator -->
> [DEBUG]   (f) includes = [**/*]
> [DEBUG]   (f) outputDirectory = C:\jit\workspace\ResourceLibrary\target\classes
> [DEBUG]   (f) resourcesDirectory = C:\jit\workspace\ResourceLibrary\common
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)