Ответы

Делаю плагин на майнкрафт для ядра Paper

при компиляции плагина выскакивает ошибка:

[INFO] Scanning for projects...

[INFO] ------------------------------------------------------------------------

[INFO] BUILD FAILURE

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 0.060 s

[INFO] Finished at: 2025-10-07T17:28:50+07:00

[INFO] ------------------------------------------------------------------------

[ERROR] No goals have been specified for this build. You must specify a valid lifecycle phase or a goal in the format <plugin-prefix>:<goal> or <plugin-group-id>:<plugin-artifact-id>[:<plugin-version>]:<goal>. Available lifecycle phases are: pre-clean, clean, post-clean, validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy, pre-site, site, post-site, site-deploy. -> [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/NoGoalSpecifiedException

По дате
По рейтингу
Аватар пользователя
Знаток
2мес
Изменено
123456789101112131415161718
<build>
  <plugins>
    <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-plugin-plugin</artifactId>
      <version>3.6.4</version>
      <executions>
        <execution>
          <id>default-descriptor</id>
          <phase>process-classes</phase>
          <goals>
            <goal>descriptor</goal>
          </goals>
        </execution>
      </executions>
    </plugin>
  </plugins>
</build>

Можно весь лог компиляции и как компилируешь какой командой типа mvn clean package? И проверь pom.xml что всё так. Либо скинь свой pom.xml. Код выше пишешь в конце pom

Аватар пользователя
Мыслитель
2мес

ты какие-то строки не заполнил

Аватар пользователя
Ученик
2мес

Молодец