CN109766128A - Generation method, device and the storage medium of project aggregated report - Google Patents

Generation method, device and the storage medium of project aggregated report Download PDF

Info

Publication number
CN109766128A
CN109766128A CN201811638819.5A CN201811638819A CN109766128A CN 109766128 A CN109766128 A CN 109766128A CN 201811638819 A CN201811638819 A CN 201811638819A CN 109766128 A CN109766128 A CN 109766128A
Authority
CN
China
Prior art keywords
engineering
project
source code
jar packet
polymerize
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.)
Pending
Application number
CN201811638819.5A
Other languages
Chinese (zh)
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.)
China Mobile Communications Group Co Ltd
MIGU Culture Technology Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
MIGU Culture 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 China Mobile Communications Group Co Ltd, MIGU Culture Technology Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN201811638819.5A priority Critical patent/CN109766128A/en
Publication of CN109766128A publication Critical patent/CN109766128A/en
Pending legal-status Critical Current

Links

Abstract

The invention discloses a kind of generation methods of project aggregated report, comprising: obtains at least one project, determines at least one first engineering according at least one described project;At least one described first engineering is added to preset second engineering;Using the second engineering added at least one first engineering as purpose project, the source code of the purpose project is polymerize, obtains the project aggregated report at least one first engineering.The invention also discloses the generating means and computer readable storage medium of a kind of project aggregated report.

Description

Generation method, device and the storage medium of project aggregated report
Technical field
The present invention relates to Internet information technique more particularly to a kind of generation method, device and the meters of project aggregated report Calculation machine readable storage medium storing program for executing.
Background technique
Under micro services framework, a technical team usually multiple projects good at managing, each project belongs to different points The warehouse cloth version control system (Git).For generation quality report, generally continuous integrating can be done to projects on Jenkins, A project aggregated report is finally pooled manually.The Jenkins is a continuous integrating tool, it can periodically compile, Respective code, operation integration testing are run, operation result is illustrated as project aggregated report.The project aggregated report of acquisition refers to During the continuous integrating of software project, reported by the code quality of the generations such as some static check tools and compilation tool; It may include the mass numbers such as size of code, ratio of defects, test coverage, compiling packing result in the code quality report generated According to.
Since projects fractionation granularity is thinner under micro services framework, a technical team may need to manage more than ten simultaneously and arrive Tens projects need technical staff manually by the corresponding report of multiple projects using the generation method of above-mentioned project aggregated report It condenses together, the formation efficiency of project aggregated report is low.
Summary of the invention
In view of this, the main purpose of the present invention is to provide generation method, device and the meters of a kind of project aggregated report Calculation machine readable storage medium storing program for executing.
In order to achieve the above objectives, the technical scheme of the present invention is realized as follows:
The embodiment of the invention provides a kind of generation methods of project aggregated report, which comprises
At least one project is obtained, at least one first engineering is determined according at least one described project;By described at least One the first engineering is added to preset second engineering;
Using the second engineering added at least one first engineering as purpose project, to the source of the purpose project Code is polymerize, and the project aggregated report at least one first engineering is obtained.
In above scheme, it is described at least one described first engineering is added to preset second engineering before, the method Further include:
In the configuration file of second engineering, at least one described first engineering is added to the father of second engineering Rely on description;
It is relied on and is described according to the father, the father and son of at least one described first engineering of foundation and second engineering, which relies on, closes System.
In above scheme, before the source code to the purpose project polymerize, which comprises
Determine at least one the first jar packet needed for first engineering;The first jar packet be first engineering without The jar packet that method is obtained by the public packet of bottom;
Dependence description of the addition at least one the first jar packet, institute in the configuration file of second engineering It states the first engineering and at least one described the first jar packet is obtained according to the dependence description in the configuration file.
In above scheme, before the source code to the purpose project polymerize, which comprises
It determines at least one described first engineering comprising public work and when the public work relies on the 2nd jar packet, It modifies in the configuration file of the public work and is described for the dependence of jar packet, to cancel the public work to described second The dependence of jar packet;The 2nd jar packet is the jar packet for including except the privately owned warehouse maven for being deployed with second engineering Outer third party's jar packet.
In above scheme, before the source code to the purpose project polymerize, the method also includes:
It obtains the source code of second engineering and is stored in root;
The source code for successively obtaining at least one first engineering, creates at least one subdirectory under the root; The corresponding source code for saving first engineering of one subdirectory;
Tree-like directory is obtained according to the root and at least one described subdirectory.
In above scheme, the source code to the purpose project polymerize, obtain for it is described at least one first The project aggregated report of engineering, comprising:
Successively it is polymerize according to source code of the tree-like directory to the purpose project, is directed to according to polymerization result The project aggregated report of at least one first engineering.
The embodiment of the invention provides a kind of generating means of project aggregated report, described device includes: the first processing mould Block, Second processing module;Wherein,
The first processing module determines at least one according at least one described project for obtaining at least one project A first engineering;At least one described first engineering is added to preset second engineering;
The Second processing module, for the second engineering of at least one first engineering will to be added with as target work Journey polymerize the source code of the purpose project, obtains the project aggregated report at least one first engineering.
In above scheme, the Second processing module obtains before polymerizeing specifically for the source code to the purpose project It takes the source code of second engineering and is stored in root;The source code for successively obtaining at least one first engineering, described At least one subdirectory is created under root;The corresponding source code for saving first engineering of one subdirectory;According to The root and at least one described subdirectory obtain tree-like directory;According to the tree-like directory to the source of the purpose project Code is successively polymerize, and obtains the project aggregated report at least one first engineering according to polymerization result.
The embodiment of the invention provides a kind of generating means of project aggregated report, described device includes: processor and use In the memory for the computer program that storage can be run on a processor;Wherein,
The processor is for executing any one above-described project aggregated report when running the computer program Generation method the step of.
The embodiment of the invention also provides a kind of computer readable storage mediums, are stored thereon with computer program, described The step of generation method of any one above-described project aggregated report is realized when computer program is executed by processor.
The generation method of project aggregated report, device and computer readable storage medium provided by the embodiment of the present invention, At least one project is obtained, at least one first engineering is determined according at least one described project;Will it is described at least one first Engineering is added to preset second engineering;Will the second engineering added at least one first engineering as purpose project, The source code of the purpose project is polymerize, the project aggregated report at least one first engineering is obtained.This hair In bright embodiment, being established according to each first engineering and the second engineering has hierarchical relationship purpose project, to can determine each first Relationship between engineering;It can determine the relationship between projects according to the relationship between each first engineering, allow Jenkins disposable It checks multiple first engineerings, to generate a project aggregated report for being directed to multiple projects, improves the generation of project aggregated report Efficiency.
Detailed description of the invention
Fig. 1 is a kind of flow diagram of the generation method of project aggregated report provided in an embodiment of the present invention;
Fig. 2 is the flow diagram of the generation method of another project aggregated report provided in an embodiment of the present invention;
Fig. 3 is a kind of structural schematic diagram of the generating means of project aggregated report provided in an embodiment of the present invention;
Fig. 4 is the structural schematic diagram of the generating means of another project aggregated report provided in an embodiment of the present invention.
Specific embodiment
In various embodiments of the present invention, at least one project is obtained, is determined at least according at least one described project One the first engineering;At least one described first engineering is added to preset second engineering;Will added with it is described at least one Second engineering of the first engineering polymerize the source code of the purpose project as purpose project, obtains for described at least The project aggregated report of one the first engineering.
Below with reference to embodiment, the present invention is further described in more detail.
Fig. 1 is a kind of flow diagram of the generation method of project aggregated report provided in an embodiment of the present invention;The side Method can be applied to server;As shown in Figure 1, which comprises
Step 101 obtains at least one project, determines at least one first engineering according at least one described project;It will At least one described first engineering is added to preset second engineering.
Here, each first engineering can be belonging respectively to different projects, and the project can be belonging respectively to the different storehouses Git Library, i.e., each first engineering can belong to the different warehouses Git.The Git is the distributed version control system of an open source, Can effectively, the processing of high speed is from very little to very big Item version management.
Here, for for each project, one or more first engineerings can be determined.
It is described that at least one first engineering is determined according at least one project, comprising: according at least one described project Each project determine at least one first engineering.
Specifically, before the step 101, which comprises obtain preset second engineering.
Here, second engineering can be an empty engineering;I.e. described second engineering had both been not used in storage service number According to also not executing business operation.
It is described to obtain preset second engineering, comprising: to create empty engineering, addition is for carrying out quality in the engineering It detects to obtain the tool of project aggregated report;Using the engineering after addition tool as second engineering.
Here, the tool is quality examination tool needed for generation project aggregated report, specifically can be used for carrying out quiet State inspection and coverage rate inspection etc..The quality examination tool can use existing tool, therefore which is not described herein again.Specifically The quality examination can be written by the configuration file of the engineering (POM, Project Object Model) file The corresponding code of tool or write-in obtain the description of the quality examination tool, and the quality examination Reporting Tools are added to The engineering.
Here, the POM file is an extensible markup language (XML, Extensible Markup Language) The configuration file of format;Each engineering is corresponding with its POM file.The POM file is corresponding for describing its described engineering Essential information of maven project, such as groupId, artifactId, version etc., can also to the privately owned warehouse maven, beat Packet form, dependence etc. are configured.
It is specifically, described that at least one described first engineering is added to preset second engineering, comprising:
In the configuration file of second engineering, i.e. POM file, add each first at least one described first engineering Engineering relies on description to the father of second engineering;
It is relied on and is described according to the father, establish each first engineering and second engineering at least one described first engineering Father and son's dependence.After establishing dependence, each first engineering can be added to second engineering.
Here, addition relies on description to the father of second engineering in the POM file of acceptable each first engineering, and father relies on Description can be identical configuration description, to reduce the workload being respectively configured.
Description is relied on by addition father, by corresponding first work of projects in multiple warehouses Git under Jenkins framework Journey is added to the father's engineering of second engineering, i.e. described second engineering as first engineering as sub- engineering.
The step 101, further includes: after each first engineering is added to second engineering, by second engineering department Administration is into the privately owned warehouse maven, so that each first engineering can be quoted when generating project aggregated report.
It should be noted that there is no spring boot since above-mentioned second engineering sheet is as an empty engineering The engineering (public work that services as based on) of main function may be reported when being deployed to the privately owned warehouse maven It is wrong: Unable to find main class.Therefore, in order to by second project plan to the privately owned warehouse the maven In, it modifies to the configuration file of second engineering.It specifically can be by increasing in the maven plug-in unit in the second engineering Relevant configuration to modify the configuration file of second engineering, match by the correlation that increases in the maven plug-in unit in the second engineering It sets, comprising: increase layout section in the spring-boot-maven-plugin subboard in the maven plug-in unit in the second engineering Point:<configuration>node, and increase layout configuration in the node:<layout>nONE</layout>.
Step 102, will the second engineering added at least one first engineering as purpose project, to the target The source code of engineering is polymerize, and the project aggregated report at least one first engineering is obtained.
Specifically, before the source code to the purpose project polymerize, which comprises
Determine at least one the first jar packet needed for each first engineering at least one described first engineering;Described first Jar packet is the jar packet that first engineering can not be obtained by the public packet of bottom;
Addition is described for the dependence of at least one the first jar packet in the configuration file of second engineering, from And each first engineering describes to obtain according to the dependence in the configuration file of second engineering at least one described first engineering At least one described the first jar packet.
Here, the first jar packet is the jar packet that first engineering can not be obtained by the public packet of bottom, such as is compiled The jar packet of phase dependence is translated, the jar packet that the compiling duration relies on may include: lombok, junit etc..It, can be in the present embodiment Dependence description in public packet is added in the POM file of the second engineering, i.e. father's engineering, such as passes through subordinate<dependency> Label, which increases, relies on configuration, and passes through<scope>compile</scope>the first jar packet is configured compiling duration by label It relies on, realizes that the dependence to the jar packet that can not be obtained by the public packet of bottom is modified.
Through the above steps, realize that the dependence to the jar packet that can not be obtained by the public packet of bottom be modified, with So that the jar packet that can not be obtained by the public packet of bottom can be compiled tool in the first engineering, i.e. sub- engineering compiling and draw With.
The jar packet is a kind of archive file, with " .jar " for extension name, is applied not only to carry out data compression and hair Cloth is also used to dispose encapsulation library, component and plug-in card program, and can directly be used as tools such as compilers.
In the present embodiment, it is contemplated that project is packaged (Package), also referred to as when dismissing cloth bag, it will usually the relied on Tripartite's jar packet is introduced into the jar packet of final project jar packet, i.e. purpose project, will pass through java-jar operation.But There are when public work in group engineering, third party's jar packet that public work can also be relied on is introduced into the jar packet of itself In, then relied on by the final project jar packet.This packing manner will lead to public work and be packaged the jar packet obtained too Greatly, be not easy to rely in the corresponding project of other sub- engineerings and the corresponding project of father's engineering and use, need support beat it is public Relied on third party's jar packet is not introduced when packet.
Specifically, before the source code to the purpose project polymerize, which comprises
It determines at least one described first engineering comprising public work and when the public work relies on the 2nd jar packet, It modifies in the configuration file of the public work and is described for the dependence of jar packet, to cancel the public work to described second The dependence of jar packet;The 2nd jar packet is the jar packet for including except the privately owned warehouse maven for being deployed with second engineering Outer third party's jar packet.
For example, it can be repacked by increasing in the POM file of public work in the present embodiment (repackage) configuration description, which is realized, modifies to packing process.It specifically can be by spring-boot-maven- Increase in plugin plug-in unit and executes<execution>node, and increase in the node<goal>repackage</goal>match It sets, completes to increase repackage configuration in the POM file of public work.
Specifically, before the source code to the purpose project polymerize, the method also includes:
It obtains the source code of second engineering and is stored in root;
The source code for successively obtaining each first engineering at least one described first engineering, creates at least under the root One subdirectory;The corresponding source code for saving first engineering of one subdirectory;
Tree-like directory is obtained according to the root and at least one described subdirectory.
Specifically, the source code to the purpose project polymerize, and obtains at least one described first engineering Project aggregated report, comprising:
Successively it is polymerize according to source code of the tree-like directory to the purpose project, is directed to according to polymerization result The project aggregated report of at least one first engineering.
Specifically, the source code (specially Git source code) of multiple first engineerings in purpose project on Jenkins is carried out When polymerization, the source code of father's engineering, i.e. the second engineering can be first downloaded;Again by the multiple-scms plug-in unit of father's engineering same At least one subdirectory is created under one catalogue, the source code of each sub- engineering is downloaded under newly created corresponding subdirectory, one The source code of sub- engineering is stored in a subdirectory;To obtain tree-like directory (the concrete application process for including father and son's engineering source code In can be shown in the workspace workspace root of Jenkins).
After obtaining the tree-like directory, is executed under the tree-like directory (i.e. workspace root) and check order, i.e., The order of the quality examination tool in the configuration file of second engineering is executed, successively obtains sub- engineering (i.e. in implementation procedure First engineering) source code and successively polymerize, it is final that produce a projects comprising all sub- engineering supervision results simultaneously poly- Close report.
It should be noted that consider exclusiveness when source code downloading, so that only allow to download a source code under same catalogue, Even first descend the source code of carrier engineering, when father's engineering source code to be downloaded can delete sub- engineering source code, therefore, in the present embodiment first Father's engineering is downloaded as top-level directory, then subdirectory is created under same catalogue by multiple-scms plug-in unit, and create The title of subdirectory with and father's engineering configuration file in the title of sub- engineering node it is consistent, so that Jenkins can will be downloaded Subdirectory checked as sub- engineering.
The above method provided in this embodiment is excessively repaired without hand-written script or to the corresponding engineering of projects Change, project is invaded less, automation inspection is facilitated;And support father and son's engineering to check in the different warehouses Git, it is convenient Father and son's engineering does rights management and branch management respectively.
Fig. 2 is the flow diagram of the generation method of another project aggregated report provided in an embodiment of the present invention;Such as Fig. 2 It is shown, which comprises
Step 201 obtains preset father's engineering.
Here, the second engineering described in described father's engineering, that is, Fig. 1 can be an empty engineering, i.e., father's engineering is neither For storage service data, business operation is not also executed.
Before the step 201, comprising: addition father's engineering.It specifically includes: writing corresponding configuration text for father's engineering Part, i.e. POM file, and the quality examination tool needed when generating project aggregated report is written to father when writing POM file In the POM file of engineering.
It should be noted that since above-mentioned father's engineering sheet is as an empty engineering, i.e., no spring boot main The engineering (public work that services as based on) of function may report an error when being deployed to the privately owned warehouse maven: Unable to find main class.Therefore, in order to by father's project plan into the privately owned warehouse the maven, to institute The POM file for stating father's engineering is modified.It specifically can be by increasing relevant configuration in the maven plug-in unit in father's engineering to repair Change the POM file of father's engineering, it is described to increase relevant configuration in the maven plug-in unit in father's engineering, comprising: in father's engineering Maven plug-in unit in spring-boot-maven-plugin subboard in increase arrangement nodes:<configuration>section Point, and increase layout configuration in the node:<layout>nONE</layout>.
At least one first engineering is added to father's engineering by step 202, the sub- engineering as father's engineering.
Specifically, first engineering is the corresponding engineering of project in multiple warehouses Git under Jenkins framework, will It is added to father's engineering as sub- engineering.And by father's project plan into the privately owned warehouse maven, so that sub- engineering can To be quoted when generating Jenkins project aggregated report.
It is described that at least one first engineering is added to father's engineering, comprising: in the POM file of father's engineering, It adds each first engineering at least one described first engineering and description is relied on to the father of father's engineering;It is relied on and is retouched according to the father It states, establishes father and son's dependence of each first engineering Yu father's engineering;After establishing dependence, each first engineering can be added Add to father's engineering.
Alternatively, the specified father to father's engineering can also be added in the POM file of multiple first engineerings relies on description, and It is unified in each first engineering to be described using identical dependence, so as to reduce the workload being respectively configured.
Step 203 modify to the dependence for the jar packet that can not be obtained by the public packet of bottom.
Specifically, after addition father's engineering and sub- engineering, it is contemplated that some jar packets can not be obtained by the public packet of bottom It takes, it need to be to that can not be modified by the dependence for the jar packet that the public packet of bottom obtains, so that the jar packet can be in sub- engineering Tool reference is compiled when compiling.
Specifically, before the source code to purpose project polymerize, which comprises
Determine at least one the first jar packet needed for each first engineering;The first jar packet is that first engineering can not The jar packet obtained by the public packet of bottom;Addition is at least one described the first jar in the POM file of father's engineering The dependence of packet describes, at least one described first engineering is according to the dependence description acquisition in the POM file of father's engineering At least one the first jar packet.
It for example, can be with when to that can not be modified by the public packet of bottom come the dependence of the jar packet obtained Dependence description in public packet is added in the POM file of father's engineering, such as increases to rely on by<dependency>label and match It sets, and passes through<scope>compile</scope>label configures compiling duration for the jar packet and relies on.
Step 204 modifies to packing process.
In view of micro services project is when being packaged, it will usually which third party's jar packet of dependence is introduced into final project jar Bao Zhong, will pass through java-jar operation.But there are when public work in group engineering, public work can also be relied on Third party's jar packet be introduced into the jar packet of itself, then relied on by the final project jar packet.This packing manner meeting Cause public work to be packaged the jar Bao Tai great obtained, is not easy in the corresponding project of other sub- engineerings and the corresponding item of father's engineering It relies on and uses in mesh, need support and do not introduce relied on third party's jar packet when playing public packet.
Specifically, before the source code to purpose project polymerize, which comprises
It determines at least one described first engineering comprising public work and when the public work relies on the 2nd jar packet, It modifies in the POM file of the public work and is described for the dependence of jar packet, to cancel the public work to described second The dependence of jar packet;The 2nd jar packet is the jar packet for including except the privately owned warehouse maven for being deployed with second engineering Outer third party's jar packet.
For example, it can be repacked by increasing in the POM file of public work in the present embodiment (repackage) configuration description, which is realized, modifies to packing process.It specifically can be by spring-boot-maven- Increase in plugin plug-in unit and executes<execution>node, and increase in the node<goal>repackage</goal>match It sets, completes to increase repackage configuration in the POM file of public work.
Step 205, will father's engineering added at least one first engineering as purpose project, to the target work The source code of journey is polymerize, and the project aggregated report at least one first engineering is obtained.
Specifically, the step 205, comprising: the source code of downloading father's engineering;Again by multiple-scms plug-in unit same Subdirectory is created under one catalogue, later by sub- engineering, the source code of i.e. each first engineering downloads under newly created corresponding sub directory; It is comprehensive to generate the tree-like directory for completely including father and son's engineering source code in the workspace root of Jenkins Inspection be ready;
After obtaining the tree-like directory, inspection order is executed in the tree-like directory, under i.e. above-mentioned workspace catalogue, The order of quality examination tool of the configuration in the POM file of father's engineering is executed, the source of sub- engineering is successively obtained in implementation procedure Code simultaneously successively polymerize, and final i.e. producible portion includes the project aggregated report of all sub- engineering supervision results simultaneously.
It should be noted that the exclusiveness when downloading of Git source code is considered, so that only allowing to download a source under same catalogue Code, even first descends the source code of carrier engineering, and when father's engineering source code to be downloaded can delete sub- engineering source code, therefore, the present embodiment Middle first downloading father's engineering creates subdirectory as top-level directory, then by multiple-scms plug-in unit under same catalogue, and creates The title for the subdirectory built with and the POM file of father's engineering in the title of sub- engineering node it is consistent, thus Jenkins can will The subdirectory of downloading is checked as sub- engineering.
Fig. 3 is a kind of structural schematic diagram of the generating means of project aggregated report provided in an embodiment of the present invention;Such as Fig. 3 institute Show, described device includes: first processing module 301 and Second processing module 302.
The first processing module 301 determines at least for obtaining at least one project according at least one described project One the first engineering;At least one described first engineering is added to preset second engineering.
The Second processing module 302, for the second engineering of at least one first engineering will to be added with as mesh Engineering is marked, the source code of the purpose project is polymerize, the project obtained at least one first engineering polymerize report It accuses.
Specifically, the first processing module 301, at least one described first engineering to be added to preset second Before engineering, in the configuration file of second engineering, at least one described first engineering is added to the father of second engineering Rely on description;It is relied on and is described according to the father, the father and son for establishing at least one described first engineering and second engineering relies on Relationship.
Specifically, the Second processing module 302 before polymerizeing for the source code to the purpose project, determines institute State at least one the first jar packet needed for the first engineering;The first jar packet is that first engineering can not be public by bottom Wrap the jar packet obtained;Addition is retouched for the dependence of at least one the first jar packet in the configuration file of second engineering It states, first engineering obtains at least one described the first jar packet according to the dependence description in the configuration file.
Specifically, the Second processing module 302 before polymerizeing for the source code to the purpose project, determines institute It states at least one first engineering comprising public work and when the public work relies on the 2nd jar packet, the modification public work It describes in the configuration file of journey for the dependence of jar packet, is closed with cancelling the public work to the dependence of the 2nd jar packet System;The 2nd jar packet is the third party jar in addition to the jar packet that the privately owned warehouse maven for being deployed with second engineering includes Packet.
Specifically, the Second processing module 302 before polymerizeing for the source code to the purpose project, obtains institute It states the source code of the second engineering and is stored in root;The source code for successively obtaining at least one first engineering, in described mesh At least one subdirectory is created under record;The corresponding source code for saving first engineering of one subdirectory;According to described Root and at least one described subdirectory obtain tree-like directory.
Specifically, the Second processing module 302, for according to the tree-like directory to the source code of the purpose project into Row successively polymerization obtains the project aggregated report at least one first engineering according to polymerization result.
It should be understood that the generating means of project aggregated report provided by the above embodiment are carrying out project aggregated report Generation method when, only with the division progress of above-mentioned each program module for example, can according to need and incite somebody to action in practical application Above-mentioned processing distribution is completed by different program modules, i.e., the internal structure of device is divided into different program modules, with complete At all or part of processing described above.In addition, the generating means and item of project aggregated report provided by the above embodiment The generation method embodiment of mesh aggregated report belongs to same design, and specific implementation process is detailed in embodiment of the method, here no longer It repeats.
Fig. 4 is the structural schematic diagram of the generating means of another project aggregated report provided in an embodiment of the present invention.It is described Device 40 includes: processor 401 and the memory 402 for storing the computer program that can be run on the processor; Wherein, the processor 401 for run the computer program when, execute: obtain at least one project, according to it is described at least One project determines at least one first engineering;At least one described first engineering is added to preset second engineering;It will add Added at least one first engineering the second engineering as purpose project, the source code of the purpose project is polymerize, Obtain the project aggregated report at least one first engineering.
In one embodiment, it when the processor 401 is also used to run the computer program, executes: by described at least Before one the first engineering is added to preset second engineering, in the configuration file of second engineering, addition described at least one A first engineering relies on description to the father of second engineering;Relied on and described according to the father, establish it is described at least one first Father and son's dependence of engineering and second engineering.
In one embodiment, it when the processor 401 is also used to run the computer program, executes: to the target Before the source code of engineering is polymerize, at least one the first jar packet needed for first engineering is determined;The first jar packet is The jar packet that first engineering can not be obtained by the public packet of bottom;It adds and is directed in the configuration file of second engineering The dependence of at least one the first jar packet describes, and first engineering describes to obtain according to the dependence in the configuration file At least one described the first jar packet.
In one embodiment, it when the processor 401 is also used to run the computer program, executes: to the target Before the source code of engineering is polymerize, determine at least one described first engineering comprising public work and the public work according to When relying the 2nd jar packet, modifies in the configuration file of the public work and described for the dependence of jar packet, it is described public to cancel Dependence of the engineering to the 2nd jar packet;The 2nd jar packet is except the maven for being deployed with second engineering is privately owned Third party's jar packet outside the jar packet that warehouse includes.
In one embodiment, it when the processor 401 is also used to run the computer program, executes: to the target Before the source code of engineering is polymerize, obtains the source code of second engineering and be stored in root;Successively obtain described at least one The source code of a first engineering, creates at least one subdirectory under the root;One subdirectory is corresponding to save one The source code of first engineering;Tree-like directory is obtained according to the root and at least one described subdirectory.
In one embodiment, it when the processor 401 is also used to run the computer program, executes: according to the tree Shape catalogue successively polymerize the source code of the purpose project, is obtained according to polymerization result at least one described first work The project aggregated report of journey.
It should be understood that the life of the generating means of project aggregated report provided by the above embodiment and project aggregated report Belong to same design at embodiment of the method, specific implementation process is detailed in embodiment of the method, and which is not described herein again.
When practical application, described device 40 can also include: at least one network interface 403.The life of project aggregated report It is coupled at the various components in device 40 by bus system 404.It is understood that bus system 404 is for realizing these Connection communication between component.Bus system 404 further includes power bus, control bus and shape in addition to including data/address bus State signal bus.But for the sake of clear explanation, various buses are all designated as bus system 404 in Fig. 4.Wherein, described The number of processor 404 can be at least one.Generating means 40 of the network interface 403 for project aggregated report are set with other The communication of wired or wireless way between standby.
Memory 402 in the embodiment of the present invention is for storing various types of data to support the life of project aggregated report At the operation of device 40.
The method that the embodiments of the present invention disclose can be applied in processor 401, or be realized by processor 401. Processor 401 may be a kind of IC chip, the processing capacity with signal.During realization, the above method it is each Step can be completed by the integrated logic circuit of the hardware in processor 401 or the instruction of software form.Above-mentioned processing Device 401 can be general processor, digital signal processor (DSP, DiGital Signal Processor) or other can Programmed logic device, discrete gate or transistor logic, discrete hardware components etc..Processor 401 may be implemented or hold Disclosed each method, step and logic diagram in the row embodiment of the present invention.General processor can be microprocessor or appoint What conventional processor etc..The step of method in conjunction with disclosed in the embodiment of the present invention, can be embodied directly at hardware decoding Reason device executes completion, or in decoding processor hardware and software module combine and execute completion.Software module can be located at In storage medium, which is located at memory 402, and processor 401 reads the information in memory 402, in conjunction with its hardware The step of completing preceding method.
In the exemplary embodiment, the generating means 40 of project aggregated report can be dedicated integrated by one or more application Circuit (ASIC, Application Specific Integrated Circuit), DSP, programmable logic device (PLD, Programmable Logic Device), Complex Programmable Logic Devices (CPLD, Complex Programmable Logic Device), field programmable gate array (FPGA, Field-Programmable Gate Array), general processor, control Device, microcontroller (MCU, Micro Controller Unit), microprocessor (Microprocessor) or other electronics member Part is realized, for executing preceding method.
The embodiment of the invention also provides a kind of computer readable storage mediums, are stored thereon with computer program, described It when computer program is run by processor, executes: obtaining at least one project, determine at least one according at least one described project A first engineering;At least one described first engineering is added to preset second engineering;Will added with it is described at least one the Second engineering of one engineering polymerize the source code of the purpose project as purpose project, obtains for described at least one The project aggregated report of a first engineering.
In one embodiment, it when the computer program is run by processor, executes: will at least one described first engineering Before being added to preset second engineering, in the configuration file of second engineering, at least one described first engineering pair is added The father of second engineering relies on description;It is relied on and is described according to the father, establish at least one described first engineering and described the Father and son's dependence of two engineerings.
In one embodiment, when the computer program is run by processor, execute: to the source code of the purpose project into Before row polymerization, at least one the first jar packet needed for first engineering is determined;The first jar packet is first engineering The jar packet that can not be obtained by the public packet of bottom;At least one described in being directed to is added in the configuration file of second engineering The dependence of first jar packet describes, and first engineering describes at least one described in acquisition according to the dependence in the configuration file First jar packet.
In one embodiment, when the computer program is run by processor, execute: to the source code of the purpose project into Before row polymerization, determining at least one described first engineering includes public work and the public work relies on the 2nd jar packet When, the dependence description in the configuration file of the public work for jar packet is modified, to cancel the public work to described the The dependence of two jar packets;The 2nd jar packet is the jar for including except the privately owned warehouse maven for being deployed with second engineering Third party's jar packet outside packet.
In one embodiment, when the computer program is run by processor, execute: to the source code of the purpose project into Before row polymerization, obtains the source code of second engineering and be stored in root;Successively obtain at least one first engineering Source code creates at least one subdirectory under the root;One subdirectory is corresponding to save first engineering Source code;Tree-like directory is obtained according to the root and at least one described subdirectory.
In one embodiment, it when the computer program is run by processor, executes: according to the tree-like directory to described The source code of purpose project is successively polymerize, and obtains the project polymerization at least one first engineering according to polymerization result Report.
In several embodiments provided herein, it should be understood that disclosed device and method can pass through it Its mode is realized.Apparatus embodiments described above are merely indicative, for example, the division of the unit, only A kind of logical function partition, there may be another division manner in actual implementation, such as: multiple units or components can combine, or It is desirably integrated into another system, or some features can be ignored or not executed.In addition, shown or discussed each composition portion Mutual coupling or direct-coupling or communication connection is divided to can be through some interfaces, the INDIRECT COUPLING of equipment or unit Or communication connection, it can be electrical, mechanical or other forms.
Above-mentioned unit as illustrated by the separation member, which can be or may not be, to be physically separated, aobvious as unit The component shown can be or may not be physical unit, it can and it is in one place, it may be distributed over multiple network lists In member;Some or all of units can be selected to achieve the purpose of the solution of this embodiment according to the actual needs.
In addition, each functional unit in various embodiments of the present invention can be fully integrated in one processing unit, it can also To be each unit individually as a unit, can also be integrated in one unit with two or more units;It is above-mentioned Integrated unit both can take the form of hardware realization, can also realize in the form of hardware adds SFU software functional unit.
Those of ordinary skill in the art will appreciate that: realize that all or part of the steps of above method embodiment can pass through The relevant hardware of program instruction is completed, and program above-mentioned can be stored in a computer readable storage medium, the program When being executed, step including the steps of the foregoing method embodiments is executed;And storage medium above-mentioned include: movable storage device, it is read-only Memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or The various media that can store program code such as person's CD.
If alternatively, the above-mentioned integrated unit of the present invention is realized in the form of software function module and as independent product When selling or using, it also can store in a computer readable storage medium.Based on this understanding, the present invention is implemented Substantially the part that contributes to existing technology can be embodied in the form of software products the technical solution of example in other words, The computer software product is stored in a storage medium, including some instructions are used so that computer equipment (can be with It is personal computer, server or network equipment etc.) execute all or part of each embodiment the method for the present invention. And storage medium above-mentioned includes: that movable storage device, ROM, RAM, magnetic or disk etc. are various can store program code Medium.
The foregoing is only a preferred embodiment of the present invention, is not intended to limit the scope of the present invention, it is all Made any modifications, equivalent replacements, and improvements etc. within the spirit and principles in the present invention, should be included in protection of the invention Within the scope of.

Claims (10)

1. a kind of generation method of project aggregated report, which is characterized in that the described method includes:
At least one project is obtained, at least one first engineering is determined according at least one described project;Will it is described at least one First engineering is added to preset second engineering;
Will the second engineering added at least one first engineering as purpose project, to the source code of the purpose project into Row polymerization obtains the project aggregated report at least one first engineering.
2. the method according to claim 1, wherein it is described at least one described first engineering is added to it is default The second engineering before, the method also includes:
In the configuration file of second engineering, adds at least one described first engineering and the father of second engineering is relied on Description;
It is relied on and is described according to the father, establish father and son's dependence of described at least one first engineering and second engineering.
3. the method according to claim 1, wherein before the source code to the purpose project polymerize, The described method includes:
Determine at least one the first jar packet needed for first engineering;The first jar packet is that first engineering can not lead to Cross the jar packet that the public packet of bottom obtains;
Addition is described for the dependence of at least one the first jar packet in the configuration file of second engineering, and described the One engineering obtains at least one described the first jar packet according to the dependence description in the configuration file.
4. the method according to claim 1, wherein before the source code to the purpose project polymerize, The described method includes:
Determine modification at least one described first engineering comprising public work and when the public work relies on the 2nd jar packet It is described in the configuration file of the public work for the dependence of jar packet, to cancel the public work to the 2nd jar packet Dependence;The 2nd jar packet is in addition to the jar packet that the privately owned warehouse maven for being deployed with second engineering includes Third party's jar packet.
5. the method according to claim 1, wherein before the source code to the purpose project polymerize, The method also includes:
It obtains the source code of second engineering and is stored in root;
The source code for successively obtaining at least one first engineering, creates at least one subdirectory under the root;One The corresponding source code for saving first engineering of the subdirectory;
Tree-like directory is obtained according to the root and at least one described subdirectory.
6. according to the method described in claim 5, obtaining it is characterized in that, the source code to the purpose project polymerize Obtain the project aggregated report at least one first engineering, comprising:
Successively it is polymerize according to source code of the tree-like directory to the purpose project, is obtained according to polymerization result for described The project aggregated report of at least one the first engineering.
7. a kind of generating means of project aggregated report, which is characterized in that described device includes: first processing module, at second Manage module;Wherein,
The first processing module, for obtaining at least one project, according at least one described project determine at least one One engineering;At least one described first engineering is added to preset second engineering;
The Second processing module, for the second engineering of at least one first engineering will to be added with as purpose project, The source code of the purpose project is polymerize, the project aggregated report at least one first engineering is obtained.
8. device according to claim 7, which is characterized in that the Second processing module is specifically used for the target Before the source code of engineering is polymerize, obtains the source code of second engineering and be stored in root;Successively obtain described at least one The source code of a first engineering, creates at least one subdirectory under the root;One subdirectory is corresponding to save one The source code of first engineering;Tree-like directory is obtained according to the root and at least one described subdirectory;According to the tree Shape catalogue successively polymerize the source code of the purpose project, is obtained according to polymerization result at least one described first work The project aggregated report of journey.
9. a kind of generating means of project aggregated report, which is characterized in that described device includes: processor and can for storing The memory of the computer program run on a processor;Wherein,
The processor is for the step of when running the computer program, perform claim requires any one of 1 to 6 the method.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program The step of any one of claim 1 to 6 the method is realized when being executed by processor.
CN201811638819.5A 2018-12-29 2018-12-29 Generation method, device and the storage medium of project aggregated report Pending CN109766128A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811638819.5A CN109766128A (en) 2018-12-29 2018-12-29 Generation method, device and the storage medium of project aggregated report

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811638819.5A CN109766128A (en) 2018-12-29 2018-12-29 Generation method, device and the storage medium of project aggregated report

Publications (1)

Publication Number Publication Date
CN109766128A true CN109766128A (en) 2019-05-17

Family

ID=66453034

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811638819.5A Pending CN109766128A (en) 2018-12-29 2018-12-29 Generation method, device and the storage medium of project aggregated report

Country Status (1)

Country Link
CN (1) CN109766128A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111782191A (en) * 2020-06-29 2020-10-16 京东数字科技控股有限公司 Project engineering creating method and device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040255265A1 (en) * 2003-03-26 2004-12-16 Brown William M. System and method for project management
CN101540022A (en) * 2008-01-22 2009-09-23 埃森哲环球服务有限公司 Knowledge transfer in a project environment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040255265A1 (en) * 2003-03-26 2004-12-16 Brown William M. System and method for project management
CN101540022A (en) * 2008-01-22 2009-09-23 埃森哲环球服务有限公司 Knowledge transfer in a project environment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
IT_小翼: "一个多maven项目聚合的实例", 《HTTPS://MY.OSCHINA.NET/XUQIANG/BLOG/99854》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111782191A (en) * 2020-06-29 2020-10-16 京东数字科技控股有限公司 Project engineering creating method and device

Similar Documents

Publication Publication Date Title
US20230244454A1 (en) Software defined network controller
CN106227605A (en) The dynamic micro services expansion method of a kind of multilingual cloud compiling and device
CN106250199A (en) The dynamic micro services call method of a kind of multilingual cloud compiling and device
CN106293704A (en) Dynamic micro services edit methods, device and the server of multilingual cloud compiling
FI115941B (en) Data processing system for communication networks
CN106533804A (en) Network operation support system
CN102866944B (en) Pressure testing system and method
EP2228726A2 (en) A method and system for task modeling of mobile phone applications
CN109144618A (en) A kind of service flow execution method and relevant apparatus
CN103646104A (en) Hard real-time fault diagnosis method and system
CN108460199B (en) CNI modeling system
CN104267938B (en) A kind of method and device of the quick development deployment of the application of streaming computing
CN110018829A (en) Improve the method and device of PL/SQL language interpreter execution efficiency
CN102014016A (en) System and method for testing defects of network protocol
CN102289774A (en) Graphical message processing and test system and method in financial transaction processing system
Zhang et al. Incremental network configuration verification
CN111813739A (en) Data migration method and device, computer equipment and storage medium
CN107122307B (en) Internet of things execution system
CN109766128A (en) Generation method, device and the storage medium of project aggregated report
WO2017084388A1 (en) Network polling method and apparatus
CN110109658A (en) A kind of ROS code generator and code generating method based on formalized model
Lu et al. Zen-CC: An automated and incremental conformance checking solution to support interactive product configuration
CN106535221A (en) Resource management method and device, and multimode soft base station unified webmaster
CN107229815A (en) Data analysing method and device
CN107317716A (en) A kind of terminal management system and its application process

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20190517

RJ01 Rejection of invention patent application after publication