Security -> Roles -> Create role
Role ID:
nx-component
Role name
nx-component
Role description :
Component Role
Privileges:
Given
nx-component-upload
nx-repository-view-*-*-*
Roles:
Contained
nx-anonymous
Security -> Users -> Create local user
deployment
pom.xml
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>cn.superdesk.libs</groupId>
<artifactId>superdesk-libs</artifactId>
<version>1.3.1-SNAPSHOT</version>
<packaging>pom</packaging>
<description>Java 后台开发套件</description>
<name>superdesk-libs</name>
<url>http://www.superdesk.cn</url>
<developers>
<developer>
<name>superdesk</name>
<email></email>
<organization>superdesk</organization>
<organizationUrl>https://www.superdesk.cn</organizationUrl>
</developer>
</developers>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<compiler.jdk.version>1.8</compiler.jdk.version>
<output.encoding>utf-8</output.encoding>
<spring.version>5.0.6.RELEASE</spring.version>
<spring-boot.version>2.0.2.RELEASE</spring-boot.version>
<kafka.version>0.10.2.0</kafka.version>
<zkclient.version>0.10</zkclient.version>
<zookeeper.version>3.4.9</zookeeper.version>
<jedis.version>2.9.0</jedis.version>
<mybatis.version>3.4.5</mybatis.version>
<mapper.version>3.5.3</mapper.version>
<druid.version>1.0.16</druid.version>
<junit.version>4.12</junit.version>
</properties>
<modules>
<module>superdesk-libs-common</module>
<module>superdesk-libs-kafka</module>
<module>superdesk-libs-spring</module>
<module>superdesk-libs-cache</module>
<module>superdesk-libs-scheduler</module>
<module>superdesk-libs-mybatis</module>
<module>superdesk-libs-rest</module>
<module>superdesk-libs-common2</module>
<module>superdesk-libs-filesystem</module>
<module>superdesk-libs-springboot-starter</module>
<module>superdesk-libs-springweb</module>
<!--
<module>superdesk-libs-log</module>
<module>superdesk-libs-search</module>
<module>superdesk-libs-tx</module>
-->
<module>superdesk-libs-event</module>
<module>superdesk-libs-security</module>
</modules>
<dependencies>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
<version>2.7</version>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-slf4j-impl</artifactId>
<version>2.7</version>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.7.21</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-test</artifactId>
<version>${spring.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
<profiles>
<profile>
<id>release</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>${compiler.jdk.version}</source>
<target>${compiler.jdk.version}</target>
<encoding>${output.encoding}</encoding>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<configuration>
<skip>false</skip>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.9.1</version>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
<configuration>
<additionalparam>-Xdoclint:none</additionalparam>
</configuration>
</execution>
</executions>
</plugin>
<!--中央仓库-->
<!--<plugin>-->
<!--<groupId>org.apache.maven.plugins</groupId>-->
<!--<artifactId>maven-gpg-plugin</artifactId>-->
<!--<executions>-->
<!--<execution>-->
<!--<id>sign-artifacts</id>-->
<!--<phase>verify</phase>-->
<!--<goals>-->
<!--<goal>sign</goal>-->
<!--</goals>-->
<!--</execution>-->
<!--</executions>-->
<!--</plugin>-->
</plugins>
</build>
</profile>
</profiles>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>${compiler.jdk.version}</source>
<target>${compiler.jdk.version}</target>
<encoding>${output.encoding}</encoding>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.4</version>
<executions>
<execution>
<id>attach-sources</id>
<phase>verify</phase>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<configuration>
<skip>false</skip>
</configuration>
</plugin>
</plugins>
</build>
<!--<distributionManagement>-->
<!-- mvn clean deploy -P release -DskipTests=true -Dgpg.passphrase=密码 -->
<!--<snapshotRepository>-->
<!--<id>snapshots</id>-->
<!--<url>http://test..com/nexus/content/repositories/snapshots</url>-->
<!--</snapshotRepository>-->
<!--<repository>-->
<!--<id>ossrh</id>-->
<!--<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>-->
<!--</repository>-->
<!--</distributionManagement>-->
<distributionManagement>
<!--mvn clean deploy -P release -DskipTests=true -Dgpg.passphrase=admin123-->
<repository>
<id>nexus-releases</id>
<!--<name>Project RELEASE</name>-->
<url>http://127.0.0.1:28080/repository/maven-releases</url>
</repository>
<snapshotRepository>
<id>nexus-snapshots</id>
<!--<name>Porject SNAPSHOTS</name>-->
<url>http://127.0.0.1:28080/repository/maven-snapshots</url>
</snapshotRepository>
</distributionManagement>
</project>
.m2/settings.xml
<?xml version="1.0" encoding="UTF-8"?>
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
<pluginGroups></pluginGroups>
<proxies></proxies>
<servers>
<server>
<id>nexus-releases</id>
<username>deployment</username>
<password>admin123</password>
</server>
<server>
<id>nexus-snapshots</id>
<username>deployment</username>
<password>admin123</password>
</server>
<server>
<id>nexus</id>
<username>deployment</username>
<password>admin123</password>
</server>
</servers>
<mirrors>
<mirror>
<id>nexus</id>
<mirrorOf>*</mirrorOf>
<url>http://127.0.0.1:28080/repository/maven-public/</url>
</mirror>
<!-- <mirror>
<id>nexus-releases</id>
<mirrorOf>*</mirrorOf>
<url>http://127.0.0.1:28080/repository/nexus-releases</url>
</mirror> -->
<!-- <mirror>
<id>nexus-snapshots</id>
<mirrorOf>*</mirrorOf>
<url>http://127.0.0.1:28080/repository/nexus-snapshots</url>
</mirror> -->
</mirrors>
<profiles>
<profile>
<id>nexus</id>
<repositories>
<repository>
<id>nexus</id>
<url>http://127.0.0.1:28080/repository/maven-public/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
<!-- <repository>
<id>nexus-releases</id>
<url>http://127.0.0.1:28080/repository/nexus-releases</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository> -->
<!-- <repository>
<id>nexus-snapshots</id>
<url>http://127.0.0.1:28080/repository/nexus-snapshots</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository> -->
</repositories>
<!-- <pluginRepositories>
<pluginRepository>
<id>nexus-releases</id>
<url>http://127.0.0.1:28080/repository/maven-public</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</pluginRepository>
<pluginRepository>
<id>nexus-snapshots</id>
<url>http://127.0.0.1:28080/repository/maven-public</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories> -->
</profile>
</profiles>
<activeProfiles>
<activeProfile>nexus</activeProfile>
</activeProfiles>
</settings>
未标明原创文章均为采集,版权归作者所有,转载无需和我联系,请注明原出处,南摩阿彌陀佛,知识,不只知道,要得到
最新评论