java - 在 POM 文件中使用外部工件
问题描述
我有一个 Springboot 应用程序,我也使用 pom.xml 来构建我的前端,为此我使用插件 frontend-maven-plugin,我在我的内部 jfrog 工件上发布了一个私有依赖项。一旦我使用 azure devops 管道,我该如何访问它。由于它是一个私人仓库,我在 package.json 的一个依赖项中收到错误 404
<plugin>
<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId>
<version>1.5</version>
<configuration>
<nodeVersion>v10.15.0</nodeVersion>
<npmVersion>6.4.1</npmVersion>
<workingDirectory></workingDirectory>
</configuration>
<executions>
<execution>
<id>install node and npm</id>
<goals>
<goal>install-node-and-npm</goal>
</goals>
</execution>
<execution>
<id>npm install</id>
<goals>
<goal>npm</goal>
</goals>
<configuration>
<arguments>install --no-optional</arguments>
</configuration>
</execution>
<execution>
<id>npm run build</id>
<goals>
<goal>npm</goal>
</goals>
<configuration>
<arguments>run ${angular.build}</arguments>
</configuration>
</execution>
</executions>
</plugin>
解决方案
推荐阅读
- angular - 在springboot java项目中捆绑angular ui项目并访问其UI
- assembly - 程序集 8086 中数组的未知大小
- javascript - 如何从对象中的特定参数中找到我的对象中的唯一对象
- javascript - Chrome 开发工具:实现您自己的元素层次结构视图(相同的 chrome,react 开发工具)
- mysql - 如何在插入前使用mysql触发器生成动态ID
- puppeteer - Puppeteer 返回空对象
- php - 在 Laravel 迁移中重复同一个 Forign 表的 FK
- java - Java中数组的异常语法
- html - 相对 div 高度为 100%
- python - Pandas:对两列进行排序