hsynkrtl commented on issue #72:
URL: 
https://github.com/apache/maven-scripting-plugin/issues/72#issuecomment-4314451429

   Solution for this was to define dependencies in the plugin.
   
   `
                       <plugin>
                           <artifactId>maven-scripting-plugin</artifactId>
                           <executions>
                               <execution>
                                   <id>pre-clean:scripting:eval</id>
                                   <goals>
                                       <goal>eval</goal>
                                   </goals>
                                   <phase>pre-clean</phase>
                               </execution>
                           </executions>
                           <configuration>
                               <engineName>groovy</engineName>
                               
<scriptFile>${maven.multiModuleProjectDirectory}/file.groovy
                               </scriptFile>
                               <script>
                                   <![CDATA[
   println "SCRIPT"
                                   ]]>
                               </script>
                           </configuration>
                           <dependencies>
                               <dependency>
                                   <groupId>org.apache.groovy</groupId>
                                   <artifactId>groovy-jsr223</artifactId>
                                   <version>5.0.5</version>
                               </dependency>
                               <dependency>
                                   <groupId>org.apache.maven</groupId>
                                   <artifactId>maven-core</artifactId>
                                   <version>3.9.12</version>
                               </dependency>
                               <dependency>
                                   <groupId>org.apache.maven</groupId>
                                   <artifactId>maven-model</artifactId>
                                   <version>3.9.12</version>
                               </dependency>
                               <dependency>
                                   <groupId>org.apache.maven</groupId>
                                   <artifactId>maven-plugin-api</artifactId>
                                   <version>3.9.12</version>
                               </dependency>
                               <dependency>
                                   <groupId>org.apache.maven</groupId>
                                   <artifactId>maven-artifact</artifactId>
                                   <version>3.9.12</version>
                               </dependency>
                               <dependency>
                                   <groupId>org.apache.maven.shared</groupId>
                                   
<artifactId>maven-shared-incremental</artifactId>
                                   <version>1.1</version>
                               </dependency>
                               <dependency>
                                   <groupId>org.apache.maven.shared</groupId>
                                   <artifactId>maven-invoker</artifactId>
                                   <version>3.3.0</version>
                               </dependency>
                               <dependency>
                                   <groupId>org.slf4j</groupId>
                                   <artifactId>slf4j-simple</artifactId>
                                   <version>2.0.17</version>
                               </dependency>
                           </dependencies>
                       </plugin>
   `


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to