Details
Description
a) create testPlugin
- create-domain-class dog
- generate-all for dog
- package-plugin
b) create testPlugin2 (which depends on testPlugin)
- edit the TestPlugin2GrailsPlugin.groovy
- def dependsOn = [testPlugin:0.1]
- install the "testPlugin" from above
- package-plugin
c) create application "testApp" which leverages testPlugin
install testPlugin
run-war
go to /dog/ and all is OK
d) within "testApp" user wants to added on extra functionality provided in testPlugin2
install testPlugin2
run-war (now running testApp with testPlugin & testPlugin2)
go to /dog/ - you get a 404
e) if "testPlugin" was never installed into "testPlugin2" then the errors go away. The problem is that you cannot develop testPlugin2 without installing testPlugin into it as it depends on it. The problem may be because the testPlugin2's plugin.xml get's the "resource" DogController and Dog added to it even though it does not directly provide it. When I remove these entries from testPlugin2's plugin.xml when it is installed in "testApp" the error goes away
FAILS:
---------------------------------------------
<plugin name='test-plugin2' version='0.1'>
<author>Your name</author>
<title>Plugin summary/headline</title>
<description>Brief description of the plugin.
</description>
<documentation>http://grails.org/TestPlugin2+Plugin</documentation>
<resources>
<resource>DataSource</resource>
<resource>UrlMappings</resource>
<resource>DogController</resource>
<resource>Dog</resource>
</resources>
</plugin>
WORKS
-------------------
FAILS:
---------------------------------------------
<plugin name='test-plugin2' version='0.1'>
<author>Your name</author>
<title>Plugin summary/headline</title>
<description>Brief description of the plugin.
</description>
<documentation>http://grails.org/TestPlugin2+Plugin</documentation>
<resources>
<resource>DataSource</resource>
<resource>UrlMappings</resource>
</resources>
</plugin>
If there is any way a temp fix could be explained or patched jar provided as I have a project that absolutely depends on this setup and I can't move forward without this working. Thank you.
Activity
- All
- Comments
- Work Log
- History
- Activity
- Git Commits
This is already fixed