/JayathilakaPosBackedWithPrinter$ ./mvnw clean package
[INFO] Scanning for projects...
[INFO]
[INFO] ----< com.jayathilakaRiceProducts:JayathilakaPosBackedWithPrinter >-----
[INFO] Building JayathilakaPosBackedWithPrinter 0.0.1-SNAPSHOT
[INFO] from pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- clean:3.3.2:clean (default-clean) @ JayathilakaPosBackedWithPrinter ---
[INFO] Deleting /home/rashmika/Paid Projects/JayathilakaRiceProducts_With printer/PaysheetPrinter_JayathilakaRiceProducts/JayathilakaPosBackedWithPrinter/target
[INFO]
[INFO] --- resources:3.3.1:resources (default-resources) @ JayathilakaPosBackedWithPrinter ---
[INFO] Copying 1 resource from src/main/resources to target/classes
[INFO] Copying 2 resources from src/main/resources to target/classes
[INFO]
[INFO] --- compiler:3.11.0:compile (default-compile) @ JayathilakaPosBackedWithPrinter ---
[INFO] Changes detected - recompiling the module! :source
[INFO] Compiling 17 source files with javac [debug release 21] to target/classes
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.641 s
[INFO] Finished at: 2024-11-03T19:19:55+05:30
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.11.0:compile (default-compile) on project JayathilakaPosBackedWithPrinter: Fatal error compiling: error: release version 21 not supported -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
rashmika@rashmika-Aspire-A515-53G:~/Paid Projects/JayathilakaRiceProducts_With printer/PaysheetPrinter_JayathilakaRiceProducts/JayathilakaPosBackedWithPrinter$ ./mvnw clean package
[INFO] Scanning for projects...
[INFO]
[INFO] ----< com.jayathilakaRiceProducts:JayathilakaPosBackedWithPrinter >-----
[INFO] Building JayathilakaPosBackedWithPrinter 0.0.1-SNAPSHOT
[INFO] from pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- clean:3.3.2:clean (default-clean) @ JayathilakaPosBackedWithPrinter ---
[INFO] Deleting /home/rashmika/Paid Projects/JayathilakaRiceProducts_With printer/PaysheetPrinter_JayathilakaRiceProducts/JayathilakaPosBackedWithPrinter/target
[INFO]
[INFO] --- resources:3.3.1:resources (default-resources) @ JayathilakaPosBackedWithPrinter ---
[INFO] Copying 1 resource from src/main/resources to target/classes
[INFO] Copying 2 resources from src/main/resources to target/classes
[INFO]
[INFO] --- compiler:3.11.0:compile (default-compile) @ JayathilakaPosBackedWithPrinter ---
[INFO] Changes detected - recompiling the module! :source
[INFO] Compiling 17 source files with javac [debug release 21] to target/classes
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.231 s
[INFO] Finished at: 2024-11-03T19:20:44+05:30
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.11.0:compile (default-compile) on project JayathilakaPosBackedWithPrinter: Fatal error compiling: error: release version 21 not supported -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
Эта проблема возникла, когда я пытался создать jar-файл из проекта весенней загрузки. сначала я ввел следующую команду в свой терминал. [code]./mvnw clean package [/code] затем я просматриваю сообщение журнала. [code]/JayathilakaPosBackedWithPrinter$ ./mvnw clean package [INFO] Scanning for projects... [INFO] [INFO] ----< com.jayathilakaRiceProducts:JayathilakaPosBackedWithPrinter >----- [INFO] Building JayathilakaPosBackedWithPrinter 0.0.1-SNAPSHOT [INFO] from pom.xml [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- clean:3.3.2:clean (default-clean) @ JayathilakaPosBackedWithPrinter --- [INFO] Deleting /home/rashmika/Paid Projects/JayathilakaRiceProducts_With printer/PaysheetPrinter_JayathilakaRiceProducts/JayathilakaPosBackedWithPrinter/target [INFO] [INFO] --- resources:3.3.1:resources (default-resources) @ JayathilakaPosBackedWithPrinter --- [INFO] Copying 1 resource from src/main/resources to target/classes [INFO] Copying 2 resources from src/main/resources to target/classes [INFO] [INFO] --- compiler:3.11.0:compile (default-compile) @ JayathilakaPosBackedWithPrinter --- [INFO] Changes detected - recompiling the module! :source [INFO] Compiling 17 source files with javac [debug release 21] to target/classes [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 4.641 s [INFO] Finished at: 2024-11-03T19:19:55+05:30 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.11.0:compile (default-compile) on project JayathilakaPosBackedWithPrinter: Fatal error compiling: error: release version 21 not supported -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException rashmika@rashmika-Aspire-A515-53G:~/Paid Projects/JayathilakaRiceProducts_With printer/PaysheetPrinter_JayathilakaRiceProducts/JayathilakaPosBackedWithPrinter$ ./mvnw clean package [INFO] Scanning for projects... [INFO] [INFO] ----< com.jayathilakaRiceProducts:JayathilakaPosBackedWithPrinter >----- [INFO] Building JayathilakaPosBackedWithPrinter 0.0.1-SNAPSHOT [INFO] from pom.xml [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- clean:3.3.2:clean (default-clean) @ JayathilakaPosBackedWithPrinter --- [INFO] Deleting /home/rashmika/Paid Projects/JayathilakaRiceProducts_With printer/PaysheetPrinter_JayathilakaRiceProducts/JayathilakaPosBackedWithPrinter/target [INFO] [INFO] --- resources:3.3.1:resources (default-resources) @ JayathilakaPosBackedWithPrinter --- [INFO] Copying 1 resource from src/main/resources to target/classes [INFO] Copying 2 resources from src/main/resources to target/classes [INFO] [INFO] --- compiler:3.11.0:compile (default-compile) @ JayathilakaPosBackedWithPrinter --- [INFO] Changes detected - recompiling the module! :source [INFO] Compiling 17 source files with javac [debug release 21] to target/classes [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 5.231 s [INFO] Finished at: 2024-11-03T19:20:44+05:30 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.11.0:compile (default-compile) on project JayathilakaPosBackedWithPrinter: Fatal error compiling: error: release version 21 not supported -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[/code] это мой файл pom.xml. [code] xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0
Эта проблема возникла, когда я пытался создать jar-файл из проекта весенней загрузки. Сначала я ввел в терминал следующую команду:
./mvnw clean package
затем я увидел следующее сообщение журнала:
/JayathilakaPosBackedWithPrinter$ ./mvnw clean...
По сути, у меня есть проект Maven, и я пытаюсь создать jar своего проекта, используя пакет компиляции mvn clean через набор инструментов Spring, используя ниже pom.xml.
После выполнения команды я получаю 2 jar-файла, созданных в моей целевой папке...
Я довольно новичок в Java, и я столкнулся с ошибкой, которую я просто не могу выяснить! (или любая команда ./mvnw на самом деле!) Я сталкиваюсь с следующей ошибкой:
Exception in thread main java.lang.IllegalStateException:...
Я довольно новичок в Java, и я столкнулся с ошибкой, которую я просто не могу выяснить! (или любая команда ./mvnw на самом деле!) Я сталкиваюсь с следующей ошибкой:
Exception in thread main java.lang.IllegalStateException:...
Я довольно новичок в Java, и я столкнулся с ошибкой, которую я просто не могу выяснить! (или любая команда ./mvnw на самом деле!) Я сталкиваюсь с следующей ошибкой:
Exception in thread main java.lang.IllegalStateException:...