Nexus 3.x creates a private repository and uploads jar packages using gradle
1, Create private warehouse
1. Open the Nexus homepage and log in, enter the setting interface, and click create
2. Select maven2 hosted warehouse
3. Enter the name of the created warehouse. If repeated deployment is allowed, you can change the Disable redeploy below to Allow Redeploy
2, Add private warehouse to Ma ...
Added by capella07 on Sun, 03 May 2020 16:28:12 +0300
How to use Lifecycle components
2017/5/18 Google IO
Android Architecture Components: a new collection of libraries that can easily manage the UI component life cycle and handle data persistence. Help you design robust, testable, and maintainable applications.
In the following, the life cycle of components such as Fragment and Activity directly uses ...
Added by nodi on Sun, 03 May 2020 09:45:43 +0300
Using PhotoView to view pictures
The project needs to realize the function of picture viewing. Using ImageView can't scale, using the system's picture viewer can't meet their own customized needs, so I used Viewpager + PhotoView to realize it.
Introducing PhotoView
Github link for PhotoView , PhotoView is designed to help developers easily scale Android ImageView.
1. Conf ...
Added by yanisdon on Thu, 30 Apr 2020 17:22:01 +0300
Java add, hide / show, delete PDF layers
This paper introduces how to operate PDF layer. It can be divided into adding layers (including adding lines, shapes, strings, pictures, etc.), hiding or displaying layers, deleting layers, etc. Refer to the following Java code examples for details.
Tools: free flame.pdf for Java (free version)
Jar package download and import: available through ...
Added by Allenport on Tue, 28 Apr 2020 17:47:27 +0300
Java copy Word document
This article introduces how to copy Word document in Java program. The copying methods are all copied in a format, and the code examples are shown from the following points:
Copy the body content of Word, which can support multiple elements including text, pictures, tables, hyperlinks, bookmarks, annotations, shapes, numbered lists, footnotes, ...
Added by kayess2004 on Fri, 24 Apr 2020 11:45:34 +0300
Gradle's article is enough for 05 - Multi engineering builds
Multi engineering construction
Maven realizes the combination of multiple modules by using modules. In Gradle, it can be realized by aggregating multiple project s. This article mainly introduces the specific usage.
Multi engineering structure
Create a three-tier structure as follows
graph TD
helloProject --> subProjectA
helloProject ...
Added by jdnet on Mon, 06 Apr 2020 06:39:36 +0300
Java continuous integration (3) - configure test code coverage for maven and upload to sonar
Step 1: configure a new profile in pom.xml to support the Jacobo plug-in
<!-- BEGIN: Specific to mapping unit tests and covered code -->
<profiles>
<profile>
<id>coverage-per-test</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>mave ...
Added by ShaunO on Fri, 03 Apr 2020 18:02:45 +0300
Using opennlp to customize named entities
order
This paper mainly studies how to use opennlp to customize named entity, label training and model application.
maven
<dependency>
<groupId>org.apache.opennlp</groupId>
<artifactId>opennlp-tools</artifactId>
<version>1.8.4</version>
</dependency ...
Added by lorddemos90 on Thu, 02 Apr 2020 23:34:12 +0300
Mybatis generator automatic code generation tool is embedded in maven project. The path obtained in eclipse and intellij is different
Before reading this article, please read another article about the embedding of mybatis generator into maven projectMybatis generator automatic code generation tool is embedded in Maven project to generate java and xml files corresponding to database tables with one click
The method introduced in this paper can run the main method ...
Added by r3n on Thu, 02 Apr 2020 23:13:16 +0300
Spring Boot integrates static technology FreeMarker
Original link: http://www.yiidian.com/springboot/springboot-freemarker.html
This article explains how to integrate FreeMarker in Spring Boot.
1 create project, import dependency
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
...
Added by Ceril on Tue, 24 Mar 2020 16:37:54 +0200