Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

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

Pending Publication Date: 2020-11-06
HANGZHOU ANHENG INFORMATION TECH CO LTD
View PDF0 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0008] The purpose of this application is to provide a multi-dependency file extraction method, device, device and readable storage medium based on Maven plug-ins, to solve the current solution for extracting files from Jar packages, which often increases system complexity and maintenance workload Large, unable to be used in different operating systems, project upgrades lead to script failure

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Multi-dependency-item file extraction method and device based on Maven plug-in
  • Multi-dependency-item file extraction method and device based on Maven plug-in
  • Multi-dependency-item file extraction method and device based on Maven plug-in

Examples

Experimental program
Comparison scheme
Effect test

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...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a multi-dependency-item file extraction method and device based on a Maven plug-in, which is implemented on the basis of the Maven plug-in, sets a source position and a targetposition of a dependent item through a self-defined configuration file, and provides a function of extracting dependent item files from a specified Jar packet to the target position in batches. A third-party server or a folder and the like do not need to be introduced, so that the system complexity is reduced. The extraction process is finished based on a Maven insert. As the Maven only depends ona cross-platform operation environment of JDK, the method is not related to the platform or a version. There is no need to require additional script or system to support. In addition, the invention provides a Maven plug-in-based multi-dependent-item file extraction device and apparatus and a readable storage medium, and the technical effect of the Maven plug-in-based multi-dependent-item file extraction device and equipment corresponds to the technical effect of the method.

Description

technical field [0001] The present application relates to the field of computer technology, in particular to a Maven plug-in-based multi-dependency file extraction method, device, equipment and readable storage medium. Background technique [0002] For typical large-scale projects, how to efficiently, elegantly, flexibly, and automatically manage various files of multiple dependencies, so that they can be effectively integrated with the main project, and at the same time be able to fine-grainedly manage the introduction or import of each dependency according to different scenarios Shielded files and file lists are issues that must be resolved. [0003] For different architectures, different programming / language models, solutions to these problems vary. For a typical Spring project, the package name convention and class loading mechanism provided by Java itself can ensure that all Java classes inside the plug-in are loaded into the system on demand. The problem is that afte...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F8/71G06F8/41
CPCG06F8/71G06F8/433
Inventor 谭波涛范渊
Owner HANGZHOU ANHENG INFORMATION TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products