Tag: maven

在基于node.js的微服务之间共享代码?

假设我有一个微服务A和一个微服务(在Node.js上实现)B,这两个都依赖于包C. 当我释放我的应用程序(包括A,B和C)时,我想确保A和B都使用相同版本的C语言。我希望在开发过程中释放A或B时就是这种情况。 事实上,在Java和Maven中,有一个BOM(物料清单)的概念,例如可以解决这个问题。 Maven BOM [Bill Of Materials]依赖关系 有没有类似的解决schemenode.js?

有没有办法通过maven / ant运行nodeunittesting

我为nodeunit中的node.js应用程序创build了一些unit testing。 我希望能够通过maven / ant来运行testing,因为我打算通过Jenkins运行它们。 有没有人有这样做的成功?

运行时出现jhipster错误

我做了npm安装-g哟和npm安装-g生成器-jhipster安装yoeman和jhipster然后我创build了一个项目运行“yo jhipster”回答所有问题,然后当我做mvn -Pprod弹簧引导:运行它给我错误[错误]无法执行目标com.github.trecloux:yeoman-maven-plugin:0.2:项目上的build(run-grunt)myproject:错误期间:grunt test –no-color:进程退出,出现错误: 6(退出值:6) – > [帮助1] 有人可以帮助我,我有点新的东西。

我如何使用node.js下载maven依赖关系?

我有一个包含多个Maven依赖关系的JSON文件: { "name": "com.paulscode:libraryjavasound:20101123" }, { "name": "com.paulscode:librarylwjglopenal:20100824" }, { "name": "com.paulscode:soundsystem:20120107" }, 我想加载它们,然后在类path中启动一个具有这些依赖项的jar。 目前我不知道该怎么做。 另外,我计划使用电子,如果这是重要的。

Maven前端构build为生成源阶段运行两次

我的POM文件包含构build前端构build的插件。 但是,当我们运行mvn clean install它会运行两次前端grunt / npm exec 。 我如何避免多次执行? 所有的帮助表示赞赏。 由于grunt构build需要时间,删除重复的运行将缩短构build时间。 <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>exec-maven-plugin</artifactId> <version>1.4.0</version> <executions> <execution> <id>exec-npm-install</id> <phase>generate-sources</phase> <configuration> <executable>npm</executable> <arguments> <argument>install</argument> </arguments> <workingDirectory>src/main/raw_ui</workingDirectory> </configuration> <goals> <goal>exec</goal> </goals> </execution> <execution> <id>exec-bower-install</id> <phase>generate-sources</phase> <configuration> <executable>bower</executable> <arguments> <argument>install</argument> </arguments> <workingDirectory>src/main/raw_ui</workingDirectory> </configuration> <goals> <goal>exec</goal> </goals> </execution> <execution> <id>exec-grunt</id> <phase>generate-sources</phase> <configuration> <executable>grunt</executable> <arguments> <argument>build</argument> <argument>-f</argument> </arguments> <workingDirectory>src/main/raw_ui</workingDirectory> </configuration> […]

如何在Node.js app / project中使用Wurfl现场java

我们已经实现了WURFL现场Java应用程序(使用maven / servlet实现的berryapp),我们将其用于所有Java应用程序,只需在所有其他应用程序中调用该应用程序即可。 由于它是基于Java的,所以在所有调用它的Java应用程序中都能很好地工作。 我想在我的Node.js应用程序中使用相同的应用程序(它没有任何Java)。 如何在我的node.js中调用(berryapp / wurfl应用程序)?

如何为nodeJs项目创build模板原型

新的node.js框架。 我想创build一个node.js项目的模板原型(创build基本文件夹,configuration文件…),以便其他人可以使用这个原型来创build他们的项目使用这个模板,它将具有所有基本的文件夹结构和文件原型。 我们可以使用maven为node.js项目创build原型吗? 或者其他一些开源工具可用? 。 如果任何人有node.js框架的专业知识,请指教。 提前致谢 。

Maven-Plugin:无法运行任务'纱线'

构build项目并运行frontend-maven-plugin会导致运行任务失败。 眼镜: Node.js 6.11.4 npm 3.10.10 纱线1.2.1 Maven 3.3.9(3.5.0) 操作系统:Windows 10 64位和Ubuntu 16.10 这就是日志的样子: [ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.3:yarn (frontend: execute yarn install) on project zanata-frontend: Failed to run task: 'yarn ' failed. (error code 1) -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.3:yarn (frontend: execute yarn install) on project zanata-frontend: Failed to […]

Apache cxf java-first和SOAP模块npm

我已经用它的默认方法部署了一个cxf-jaxws-javafirst maven项目:HelloWorld.sayHi(String text)。 HTTP://本地主机:8080 / prueba / HelloWorld的WSDL 另一方面,我有一个肥皂客户端与肥皂模块Nodejs实施。 var express = require('express') var app = express() //soap module var soap = require('soap'); //url of the wsdl var url = 'http://localhost:8080/prueba/HelloWorld?wsdl'; //variable var args = {arg0: 'friend'}; app.get('/', function (req, res) { soap.createClient(url, function(err, client) { client.sayHi(args, function(err, result) { res.send(result); }); }); }) var […]

不能用maven运行npm grunt bower

我有一个简单的networking应用程序,使用npm鲍尔和咕噜声。 我正在使用这个项目作为maven项目中的一个模块。 我search了互联网,发现如何定义项目的pom.xml,但我无法运行它。 任何人都可以告诉我如何使用maven构build和运行webapp的步骤。 pom.xml <build> <plugins> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>exec-maven-plugin</artifactId> <version>1.5.0</version> <executions> <execution> <id>exec-npm-install</id> <phase>generate-sources</phase> <configuration> <executable>npm</executable> <arguments> <argument>install</argument> </arguments> </configuration> <goals> <goal>exec</goal> </goals> </execution> <execution> <id>exec-bower-install</id> <phase>generate-sources</phase> <configuration> <executable>bower</executable> <arguments> <argument>install</argument> </arguments> </configuration> <goals> <goal>exec</goal> </goals> </execution> <execution> <id>exec-grunt</id> <phase>process-resources</phase> <configuration> <executable>grunt</executable> </configuration> <goals> <goal>exec</goal> </goals> </execution> </executions> </plugin> </plugins> </build> 我得到的错误是 [ERROR] Command […]