首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >maven-frontend plugin使用系统节点

maven-frontend plugin使用系统节点
EN

Stack Overflow用户
提问于 2016-02-26 05:08:04
回答 1查看 879关注 0票数 1

使用安装在系统中的节点和npm,通过插件只执行gulp,grunt,npm,bower任务,而不安装节点和npm,这是可能的吗?

代码语言:javascript
复制
  <build>
    <plugins>
        <plugin>
            <groupId>com.github.eirslett</groupId>
            <artifactId>frontend-maven-plugin</artifactId>
            <!-- NB! Set <version> to the latest released version of frontend-maven-plugin, like in README.md -->
            <version>@project.version@</version>

            <executions>

                <!-- <execution>
                    <id>install node and npm</id>
                    <goals>
                        <goal>install-node-and-npm</goal>
                    </goals>
                    <configuration>
                        <nodeVersion>v0.12.2</nodeVersion>
                        <npmVersion>2.7.6</npmVersion>
                    </configuration>
                </execution>-->

                <execution>
                    <id>grunt build</id>
                    <goals>
                        <goal>grunt</goal>
                    </goals>
                    <configuration>
                        <arguments>--no-color</arguments>
                    </configuration>
                </execution>

            </executions>
        </plugin>
    </plugins>
EN

回答 1

Stack Overflow用户

发布于 2016-09-14 19:18:11

根据作者对这个问题的评论,看起来不像是这样:

https://github.com/eirslett/frontend-maven-plugin/issues/277

Maven-exec-plugin可能有你需要的东西。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/35638367

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档