[英]Maven scm update
I am new to Maven world, so help me out please.我是Maven世界的新手,所以请帮助我。 I have a normal Maven project that uses SVN for version control.我有一个使用SVN进行版本控制的普通Maven 项目。 What i want to do is have Maven automatically fetch some scripts from a SVN folder and place them inside the project.This should be done when i order maven to build the application WAR file.我想要做的是让 Maven 自动从SVN文件夹中获取一些脚本并将它们放在项目中。这应该在我命令 Maven 构建应用程序WAR文件时完成。 Here is the catch: the folder i want to pick up from SVN is not on the same SVN folder as the current project.这是一个问题:我想从SVN 中提取的文件夹与当前项目不在同一个SVN文件夹中。 It is on a different SVN folder.它位于不同的SVN文件夹中。 Ex.: httxx://svnprd/svn/project/here and httxx://svnprd/svn/scripts/here例如:httxx://svnprd/svn/project/here 和 httxx://svnprd/svn/scripts/here
I have read about the scm plugin , but i have not been able to set it up correctly, or to find a decent tutorial on it.我已经阅读了有关scm 插件的信息,但是我无法正确设置它,也无法找到有关它的不错的教程。
Any help is appreciated, thanks.任何帮助表示赞赏,谢谢。
Turned out it was my own mistake, i was trying to use scm:update instead of scm:export.原来这是我自己的错误,我试图使用 scm:update 而不是 scm:export。 thanks for the help guys.感谢您的帮助。
Antrun plugin could help you. Antrun插件可以帮助你。 Hook it in generate-sources
phase and write ant script that checks out the SVN folder and moves the files where needed.在generate-sources
阶段钩住它并编写 ant 脚本来检查 SVN 文件夹并将文件移动到需要的地方。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.