You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@shiro.apache.org by bm...@apache.org on 2021/05/21 18:54:28 UTC
[shiro] branch main updated: [SHIRO-819] Migrato to
spring-boot-maven-plugin
This is an automated email from the ASF dual-hosted git repository.
bmarwell pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/shiro.git
The following commit(s) were added to refs/heads/main by this push:
new 3eb2642 [SHIRO-819] Migrato to spring-boot-maven-plugin
new cfea5a8 Merge pull request #304 from bmarwell/SHIRO-819_hasher-util
3eb2642 is described below
commit 3eb264217a706c74c0d66ddce396c924ff65b1c7
Author: Benjamin Marwell <bm...@apache.org>
AuthorDate: Fri May 21 07:18:31 2021 +0200
[SHIRO-819] Migrato to spring-boot-maven-plugin
- remove old assembly descriptor
- attach artifact with cli-classifier as before
- change the display name of the hash modules
---
crypto/support/hashes/argon2/pom.xml | 2 +-
crypto/support/hashes/bcrypt/pom.xml | 2 +-
tools/hasher/pom.xml | 25 +++++++-----------
tools/hasher/src/main/assembly/cli.assembly.xml | 35 -------------------------
4 files changed, 12 insertions(+), 52 deletions(-)
diff --git a/crypto/support/hashes/argon2/pom.xml b/crypto/support/hashes/argon2/pom.xml
index 208a054..b278be5 100644
--- a/crypto/support/hashes/argon2/pom.xml
+++ b/crypto/support/hashes/argon2/pom.xml
@@ -31,7 +31,7 @@
</parent>
<artifactId>shiro-hashes-argon2</artifactId>
- <name>Apache Shiro :: Cryptography :: Support :: Hashes :: Argon2</name>
+ <name>Apache Shiro :: Cryptography :: Support :: Argon2</name>
<packaging>bundle</packaging>
diff --git a/crypto/support/hashes/bcrypt/pom.xml b/crypto/support/hashes/bcrypt/pom.xml
index 24924d7..ae9022c 100644
--- a/crypto/support/hashes/bcrypt/pom.xml
+++ b/crypto/support/hashes/bcrypt/pom.xml
@@ -31,7 +31,7 @@
</parent>
<artifactId>shiro-hashes-bcrypt</artifactId>
- <name>Apache Shiro :: Cryptography :: Support :: Hashes :: BCrypt</name>
+ <name>Apache Shiro :: Cryptography :: Support :: BCrypt</name>
<packaging>bundle</packaging>
diff --git a/tools/hasher/pom.xml b/tools/hasher/pom.xml
index 2a3b4aa..94da7d9 100644
--- a/tools/hasher/pom.xml
+++ b/tools/hasher/pom.xml
@@ -73,25 +73,20 @@
<build>
<plugins>
<plugin>
- <artifactId>maven-assembly-plugin</artifactId>
- <version>3.1.0</version>
- <configuration>
- <descriptors>
- <descriptor>src/main/assembly/cli.assembly.xml</descriptor>
- </descriptors>
- <archive>
- <manifest>
- <mainClass>org.apache.shiro.tools.hasher.Hasher</mainClass>
- </manifest>
- </archive>
- </configuration>
+ <groupId>org.springframework.boot</groupId>
+ <artifactId>spring-boot-maven-plugin</artifactId>
+ <version>2.1.12.RELEASE</version>
<executions>
<execution>
- <id>make-assembly</id>
- <phase>package</phase>
<goals>
- <goal>single</goal>
+ <goal>repackage</goal>
</goals>
+ <configuration>
+ <mainClass>org.apache.shiro.tools.hasher.Hasher</mainClass>
+ <classifier>cli</classifier>
+ <attach>true</attach>
+ <layout>JAR</layout>
+ </configuration>
</execution>
</executions>
</plugin>
diff --git a/tools/hasher/src/main/assembly/cli.assembly.xml b/tools/hasher/src/main/assembly/cli.assembly.xml
deleted file mode 100644
index 9926c41..0000000
--- a/tools/hasher/src/main/assembly/cli.assembly.xml
+++ /dev/null
@@ -1,35 +0,0 @@
-<!--
- ~ Licensed to the Apache Software Foundation (ASF) under one
- ~ or more contributor license agreements. See the NOTICE file
- ~ distributed with this work for additional information
- ~ regarding copyright ownership. The ASF licenses this file
- ~ to you under the Apache License, Version 2.0 (the
- ~ "License"); you may not use this file except in compliance
- ~ with the License. You may obtain a copy of the License at
- ~
- ~ http://www.apache.org/licenses/LICENSE-2.0
- ~
- ~ Unless required by applicable law or agreed to in writing,
- ~ software distributed under the License is distributed on an
- ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- ~ KIND, either express or implied. See the License for the
- ~ specific language governing permissions and limitations
- ~ under the License.
- -->
-<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0 http://maven.apache.org/xsd/assembly-1.1.0.xsd">
- <id>cli</id>
- <formats>
- <format>jar</format>
- </formats>
- <includeBaseDirectory>false</includeBaseDirectory>
- <dependencySets>
- <dependencySet>
- <outputDirectory>/</outputDirectory>
- <useProjectArtifact>true</useProjectArtifact>
- <unpack>true</unpack>
- <scope>runtime</scope>
- </dependencySet>
- </dependencySets>
-</assembly>
\ No newline at end of file