[英]gwt with maven and bootstrap eclipse starter project
I struggle for a few days now with integrating maven and gwt in eclipse. 我现在在将Maven和gwt集成到Eclipse中挣扎了几天。 I was searching web for some ready to import project, but unfortunatelly everything crashed so long.
我在网上搜索一些准备导入的项目,但是不幸的是,一切崩溃了这么长时间。
I am new to gwt. 我是新来的。 I would like learn it.
我想学习。 Earlier I was using maven, spring and playframework with sbt.
之前我在sbt中使用maven,spring和playframework。
I haven't use ant like build tool. 我没有像构建工具那样使用ant。 But I like it integration between gwt and eclipe (I can click run in super dev mode).
但是我喜欢它在gwt和eclipe之间的集成(我可以单击以超级开发模式运行)。
One think is that I do not like in ant, I have to manually download jar and put it in classpath. 一种想法是,我不喜欢蚂蚁,我必须手动下载jar并将其放在classpath中。 I think it is unnecessary if maven can do it for me.
我认为如果maven可以为我做这件事是没有必要的。
I would like also to use this library: gwtbootstrap3 I can't handle this on my own. 我也想使用这个库: gwtbootstrap3我不能自己处理这个。
Can someone of You prepare for me that eclipse project, that I could just import. 你们中的某人可以为我准备这个日食项目吗,我可以导入它。
Here is my newest pom.xml
: 这是我最新的
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">
<modelVersion>4.0.0</modelVersion>
<groupId>pl.korbeldaniel.btsp</groupId>
<artifactId>btsp</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>btsp</name>
<properties>
<gwt.version>2.7.0</gwt.version>
<gwtBootstrap3.version>0.9.1-SNAPSHOT</gwtBootstrap3.version>
<webappDirectory>${project.build.directory}/${project.build.finalName}</webappDirectory>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>org.codehaus.mojo</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<version>${gwt.version}</version>
</dependency>
</dependencies>
<build>
<finalName>btsp</finalName>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>
</plugins>
</build>
But I cant run in like native gwt project. 但是我不能像本地gwt项目那样运行。
Yes, it's a definitely possible. 是的,这绝对有可能。 You just have to sift through a ton of documentation to figure it out.
您只需要仔细阅读大量文档即可解决问题。
You'll need Google Plugin for eclipse and the m2e (Maven Integration for Eclipse) plugin 您需要用于eclipse的Google插件和m2e(用于Eclipse的Maven集成)插件
After you have those, right click on a GWT project-> configure -> convert to Maven Project. 完成这些操作后,右键单击GWT项目->配置->转换为Maven项目。
Now, to use GwtBootstrap3, all you need to do is add GWT and gwtBootstrap3 as dependencies in your pom. 现在,要使用GwtBootstrap3,您要做的就是将GWT和gwtBootstrap3添加为pom中的依赖项。 (Details here ).
(详细信息在这里 )。
If you need any ready to import maven projects, you can clone GwtBootstrap3-demo project from github and run that as a web application. 如果需要任何准备导入的Maven项目,则可以从github克隆GwtBootstrap3-demo项目,并将其作为Web应用程序运行。 As for learning GWT, tutorials are your best option (Pay close attention to UiBinder for GwtBootstrap3).
至于学习GWT, 教程是最好的选择(请密切注意GwtBootstrap3的UiBinder)。
click here , here and here for details about setting everything up. 单击此处 , 此处和此处以获取有关设置所有内容的详细信息。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.