CN110209385A - Establishment of item method and device - Google Patents

Establishment of item method and device Download PDF

Info

Publication number
CN110209385A
CN110209385A CN201910385780.9A CN201910385780A CN110209385A CN 110209385 A CN110209385 A CN 110209385A CN 201910385780 A CN201910385780 A CN 201910385780A CN 110209385 A CN110209385 A CN 110209385A
Authority
CN
China
Prior art keywords
code
project
information
pol
icy
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
CN201910385780.9A
Other languages
Chinese (zh)
Other versions
CN110209385B (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.)
Wireless Living (hangzhou) Mdt Infotech Ltd
Original Assignee
Wireless Living (hangzhou) Mdt Infotech 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 Wireless Living (hangzhou) Mdt Infotech Ltd filed Critical Wireless Living (hangzhou) Mdt Infotech Ltd
Priority to CN201910385780.9A priority Critical patent/CN110209385B/en
Publication of CN110209385A publication Critical patent/CN110209385A/en
Application granted granted Critical
Publication of CN110209385B publication Critical patent/CN110209385B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The present invention relates to establishment of item method and devices.This method comprises: obtaining destination item information, destination item information includes project name and code administration engineering information;Initial project is generated according to project name and project templet;Corresponding Maven project is generated according to initial project and code administration engineering information;Maven project includes code administration part and configuration file part, and code administration part is used to store the pol-icy code of user's input, and is managed to the version of pol-icy code.The technical solution can create disparity items according to different project information, so that the pol-icy code of different business scene can be respectively stored in disparity items, developer's checking to the pol-icy code of different business scene is facilitated, the O&M cost of code is also reduced;Can also avoid in the case where pol-icy code is coupled with configuration file, if having developer correct mistakes associated profile when the problem of will affect the work of other developers of team.

Description

Establishment of item method and device
Technical field
The present invention relates to field of computer technology more particularly to a kind of establishment of item method and devices.
Background technique
Software development be unable to do without writing for code, for example, in electric business field, personalized recommendation, search essence row etc. The scene for needing algorithm to intervene is often accompanied by a large amount of pol-icy codes for realizing algorithm policy iteration.For convenience's sake, usually These pol-icy codes are managed using SDK (Software Development Kit), with assisting software development;Existing skill SDK in art is generally realized by Maven tool and Version.However, carrying out generation using SDK in the prior art There are code O&M costs when code management, and high, different business scene code checks inconvenience, and, if there is developer to correct mistakes correlation The disadvantages of will affect the development of other developers of team when configuration file, it is unfriendly to developer.
Summary of the invention
The embodiment of the present invention provides establishment of item method and device.The technical solution is as follows:
According to a first aspect of the embodiments of the present invention, a kind of establishment of item method is provided, comprising: obtain destination item letter Breath, the destination item information includes project name and code administration engineering information;According to the project name and project templet Generate initial project;Corresponding Maven project is generated according to the initial project and the code administration engineering information;It is described Maven project includes code administration part and configuration file part, and the code administration part is used to store the plan of user's input Slightly code, and the version of the pol-icy code is managed.
Preferably, the acquisition destination item information, comprising: obtain all items information stored in presetting database; Show all items information obtained;The destination item information that record user selects from all items information of display.
Preferably, the Maven project further includes the Script section, and described the Script section includes: that code submits script, is used for Submit changing in default warehouse for the pol-icy code;More fresh code script, for the download policy from the default warehouse Code;Project upgrade script, for being carried out according to the project structure of the project templet to the project structure of the Maven project It updates.
Preferably, the code administration part includes common code packet, and the common code packet is for storing the strategy Reusable code in code.
Preferably, the code administration engineering includes Git engineering, and the code administration engineering information includes the Git work The address of journey.
According to a second aspect of the embodiments of the present invention, a kind of establishment of item device is provided, comprising: module is obtained, for obtaining Destination item information is taken, the destination item information includes project name and code administration engineering information;Creation module is used for root Initial project is generated according to the project name and project templet;It is raw according to the initial project and the code administration engineering information At corresponding Maven project;The Maven project includes code administration part and configuration file part, the code administration portion Divide the pol-icy code for storing user's input, and the version of the pol-icy code is managed.
Preferably, the acquisition module includes: acquisition submodule, for obtaining all items stored in presetting database Information;Display sub-module, for showing all items information obtained;Record sub module, for recording institute of the user from display There is the destination item information selected in project information.
Preferably, the Maven project further includes the Script section, and described the Script section includes: that code submits script, is used for Submit changing in default warehouse for the pol-icy code;More fresh code script, for the download policy from the default warehouse Code;Project upgrade script, for being carried out according to the project structure of the project templet to the project structure of the Maven project It updates.
Preferably, the code administration part includes common code packet, and the common code packet is for storing the strategy Reusable code in code.
According to a third aspect of the embodiments of the present invention, a kind of establishment of item device is provided, comprising: processor;For storing The memory of the processor-executable instruction;The processor is configured to executing the establishment of item that above-mentioned first aspect provides Method.
The technical solution that the embodiment of the present invention provides can include the following benefits: by obtaining destination item letter Breath, the destination item information includes project name and code administration engineering information, according to the project name and project templet Initial project is generated, corresponding Maven project, Ke Yishi are generated according to the initial project and the code administration engineering information Disparity items is now created according to different project information, the pol-icy code of different business scene is allowed to be respectively stored in difference In project, developer's checking to the pol-icy code of different business scene is facilitated, the O&M cost of code is also reduced; And the Maven project including code administration part and configuration file part is generated, the code administration part is used for storing The pol-icy code and be managed to the version of the pol-icy code that family inputs, may be implemented the solution of pol-icy code and configuration file Coupling and only the change of pol-icy code is managed, to avoid in the case where pol-icy code is coupled with configuration file, if having Developer correct mistakes associated profile when the problem of will affect the work of other developers of team.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not It can the limitation present invention.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows and meets implementation of the invention Example, and be used to explain the principle of the present invention together with specification.
Fig. 1 is the flow chart of establishment of item method shown according to an exemplary embodiment.
Fig. 2 is the flow chart of establishment of item method shown according to an exemplary embodiment.
Fig. 3 is the project structure schematic diagram of project templet shown according to an exemplary embodiment.
Fig. 4 is the flow chart of establishment of item method shown according to an exemplary embodiment.
Fig. 5 is the block diagram of establishment of item device shown according to an exemplary embodiment.
Fig. 6 is the block diagram of establishment of item device shown according to an exemplary embodiment.
Fig. 7 is the block diagram of establishment of item device shown according to an exemplary embodiment.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all embodiments consistented with the present invention.On the contrary, they be only with it is such as appended The example of device and method being described in detail in claims, some aspects of the invention are consistent.
Fig. 1 is a kind of flow chart of establishment of item method shown according to an exemplary embodiment, as shown in Figure 1, this Mesh creation method includes the following steps 101-103:
In a step 101, destination item information is obtained, the destination item information includes project name and dematron science and engineering Journey information.
Here, which refers to the project for carrying out storage and management for the code to developer in software development. Destination item information not only may include project name and code administration engineering information, can also include Project Manager, project Description information etc.;Destination item information can be obtained by receiving user's input or receiving the modes such as other modules transmission.Generation Code management engineering information refers to the engineering information created in Version, exemplary, and code administration engineering information can be with It is the address information of SVN (Subversion) engineering.
In a step 102, initial project is generated according to the project name and project templet.
Here, due to usually there will be multiple and different business scenarios in software development, so, for the ease of distinguishing not With the code in business scenario, different projects can be created according to different business scenarios to facilitate developer to difference The code of business scenario is managed.Here, project templet is an Archetype of the Maven project that the present invention defines, i.e., The template kit of Maven project;The project templet includes at least: code administration part and mutually only with the code administration part Vertical Maven configuration file part and correlated variables.Since the project templet includes mutually independent code administration portion Point and Maven configuration file part, so, for existing template, generate project structure with being adapted to property The advantages of Maven project including mutually independent code administration part and configuration file part.Here, new projects are being carried out When creation, correlated variables can be replaced first with project name, generate the initial term of new projects corresponding with the project name Mesh;Since the new projects are generated according to project templet, so the initial project of the new projects includes mutually independent dematron Reason part and configuration file part.
In step 103, corresponding Maven is generated according to the initial project and the code administration engineering information Mesh;The Maven project includes code administration part and configuration file part, and the code administration part is defeated for storing user The pol-icy code entered, and the version of the pol-icy code is managed.
Here, due in the initial project code administration part be independent from each other with configuration file part, so, be Make creation Maven project can with and only the pol-icy code of user's input is managed, need will be corresponding with the new projects Code administration engineering information, such as address of above-mentioned SVN engineering fills the code administration part into the initial project, thus Generate the Maven project that can only be managed to the code in the code administration part, so as in developer by tactful generation Code is managed the change etc. of the pol-icy code of the part when storing to the code administration part.Compared to by different business field The pol-icy code of scape is stored in the same Maven project, and the configuration file in the project and pol-icy code intercouple and Speech is that different business scenario creations is corresponding according to disparity items information, and code administration part and configuration file part are mutual It is independent, and the Maven project of the management such as old version, branch, label is only carried out to the pol-icy code in the project, then it can keep away Exempt to develop along with the continuous iteration of related service, code O&M cost becomes caused by the size of code in project constantly increases Height, the code retrieval of related service scene, code change record check inconvenient problem;And avoid pol-icy code with In the case that configuration file intercouples and managed by related versions management tool, if a developer changes in local test Be broken configuration file, then this changed bad configuration file also can be as pol-icy code be submitted to warehouse together, so as to cause making It will lead to oneself local when downloading newest code from warehouse with other developers that the project carries out co-development The problem of project reports an error.Moreover, be that different business scenarios creates corresponding Maven project according to disparity items information, it is also square Determination to the reusable code block of the pol-icy code of same business scenario.
In the present embodiment, by obtaining destination item information, the destination item information includes project name and dematron Engineering information is managed, initial project is generated according to the project name and project templet, according to the initial project and the code Management engineering information generates corresponding Maven project, may be implemented to create disparity items according to different project information, so that not Pol-icy code with business scenario can be respectively stored in disparity items, facilitate developer to the plan of different business scene Checking for code is omited, the O&M cost of code is also reduced;And generating includes code administration part and configuration file part Maven project, the pol-icy code and version to the pol-icy code that the code administration part is used to store user's input It is managed, the decoupling of pol-icy code and configuration file may be implemented and only the change of pol-icy code is managed, to keep away Exempt from the case where pol-icy code is coupled with configuration file, if having developer correct mistakes associated profile when will affect team its The problem of work of his developer.
In a kind of possible embodiment, Fig. 2 is a kind of establishment of item method shown according to an exemplary embodiment Flow chart, as shown in Fig. 2, the step 101 in above-mentioned establishment of item method can be executed by step 201-203.
In step 201, all items information stored in presetting database is obtained.
It here, can first will be with item by user (for example, manager of a certain business development group) before creating new projects The related project name of mesh and code administration engineering information etc. are stored in presetting database, in the user by user interface Or other users are subsequent when needing specifically to create the project, by send relevant control instruction come from the presetting database directly Obtain the project information;In this way, it is both convenient for users, but also user can use the user interface to inquire this and preset Stored project information in database, the convenient management to all project information.
In step 202, all items information of acquisition is shown.
It is exemplary, all items information of acquisition can be shown by way of list, to ensure to include at least Project name and code administration engineering information this two every group of project information can rationally be shown, so that user be facilitated to look into It sees.
In step 203, the destination item information that record user selects from all items information of display.
Here, when user view need to create project project information it is stored when, can directly select the project letter Breath carries out the creation of respective items purpose, therefore, after showing all project information, needs detection project information display area User's selection operation records the selected project information of user when detecting user's selection operation, and the project information is made It is destination item group information for generating new projects.
In the present embodiment, by obtaining all items information stored in presetting database, all items of acquisition are shown Information, the destination item information that record user selects from all items information of display can be convenient user's use, but also User can use the user interface to inquire project information stored in the presetting database, conveniently to all projects The management of information.
In a kind of possible embodiment, Fig. 3 is the project knot of project templet shown according to an exemplary embodiment Structure schematic diagram.As shown in figure 3, above-mentioned project templet in addition to include mutually independent code administration part and configuration file part it It outside, can also include the Script section;The Script section may include that code submits script, more fresh code script and project upgrading foot This;Wherein, the pol-icy code that code submits script to be used to that user to be submitted to input changes in default warehouse;More fresh code script For the download policy code from default warehouse;Project upgrade script is for being updated the project structure of project templet.By In, the project templet for generating Maven project includes above-mentioned the Script section, thus, it is generated using the project templet Maven project also includes above-mentioned the Script section other than including mutually independent code administration part and configuration file part. Here, due to being filled with code administration engineering information in the Maven project of generation, so, in the Script section of Maven project Code submits what script was used to submit pol-icy code to change to warehouse corresponding with the code administration engineering, the foot of Maven project More fresh code script in this part is used for the download policy code from warehouse corresponding with the code administration engineering, exemplary, The warehouse can be the warehouse SVN.And project upgrade script is used for after the project structure change of project templet, according to project mould The project structure of Maven project generated is updated to project knot identical with project templet by the project structure after plate change Structure.
In the present embodiment, making Maven project further includes that code submits script, for submitting changing to for the pol-icy code In default warehouse;More fresh code script, for the download policy code from the default warehouse;Project upgrade script is used for root The project structure of the Maven project is updated according to the project structure of the project templet;It can incited somebody to action to avoid user The code locally finished writing is committed to warehouse corresponding with the code administration engineering, or downloads what other users were finished writing from the warehouse Code, alternatively, needing voluntarily to write relevant submission instruction, downloading when the project structure to Maven project being needed to change It is situations such as instruction, convenient for users to use, the development efficiency of user is improved to a certain extent.
In a kind of possible embodiment, code administration part includes common code packet, and common code packet is for storing Reusable code in the pol-icy code.
Here, due to can be for different business scene creation not according to different project information and code administration engineering information Same project is based on this, under normal circumstances, with the plan that can manage the same business scenario using a Maven project per family Slightly code;And often there is the code block that can be much multiplexed in the pol-icy code under same business scenario, thus in code administration Part setting common code packet, and it is stored in the code block that can be multiplexed under the business scenario in the common code packet, it can It repeats to store to avoid reusable code block, so as to the lengthy and jumbled degree of code in reduction project.
In the present embodiment, code administration part includes the common code for the reusable code in storage strategy code Packet, can store to avoid the repetition of reusable code block, so as to the lengthy and jumbled degree of code in reduction project.
In a possible embodiment, the code administration engineering includes Git engineering, the code administration engineering information packet Include the address of the Git engineering.
Here, compared to SVN, Git have can work offline, public server pressure and data volume it is smaller, be suitble to point The advantages that conflict can easily be solved between cloth exploitation and any two developer, so, Git pairs can be used The pol-icy code of code administration part carries out the management such as version, branch, label.
In the present embodiment, making code administration engineering includes Git engineering, and code administration engineering information includes the Git engineering Address, can reduce public server pressure and data volume, and user is allow to work offline, be convenient for the user to use.
Realization process is discussed in detail below by embodiment.
Fig. 4 is a kind of flow chart of establishment of item method shown according to an exemplary embodiment.This method can be by filling It the equipment such as sets and realizes that the establishment of item method includes step 401-405.
In step 401, all items information stored in presetting database is obtained, the destination item information includes item Mesh title and code administration engineering information, the code administration engineering information include the address of Git engineering.
In step 402, all items information of acquisition is shown.
In step 403, the destination item information that record user selects from all items information of display.
In step 404, initial project is generated according to the project name and project templet.
In step 405, corresponding Maven is generated according to the initial project and the code administration engineering information Mesh, the Maven project include code administration part, configuration file part and the Script section;The code administration part is used for The pol-icy code of user's input is stored, and the version of the pol-icy code is managed;The code administration part includes Common code packet, the common code packet are used to store the reusable code in the pol-icy code;Described the Script section includes: Code submits script, for submitting the changing in default warehouse of the pol-icy code;More fresh code script is used for from described pre- If download policy code in warehouse;Project upgrade script, for the project structure according to the project templet to Maven described Purpose project structure is updated.
Following is Installation practice provided by the invention, can be used for executing above method embodiment in the present invention.
Fig. 5 is a kind of block diagram of establishment of item device shown according to an exemplary embodiment, which can be by soft Part, hardware or both are implemented in combination with as some or all of of electronic equipment.As shown in figure 5, the establishment of item device Include:
Module 501 is obtained, for obtaining destination item information, the destination item information includes project name and dematron Manage engineering information;Creation module 502, for generating initial project according to the project name and project templet;According to described first Beginning project and the code administration engineering information generate corresponding Maven project;The Maven project includes code administration part With configuration file part, the code administration part is used to store the pol-icy code of user's input, and to the pol-icy code Old version, branch and label be managed.
As a kind of possible embodiment, Fig. 6 is a kind of establishment of item device shown according to an exemplary embodiment Block diagram.As shown in fig. 6, above-mentioned acquisition module 501 can be configured to include acquisition submodule 5011, display sub-module 5012 With record sub module 5013, in which:
Acquisition submodule 5011, for obtaining all items information stored in presetting database;Display sub-module 5012, For showing all items information obtained;Record sub module 5013, for recording user from all items information of display The destination item information of selection.
Here, obtaining module 501 can be specifically an initializtion script, and creation module 502 can be specifically Maven work Tool.The all items information stored in the available presetting database of the initializtion script shows all items information of acquisition, The destination item information that record user selects from all items information of display, and adjusted after destination item information is recorded With the Maven tool, make the Maven tool using pre-stored project templet in destination item information and the warehouse Maven Generate Maven project.
About the device in above-described embodiment, plurality of module executes the concrete mode of operation in related this method Embodiment in be described in detail, no detailed explanation will be given here.
Following is Installation practice provided by the invention, can be used for executing above method embodiment in the present invention.
Fig. 7 is a kind of block diagram of establishment of item device shown according to an exemplary embodiment, which is suitable for terminal Equipment.For example, device 700 can be computer equipment.
Device 700 may include following one or more components: processing component 702, memory 704, power supply module 706, Multimedia component 708, audio component 710, the interface 712 of input/output (I/O), sensor module 714 and communication component 716。
The integrated operation of the usual control device 700 of processing component 702, such as with display, telephone call, data communication, phase Machine operation and record operate associated operation.Processing component 702 may include that one or more processors 720 refer to execute It enables, to perform all or part of the steps of the methods described above.In addition, processing component 702 may include one or more modules, just Interaction between processing component 702 and other assemblies.For example, processing component 702 may include multi-media module, it is more to facilitate Interaction between media component 708 and processing component 702.
Memory 704 is configured as storing various types of data to support the operation in device 700.These data are shown Example includes the instruction of any application or method for operating on device 700, contact data, and telephone book data disappears Breath, picture, video etc..Memory 704 can be by any kind of volatibility or non-volatile memory device or their group It closes and realizes, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM) is erasable to compile Journey read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash Device, disk or CD.
Power supply module 706 provides electric power for the various assemblies of device 700.Power supply module 706 may include power management dress Set, one or more power supplys and other with for device 700 generate, manage, and distribute the associated component of electric power.
Multimedia component 708 includes the screen of one output interface of offer between described device 700 and user.One In a little embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen Curtain may be implemented as touch screen, to receive input signal from the user.Touch panel includes one or more touch sensings Device is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding action Boundary, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, more matchmakers Body component 708 includes a front camera and/or rear camera.When device 700 is in operation mode, such as screening-mode or When video mode, front camera and/or rear camera can receive external multi-medium data.Each front camera and Rear camera can be a fixed optical lens device or have focusing and optical zoom capabilities.
Audio component 710 is configured as output and/or input audio signal.For example, audio component 710 includes a Mike Wind (MIC), when device 700 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone is matched It is set to reception external audio signal.The received audio signal can be further stored in memory 704 or via communication set Part 716 is sent.In some embodiments, audio component 710 further includes a loudspeaker, is used for output audio signal.
I/O interface 712 provides interface between processing component 702 and peripheral interface module, and above-mentioned peripheral interface module can To be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and lock Determine button.
Sensor module 714 includes one or more sensors, and the state for providing many aspects for device 700 is commented Estimate.For example, sensor module 714 can detecte the state that opens/closes of device 700, and the relative positioning of component, for example, it is described Component is the display and keypad of device 700, and sensor module 714 can be with 700 1 components of detection device 700 or device Position change, the existence or non-existence that user contacts with device 700,700 orientation of device or acceleration/deceleration and device 700 Temperature change.Sensor module 714 may include proximity sensor, be configured to detect without any physical contact Presence of nearby objects.Sensor module 714 can also include optical sensor, such as CMOS or ccd image sensor, at As being used in application.In some embodiments, which can also include acceleration transducer, gyro sensors Device, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 716 is configured to facilitate the communication of wired or wireless way between device 700 and other equipment.Device 700 can access the wireless network based on communication standard, such as WiFi, 2G or 3G or their combination.In an exemplary implementation In example, communication component 716 receives broadcast singal or broadcast related information from external broadcasting managing device via broadcast channel. In one exemplary embodiment, the communication component 716 further includes near-field communication (NFC) module, to promote short range communication.Example Such as, NFC module can be based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology, Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 700 can be believed by one or more application specific integrated circuit (ASIC), number Number processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided It such as include the memory 704 of instruction, above-metioned instruction can be executed by the processor 720 of device 700 to complete the above method.For example, The non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk With optical data storage devices etc..
A kind of computer readable storage medium is present embodiments provided, when the instruction in the storage medium is by device 700 Processor execute when perform the steps of obtain destination item information, the destination item information includes project name and generation Code management engineering information;Initial project is generated according to the project name and project templet;According to the initial project and described Code administration engineering information generates corresponding Maven project;The Maven project includes code administration part and configuration file portion Point, the code administration part is used to store the pol-icy code of user's input, and carries out pipe to the version of the pol-icy code Reason.
Instruction in the storage medium can also perform the steps of when being executed by processor to be obtained in presetting database The all items information of storage;Show all items information obtained;Record user selects from all items information of display Destination item information.
The present embodiment additionally provides a kind of establishment of item device, comprising: processor;For storage processor executable instruction Memory;Processor is configured as: obtaining destination item information, the destination item information includes project name and dematron Manage engineering information;Initial project is generated according to the project name and project templet;According to the initial project and the code Management engineering information generates corresponding Maven project;The Maven project includes code administration part and configuration file part, The code administration part is used to store the pol-icy code of user's input, and is managed to the version of the pol-icy code.
In one embodiment, processor can be additionally configured to: obtain all items letter stored in presetting database Breath;Show all items information obtained;The destination item information that record user selects from all items information of display.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to of the invention its Its embodiment.This application is intended to cover any variations, uses, or adaptations of the invention, these modifications, purposes or Person's adaptive change follows general principle of the invention and including the undocumented common knowledge in the art of the present invention Or conventional techniques.The description and examples are only to be considered as illustrative, and true scope and spirit of the invention are by following Claim is pointed out.
It should be understood that the present invention is not limited to the precise structure already described above and shown in the accompanying drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present invention is limited only by the attached claims.

Claims (10)

1. a kind of establishment of item method characterized by comprising
Destination item information is obtained, the destination item information includes project name and code administration engineering information;
Initial project is generated according to the project name and project templet;
Corresponding Maven project is generated according to the initial project and the code administration engineering information;
The Maven project includes code administration part and configuration file part, and the code administration part is for storing user The pol-icy code of input, and the version of the pol-icy code is managed.
2. establishment of item method according to claim 1, which is characterized in that the acquisition destination item information, comprising:
Obtain all items information stored in presetting database;
Show all items information obtained;
The destination item information that record user selects from all items information of display.
3. establishment of item method according to claim 1, which is characterized in that the Maven project further includes the Script section, Described the Script section includes:
Code submits script, for submitting the changing in default warehouse of the pol-icy code;
More fresh code script, for the download policy code from the default warehouse;
Project upgrade script, for being carried out according to the project structure of the project templet to the project structure of the Maven project It updates.
4. establishment of item method according to claim 1, which is characterized in that the code administration part includes common code Packet, the common code packet are used to store the reusable code in the pol-icy code.
5. establishment of item method according to claim 1, which is characterized in that the code administration engineering includes Git engineering, The code administration engineering information includes the address of the Git engineering.
6. a kind of establishment of item device characterized by comprising
Module is obtained, for obtaining destination item information, the destination item information includes project name and code administration engineering Information;
Creation module, for generating initial project according to the project name and project templet;According to the initial project and institute It states code administration engineering information and generates corresponding Maven project;
The Maven project includes code administration part and configuration file part, and the code administration part is for storing user The pol-icy code of input, and the version of the pol-icy code is managed.
7. establishment of item device according to claim 6, which is characterized in that the acquisition module includes:
Acquisition submodule, for obtaining all items information stored in presetting database;
Display sub-module, for showing all items information obtained;
Record sub module, the destination item information selected from all items information of display for recording user.
8. establishment of item device according to claim 6, which is characterized in that the Maven project further includes the Script section, Described the Script section includes:
Code submits script, for submitting the changing in default warehouse of the pol-icy code;
More fresh code script, for the download policy code from the default warehouse;
Project upgrade script, for being carried out according to the project structure of the project templet to the project structure of the Maven project It updates.
9. establishment of item device according to claim 6, which is characterized in that the code administration part includes common code Packet, the common code packet are used to store the reusable code in the pol-icy code.
10. a kind of establishment of item device characterized by comprising
Processor;
For storing the memory of the processor-executable instruction;
The processor is configured to executing the described in any item establishment of item methods of the claims 1-5.
CN201910385780.9A 2019-05-09 2019-05-09 Project creation method and device Active CN110209385B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910385780.9A CN110209385B (en) 2019-05-09 2019-05-09 Project creation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910385780.9A CN110209385B (en) 2019-05-09 2019-05-09 Project creation method and device

Publications (2)

Publication Number Publication Date
CN110209385A true CN110209385A (en) 2019-09-06
CN110209385B CN110209385B (en) 2023-02-10

Family

ID=67785787

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910385780.9A Active CN110209385B (en) 2019-05-09 2019-05-09 Project creation method and device

Country Status (1)

Country Link
CN (1) CN110209385B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110716713A (en) * 2019-09-19 2020-01-21 北京齐尔布莱特科技有限公司 Method for generating project code and computing equipment
CN110806895A (en) * 2019-11-04 2020-02-18 精硕科技(北京)股份有限公司 Project creation method and device and computer readable storage medium
CN111459469A (en) * 2020-04-03 2020-07-28 网易(杭州)网络有限公司 Project code initialization method, device and equipment
CN111459538A (en) * 2020-04-07 2020-07-28 中国建设银行股份有限公司 Code synchronization method and device
CN111538484A (en) * 2020-03-26 2020-08-14 北京迈格威科技有限公司 Multi-project modular management method, biological unlocking model acquisition method and product
CN112307736A (en) * 2020-11-10 2021-02-02 政采云有限公司 Application project creating method, device, equipment and storage medium
CN113448572A (en) * 2021-02-26 2021-09-28 北京新氧科技有限公司 Software project development method and device, computer storage medium and computer equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030004763A1 (en) * 2001-06-29 2003-01-02 Lablanc Michael Robert Computerized systems and methods for the creation and sharing of project templates
US20040004665A1 (en) * 2002-06-25 2004-01-08 Kotaro Kashiwa System for creating content using content project data
CN106708509A (en) * 2016-11-28 2017-05-24 上海宝尊电子商务有限公司 Automatic software project development all-link configuration management system
CN108446398A (en) * 2018-03-27 2018-08-24 北京邦邦共赢网络科技有限公司 A kind of generation method and device of database
CN109240654A (en) * 2018-07-24 2019-01-18 武汉空心科技有限公司 Development approach and system based on template
CN109582302A (en) * 2018-12-05 2019-04-05 江苏风云科技服务有限公司 Establishment of item system and automation projects creation method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030004763A1 (en) * 2001-06-29 2003-01-02 Lablanc Michael Robert Computerized systems and methods for the creation and sharing of project templates
US20040004665A1 (en) * 2002-06-25 2004-01-08 Kotaro Kashiwa System for creating content using content project data
CN106708509A (en) * 2016-11-28 2017-05-24 上海宝尊电子商务有限公司 Automatic software project development all-link configuration management system
CN108446398A (en) * 2018-03-27 2018-08-24 北京邦邦共赢网络科技有限公司 A kind of generation method and device of database
CN109240654A (en) * 2018-07-24 2019-01-18 武汉空心科技有限公司 Development approach and system based on template
CN109582302A (en) * 2018-12-05 2019-04-05 江苏风云科技服务有限公司 Establishment of item system and automation projects creation method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
佚名: "Apache Maven中使用SDK", 《HTTPS://DOCS.AWS.AMAZON.COM/ZH_ CN/SDK-FOR-JAVA/V1/DEVELOPER-GUIDE/SETUP-PROJECT-MAVE》 *
哎_小羊_168: "Java Maven项目之Nexus私服搭建和版本管理应用", 《HTTPS://BLOG.CSDN.NET/AIXIAOYANG168/ARTICLE/DETAILS/73344179》 *

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110716713A (en) * 2019-09-19 2020-01-21 北京齐尔布莱特科技有限公司 Method for generating project code and computing equipment
CN110806895A (en) * 2019-11-04 2020-02-18 精硕科技(北京)股份有限公司 Project creation method and device and computer readable storage medium
CN111538484A (en) * 2020-03-26 2020-08-14 北京迈格威科技有限公司 Multi-project modular management method, biological unlocking model acquisition method and product
CN111459469A (en) * 2020-04-03 2020-07-28 网易(杭州)网络有限公司 Project code initialization method, device and equipment
CN111459469B (en) * 2020-04-03 2024-02-06 网易(杭州)网络有限公司 Project code initialization method, device and equipment
CN111459538A (en) * 2020-04-07 2020-07-28 中国建设银行股份有限公司 Code synchronization method and device
CN111459538B (en) * 2020-04-07 2024-02-13 中国建设银行股份有限公司 Code synchronization method and device
CN112307736A (en) * 2020-11-10 2021-02-02 政采云有限公司 Application project creating method, device, equipment and storage medium
CN113448572A (en) * 2021-02-26 2021-09-28 北京新氧科技有限公司 Software project development method and device, computer storage medium and computer equipment
CN113448572B (en) * 2021-02-26 2024-04-16 北京新氧科技有限公司 Software project development method and device, computer storage medium and computer equipment

Also Published As

Publication number Publication date
CN110209385B (en) 2023-02-10

Similar Documents

Publication Publication Date Title
CN110209385A (en) Establishment of item method and device
US11562074B2 (en) Firmware upgrade method and device, and storage medium
KR101770931B1 (en) Method, apparatus, program and computer-readable recording medium of generating communication module firmware and plug-in
CN105094931B (en) Method for upgrading software and device
CN104951336A (en) Application program installation method and device
EP3176709A1 (en) Video categorization method and apparatus, computer program and recording medium
CN104484200A (en) Method and device for updating firmware
CN105302615B (en) Method for upgrading software and device
CN105871913A (en) Identity authentication method and system
CN105049219B (en) Flow booking method and system, mobile terminal and server
CN107330391A (en) Product information reminding method and device
CN107239207A (en) Photo display methods and device
CN107463372B (en) Data-driven page updating method and device
CN104063424B (en) Web page picture shows method and demonstration device
CN104038922B (en) File synchronisation method and relevant apparatus
CN105589575B (en) Input method call method and device
CN109388423A (en) Method for upgrading software and device
CN109582297A (en) A kind of generation method of Code Template, device, electronic equipment and storage medium
CN107632835A (en) Using installation method and device
CN104125268B (en) Document down loading method, device, routing device and terminal device
CN106850556A (en) service access method, device and equipment
CN106777044A (en) Picture method for pushing and device
CN107580142B (en) Method and device for executing processing
CN105323318A (en) Parameter modifying method, parameter modifying device and parameter modifying equipment
CN105354734A (en) Information processing method and apparatus and terminal

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