Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[INFO] File: /opt/deploy/assembly/assembly.xml does not exist. #1

Open
testwill opened this issue May 29, 2024 · 6 comments
Open

[INFO] File: /opt/deploy/assembly/assembly.xml does not exist. #1

testwill opened this issue May 29, 2024 · 6 comments

Comments

@testwill
Copy link

[ERROR] [3] [INFO] File: /opt/deploy/assembly/assembly.xml does not exist.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn -rf :hp-demo-bff-mysql

@ldcsaa
Copy link
Owner

ldcsaa commented Jun 3, 2024

There are 2 ways to deal with it:

  1. Copy assembly.xml to your /opt/deploy/assembly dir .
  2. Copy assembly.xml to any dir, and set maven.assembly.descriptor property in your pom.xml file to specify the assembly file location, like this:
<properties>
    <maven.assembly.descriptor>src/main/assembly/assembly.xml</maven.assembly.descriptor>
</properties>

@testwill
Copy link
Author

testwill commented Jun 3, 2024

好的,谢谢。我试下

@ldcsaa
Copy link
Owner

ldcsaa commented Jun 3, 2024

我会抽时间补充一下这个文档:打包发布

提供的assembly文件会打包 /opt/deploy/scripts 下的启动脚本,可以把 启动脚本 拷贝到 /opt/deploy/scripts目录。

@testwill
Copy link
Author

testwill commented Jun 3, 2024

这个文档会不会增加k8s部署

@ldcsaa
Copy link
Owner

ldcsaa commented Jun 3, 2024

这个文档会不会增加k8s部署

把程序包打包到docker镜像,k8s通过deployment启动这个镜像的容器即可。
后续可能会说明如何打包成docker镜像。

@testwill
Copy link
Author

testwill commented Jun 3, 2024

好的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants