Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.2.1
-
Component/s: Project infrastructure
-
Labels:None
-
Environment:JDK 1.6_17, XPSP2, grails 1.2.1
Description
Since our upgrade to grails 1.2.x we get the following warnings
WARNING: Duplicate resource 'BootStrap', using the last one in compile order. WARNING: Duplicate resource 'Config', using the last one in compile order. WARNING: Duplicate resource 'DataSource', using the last one in compile order. WARNING: Duplicate resource 'BuildConfig', using the last one in compile ...
These duplicates are coming from our inplace plugins. The documentation says:
Notes on excluded Artefacts Although the create-plugin command creates certain files for you so that the plug-in can be run as a Grails application, not all of these files are included when packaging a plug-in. The following is a list of artefacts created, but not included by package-plugin: * grails-app/conf/DataSource.groovy * grails-app/conf/UrlMappings.groovy * build.xml * Everything within /web-app/WEB-INF
For the packaged plugins this is true as none of the .zip files of each plugin contains any of these resources.
But wen building the war, these files are not excluded.
Issue Links
- relates to
-
GRAILS-5404
pluginExcludes aren't supported in in-place plugins
-
Just to clarify: "But wen building the war, these files are not excluded." means building the project's war not the plugin's war.