CN110968357A - Method and device for packaging maven item, storage medium and processor - Google Patents

Method and device for packaging maven item, storage medium and processor Download PDF

Info

Publication number
CN110968357A
CN110968357A CN201811158137.4A CN201811158137A CN110968357A CN 110968357 A CN110968357 A CN 110968357A CN 201811158137 A CN201811158137 A CN 201811158137A CN 110968357 A CN110968357 A CN 110968357A
Authority
CN
China
Prior art keywords
maven
packaging
item
project
configuration file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201811158137.4A
Other languages
Chinese (zh)
Other versions
CN110968357B (en
Inventor
朱学通
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Gridsum Technology Co Ltd
Original Assignee
Beijing Gridsum Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Gridsum Technology Co Ltd filed Critical Beijing Gridsum Technology Co Ltd
Priority to CN201811158137.4A priority Critical patent/CN110968357B/en
Publication of CN110968357A publication Critical patent/CN110968357A/en
Application granted granted Critical
Publication of CN110968357B publication Critical patent/CN110968357B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Abstract

The invention discloses a method for packaging a maven project, which comprises the steps of putting a start script into the maven project before packaging, and writing a storage directory of the start script in the maven project into a packaging configuration file. When the maven project is started, the startup script does not need to be written or copied from other places, the startup script can be positioned in the maven by reading the packed configuration file, and the startup script is run to start the maven project. The starting steps of the maven project are simplified, and the subsequent operation and maintenance are facilitated.

Description

Method and device for packaging maven item, storage medium and processor
Technical Field
The invention relates to the technical field of computers, in particular to a method and a device for packaging a maven project, a storage medium and a processor.
Background
With the popularity of java programming language, maven is also more and more widely used. maven is a tool for project management and automatic construction, and is widely used in the construction and packaging processes of java projects.
At present, many projects use maven, and the whole project is packaged into a jar file and then uploaded to a server. The conventional maven packaging mode is used for packaging all class files and configuration files of a project into a jar file, when a maven project is started, a start script either needs to be directly written or needs to be copied from other places, and the starting steps are complicated.
Disclosure of Invention
In view of the above, the present invention has been made to provide a method, an apparatus, a storage medium, and a processor for packaging a maven item that overcome or at least partially solve the above problems.
In order to achieve the above purpose, the invention provides the following specific technical scheme:
a method for packaging a maven item comprises
Creating a packaging configuration file in a maven project;
writing a storage directory of a start script in a maven project into the packaging configuration file;
and packaging the maven item.
Optionally, the method further includes:
creating a configuration module in a maven project, and adding a maven-assembly-plugin in a pom file of the configuration module, wherein the maven-assembly-plugin is used for reading the packaging configuration file.
Optionally, the method further includes:
uploading the compressed file generated after packaging to a server;
decompressing the compressed file to obtain the packaging configuration file, and reading the packaging configuration file to obtain a storage directory of the start script in the maven project;
and positioning the start script according to the storage directory of the start script in the maven item, and running the start script to start the maven item.
Optionally, the method further includes:
and writing the compression format of the maven item, the storage directory of jar files depended by the maven item in the maven item, the storage directories of various configuration files in the maven item and the storage directory of log files in the maven item into the packaging configuration file.
Optionally, the method further includes:
receiving a modification instruction, wherein the modification instruction comprises an object to be modified and modification content;
reading the packaging configuration file, and determining a storage directory of the object to be modified in a maven project;
and positioning the object to be modified according to the storage directory of the object to be modified in the maven project, and modifying the object to be modified according to the modification content.
A packaging apparatus for a maven item, comprising:
the configuration file creating unit is used for creating a packaging configuration file in the maven project;
the first writing unit is used for writing the storage directory of the start script in the maven item into the packaging configuration file;
and the packing unit is used for packing the maven item.
Optionally, the apparatus further comprises:
the configuration module creating unit is used for creating a configuration module in a maven project, adding a maven-assembly-plugin in a pot file of the configuration module, and the maven-assembly-plugin is used for reading the packaging configuration file.
Optionally, the apparatus further comprises:
the uploading unit is used for uploading the compressed file generated after packaging to a server;
the decompression unit is used for decompressing the compressed file to obtain the packaging configuration file, and reading the packaging configuration file to obtain a storage directory of the start script in the maven project;
and the item starting unit is used for positioning the starting script according to the storage directory of the starting script in the maven item and running the starting script to start the maven item.
Optionally, the apparatus further comprises:
and the second writing unit is used for writing the compression format of the maven item, the storage directory of jar files depended by the maven item in the maven item, the storage directories of various configuration files in the maven item and the storage directory of log files in the maven item into the packaging configuration file.
Optionally, the apparatus further comprises:
a modification instruction receiving unit, configured to receive a modification instruction, where the modification instruction includes an object to be modified and modification content;
the reading unit is used for reading the packaging configuration file and determining a storage directory of the object to be modified in the maven item;
and the modification unit is used for positioning the object to be modified according to the storage directory of the object to be modified in the maven project and modifying the object to be modified according to the modification content.
A storage medium including a stored program,
wherein, when the program runs, the device on which the storage medium is located is controlled to execute the packaging method of the maven item.
A processor for running a program,
wherein the program executes the packaging method of the maven item in any one of the above modes when running.
By means of the technical scheme, the method for packaging the maven item, provided by the invention, puts the start script into the maven item before packaging, and writes the storage directory of the start script in the maven item into the packaging configuration file. When the maven project is started, the startup script does not need to be written or copied from other places, the startup script can be positioned in the maven by reading the packed configuration file, and the startup script is run to start the maven project. The starting steps of the maven project are simplified, and the subsequent operation and maintenance are facilitated.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 is a flow chart illustrating a packaging method of a maven project disclosed by the embodiment of the invention;
FIG. 2 is a flow chart of another method for packaging a maven project disclosed by the embodiment of the invention;
FIG. 3 is a flow chart of another method for packaging a maven project disclosed by the embodiment of the invention;
fig. 4 shows a schematic structural diagram of a packaging apparatus for a maven item disclosed in the embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
The applicant researches the packaging method of the existing maven project, and finds that the existing maven project packages all class files and configuration files of the project into a jar file during packaging, and when the maven project is started, a start script either needs to be directly written or needs to be copied from other places, so that the starting steps are complicated.
In order to solve the above problem, this embodiment discloses a method for packaging a maven item, which is applied to a maven item management tool, please refer to fig. 1, and the method for packaging a maven item includes the following steps:
s101: creating a packaging configuration file in a maven project;
specifically, the packaging configuration file is an xml file, and the xml file is a file matched with the maven item and is a file that can be read by the maven item.
The packaging configuration file is used for configuring various files and parameters required for packaging the maven item.
S102: writing the storage directory of the start script in the maven project into a packaging configuration file;
the startup script is a script required by startup of a maven item, the maven item can be started by running the startup script, the startup script is put into the maven item, a storage directory of the startup script in the maven item represents a storage path of the startup script in the maven item, and the startup script can be positioned in the maven item by reading the storage directory of the startup script in the maven item.
S103: and packaging the maven item.
Specifically, the packing command is executed, all files in the maven project are packed, a compressed file is obtained, and the format of the compressed file is consistent with the compression format configured in the packing configuration file.
In the method for packaging a maven item disclosed in this embodiment, before packaging, a start script is put into the maven item, and a storage directory of the start script in the maven item is written into a packaging configuration file. When the maven project is started, the startup script does not need to be written or copied from other places, the startup script can be positioned in the maven by reading the packed configuration file, and the startup script is run to start the maven project. The starting steps of the maven project are simplified, and the subsequent operation and maintenance are facilitated.
In order to ensure that the packaging configuration file can be read by a maven item, a corresponding plug-in needs to be added when packaging the maven item, specifically, referring to fig. 2, the embodiment discloses an overall process for packaging the maven item, and specifically includes the following steps:
s201: creating a configuration module in a maven project, and adding a maven-assembly-plugin in a pom file of the configuration module;
in particular, pom is a basic component when working with maven, and is an xml file, and pom is placed under the project root directory, and the file is named as pom.
The maven-assembly-plug-in is a plug-in carried by a maven tool, and is added to the pom file for reading the packaging configuration file.
S202: creating a packaging configuration file in a maven project;
s203: writing the storage directory of the start script in the maven project into a packaging configuration file;
s204: packaging the maven item;
s205: uploading the compressed file generated after packaging to a server;
the server is a server which needs to deploy a maven project, and a compressed file generated after the maven project is packaged is uploaded to the server, so that the maven project can be conveniently deployed after subsequent decompression.
S206: decompressing the compressed file to obtain a packaging configuration file, and reading the packaging configuration file to obtain a storage directory of the start script in the maven project;
specifically, a maven-assembly-plugin plug-in is used for reading the packaging configuration file.
S207: and positioning the start script according to the storage directory of the start script in the maven item, and running the start script to start the maven item.
According to the method for packaging the maven project, reading of the packaged configuration file is achieved by adding the maven-assembly-plug-in into the pom file in the created configuration module, the compressed file generated after packaging is uploaded to the server, deployment of the subsequent maven project is facilitated, the packaged file is decompressed, the packaged configuration file is obtained, the storage directory of the start script in the maven project is read, the start script is located according to the storage directory of the start script in the maven project, and the maven project is started by running the start script. When the maven project is started, the problem that the start script is written or copied from other places in the prior art is solved, the start script can be positioned in the maven by reading the packed configuration file, and the start script is run to start the maven project. The starting steps of the maven project are simplified, and the subsequent operation and maintenance are facilitated.
The applicant researches an existing packaging method for a maven project, and also finds that when the existing packaging method for the maven project modifies a configuration file of the project, a jar file must be opened by using a command, or the configuration file is newly created, and the newly created configuration file is loaded when the new configuration file is started, so that the project operation and maintenance are very inflexible, and in order to solve the technical problem, please refer to fig. 3, the embodiment discloses a packaging method for a maven project, which specifically includes the following steps:
s301: creating a configuration module in a maven project, and adding a maven-assembly-plugin in a pom file of the configuration module;
the maven-assembly-plugin is used for reading the packaging configuration file.
S302: creating a packaging configuration file in a maven project;
s303: writing the storage directory of the start script in the maven project into a packaging configuration file;
s304: writing the compression format of the maven item, the storage directory of jar files depended by the maven item in the maven item, the storage directories of various configuration files in the maven item and the storage directories of log files in the maven item into a packaging configuration file;
the compression format of the maven item is configured according to the deployment environment of the maven item, and can be a zip format, a rar format and the like.
The jar file depended by the maven project is the jar file required by running the maven project.
The various profiles are the various profiles required for the maven project other than the package profile.
The log file is a file for recording logs in the operation process of the maven project.
And writing the storage directories of the various files into the packaging configuration file to store the project files in a classified manner.
S305: receiving a modification instruction, wherein the modification instruction comprises an object to be modified and modification content;
it should be noted that, a technician may modify the configuration file before packaging the maven project, or may modify the configuration file during the operation of the maven project, and this embodiment describes modifying the configuration file before packaging the maven project.
The object to be modified can be various configuration files required by a maven project, and can also be a compressed format of the maven project, storage directories of various files and the like. The modified content is the content modified by the object to be modified, for example, the original compression format of the maven item is modified into the new compression format.
S306: reading the packaging configuration file, and determining a storage directory of the object to be modified in the maven project;
s307: positioning the object to be modified according to the storage directory of the object to be modified in the maven project, and modifying the object to be modified according to the modified content;
s308: packaging the maven item;
in the method for packaging a maven project disclosed in this embodiment, the storage directories of various files of the maven project are written in the packaging configuration file, so that the project files are stored in a classified manner. And the configuration file in the maven project is modified by reading the packed configuration file, so that the problem that a jar file is opened by using a command or a new configuration file is used for modifying the project configuration file in the prior art is solved, and the project operation and maintenance are flexible.
Referring to fig. 4, the present embodiment discloses a method for packaging a maven item, which correspondingly discloses a device for packaging a maven item, including:
a configuration file creating unit 401, configured to create a packaging configuration file in a maven project;
a first writing unit 402, configured to write a storage directory of the start script in the maven item into the package configuration file;
and a packing unit 403, configured to pack the maven item.
Optionally, the apparatus further comprises:
the configuration module creating unit is used for creating a configuration module in a maven project, adding a maven-assembly-plugin in a pot file of the configuration module, and the maven-assembly-plugin is used for reading the packaging configuration file.
Optionally, the apparatus further comprises:
the uploading unit is used for uploading the compressed file generated after packaging to a server;
the decompression unit is used for decompressing the compressed file to obtain the packaging configuration file, and reading the packaging configuration file to obtain a storage directory of the start script in the maven project;
and the item starting unit is used for positioning the starting script according to the storage directory of the starting script in the maven item and running the starting script to start the maven item.
Optionally, the apparatus further comprises:
and the second writing unit is used for writing the compression format of the maven item, the storage directory of jar files depended by the maven item in the maven item, the storage directories of various configuration files in the maven item and the storage directory of log files in the maven item into the packaging configuration file.
Optionally, the apparatus further comprises:
a modification instruction receiving unit, configured to receive a modification instruction, where the modification instruction includes an object to be modified and modification content;
the reading unit is used for reading the packaging configuration file and determining a storage directory of the object to be modified in the maven item;
and the modification unit is used for positioning the object to be modified according to the storage directory of the object to be modified in the maven project and modifying the object to be modified according to the modification content.
In the packaging apparatus for a maven item disclosed in this embodiment, before packaging, the start script is put into the maven item, and the storage directory of the start script in the maven item is written into the packaging configuration file. When the maven project is started, the startup script does not need to be written or copied from other places, the startup script can be positioned in the maven by reading the packed configuration file, and the startup script is run to start the maven project. The starting steps of the maven project are simplified, and the subsequent operation and maintenance are facilitated.
The packaging device of the maven item comprises a processor and a memory, wherein the configuration file creating unit, the first writing unit, the packaging unit, the configuration module creating unit, the uploading unit, the decompressing unit, the item starting unit, the second writing unit, the modification instruction receiving unit, the reading unit, the modifying unit and the like are stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.
The processor comprises a kernel, and the kernel calls the corresponding program unit from the memory. The kernel can be set to be one or more, and the packing efficiency of the maven item is improved by adjusting the kernel parameters.
The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip.
An embodiment of the present invention provides a storage medium, on which a program is stored, where the program, when executed by a processor, implements a packing method for a maven item.
The embodiment of the invention provides a processor, which is used for running a program, wherein the program executes the packaging method of the maven item when running.
The embodiment of the invention provides equipment, which comprises a processor, a memory and a program which is stored on the memory and can run on the processor, wherein the processor executes the program and realizes the following steps:
creating a packaging configuration file in a maven project;
writing a storage directory of a start script in a maven project into the packaging configuration file;
and packaging the maven item.
Further, the method further comprises:
creating a configuration module in a maven project, and adding a maven-assembly-plugin in a pom file of the configuration module, wherein the maven-assembly-plugin is used for reading the packaging configuration file.
Further, the method further comprises:
uploading the compressed file generated after packaging to a server;
decompressing the compressed file to obtain the packaging configuration file, and reading the packaging configuration file to obtain a storage directory of the start script in the maven project;
and positioning the start script according to the storage directory of the start script in the maven item, and running the start script to start the maven item.
Further, the method further comprises:
and writing the compression format of the maven item, the storage directory of jar files depended by the maven item in the maven item, the storage directories of various configuration files in the maven item and the storage directory of log files in the maven item into the packaging configuration file.
Further, the method further comprises:
receiving a modification instruction, wherein the modification instruction comprises an object to be modified and modification content;
reading the packaging configuration file, and determining a storage directory of the object to be modified in a maven project;
and positioning the object to be modified according to the storage directory of the object to be modified in the maven project, and modifying the object to be modified according to the modification content.
The device herein may be a server, a PC, a PAD, a mobile phone, etc.
The present application further provides a computer program product adapted to perform a program for initializing the following method steps when executed on a data processing device:
creating a packaging configuration file in a maven project;
writing a storage directory of a start script in a maven project into the packaging configuration file;
and packaging the maven item.
Further, the method further comprises:
creating a configuration module in a maven project, and adding a maven-assembly-plugin in a pom file of the configuration module, wherein the maven-assembly-plugin is used for reading the packaging configuration file.
Further, the method further comprises:
uploading the compressed file generated after packaging to a server;
decompressing the compressed file to obtain the packaging configuration file, and reading the packaging configuration file to obtain a storage directory of the start script in the maven project;
and positioning the start script according to the storage directory of the start script in the maven item, and running the start script to start the maven item.
Further, the method further comprises:
and writing the compression format of the maven item, the storage directory of jar files depended by the maven item in the maven item, the storage directories of various configuration files in the maven item and the storage directory of log files in the maven item into the packaging configuration file.
Further, the method further comprises:
receiving a modification instruction, wherein the modification instruction comprises an object to be modified and modification content;
reading the packaging configuration file, and determining a storage directory of the object to be modified in a maven project;
and positioning the object to be modified according to the storage directory of the object to be modified in the maven project, and modifying the object to be modified according to the modification content.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). The memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (10)

1. A method for packaging a maven item is characterized by comprising
Creating a packaging configuration file in a maven project;
writing a storage directory of a start script in a maven project into the packaging configuration file;
and packaging the maven item.
2. The method of claim 1, further comprising:
creating a configuration module in a maven project, and adding a maven-assembly-plugin in a pom file of the configuration module, wherein the maven-assembly-plugin is used for reading the packaging configuration file.
3. The method of claim 1, further comprising:
uploading the compressed file generated after packaging to a server;
decompressing the compressed file to obtain the packaging configuration file, and reading the packaging configuration file to obtain a storage directory of the start script in the maven project;
and positioning the start script according to the storage directory of the start script in the maven item, and running the start script to start the maven item.
4. The method of claim 1, further comprising:
and writing the compression format of the maven item, the storage directory of jar files depended by the maven item in the maven item, the storage directories of various configuration files in the maven item and the storage directory of log files in the maven item into the packaging configuration file.
5. The method of claim 1, further comprising:
receiving a modification instruction, wherein the modification instruction comprises an object to be modified and modification content;
reading the packaging configuration file, and determining a storage directory of the object to be modified in a maven project;
and positioning the object to be modified according to the storage directory of the object to be modified in the maven project, and modifying the object to be modified according to the modification content.
6. An apparatus for packaging a maven item, comprising:
the configuration file creating unit is used for creating a packaging configuration file in the maven project;
the first writing unit is used for writing the storage directory of the start script in the maven item into the packaging configuration file;
and the packing unit is used for packing the maven item.
7. The apparatus of claim 6, further comprising:
the configuration module creating unit is used for creating a configuration module in a maven project, adding a maven-assembly-plugin in a pot file of the configuration module, and the maven-assembly-plugin is used for reading the packaging configuration file.
8. The apparatus of claim 6, further comprising:
the uploading unit is used for uploading the compressed file generated after packaging to a server;
the decompression unit is used for decompressing the compressed file to obtain the packaging configuration file, and reading the packaging configuration file to obtain a storage directory of the start script in the maven project;
and the item starting unit is used for positioning the starting script according to the storage directory of the starting script in the maven item and running the starting script to start the maven item.
9. A storage medium characterized in that the storage medium includes a stored program,
wherein, when the program runs, the device of the storage medium is controlled to execute the packaging method of the maven item in any one of the claims 1-5.
10. A processor, for running a program,
wherein the program when running executes the packaging method of a maven item according to any one of claims 1-5.
CN201811158137.4A 2018-09-30 2018-09-30 Method and device for packaging maven item, storage medium and processor Active CN110968357B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811158137.4A CN110968357B (en) 2018-09-30 2018-09-30 Method and device for packaging maven item, storage medium and processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811158137.4A CN110968357B (en) 2018-09-30 2018-09-30 Method and device for packaging maven item, storage medium and processor

Publications (2)

Publication Number Publication Date
CN110968357A true CN110968357A (en) 2020-04-07
CN110968357B CN110968357B (en) 2023-04-07

Family

ID=70028822

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811158137.4A Active CN110968357B (en) 2018-09-30 2018-09-30 Method and device for packaging maven item, storage medium and processor

Country Status (1)

Country Link
CN (1) CN110968357B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111782730A (en) * 2020-07-09 2020-10-16 腾讯科技(深圳)有限公司 File uploading method and device and storage medium
CN112965714A (en) * 2021-03-08 2021-06-15 平安国际智慧城市科技股份有限公司 Method, device, equipment and storage medium for quickly updating codes
CN113326481A (en) * 2021-06-02 2021-08-31 北京联创新天科技有限公司 Method, device, system and medium for automatically constructing and packaging project codes
CN113407349A (en) * 2021-07-17 2021-09-17 广州汇思信息科技股份有限公司 Deployment method and device of learning platform module and computer equipment
CN115061741A (en) * 2022-05-31 2022-09-16 北京奇艺世纪科技有限公司 Target plug-in operation method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100153920A1 (en) * 2008-12-17 2010-06-17 Michael Stavros Bonnet Method for building and packaging sofware
CN106815052A (en) * 2017-01-10 2017-06-09 南威软件股份有限公司 A kind of method of the rapid deployment system for being adapted to multi-environment configuration
CN106951357A (en) * 2017-05-10 2017-07-14 焦点科技股份有限公司 A kind of server end application issue monitoring method and device based on finger daemon
CN107577469A (en) * 2017-08-21 2018-01-12 厦门悦讯教育科技有限公司 A kind of Software package method for release management
CN107817978A (en) * 2017-09-28 2018-03-20 聚好看科技股份有限公司 The generation method and device of a kind of executable file

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100153920A1 (en) * 2008-12-17 2010-06-17 Michael Stavros Bonnet Method for building and packaging sofware
CN106815052A (en) * 2017-01-10 2017-06-09 南威软件股份有限公司 A kind of method of the rapid deployment system for being adapted to multi-environment configuration
CN106951357A (en) * 2017-05-10 2017-07-14 焦点科技股份有限公司 A kind of server end application issue monitoring method and device based on finger daemon
CN107577469A (en) * 2017-08-21 2018-01-12 厦门悦讯教育科技有限公司 A kind of Software package method for release management
CN107817978A (en) * 2017-09-28 2018-03-20 聚好看科技股份有限公司 The generation method and device of a kind of executable file

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111782730A (en) * 2020-07-09 2020-10-16 腾讯科技(深圳)有限公司 File uploading method and device and storage medium
CN111782730B (en) * 2020-07-09 2021-07-06 腾讯科技(深圳)有限公司 File uploading method and device and storage medium
CN112965714A (en) * 2021-03-08 2021-06-15 平安国际智慧城市科技股份有限公司 Method, device, equipment and storage medium for quickly updating codes
CN113326481A (en) * 2021-06-02 2021-08-31 北京联创新天科技有限公司 Method, device, system and medium for automatically constructing and packaging project codes
CN113326481B (en) * 2021-06-02 2023-07-14 北京联创新天科技有限公司 Project code automatic construction and packaging method, device, system and medium
CN113407349A (en) * 2021-07-17 2021-09-17 广州汇思信息科技股份有限公司 Deployment method and device of learning platform module and computer equipment
CN115061741A (en) * 2022-05-31 2022-09-16 北京奇艺世纪科技有限公司 Target plug-in operation method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN110968357B (en) 2023-04-07

Similar Documents

Publication Publication Date Title
CN110968357B (en) Method and device for packaging maven item, storage medium and processor
US10579355B2 (en) Docker container operating method and apparatus
CN109960517B (en) Method, device and system for manufacturing mirror image file and storage medium
CN110018984A (en) A kind of conversion method and device of file format
CN103577212A (en) System starting preloading method and device
CN112286829B (en) Test script generation method and device
CN111831396A (en) Docker software and hardware integration-based delivery method and device
CN111324359A (en) Plug-in deployment method and device
CN111414231A (en) Method and equipment for mutual conversion between virtual machine mirror image and container mirror image
CN109558143B (en) Method and device for deploying applications in cluster
CN108874379B (en) Page processing method and device
CN114860269A (en) K8S-based product pushing method, device and medium
CN111124525A (en) Website function implementation method and device
CN106648567B (en) Data acquisition method and device
CN112799778A (en) Container application starting method, device and medium
CN110968333B (en) Configuration information replacement method and device, machine-readable storage medium and processor
CN109976728B (en) Method and device for generating native application program and mobile terminal
CN114239098A (en) CAD drawing processing method and device, storage medium and processor
CN110969461B (en) Method and device for processing public number information, storage medium and processor
CN110554867B (en) Application processing method and device
WO2019157891A1 (en) Application installation method and application installer generating method
CN110968879A (en) Data processing method and device based on block chain
CN110968709B (en) Data transmission method and related system
CN111913720A (en) Program deployment method and device
CN115269562B (en) Database management method and device, storage medium and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant