Multi-dependency-item file extraction method and device based on Maven plug-in
An extraction method and file technology, applied in the computer field, can solve problems such as heavy maintenance workload, inability to use different operating systems, increase system complexity, etc., and achieve the effect of reducing maintenance workload
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0047] The following introduces Embodiment 1 of a Maven plug-in-based multi-dependency file extraction method provided by the present application, see figure 1 , embodiment one includes:
[0048] S101. Obtain the configuration file of the Maven plug-in, the configuration file is used to describe the initial location and the target location of the dependency, and the configuration file is updated as the dependency is updated;
[0049] S102. Obtain a state cache file generated during project compilation, where the state cache file is used to describe the extracted dependencies in the Jar package;
[0050] S103. Perform a cross-comparison between the configuration file and the state cache file to determine whether there is a changed dependency; if there is a changed dependency, go to S104, otherwise do not process;
[0051] S104. According to the configuration file, read the changed dependency from the corresponding initial location, and write the changed dependency into the cor...
Embodiment 2
[0069] Embodiment two specifically includes the following steps:
[0070] S201. Obtain the configuration file of the Maven plug-in when the trigger condition is met, the trigger condition is receiving a compilation instruction, the configuration file is used to describe the initial position and the target position of the dependency, and the configuration file follows the dependency updated to update;
[0071] In this embodiment, the structure of the configuration file is as follows figure 2 shown.
[0072] S202. Obtain a state cache file generated during project compilation, where the state cache file is used to describe the extracted dependencies in the Jar package;
[0073] S203. Using the MD5 algorithm, perform a cross-comparison between the configuration file and the state cache file to determine whether there is a changed dependency;
[0074] S204. If it exists, according to the configuration file, read the changed dependency from the corresponding initial location, a...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com