فهرست منبع

完善提交中央仓库pom的标准化

bryan.zhang 5 سال پیش
والد
کامیت
4e7a5e792a

+ 4 - 0
liteflow-core/src/main/java/com/yomahub/liteflow/core/NodeComponent.java

@@ -74,6 +74,7 @@ public abstract class NodeComponent {
 
 	/**
 	 * 是否进入该节点
+	 * @return boolean
 	 */
 	protected boolean isAccess(){
 		return true;
@@ -81,6 +82,7 @@ public abstract class NodeComponent {
 
 	/**
 	 * 出错是否继续执行
+	 * @return boolean
 	 */
 	protected boolean isContinueOnError() {
 		return false;
@@ -88,6 +90,7 @@ public abstract class NodeComponent {
 
 	/**
 	 * 是否结束整个流程(不往下继续执行)
+	 * @return boolean
 	 */
 	protected boolean isEnd() {
 		Boolean isEnd = isEndTL.get();
@@ -100,6 +103,7 @@ public abstract class NodeComponent {
 
 	/**
 	 * 设置是否结束整个流程
+	 * @param isEnd
 	 */
 	protected void setIsEnd(boolean isEnd){
 		this.isEndTL.set(isEnd);

+ 3 - 6
liteflow-core/src/main/java/com/yomahub/liteflow/util/LimitQueue.java

@@ -30,6 +30,8 @@ public class LimitQueue<E> implements Queue<E> {
 
 	/**
 	 * 入队
+	 * @param e
+	 * @return
 	 */
 	@Override
 	public boolean offer(E e) {
@@ -42,6 +44,7 @@ public class LimitQueue<E> implements Queue<E> {
 
 	/**
 	 * 出队
+	 * @return
 	 */
 	@Override
 	public E poll() {
@@ -50,10 +53,7 @@ public class LimitQueue<E> implements Queue<E> {
 
 	/**
 	 * 获取队列
-	 *
 	 * @return
-	 * @author SHANHY
-	 * @date 2015年11月9日
 	 */
 	public Queue<E> getQueue() {
 		return queue;
@@ -61,10 +61,7 @@ public class LimitQueue<E> implements Queue<E> {
 
 	/**
 	 * 获取限制大小
-	 *
 	 * @return
-	 * @author SHANHY
-	 * @date 2015年11月9日
 	 */
 	public int getLimit() {
 		return limit;

+ 40 - 10
pom.xml

@@ -178,6 +178,40 @@
 					</execution>
 				</executions>
 			</plugin>
+			<plugin>
+				<groupId>org.apache.maven.plugins</groupId>
+				<artifactId>maven-site-plugin</artifactId>
+				<version>3.7.1</version>
+			</plugin>
+			<!-- Javadoc -->
+			<plugin>
+				<groupId>org.apache.maven.plugins</groupId>
+				<artifactId>maven-javadoc-plugin</artifactId>
+				<version>3.0.1</version>
+				<executions>
+					<execution>
+						<phase>package</phase>
+						<goals>
+							<goal>jar</goal>
+						</goals>
+					</execution>
+				</executions>
+			</plugin>
+			<!-- Gpg Signature -->
+			<plugin>
+				<groupId>org.apache.maven.plugins</groupId>
+				<artifactId>maven-gpg-plugin</artifactId>
+				<version>1.6</version>
+				<executions>
+					<execution>
+						<id>sign-artifacts</id>
+						<phase>verify</phase>
+						<goals>
+							<goal>sign</goal>
+						</goals>
+					</execution>
+				</executions>
+			</plugin>
         </plugins>
     </build>
 
@@ -188,18 +222,14 @@
 		<module>liteflow-test-spring</module>
 	</modules>
 
-	<!--
 	<distributionManagement>
-		<repository>
-			<id>nexus-releases</id>
-			<name>nexus-releases</name>
-			<url>http://118.178.236.200:8087/nexus/content/repositories/thirdparty</url>
-		</repository>
 		<snapshotRepository>
-			<id>nexus-snapshots</id>
-			<name>nexus-snapshots</name>
-			<url>http://118.178.236.200:8087/nexus/content/repositories/snapshots</url>
+			<id>sonatype</id>
+			<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
 		</snapshotRepository>
+		<repository>
+			<id>sonatype</id>
+			<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
+		</repository>
 	</distributionManagement>
-	-->
 </project>