You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Tamás Cservenák <cs...@apache.org> on 2023/08/07 08:25:55 UTC
[ANN] Maven Resolver 1.9.15 released
The Apache Maven team is pleased to announce the release of the
Maven Resolver 1.9.15:
This release focuses on "third party integrations" and provides a migration
path for those who rely on deprecated `ServiceLocator`, which is about to
be dropped in the near future (in 2.x). Read more about it here
https://maven.apache.org/resolver/third-party-integrations.html
Furthermore, the tip of Resolver soon becomes 2.x, to be used in upcoming
Maven 4.x. The Maven 3.x line remains on the Resolver 1.x line.
The planned API changes between Resolver 1.x and 2.x are roughly removal of
deprecated stuff (use 1.9.15 as "baseline"). In general, if your code does
not use deprecated stuff from Resolver 1.x, you should be fine.
===
https://maven.apache.org/resolver/
Release Notes - Maven Resolver - Version 1.9.15
** Bug
* [MRESOLVER-393] - Transport HTTP does not retain last modified as
sent by remote end
** Improvement
* [MRESOLVER-387] - Provide "static" supplier for RepositorySystem
** Task
* [MRESOLVER-386] - Make all injected ctors public, deprecate all def
ctors
* [MRESOLVER-388] - Transport HTTP old codec proper override
** Dependency upgrade
* [MRESOLVER-395] - Update dependencies
Have fun,
-The Apache Maven team
How to use Vector API with Maven Exec Plugin
Posted by Siddharth Jain <si...@gmail.com>.
>
>
> 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>
How to use Vector API with Maven Exec Plugin
Posted by Siddharth Jain <si...@gmail.com>.
>
>
> 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>