I am supposed to get a "app-name"-grailsPlugins folder/module under my project structure, however I am not getting it.
I am not sure if it's a maven issue, since I am getting a sucessful "maven compile" as well as "grails compile" but my friend is able to get it on his mac.
Because of that IntelliJ isn't able to recognize a valid class from the spring-security-core plugin. It doesn't affects me as much as of now, but I shouldn't have any line of code "redlined" and IntelliJ should be able to recognize that class.
This is my dependency within the pom.xml:
<groupId>org.grails.plugins</groupId>
<artifactId>spring-security-core</artifactId>
<version>${grails.spring-security.version}</version>
<scope>runtime</scope>
<type>zip</type>
<exclusions>
<!--<exclusion>
<!– can make global exclusion in BuildConfig –>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</exclusion>-->
<exclusion>
<groupId>net.sf.ehcache</groupId>
<artifactId>ehcache</artifactId>
</exclusion>
</exclusions>
</dependency>
Any help is appreciated. I have been looking everywhere so far.
Screenshot of project structure with missing grailsPlugins module with maven 3.8.3
UPDATE
STEPS TO REPRODUCE
- Install sdkman
- Use sdkman to install Grails 2.4.5
- Use Grails 2.4.5 command-line "grails create-app (name of your grails project)" to create grails project.
- Open grails project inside IntelliJ
- Go to terminal inside IntelliJ and use Grails command "grails create-pom (your chosen group id [com.samplemaven]) to create Maven pom.xml file.
- Go to IntelliJ File|Project Structure | Module and you will see that IntelliJ doesn't automatically generate app-name-grailsPlugins module
Sample Grails 2.4.5 project in IntelliJ with Maven integration