小编Wod*_*den的帖子

Vue、vite:GET http://localhost:3000/@vite/client net::ERR_ABORTED 404(未找到)

我正在使用 Vue 和 vite 来练习带有获取 API 的 Web 应用程序的工作流程,遵循本教程。在命令结束时yarn dev,我收到错误。我试过了:

  1. 直接克隆项目并运行相同的命令,仍然出现相同的错误。
  2. 在 Github 上搜索任何问题和解决方案,但没有运气。

我该如何解决这个问题?或者我错过了什么?谢谢。

http-status-code-404 vue.js vite

7
推荐指数
1
解决办法
4708
查看次数

Maven插件无法解析

我已经按照标题所述搜索了这个问题,但仍然不知道应该做什么。我正在尝试构建一个可执行的 jar 文件,但其中一个插件maven-assembly-plugin无法解析。

我已经尝试过https://maven.apache.org/plugins/maven-assemble-plugin/usage.html 但它不起作用。我把整个pom.xml文件都放了,插件在文件的底部。非常感谢任何帮助。

这是错误消息:

Plugin could not be resolved. Ensure the plugin's groupId, artifactId and 
version are present. Additional information: Plugin 
org.apache.maven.plugins:maven-assembly-plugin:2.2-beta-5 or one of its 
dependencies could not be resolved: Failed to read 
artifact descriptor for org.apache.maven.plugins:maven-assembly-plugin:jar:2.2-beta-5
Run Code Online (Sandbox Code Playgroud)

这是文件:

<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>distributed.systems</groupId>
<artifactId>leader.election</artifactId>
<version>0.0.1-SNAPSHOT</version>

<name>leader.election</name>
<!-- FIXME change it to the project's website -->
<url>http://www.example.com</url>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.7</maven.compiler.source>
<maven.compiler.target>1.7</maven.compiler.target>
</properties>

<dependencies>
<dependency>
  <groupId>junit</groupId>
  <artifactId>junit</artifactId>
  <version>4.11</version>
  <scope>test</scope>
</dependency>

<dependency> …
Run Code Online (Sandbox Code Playgroud)

java maven

6
推荐指数
1
解决办法
3万
查看次数

标签 统计

http-status-code-404 ×1

java ×1

maven ×1

vite ×1

vue.js ×1