konsoletyper / teavm-flavour

Framework for writing client-side applications using TeaVM
Apache License 2.0
110 stars 19 forks source link

Error in pom.xml when running the teamvm-flavour-example #36

Open haglo opened 5 years ago

haglo commented 5 years ago

The pom.xml of the teamvm-falvour-example has an error

The following code fix one error `

org.teavm.flavour
    <artifactId>teavm-flavour</artifactId>
    <version>0.2.1</version>
</parent>`

But then i get again an error by:

`

maven-war-plugin
                <version>2.4</version>
                <configuration>
                    <webResources>
                        <resource>
                            <directory>${project.build.directory}/generated/js</directory>
                        </resource>
                    </webResources>
                </configuration>
            </plugin>`

The path ../generated/js exist not

The error-messsage is: Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.4:war (default-war) on project teavm-flavour-example: Execution default-war of goal org.apache.maven.plugins:maven-war-plugin:2.4:war failed: basedir D:\teavm-flavour\example\target\generated\js does not exist -> [Help 1]

konsoletyper commented 5 years ago

Hello. Sorry, don't undestand you. Are you trying to build example module alone? Please, don't. The proper way to build is to run

mvn install -pl org.teavm.flavour:teavm-flavour-example -am -DskipTests

from project's root (not from example folder, it's important!)

haglo commented 5 years ago

Unbenannt

Hi thanks for your answer. But now i get the message in the Attachment

Am 31.10.2019 um 13:40 schrieb Alexey Andreev:

|mvn install -pl org.teavm.flavour:teavm-flavour-example -am -DskipTests|

Mit freundlichen Grüßen Hans-Georg Glöckler

haglo commented 5 years ago

My pom.xml

<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">

4.0.0
<parent>
    <groupId>org.teavm.flavour</groupId>
    <artifactId>teavm-flavour</artifactId>
    <version>0.2.1</version>
</parent>

<artifactId>teavm-flavour-example</artifactId>
<packaging>war</packaging>

<name>TeaVM Flavour - Example</name>
<description>Simple application that uses features of TeaVM Flavour</description>

<properties>
    <jersey.version>2.22.1</jersey.version>
    <spring.version>5.1.8.RELEASE</spring.version>
</properties>

<dependencies>
    <dependency>
        <groupId>org.teavm</groupId>
        <artifactId>teavm-classlib</artifactId>
    </dependency>
    <dependency>
        <groupId>org.teavm</groupId>
        <artifactId>teavm-metaprogramming-impl</artifactId>
    </dependency>
    <dependency>
        <groupId>org.teavm</groupId>
        <artifactId>teavm-jso-apis</artifactId>
    </dependency>
    <dependency>
        <groupId>org.teavm.flavour</groupId>
        <artifactId>teavm-flavour-templates</artifactId>
        <version>${project.version}</version>
    </dependency>
    <dependency>
        <groupId>org.teavm.flavour</groupId>
        <artifactId>teavm-flavour-widgets</artifactId>
        <version>${project.version}</version>
    </dependency>
    <dependency>
        <groupId>org.teavm.flavour</groupId>
        <artifactId>teavm-flavour-routing</artifactId>
        <version>${project.version}</version>
    </dependency>
    <dependency>
        <groupId>org.teavm.flavour</groupId>
        <artifactId>teavm-flavour-json</artifactId>
        <version>${project.version}</version>
    </dependency>
    <dependency>
        <groupId>org.teavm.flavour</groupId>
        <artifactId>teavm-flavour-rest</artifactId>
        <version>${project.version}</version>
    </dependency>
    <dependency>
        <groupId>javax.servlet</groupId>
        <artifactId>javax.servlet-api</artifactId>
        <version>3.1.0</version>
        <scope>provided</scope>
    </dependency>
    <dependency>
        <groupId>org.eclipse.persistence</groupId>
        <artifactId>eclipselink</artifactId>
        <version>2.7.4</version>
    </dependency>
    <dependency>
        <groupId>org.eclipse.persistence</groupId>
        <artifactId>javax.persistence</artifactId>
        <version>2.1.0</version>
    </dependency>
    <dependency>
        <groupId>org.jinq</groupId>
        <artifactId>jinq-jpa</artifactId>
        <version>1.8.4</version>
    </dependency>
    <dependency>
        <groupId>org.glassfish.jersey.core</groupId>
        <artifactId>jersey-server</artifactId>
        <version>${jersey.version}</version>
    </dependency>
    <dependency>
        <groupId>org.glassfish.jersey.containers</groupId>
        <artifactId>jersey-container-servlet</artifactId>
        <version>${jersey.version}</version>
    </dependency>
    <dependency>
        <groupId>org.glassfish.jersey.media</groupId>
        <artifactId>jersey-media-json-jackson</artifactId>
        <version>${jersey.version}</version>
    </dependency>
    <dependency>
        <groupId>org.hsqldb</groupId>
        <artifactId>hsqldb</artifactId>
        <version>2.3.3</version>
    </dependency>
    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-web</artifactId>
        <version>${spring.version}</version>
    </dependency>
    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-orm</artifactId>
        <version>${spring.version}</version>
    </dependency>
    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-instrument</artifactId>
        <version>${spring.version}</version>
    </dependency>
    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-context</artifactId>
        <version>${spring.version}</version>
    </dependency>
    <dependency>
        <groupId>com.mchange</groupId>
        <artifactId>c3p0</artifactId>
        <version>0.9.5.1</version>
    </dependency>
    <dependency>
        <groupId>javax.xml.bind</groupId>
        <artifactId>jaxb-api</artifactId>
        <version>2.2.11</version>
    </dependency>
</dependencies>

<build>
    <pluginManagement>
        <plugins>
            <plugin>
                <artifactId>maven-war-plugin</artifactId>
                <version>2.4</version>
                <configuration>
                    <webResources>
                        <resource>
                            <directory>${project.build.directory}/generated/js</directory>
                        </resource>
                    </webResources>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.teavm</groupId>
                <artifactId>teavm-maven-plugin</artifactId>
                <version>${teavm.version}</version>
                <executions>
                    <execution>
                        <id>web-client</id>
                        <phase>prepare-package</phase>
                        <goals>
                            <goal>compile</goal>
                        </goals>
                        <configuration>
                            <targetDirectory>${project.build.directory}/generated/js/teavm</targetDirectory>
                            <mainClass>org.teavm.flavour.example.client.Client</mainClass>
                            <minifying>false</minifying>
                            <debugInformationGenerated>false</debugInformationGenerated>
                            <sourceMapsGenerated>false</sourceMapsGenerated>
                            <sourceFilesCopied>false</sourceFilesCopied>
                            <optimizationLevel>ADVANCED</optimizationLevel>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-checkstyle-plugin</artifactId>
                <configuration>
                    <configLocation>../checkstyle.xml</configLocation>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-source-plugin</artifactId>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-javadoc-plugin</artifactId>
            </plugin>
        </plugins>
    </pluginManagement>
</build>

konsoletyper commented 5 years ago

Please, post your commends from github UI. I can't access your attachments

haglo commented 5 years ago

done i have posted it here in github

konsoletyper commented 5 years ago

Why did you set <version>0.2.1</version>?

haglo commented 5 years ago

Because i got an error with origin setting

konsoletyper commented 5 years ago

You should roll back this file to original state, there are no error there.

haglo commented 5 years ago

ups it works when i start it from a terminal my above problems where becaues i imported it into Spring Tool Suite May be it is a SPring Tool Suite problem

The only error i got now when i run it in a terminal is

[ERROR] Error fetching link: D:\teavm-flavour\templates\target\apidocs/package-list. Ignored it ![Unbenannt](https://user-images.githubusercontent.com/513155/67950695-6829ce00-fbea-11e9-83da-44e752d09ace.PNG)

But this error has no effect

haglo commented 5 years ago

One more question.

We are starting a new project in medicin area We are looking for technologie to create an Singel-Web-Page which consumes a Rest-API from the Backend. Normaly we must take Angular.

But it has more charme for us to use Java Technology

The question: Is TeaVM-Flavour ready for production use?

konsoletyper commented 5 years ago

It depends on what you call "production ready". What framework should be like to use it in production?

I don't use Flavour on production and don't know anyone who does. However, I use raw TeaVM in production as well as several organizations like Codename One and Greenfoot.

You should understand risks related to using Flavour. There's a large Angular community, so you can always find existing library for your needs or an answer on Stackoverflow or some manual. There's nothing like this in case of Flavour.

PokingUrsa commented 5 years ago

At my company we have a large Flavour project in production that is generating significant revenue. Indeed, I consider Flavour a major contributor to the project's success.

cyberquarks commented 4 years ago

@PokingUrsa is it the website/web app public?