[
https://jira.codehaus.org/browse/MECLIPSE-695?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Alexandre Garnier updated MECLIPSE-695:
---------------------------------------
Attachment: MECLIPSE-695-multi-modules.zip
I don't think it's a plexus-resource bug.
In fact it was a potential bug in eclipse-plugin: when using multiple modules,
the additionalConfig where searched in the order of the modules, not only
current module + recursive parents.
A use case in attachment.
> Problem of path for additionalConfig with sub-modules
> -----------------------------------------------------
>
> Key: MECLIPSE-695
> URL: https://jira.codehaus.org/browse/MECLIPSE-695
> Project: Maven Eclipse Plugin
> Issue Type: Bug
> Components: Core : Workspace settings
> Affects Versions: 2.8
> Reporter: Alexandre Garnier
> Attachments: MECLIPSE-695-multi-modules.zip, MECLIPSE-695.zip
>
>
> When defining path to additionalConfig files in parent pom (relative to
> pom.xml location), sub-modules did not find them.
> {code:language=xml}
> [...]
> <modules>
> <module>module</module>
> </module>
> [...]
> <build>
> <pluginManagement>
> <plugins>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-eclipse-plugin</artifactId>
> <additionalConfig>
> <file>
> <name>.settings/org.eclipse.core.resources.prefs</name>
> <location>settings/org.eclipse.core.resources.prefs</location>
> </file>
> </additionalConfig>
> </configuration>
> </plugin>
> </plugins>
> </pluginManagement>
> [...]
> {code}
> {code}
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-eclipse-plugin:2.8:eclipse (default-cli) on
> project module: Unable to resolve resource location:
> settings/org.eclipse.core.resources.prefs
> {code}
> It works fine in 2.7.
--
This message was sent by Atlassian JIRA
(v6.1.6#6162)