> > > Hello,
How can I use the Vector API with maven exec plugin? I compiled my project with these settings and it worked fine: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>20</source> <target>20</target> <compilerArgs> <arg>--enable-preview</arg> <arg>--add-modules</arg> <arg>jdk.incubator.vector</arg> </compilerArgs> <jdkToolchain> <version>20</version> </jdkToolchain> </configuration> </plugin> But when I try to run it using mvn exec:java I get this error: java.lang.ClassNotFoundException: jdk.incubator.vector.Vector My exec plugin configuration looks like this: I have tried many variations but nothing seems to work. Please help! <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>exec-maven-plugin</artifactId> <version>3.1.0</version> <executions> <execution> <goals> <goal>java</goal> </goals> </execution> </executions> <configuration> <mainClass>com.mycompany.app.App</mainClass> <execArgs> <execArg>--enable-preview</execArg> <!-- for the Vector API --> <execArg>--add-modules jdk.incubator.vector</execArg> <!-- for the Vector API --> </execArgs> </configuration> </plugin>