java - GWT maven build eclipse -


i had gwt app, , wanted automate build , deploy system, since manually. did not find way how build app command line, can automated. had click google button, compile gwt project , click compile.

i found out possible create gwt maven project , should possible compile project commandline mvn gwt:compile.

so created new project using plugin. copied sources old project new one.

now structure this:
/src
---/main
------/java -> here sources including project.gwt.xml file.
------/webapp
---/test
pom.xml

now have 2 problems.
1. thought add dependencies pom.xml, , when build app, create jars , can use libraries in gwt app. guess 'mvn clean install' should this, far i'm getting compile errors.
2. did not mvn clean install work, added jars manually again... , yes! able build app using plugin gwt button! thinking can use 'mvn gwt:compile', fails with:

unable find: "com/company/project/project.gwt.xml" on classpath; typo, or maybe forgot include classpath entry source?

edit: fixed <modulename> element in pom.xml, finds project.gwt.xml. i'm trying run:

mvn clean install gwt:compile 

but getting compile errors. think, tries build project without actual dependecies because tells few classes don't exist, classes part of external library. (specifically this one). have in dependencies, don't know more do.

  <dependency>     <groupid>com.github.tdesjardins</groupid>     <artifactid>gwt-ol3</artifactid>     <version>3.0.0</version>   </dependency> 

also in eclipse had manually add jars project, why worked there , not in command line. ask how tell eclipse jars , include them project, because otherwise eclipse missing dependencies , displays many errors.

first had problem <modulename> in pom.xml missing com.company.project prefix before actual module name.

then had errors in java files, caused release version of gwt-openlayers 3 library missing of features used building jar github repository.


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -