grails-plugin

Grails - No SCM provider installed

雨燕双飞 提交于 2020-01-03 04:48:07
问题 I need deploy my plugin into Nexus repository and create tag in my SCM (Subversion). In BuildConfig.groovy I wrote build ":release:3.0.1" in plugin section and set up repository: grails.project.repos.releases.url="http://my-nexus:8081/content/repositories/releases" grails.project.repos.releases.username="deployment" grails.project.repos.releases.password="deployment123" When I launched grails publish-plugin --repository=releases command, I get WARN: No SCM provider installed. If I fix this

Grails Acegi manual login

断了今生、忘了曾经 提交于 2020-01-03 02:40:08
问题 Is there a way to do that without using a POST request to "j_spring_security_check"? 回答1: I needed the same thing (in my case I wanted to log in a user after they created a new account), so I dug around in the generated RegistrationService and found this is how it is done: import org.springframework.security.providers.UsernamePasswordAuthenticationToken as AuthToken import org.springframework.security.context.SecurityContextHolder as SCH class UserService { /** The authentication provider. */

ldap.rememberMe.usernameMapper.userDnBase (multiple instances of?) (searchSubtree search capability)

自古美人都是妖i 提交于 2020-01-03 00:55:10
问题 I have a Grails application that is successfully using the latest spring-security-core:2.0-RC4 and spring-security-ldap:2.0-RC2 . Users can login perfectly using grails.plugin.springsecurity.ldap.search.base setting for LDAP login authentication. There is a different setting for the rememberMe userDnBase (mapper) and that setting is: grails.plugin.springsecurity.ldap.rememberMe.usernameMapper.userDnBase The LDAP authentication grails.plugin.springsecurity.ldap.search.base is set to ou=people

Property date must be a valid Date error, when using jquery UI plugin

好久不见. 提交于 2020-01-02 06:54:10
问题 I have a tasks class, which has a date field. In my view file, I have this line of code : <g:textField name="date" value="${tasksInstance?.date}" id="datePicker" /> And using the jquery ui plugin, I added this code to my <head> tag : <g:javascript> $(document).ready(function() { $("#datePicker").datepicker({dateFormat: 'mm/dd/yy'}); }) </g:javascript> But when I save the date field, I get the following error: Property date must be a valid Date error Edit: Tasks.groovy package mnm.schedule

How do I publish a grails 3 plugin to my local nexus repo?

眉间皱痕 提交于 2020-01-01 05:00:05
问题 Running grails publish-plugin doesn't seem to do anything, and the only documentation I could find was about publishing to bintray. [edit:] I can publish the plugin via gradle publish , but wondered if there was a grails-y way to do it, and wonder what grails publish-plugin actually does :/ 回答1: I figured it out with help from Ryan Vanderwerf at http://rvanderwerf.blogspot.com/2015/07/how-to-publish-grails-3-plugin.html who writes that there are a bunch of spring-boot dependencies that don't

Grails: is it possible to exclude a plugin dependency of another plugin?

試著忘記壹切 提交于 2019-12-29 08:44:11
问题 I have a grails 2.2.2 app, and have decided to use cache-ehcache plugin. The problem is that this plugin depends on the cache plugin with version 1.0.0 and my application has the cache plugin version 1.0.1 (i think it is the default for grails 2.2.2). Therefore when i try to compile the app i always get the same message: You currently already have a version of the plugin installed [cache-1.0.1]. Do you want to update to [cache-1.0.0]? [y,n] I have to answer this question every time i compile

How to use grails.plugin.location?

ε祈祈猫儿з 提交于 2019-12-28 02:56:06
问题 I have a plugin project which I created as grails create-plugin myPlugin . I also created a 'normal' grails project as grails create-app myPluginDemo . I'm trying to install myPlugin plugin in myPluginDemo but don't understand how to use grails.plugin.location . Where do I put grails.plugin.location inside BuildConfig.groovy ? Inside plugins section? Inside repositories section? What should I append to grails.plugin.location ? Should it be grails.plugin.location.myPlugin ? Or grails.plugin

Grails 2.1.0 unable to install webflow plugin

荒凉一梦 提交于 2019-12-25 18:21:30
问题 I'm running Grails 2.1.0 and I can't install the webflow plugin: $ grails install-plugin webflow | Plugin installed. $ grails | Configuring classpath :: problems summary :: :::: WARNINGS module not found: org.springframework.webflow#org.springframework.webflow;2.0.8.RELEASE ... :::::::::::::::::::::::::::::::::::::::::::::: :: UNRESOLVED DEPENDENCIES :: :::::::::::::::::::::::::::::::::::::::::::::: :: org.springframework.webflow#org.springframework.webflow;2.0.8.RELEASE: not found :: org

Accessing the data in db via Domain class in Controller via grails testing

筅森魡賤 提交于 2019-12-25 08:43:06
问题 def index() { //println params String params_key =params['key'] def c = get_value(params_key) def resp = ['key': params_key, 'value':c] render resp as JSON } private static hash_conv(String value) { def matches = Eval.me(value.replace(':','').replace('{','[').replace('=>',':').replace('#','//').replace('}',']')) return matches } private get_value(String key, default_value=null){ def app_preferences = get_preferences() def result = app_preferences[key] if (result == null) { result = default

How can I compile a Grails App including a Grails Plugin-Project on my Webserver?

被刻印的时光 ゝ 提交于 2019-12-25 05:24:35
问题 I have a Grails Project with name AProject and a Grails Plugin with name MyPlugin . I integrate my MyPlugin into AProject , by adding to BuildConfig.groovy as: plugins { ... compile ":elasticsearch:0.50" } grails.plugin.location.'elasticsearch' = "../elasticsearch" On my local computer I then do in the MyPlugin folder grails maven-install and in the AProject folder: grails clean grails refresh-dependencies grails run-app This is working fine on my local computer, but not on my server. How can