groovydev / twitter-bootstrap-grails-plugin

Grails plugin for Twitter Bootstrap CSS framework resources
173 stars 92 forks source link

updated to 2.0.3 #35

Closed tcrossland closed 12 years ago

tcrossland commented 12 years ago

https://github.com/groovydev/twitter-bootstrap-grails-plugin/issues/31

Note: I haven't tested the paginate tag or the bootstrap-fixtaglib.css with these changes

marcellodesales commented 12 years ago

Has anyone tested it??? I upgraded it to Grails 2.0.3 but install it on my Grails 2.0.3 app, as there's a bug installing local plugins (http://jira.grails.org/browse/GRAILS-9006)...

Please let me know when you guys integrate it...

tcrossland commented 12 years ago

Hi marcello, I've been using it and it's working fine for me. There's a workaround for the Grails local plugin problem, using "grails maven-install whatever-plugin.zip", and uncomment mavenLocal() in your app's BuildConfig.groovy.

marcellodesales commented 12 years ago

hi tcrossland,

thanks for replying... I first uncommented the BuildConfig.groovy as you mentioned... and then I tried the command...

marcello@hawaii:/u1/development/workspaces/open-source/rsa.signr/web$ grails maven-install ../../twitter-bootstrap-grails-plugin/grails-twitter-bootstrap-2.0.3.zip | Script 'MavenInstall' not found, did you mean: 1) UninstallPlugin 2) InstallPlugin 3) InstallDependency 4) InstallJQuery 5) InstallTemplates

I found an artifact about the bug... http://jira.grails.org/browse/GRAILS-8810... I then installed the release plugin... and I tried to install it using what you suggested... But it failed...

marcello@hawaii:/u1/development/workspaces/open-source/rsa.signr/web$ grails install-plugin release | Plugin installed. marcello@hawaii:/u1/development/workspaces/open-source/rsa.signr/web$ grails maven-install ../../twitter-bootstrap-grails-plugin/grails-twitter-bootstrap-2.0.3.zip | Compiling 55 source files

| Done creating WAR /u1/development/workspaces/open-source/twitter-bootstrap-grails-plugin/grails-twitter-bootstrap-2.0.3.zip | POM generated: /u1/development/workspaces/open-source/rsa.signr/web/target/pom.xml.. | Error Error executing script MavenInstall: : Could not find file /u1/development/workspaces/open-source/rsa.signr/web/target/decodr-0.1.war to generate checksum for. (Use --stacktrace to see the full trace)

Is there anything else I could try? If not, when will this pushed to the Grails plugin???

Thanks a lot!!!

tcrossland commented 12 years ago

Have you tried running maven-install from the same directory as the zip file? For example:

cd /u1/development/workspaces/open-source/twitter-bootstrap-grails-plugin grails maven-install

marcellodesales commented 12 years ago

It worked...

marcello@hawaii:/u1/development/workspaces/open-source/rsa.signr/web$ tree ~/.m2/repository/ | grep twitter │   │   └── twitter-bootstrap │   │   │   ├── twitter-bootstrap-2.0.3-plugin.xml │   │   │   ├── twitter-bootstrap-2.0.3.pom │   │   │   ├── twitter-bootstrap-2.0.3.pom.sha1 │   │   │   ├── twitter-bootstrap-2.0.3.zip │   │   │   └── twitter-bootstrap-2.0.3.zip.sha1

Just have a small error message when I start the app after declaring it as a maven dependency on BuildConfig.groovy... Uninstalled the 2.0.2.25

marcello@hawaii:/u1/development/workspaces/open-source/rsa.signr/web$ grails uninstall-plugin twitter-bootstrap | Uninstalled plugin [twitter-bootstrap]

Then configured marcello@hawaii:/u1/development/workspaces/open-source/rsa.signr/web$ vim grails-app/conf/BuildConfig.groovy marcello@hawaii:/u1/development/workspaces/open-source/rsa.signr/web$ grails run-app | Compiling 57 source files

| Running Grails application | Error 2012-05-11 10:11:23,169 [pool-7-thread-1] ERROR resource.ResourceMeta - While processing /css/scaffolding.css, a resource was required but not found: /plugins/twitter-bootstrap-2.0.2.25/img/glyphicons-halflings.png | Server running. Browse to http://localhost:8080/decodr

Tested the UI, and it has fixed a few things from the previous version of bootstrap...