powered by simpleCommunicator - 2.0.61     © 2026 Programmizd 02
Целевая тема:
Создать новую тему:
Автор:
Закрыть
Цитировать
Форумы / Java [игнор отключен] [закрыт для гостей] / GWT & Maven
4 сообщений из 4, страница 1 из 1
GWT & Maven
    #38935672
Фотография -=Koba=-
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Создал проект maven с архитектурой gwt

Вываливается ошибка

авторDescription Resource Path Location Type
1 problem was encountered while building the effective model for org.apache.maven.plugins:maven-resources-plugin:2.6
[ERROR] Invalid packaging for parent POM [unknown-group-id]:[unknown-artifact-id]:[unknown-version], must be "pom" but is "jar" @ [unknown-group-id]:[unknown-artifact-id]:[unknown-version]
pom.xml /example line 1 Maven Configuration Problem

В чем причина?
...
Рейтинг: 0 / 0
GWT & Maven
    #38935765
Фотография mayton
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Покажи весь pom.
...
Рейтинг: 0 / 0
GWT & Maven
    #38936506
Фотография -=Koba=-
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
maytonПокажи весь pom.

автор <?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/maven-v4_0_0.xsd">
- <!-- POM file generated with GWT webAppCreator
-->
<modelVersion>4.0.0</modelVersion>
<groupId>by.gwt.test</groupId>
<artifactId>example</artifactId>
<packaging>war</packaging>
<version>1.0-SNAPSHOT</version>
<name>GWT Maven Archetype</name>
- <properties>
- <!-- Convenience property to set the GWT version
-->
<gwtVersion>2.7.0</gwtVersion>
- <!-- GWT needs at least java 1.5
-->
<webappDirectory>${project.build.directory}/${project.build.finalName}</webappDirectory>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
- <dependencies>
- <dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-servlet</artifactId>
<version>${gwtVersion}</version>
<scope>runtime</scope>
</dependency>
- <dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-user</artifactId>
<version>${gwtVersion}</version>
<scope>provided</scope>
</dependency>
- <dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>test</scope>
</dependency>
- <dependency>
<groupId>javax.validation</groupId>
<artifactId>validation-api</artifactId>
<version>1.1.0.Final</version>
<scope>test</scope>
</dependency>
- <dependency>
<groupId>javax.validation</groupId>
<artifactId>validation-api</artifactId>
<version>1.1.0.Final</version>
<classifier>sources</classifier>
<scope>test</scope>
</dependency>
</dependencies>
- <build>
<finalName>${war.name}</finalName>
- <!-- Generate compiled stuff in the folder used for developing mode
-->
<outputDirectory>${webappDirectory}/WEB-INF/classes</outputDirectory>
- <resources>
- <resource>
<directory>src/main/java</directory>
- <includes>
<include>**/*.*</include>
</includes>
</resource>
- <resource>
<directory>src/main/resources</directory>
- <includes>
<include>**/*.*</include>
</includes>
</resource>
</resources>
- <plugins>
- <!-- GWT Maven Plugin
-->
- <plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<version>2.7.0</version>
- <executions>
- <execution>
- <goals>
<goal>compile</goal>
<goal>test</goal>
<goal>i18n</goal>
<goal>generateAsync</goal>
</goals>
</execution>
</executions>
- <!--
Plugin configuration. There are many available options, see gwt-maven-plugin
documentation at codehaus.org

-->
- <configuration>
<runTarget>SimpleExample.html</runTarget>
<hostedWebapp>${webappDirectory}</hostedWebapp>
<i18nMessagesBundle>by.gwt.test.client.Messages</i18nMessagesBundle>
</configuration>
</plugin>
- <!-- Copy static web files before executing gwt:run
-->
- <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.6</version>
- <executions>
- <execution>
<phase>compile</phase>
- <goals>
<goal>exploded</goal>
</goals>
</execution>
</executions>
- <configuration>
<webappDirectory>${webappDirectory}</webappDirectory>
</configuration>
</plugin>
- <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.3</version>
- <configuration>
<source>1.5</source>
<target>1.5</target>
</configuration>
</plugin>
</plugins>
</build>
</project>

Таже самая ошибка при попытке создать проект GWTP
...
Рейтинг: 0 / 0
GWT & Maven
    #38936859
Фотография -=Koba=-
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
-=Koba=-Таже самая ошибка при попытке создать проект GWTP

Так по поводу проекта на GWTP эту ошибку удалось исправить путем обновления
Всех версий зависимостей и плагинов на последние актуальные и beta
...
Рейтинг: 0 / 0
4 сообщений из 4, страница 1 из 1
Форумы / Java [игнор отключен] [закрыт для гостей] / GWT & Maven
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]