简体   繁体   中英

maven pom.xml perform task during goal

We have a primary project that is java, as a part of it we need to pull into the final package some custom js files that are contained within a separate git repo (and tagged with versions). What would the best way be to download and place these files in the correct location during the build process? Should I just use antrun scripts?

It deppends how your files are organized, but it seems, that git submodules could be good idea. Posisible issues

  • I do not know how it work with tags, it seems it works only with branches.
  • You can only pull whole submodule repository to empty dir.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM