Giter Site home page Giter Site logo

hariyopmail / asuraframework Goto Github PK

View Code? Open in Web Editor NEW

This project forked from asurateam/asuraframework

0.0 0.0 0.0 640 KB

Asura Framework 是我们在实际使用过程中,抽取出来的公共组件

License: Apache License 2.0

Java 99.92% HTML 0.08%

asuraframework's Introduction

asura

asura是我们在实际使用过程中,抽取出来的公共组件,主要包括如下:
asura-base 对content增强处理,无法单独提供服务
asura-commons 封装第三方的工具包提供util类
asura-cache 缓存相关的功能封装
asura-dao 数据库访问读写分离相关
asura-log 统一日志处理相关
asura-rabbitmq rabbitmq相关
asura-quartz 定时任务相关

1、parent pom.xml文件

parant pom.xml 需要设置好
1、部署的仓库地址
2、插件声明
3、仓库配置声明

<!-- 设置好使用仓库地址 -->
<properties>
  <repository.id>snapshots</repository.id>
  <repository.url>http://url/to/snapshots</repository.url>
</properties>
...
</plugins>
  ...
  <!-- install插件 -->
  <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-install-plugin</artifactId>
      <version>2.5.2</version>
  </plugin>

  <!-- deploy插件 -->
  <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-deploy-plugin</artifactId>
      <version>2.8.2</version>
  </plugin>
</plugins>
...
<distributionManagement>    
  <repository>
      <id>releases</id>
      <url>http://url/to/releases</url>
  </repository>
  <snapshotRepository>
      <id>snapshots</id>
      <url>http://url/to/snapshots</url>
  </snapshotRepository>
<distributionManagement>    

2、child pom.xml

子模块pom.xml 注释默认的deploy goal改写deploy goal为deploy-file

<plugins>
  <!-- deploy插件 -->
  <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-deploy-plugin</artifactId>
      <executions>
          <execution>
              <id>default-deploy</id>
              <phase>none</phase>
          </execution>
          <execution>
              <id>deploy-sms</id>
              <phase>deploy</phase>
              <goals>
                  <goal>deploy-file</goal>
              </goals>
              <configuration>
                  <file>target/com-asura-framework-sms-${version}.jar</file>
                  <repositoryId>${repository.id}</repositoryId>
                  <url>${repository.url}</url>
                  <groupId>com.asura</groupId>
                  <artifactId>com-asura-framework-sms</artifactId>
                  <version>${version}</version>
                  <packaging>jar</packaging>
              </configuration>
          </execution>
      </executions>
  </plugin>
</plugins>

3、部署到远程仓库

使用maven命令:

mvn clean compile package deploy 

asuraframework's People

Contributors

cookieka avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.