Note that there are some explanatory texts on larger screens.

plurals
  1. POGrails acegi plugin classes not added to maven
    text
    copied!<p>I created a <strong>grails 1.2.0</strong> project using the <strong>acegi plugin 0.5.2</strong> which works very well. </p> <p>To integrate the project into our companies build infrastructure I need to build it via maven. So I converted it to a maven project using the <strong>grails maven integration</strong> which worked quite well too. </p> <p>There is one problem: I have a Java class CustomUserDetails that implements the <strong>GrailsUser</strong> interface. When maven tries to compile the project it can not find the <strong>GrailsUser</strong> interface class which is part of the <strong>acegi plugin</strong>.</p> <p>Am I missing something or is there a problem with the grails maven integration that causes plugin classes missing from the classpath? </p> <p>UPDATE: here is the pom.xml of my project:</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;&lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"&gt; &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt; &lt;groupId&gt;com.troii&lt;/groupId&gt; &lt;artifactId&gt;testapp&lt;/artifactId&gt; &lt;packaging&gt;war&lt;/packaging&gt; &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt; &lt;dependencies&gt; &lt;dependency&gt; &lt;groupId&gt;org.grails&lt;/groupId&gt; &lt;artifactId&gt;grails-crud&lt;/artifactId&gt; &lt;version&gt;1.2.0&lt;/version&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;org.grails&lt;/groupId&gt; &lt;artifactId&gt;grails-gorm&lt;/artifactId&gt; &lt;version&gt;1.2.0&lt;/version&gt; &lt;/dependency&gt; &lt;!-- Grails defaults to Ehache for the second-level Hibernate cache. --&gt; &lt;dependency&gt; &lt;groupId&gt;org.hibernate&lt;/groupId&gt; &lt;artifactId&gt;hibernate-ehcache&lt;/artifactId&gt; &lt;version&gt;3.3.1.GA&lt;/version&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;javassist&lt;/groupId&gt; &lt;artifactId&gt;javassist&lt;/artifactId&gt; &lt;version&gt;3.11.0.GA&lt;/version&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;net.sf.ehcache&lt;/groupId&gt; &lt;artifactId&gt;ehcache-core&lt;/artifactId&gt; &lt;version&gt;1.7.1&lt;/version&gt; &lt;exclusions&gt; &lt;exclusion&gt; &lt;artifactId&gt;jms&lt;/artifactId&gt; &lt;/exclusion&gt; &lt;exclusion&gt; &lt;artifactId&gt;servlet-api&lt;/artifactId&gt; &lt;/exclusion&gt; &lt;!-- We have JCL-over-SLF4J instead. --&gt; &lt;exclusion&gt; &lt;artifactId&gt;commons-logging&lt;/artifactId&gt; &lt;/exclusion&gt; &lt;/exclusions&gt; &lt;/dependency&gt; &lt;!-- For ease of development and testing, we include the HSQLDB database. --&gt; &lt;dependency&gt; &lt;groupId&gt;hsqldb&lt;/groupId&gt; &lt;artifactId&gt;hsqldb&lt;/artifactId&gt; &lt;version&gt;1.8.0.10&lt;/version&gt; &lt;/dependency&gt; &lt;!-- Use Log4J for logging. This artifact also pulls in the Log4J JAR. --&gt; &lt;dependency&gt; &lt;groupId&gt;org.slf4j&lt;/groupId&gt; &lt;artifactId&gt;slf4j-log4j12&lt;/artifactId&gt; &lt;version&gt;1.5.8&lt;/version&gt; &lt;scope&gt;runtime&lt;/scope&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;javax.servlet&lt;/groupId&gt; &lt;artifactId&gt;jstl&lt;/artifactId&gt; &lt;version&gt;1.2&lt;/version&gt; &lt;/dependency&gt; &lt;/dependencies&gt; &lt;repositories&gt; &lt;!-- Required to get hold of JTA --&gt; &lt;repository&gt; &lt;id&gt;maven2-repository.dev.java.net&lt;/id&gt; &lt;name&gt;Java.net Repository for Maven&lt;/name&gt; &lt;url&gt;http://download.java.net/maven/2/&lt;/url&gt; &lt;layout&gt;default&lt;/layout&gt; &lt;/repository&gt; &lt;repository&gt; &lt;id&gt;Codehaus Snapshots&lt;/id&gt; &lt;url&gt;http://snapshots.repository.codehaus.org&lt;/url&gt; &lt;snapshots&gt; &lt;enabled&gt;true&lt;/enabled&gt; &lt;/snapshots&gt; &lt;releases&gt; &lt;enabled&gt;false&lt;/enabled&gt; &lt;/releases&gt; &lt;/repository&gt; &lt;/repositories&gt; &lt;pluginRepositories&gt; &lt;pluginRepository&gt; &lt;id&gt;Codehaus Snapshots&lt;/id&gt; &lt;url&gt;http://snapshots.repository.codehaus.org&lt;/url&gt; &lt;snapshots&gt; &lt;enabled&gt;true&lt;/enabled&gt; &lt;/snapshots&gt; &lt;releases&gt; &lt;enabled&gt;false&lt;/enabled&gt; &lt;/releases&gt; &lt;/pluginRepository&gt; &lt;/pluginRepositories&gt; &lt;build&gt; &lt;pluginManagement /&gt; &lt;plugins&gt; &lt;plugin&gt; &lt;groupId&gt;org.grails&lt;/groupId&gt; &lt;artifactId&gt;grails-maven-plugin&lt;/artifactId&gt; &lt;version&gt;1.2.0&lt;/version&gt; &lt;extensions&gt;true&lt;/extensions&gt; &lt;executions&gt; &lt;execution&gt; &lt;goals&gt; &lt;goal&gt;init&lt;/goal&gt; &lt;goal&gt;maven-clean&lt;/goal&gt; &lt;goal&gt;validate&lt;/goal&gt; &lt;goal&gt;config-directories&lt;/goal&gt; &lt;goal&gt;maven-compile&lt;/goal&gt; &lt;goal&gt;maven-test&lt;/goal&gt; &lt;goal&gt;maven-war&lt;/goal&gt; &lt;goal&gt;maven-functional-test&lt;/goal&gt; &lt;/goals&gt; &lt;/execution&gt; &lt;/executions&gt; &lt;/plugin&gt; &lt;plugin&gt; &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt; &lt;configuration&gt; &lt;source&gt;1.5&lt;/source&gt; &lt;target&gt;1.5&lt;/target&gt; &lt;/configuration&gt; &lt;/plugin&gt; &lt;/plugins&gt; &lt;/build&gt; &lt;profiles&gt; &lt;profile&gt; &lt;id&gt;tools&lt;/id&gt; &lt;activation&gt; &lt;property&gt; &lt;name&gt;java.vendor&lt;/name&gt; &lt;value&gt;Sun Microsystems Inc.&lt;/value&gt; &lt;/property&gt; &lt;/activation&gt; &lt;dependencies&gt; &lt;dependency&gt; &lt;groupId&gt;com.sun&lt;/groupId&gt; &lt;artifactId&gt;tools&lt;/artifactId&gt; &lt;version&gt;${java.version}&lt;/version&gt; &lt;scope&gt;system&lt;/scope&gt; &lt;systemPath&gt;${java.home}/../lib/tools.jar&lt;/systemPath&gt; &lt;/dependency&gt; &lt;/dependencies&gt; &lt;/profile&gt; &lt;/profiles&gt; &lt;/project&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload