<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">
<modelVersion>4.0.0</modelVersion>
<groupId>com.jsinteropdemo</groupId>
<artifactId>jsinterop-demo</artifactId>
<packaging>gwt-app</packaging>
<version>0.1</version>
<properties>
<gwtVersion>2.8.1</gwtVersion>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-user</artifactId>
<version>${gwtVersion}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-dev</artifactId>
<version>${gwtVersion}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.google.elemental2</groupId>
<artifactId>elemental2-core</artifactId>
<version>1.0.0-RC1</version>
</dependency>
<dependency>
<groupId>com.google.elemental2</groupId>
<artifactId>elemental2-dom</artifactId>
<version>1.0.0-RC1</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>net.ltgt.gwt.maven</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<version>1.0-rc-9</version>
<extensions>true</extensions>
<configuration>
<classpathScope>compile</classpathScope>
<moduleName>com.jsinteropdemo.JSInteropDemo</moduleName>
<moduleShortName>JSInteropDemo</moduleShortName>
<warDir>${project.build.directory}/${project.build.finalName}</warDir>
<devmodeWorkDir>${project.build.directory}/${project.build.finalName}</devmodeWorkDir>
<startupUrls>
<startupUrl>
JSInteropDemo.html
</startupUrl>
</startupUrls>
<compilerArgs>
<arg>-generateJsInteropExports</arg>
</compilerArgs>
<useCompilerArgsForTests>true</useCompilerArgsForTests>
<codeserverArgs>
<arg>-generateJsInteropExports</arg>
</codeserverArgs>
<devmodeArgs>
<arg>-generateJsInteropExports</arg>
</devmodeArgs>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>3.0.0</version>
<configuration>
<failOnMissingWebXml>false</failOnMissingWebXml>
</configuration>
<executions>
<execution>
<id>war</id>
<phase>compile</phase>
<goals>
<goal>war</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>I have added a pom.xml file in the project attached below while running the command - mvn clean install I got an error - Compiling module com.jsinteropdemo.JSInteropDemo
[INFO] [ERROR] Module has no entry points defined
Also attaching the screenshot of my project folder and default .XML file
On Sunday, September 11, 2022 at 5:59:36 PM UTC+5:30 m.conr...@gmail.com wrote:
Check your dependencies. That is an add-on library which must be included explicitly.On Sun, Sep 11, 2022 at 5:10 AM Manas <manassriv...@gmail.com> wrote:Hi All,
Good Day!I'm new in GWT and I'm going through documentation and JSInterop. I'm facing issues with implementing chart.js using JSInterop. Can anyone guide me on how to resolve and keep things working? I am facing an error - "The import elemental2 cannot be resolved"code is -
package chartjs;
import elemental2.dom.HTMLCanvasElement; => facing error on this line
import jsinterop.annotations.JsPackage;
import jsinterop.annotations.JsType;
@JsType(isNative = true, namespace = JsPackage.GLOBAL)
public class Chart {
public Chart(HTMLCanvasElement canvasElement, ChartConfiguration configuration) {
}
}--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-tool...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/d85e1313-7a55-482f-b712-022cf6fef5acn%40googlegroups.com.
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/a7614089-bbf2-4cfa-be07-827d2f8ca96dn%40googlegroups.com.
No comments:
Post a Comment