• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

xtext/maven-xtext-example: An Xtext language and example usage of it built with ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

xtext/maven-xtext-example

开源软件地址(OpenSource Url):

https://github.com/xtext/maven-xtext-example

开源编程语言(OpenSource Language):

Java 53.3%

开源软件介绍(OpenSource Introduction):

Build Status

An Xtext Language Built with Maven

A small example to show how to configure a Maven build for an Xtext language and how to use it from Maven and Gradle.

Language Build

If you use Xtext 2.9 or higher, the Maven build for your language is auto-generated. Just skip ahead to the usage section.

  • see my.mavenized.herolanguage.* projects
  • Language plug-ins, updatesite and Eclipse feature built via Maven/Tycho
  • Xtext Code Generation (Language infrastructure generated from grammar)
  • Xtend Code Generation

Language Usage

  • example-project
  • example-project-gradle
  • Example Language (herolanguage) Code Generation
  • Xtend Code Generation

Try it out!

Steps

1. Increase memory

   export MAVEN_OPTS="-Xmx512m -XX:MaxPermSize=256m"

2. Build the language

 mvn clean install

3. Build the example projects

 cd ../example-project/
 mvn clean install
 cd ../example-project-gradle/
 ./gradlew build

Builds

We now have automatic builds:

https://github.com/xtext/maven-xtext-example/actions?query=workflow%3ABuild

Maven Archetype

There is also a Maven Archetype available that automatically creates your new project based on this example: https://github.com/fuinorg/emt-xtext-archetype

Known Issues

1. Build fails due to version conflicts

The build will fail immediately because of version conflicts. A possible error might look similar to the following:

  • No versions available for org.eclipse.emf:org.eclipse.emf.mwe2.runtime:jar:[2.9.1.201705291010] within specified range

Even if the specified version (see pom) is available on the central maven repository, updating related snapshots will most likely help the problem.

  • mvn clean install -U



鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap