On Sat, 26 Mar 2022 at 2:06 pm, Nils Breunese <n...@breun.nl> wrote: > Olivier Lamy <ol...@apache.org> wrote: > > > should be 1.7 not 1.17 ;) > > No, 1.7 is for Java 7. For Java 17 it should be just 17.
The email subject says “ question java 1.7 support” But yeah should be simply 17 Use release flag rather than sources and target > > > Nils. > > > On Sat, 26 Mar 2022 at 13:48, Alexander Ushakov < > > alexander.ushakov.em...@gmail.com> wrote: > > > >> Hello! > >> > >> I am trying to play with Apache Kafka and craft next pom.xml > >> > >> ```xml > >> > >> <?xml version="1.0" encoding="UTF-8"?><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> > >> <groupId>streams.examples</groupId> > >> <artifactId>streams.examples</artifactId> > >> <version>0.1</version> > >> <packaging>jar</packaging> > >> <name>Kafka Streams Demo Application</name> > >> <properties> > >> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> > >> <kafka.version>3.1.0</kafka.version> > >> <slf4j.version>1.7.7</slf4j.version> > >> <log4j.version>1.2.17</log4j.version> > >> <maven.compiler.release>1.17</maven.compiler.release> > >> </properties> > >> <repositories> > >> <repository> > >> <id>apache.snapshots</id> > >> <name>Apache Development Snapshot Repository</name> > >> <url> > >> https://repository.apache.org/content/repositories/snapshots/</url> > >> <releases> > >> <enabled>false</enabled> > >> </releases> > >> <snapshots> > >> <enabled>true</enabled> > >> </snapshots> > >> </repository> > >> </repositories> > >> <build> > >> <plugins> > >> <plugin> > >> <groupId>org.apache.maven.plugins</groupId> > >> <artifactId>maven-compiler-plugin</artifactId> > >> <version>3.1</version> > >> <configuration> > >> <source>1.17</source> > >> <target>1.17</target> > >> </configuration> > >> </plugin> > >> <!-- <plugin> --> > >> <!-- <groupId>org.apache.maven.plugins</groupId> --> > >> <!-- <artifactId>maven-shade-plugin</artifactId> --> > >> <!-- <version>3.2.4</version> --> > >> <!-- <executions> --> > >> <!-- <execution> --> > >> <!-- <phase>package</phase> --> > >> <!-- <goals> --> > >> <!-- <goal>shade</goal> --> > >> <!-- </goals> --> > >> <!-- <configuration> --> > >> <!-- <transformers> --> > >> <!-- <transformer > >> > >> > implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> > >> --> > >> <!-- <mainClass>myapps.Pipe</mainClass> --> > >> <!-- </transformer> --> > >> <!-- </transformers> --> > >> <!-- </configuration> --> > >> <!-- </execution> --> > >> <!-- </executions> --> > >> <!-- </plugin> --> > >> </plugins> > >> </build> > >> <dependencies> > >> <dependency> > >> <groupId>org.apache.kafka</groupId> > >> <artifactId>kafka-streams</artifactId> > >> <version>${kafka.version}</version> > >> </dependency> > >> <dependency> > >> <groupId>org.slf4j</groupId> > >> <artifactId>slf4j-api</artifactId> > >> <version>${slf4j.version}</version> > >> </dependency> > >> <dependency> > >> <groupId>org.slf4j</groupId> > >> <artifactId>slf4j-simple</artifactId> > >> <version>${slf4j.version}</version> > >> </dependency> > >> </dependencies></project> > >> > >> ``` > >> > >> command > >> > >> ```sh > >> mvn clean package > >> ``` > >> > >> results with error > >> > >> ``` > >> [ERROR] Failed to execute goal > >> org.apache.maven.plugins:maven-compiler-plugin:3.1:compile > >> (default-compile) on project streams.examples: Fatal error compiling: > >> error: invalid target release: 1.17 -> [Help 1] > >> ``` > >> > >> Java and Maven has been installed through SdkMan. Java 17. > >> > >> Can someone, please, suggest the solution? > >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > >