Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8861457
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T15:29:47+00:00 2026-06-14T15:29:47+00:00

I have a simple maven parent project containing <modules> <module>myGrailsPlugin<module> <module>someVanillaMavenProject<module> </modules> Folder structure

  • 0

I have a simple maven parent project containing

<modules>
  <module>myGrailsPlugin<module>
  <module>someVanillaMavenProject<module>
</modules>

Folder structure is straightforward.

parent
|_ myGrailsPlugin
    |_ pom.xml
    |_ MyGrailsPlugin.groovy
|_ someVanillaMavenProject
    |_ pom.xml
|_ pom.xml

Both modules, can be build sucessfully, when built individually.
However when I run

mvn compile

on the parent project I get the following error.

Embedded Error: java.lang.reflect.InvocationTargetException
MyGrailsPlugin.groovy (The system cannot find the file specified.)

The file myGrailsPlugin.groovy exist in the top level of the myGrailsPlugin folder and is the grails plugin descriptor. Seems maven does not look up the file in this folder.

Any idea how do fix this?


The pom.xml of the GrailsPlugin looks like that.

...
<build>
    ...
    <pluginManagement />
    <plugins>
        <plugin>
            <groupId>org.grails</groupId>
            <artifactId>grails-maven-plugin</artifactId>
            <version>${grails.version}</version>
            <extensions>true</extensions>
            <executions>
                <execution>
                    <id>set-version</id>
                    <phase>validate</phase>
                    <goals>
                        <goal>exec</goal>
                    </goals>
                    <configuration>
                        <command>set-version</command>
                        <args>${project.version}</args>
                    </configuration>
                </execution>
                <execution>
                    <id>package-plugin</id>
                    <phase>package</phase>
                    <goals>
                        <goal>exec</goal>
                    </goals>
                    <configuration>
                        <command>package-plugin</command>
                    </configuration>
                </execution>
            </executions>
        </plugin>
        ...
    </plugins>
</build>
...

Regards,
Will

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T15:29:49+00:00Added an answer on June 14, 2026 at 3:29 pm

    After a while I figured out this is a bug in the grails gwt plugin.
    The src/gwt folder will be looked up in the parent directory instead of the submodules directory. But this does not exist. So copying the complete folder to the parent will let the build complete sucessfully. I didn’t like this workaround and decided to change my build configuration to build the modules separately.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a relativey simple multi module maven buid with a parent pom. This
I have a parent project with 2 maven modules a simple Java Application (generated
Currently I have a simple maven project that is building a jar file and
I have a fairly simple maven-ized Java project, but am having trouble getting my
I have a simple java maven project. One of my classes when executing needs
I have a simply POM like this : <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/xsd/maven-4.0.0.xsd> <modelVersion>4.0.0</modelVersion>
I have been trying to make a simple Spring project using Eclipse and Maven
I have a simple project with maven using the maven war plugin. When I
I made simple maven project and I opened it with Eclipse. I have installed
I'm following a tutorial for maven. I have a very simple project with a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.