You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

.gitignore 673B

5 years ago
5 years ago
Provision libraries in 'lib' automatically Upon special request by Andy Clement, I included 'lib' as a child module in the parent POM again, making several modules which refer to downloaded library files dependent the 'lib' module. I am not sure I caught all of them, but I hope so. Now after cloning the project and configuring the token for reading from GitHub Packages (sorry!), you can just run a Maven build for the main project and no longer need to fail the first build, read the Maven Enforcer message and run 'cd lib && mvn compile' as a first step. This convenience comes at the price of a more complex POM and two new profiles: - Profile 'provision-libs' is auto-activated by the absence of a marker file, kicking off the library provisioning process and creating same marker file at the end, if successful. Therefore, during subsequent builds libraries will not be re-provisioned, because the marker file exists and Maven skips all download and (un)zip steps, which saves build time and bandwidth. Otherwise offline builds would not work either. - Profile 'clean-libs' needs to be activated manually, because by default 'mvn clean' will not erase provisioned libraries. In most cases, even after a clean a developer does not want to re-provision all libraries if they have not changed (e.g. new JDT Core build). But if you do wish too erase the libraries and the marker file, just call 'cd lib && mvn -P clean-libs clean'. Please note: The Maven Enforcer build step, which additionally checks for existence of other files, still exists and was moved from the parent POM to 'libs'. No matter if provisioning was just done or skipped because the main marker file exists, a quick heuristic check for that list of files is done during each build, failing the build with a comprehensive message if an inconsistency was found. The error message says which files are missing and tells the user: "There is an inconsistency in module subdirectory 'lib'. Please run 'mvn --projects lib -P clean-libs clean compile'. This should take care of cleaning and freshly downloading all necessary libraries to that directory, where some tests expect them to be." This should cover the topic. Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
3 years ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # Maven
  2. target/
  3. *.versionsBackup
  4. # Files + directories created during build
  5. aj-build/
  6. build/local.properties
  7. taskdefs/bin
  8. # Log files
  9. log.txt
  10. # Eclipse
  11. .classpath
  12. .project
  13. .settings
  14. # IntelliJ IDEA
  15. *.iml
  16. .idea/
  17. # Visual Studio Code
  18. .vscode
  19. # MacOS X Finder
  20. .DS_Store
  21. # Linux
  22. .attach_pid*
  23. # No idea where these come from
  24. bin/
  25. # Downloaded libraries used during tests + marker file
  26. /lib/provisioned.marker
  27. /lib/ant/
  28. /lib/commons/
  29. /lib/docbook/
  30. /lib/jarjar/
  31. /lib/jdtcore-aj/
  32. /lib/junit/
  33. /lib/regexp/
  34. /lib/saxon/
  35. # When using a RAM disk to speed up development, see how-to in docs/developer/ram-disk/settings-ramdisk.xml
  36. /.mvn/maven.config
  37. /.mvn/settings-ramdisk.xml