Package init

This commit is contained in:
gnaygnil 2020-02-14 15:37:35 +08:00
parent ec535a2aac
commit da6cea926a
7 changed files with 140 additions and 75 deletions

21
LICENSE.MIT Normal file
View File

@ -0,0 +1,21 @@
The MIT License
Copyright (c) 2005, The Codehaus
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

View File

@ -1,36 +0,0 @@
# plexus-interactivity
#### Description
{**When you're done, you can delete the content in this README and update the file with details for others getting started with your repository**}
#### Software Architecture
Software architecture description
#### Installation
1. xxxx
2. xxxx
3. xxxx
#### Instructions
1. xxxx
2. xxxx
3. xxxx
#### Contribution
1. Fork the repository
2. Create Feat_xxx branch
3. Commit your code
4. Create Pull Request
#### Gitee Feature
1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md
2. Gitee blog [blog.gitee.com](https://blog.gitee.com)
3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore)
4. The most valuable open source project [GVP](https://gitee.com/gvp)
5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help)
6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)

View File

@ -1,39 +0,0 @@
# plexus-interactivity
#### 介绍
{**以下是码云平台说明,您可以替换此简介**
码云是 OSCHINA 推出的基于 Git 的代码托管平台(同时支持 SVN。专为开发者提供稳定、高效、安全的云端软件开发协作平台
无论是个人、团队、或是企业,都能够用码云实现代码托管、项目管理、协作开发。企业项目请看 [https://gitee.com/enterprises](https://gitee.com/enterprises)}
#### 软件架构
软件架构说明
#### 安装教程
1. xxxx
2. xxxx
3. xxxx
#### 使用说明
1. xxxx
2. xxxx
3. xxxx
#### 参与贡献
1. Fork 本仓库
2. 新建 Feat_xxx 分支
3. 提交代码
4. 新建 Pull Request
#### 码云特技
1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md
2. 码云官方博客 [blog.gitee.com](https://blog.gitee.com)
3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解码云上的优秀开源项目
4. [GVP](https://gitee.com/gvp) 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目
5. 码云官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help)
6. 码云封面人物是一档用来展示码云会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)

Binary file not shown.

View File

@ -0,0 +1,16 @@
diff --git a/plexus-interactivity-api/pom.xml b/plexus-interactivity-api/pom.xml
index 84e659e..943d7e4 100644
--- a/plexus-interactivity-api/pom.xml
+++ b/plexus-interactivity-api/pom.xml
@@ -11,6 +11,11 @@
<dependencies>
<dependency>
<groupId>org.codehaus.plexus</groupId>
+ <artifactId>plexus-component-api</artifactId>
+ <version>1.0-alpha-15</version>
+ </dependency>
+ <dependency>
+ <groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-utils</artifactId>
<version>1.4</version>
</dependency>

View File

@ -0,0 +1,31 @@
diff -uprN plexus-interactivity-1.0-alpha-6_raw/plexus-interactivity-jline/pom.xml plexus-interactivity-1.0-alpha-6/plexus-interactivity-jline/pom.xml
--- plexus-interactivity-1.0-alpha-6_raw/plexus-interactivity-jline/pom.xml 2007-03-31 05:41:53.000000000 +0800
+++ plexus-interactivity-1.0-alpha-6/plexus-interactivity-jline/pom.xml 2020-01-19 14:52:32.404735290 +0800
@@ -12,7 +12,7 @@
<dependency>
<groupId>jline</groupId>
<artifactId>jline</artifactId>
- <version>0.9.1</version>
+ <version>2.10</version>
</dependency>
<dependency>
<groupId>org.codehaus.plexus</groupId>
@@ -20,4 +20,4 @@
<version>1.0-alpha-6</version>
</dependency>
</dependencies>
-</project>
\ No newline at end of file
+</project>
diff -uprN plexus-interactivity-1.0-alpha-6_raw/plexus-interactivity-jline/src/main/java/org/codehaus/plexus/components/interactivity/jline/JLineInputHandler.java plexus-interactivity-1.0-alpha-6/plexus-interactivity-jline/src/main/java/org/codehaus/plexus/components/interactivity/jline/JLineInputHandler.java
--- plexus-interactivity-1.0-alpha-6_raw/plexus-interactivity-jline/src/main/java/org/codehaus/plexus/components/interactivity/jline/JLineInputHandler.java 2005-10-11 00:51:51.000000000 +0800
+++ plexus-interactivity-1.0-alpha-6/plexus-interactivity-jline/src/main/java/org/codehaus/plexus/components/interactivity/jline/JLineInputHandler.java 2020-01-19 14:52:32.404735290 +0800
@@ -24,7 +24,7 @@ package org.codehaus.plexus.components.i
* SOFTWARE.
*/
-import jline.ConsoleReader;
+import jline.console.ConsoleReader;
import org.codehaus.plexus.components.interactivity.AbstractInputHandler;
import org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable;
import org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException;

72
plexus-interactivity.spec Normal file
View File

@ -0,0 +1,72 @@
%global commit_id e548f219775cf2e1ac2f6b2925feb0104ba2a039
Name: plexus-interactivity
Version: 1.0
Release: 2
Epoch: 0
Summary: Plexus Interactivity Handler Component
License: MIT
URL: https://github.com/codehaus-plexus/plexus-interactivity
Source0: https://codeload.github.com/codehaus-plexus/plexus-interactivity/zip/%{commit_id}
Source1: LICENSE.MIT
Patch0001: plexus-interactivity-dependencies.patch
Patch9001: plexus-interactivity-fix_build_error_in_jline.patch
BuildRequires: mvn(org.codehaus.plexus:plexus-utils) mvn(org.codehaus.plexus:plexus-components:pom:)
BuildRequires: mvn(org.codehaus.plexus:plexus-component-api) mvn(jline:jline) >= 2 maven-local
BuildArch: noarch
Provides: plexus-interactivity-api plexus-interactivity-jline plexus-interactivity-javadoc
Obsoletes: plexus-interactivity-api plexus-interactivity-jline plexus-interactivity-javadoc
%description
The Plexus project provides a full software stack for creating and executing
software projects. It provides a number of pre-built components for common
tasks and toolkits such as Jetty, Velocity, Hibernate, i18n, and many more.
However, Plexus is also able to reuse your existing components written for
other IoC frameworks such as Spring, Avalon and Pico Container unmodified,
as well as allowing you to reuse your existing code inside the Plexus
Container.
Plexus comes with an application server that can run your applications, making
it trivial to build a standalone executable distribution with common features
such as service execution if needed. However, Plexus applications can be run
in any environment by embedding the container in an existing application,
including Java EE applications or web applications.
%package help
Summary: Documentation for plexus-interactivity
%description help
Documentation for plexus-interactivity api.
%prep
unzip %{SOURCE0}
cd plexus-interactivity-%{commit_id}/
%patch1 -p1
%patch9001 -p1
cd -
cp %{SOURCE1} .
%mvn_file ":{plexus}-{*}" @1/@2
%build
cd plexus-interactivity-%{commit_id}/
%mvn_package ":plexus-interactivity"
%mvn_build -f -s
cd -
%install
cd plexus-interactivity-%{commit_id}/
%mvn_install
cd -
%files -f plexus-interactivity-%{commit_id}/.mfiles
%doc LICENSE.MIT
%{_javadir}/plexus-interactivity/*
%{_datadir}/maven-metadata/*
%{_datadir}/maven-poms/plexus-interactivity/*
%files help
%{_javadocdir}/plexus-interactivity
%changelog
* Fri Feb 14 2020 Ling Yang <lingyang2@huawei.com> - 0:1.0-2
- Package Init