Hello.

I am working with plugin for start Groovy scrips as simple scripts, without
creation for them project. My module can be found here
https://github.com/Enroi/GroovyScripts

My module uses clear maven for build.

Current NetBeans has old groovy 2.5. I try to add fresh Groovy 3.0.7 as
library.

But when I try to compile my module with new Groovy as external library I
have such error:

Failed to execute goal
org.apache.netbeans.utilities:nbm-maven-plugin:4.5:manifest
(default-manifest) on project groovy-scripts: Uncategorized problems with
NetBeans dependency verification (maybe MNBMODULE-102 or wrong maven
dependency metadata). Supposedly external classes are used in the project's
binaries but the classes are not found on classpath. Class usages:
[java.lang.Module] -> [Help 1]

I have such question. How to add library to module with Maven structure for
build? Is there any examples/tutorials how to add library to NetBeans module
with maven structure?

For my tests I have created similar test module with Ant structure. With Ant
I can compile and start module with Groovy 3.0.7 as library. I have compared
test Ant module and my Maven module. I have found that Ant module has file
project.properties with such text:

file.reference.groovy-3.0.7.jar=release/modules/ext/groovy-3.0.7.jar

I think I need to add similar configuration to pom.xml of my module. But I
can not find description how to do it.

 

            <plugin>

                <groupId>org.apache.netbeans.utilities</groupId>

                <artifactId>nbm-maven-plugin</artifactId>

                <version>4.5</version>

                <extensions>true</extensions>

                <configuration>

                    <nbmResources>

                        <nbmResource>

                            <directory>src/main/release</directory>

                        </nbmResource>

                    </nbmResources>

                </configuration>

            </plugin>

 

        <dependency>

            <groupId>org.codehaus.groovy</groupId>

            <artifactId>groovy</artifactId>

            <version>3.0.7</version>

        </dependency>

 

 

Reply via email to