I am trying to use the maven-remote-resources plugin to share remote resources in multiple projects.
I have one jar with resource files in \ src \ main \ resources. Pomp:
...
<build>
<plugins>
<plugin>
<artifactId>maven-remote-resources-plugin</artifactId>
<version>1.5</version>
<executions>
<execution>
<goals>
<goal>bundle</goal>
</goals>
<configuration>
<includes>
<include>*.*</include>
</includes>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
...
When I run mvn install in this project, it creates a \ target \ classes \ META-INF \ maven \ remote-resources.xml file containing all the files in \ src \ main \ resources.
That seems right.
The problem is projects that need resources. I have this in pom:
...
<plugin>
<artifactId>maven-remote-resources-plugin</artifactId>
<version>1.5</version>
<executions>
<execution>
<goals>
<goal>process</goal>
</goals>
<configuration>
<resourceBundles>
<resourceBundle><groupId>:<artifactId>:<version></resourceBundle>
</resourceBundles>
</configuration>
</execution>
</executions>
</plugin>
...
When I run mvn install in this project, I get this on the console:
[INFO] --- maven-remote-resources-plugin:1.5:process (default) @ <project> ---
Downloading: <repository>/<groupId>/<artifactId>/<version>/maven-metadata.xml
781/781 B
Downloaded: <repository>/<groupId>/<artifactId>/<version>/maven-metadata.xml (781 B at 38.1 KB/sec)
So, it seems that the resource package has been found and downloaded.
The Apache documentation maven-remote-dependency-plugin says:
apache-jar-resource-bundle-1.0.jar , POM, $basedir/target/classes.
.
- - ?
Maven 3.3.1
.