Java-Chassis 1.2.0 Release
[SCB-1240] allowed one prometheus cluster support multiple apps
4 files changed
tree: e45afe9efa94e54555618a13825bf20991ea39f7
  1. .github/
  2. archetypes/
  3. common/
  4. core/
  5. coverage-reports/
  6. demo/
  7. deployment/
  8. dynamic-config/
  9. edge/
  10. etc/
  11. foundations/
  12. handlers/
  13. inspector/
  14. integration-tests/
  15. java-chassis-dependencies/
  16. java-chassis-distribution/
  17. java-chassis-spring-boot/
  18. metrics/
  19. parents/
  20. providers/
  21. samples/
  22. scripts/
  23. service-registry/
  24. solutions/
  25. swagger/
  26. tracing/
  27. transports/
  28. .gitignore
  29. .travis.settings.xml
  30. .travis.yml
  31. gpg-sec.tar.enc
  32. LICENSE
  33. NOTICE
  34. pom.xml
  35. README.md
README.md

Java Chassis

Build Status Coverage Status Maven Central License Gitter

Apache ServiceComb Java Chassis is a Software Development Kit (SDK) for rapid development of microservices in Java, providing service registration, service discovery, dynamic routing, and service management features

Quick Start

Provider service:

import org.apache.servicecomb.*;
@RpcSchema(schemaId = "helloworld")
public class HelloWorldProvider implements HelloWorld {
    public String sayHello(String name) {
        return "Hello " + name;
    }
}

Consumer service:

import org.apache.servicecomb.*;
@Component
public class HelloWorldConsumer  {
	@RpcReference(microserviceName = "pojo", schemaId = "helloworld")
	private static HelloWorld helloWorld;

	public static void main(String[] args) {
		helloWorld.sayHello("Tank");
	}
}

Documentation

Project documentation is available on the ServiceComb website.

Building

You don’t need to build from source to use Java Chassis (binaries in apache nexus ), but if you want to try out the latest and greatest, Java Chassis can be easily built with the maven. You also need JDK 1.8.

  mvn clean install

If you want to build the release kits from the source

  mvn clean install  -Prelease,distribution

The first build may take a longer than expected as Maven downloads all the dependencies.

Automated Testing

To build the docker image and run the integration tests with docker, you can use maven docker profile

  mvn clean install -Pdocker -Pit

If you are using docker machine, please use the following command

  mvn clean install -Pdocker -Pit -Pdocker-machine

Get The Latest Release

Download Java-Chassis

Get The Latest SNAPSHOT

We publish the snapshot version to Apache nexus repo, please add below repositories into your pom.xml.

   <repositories>
      <repository>
        <releases />
        <snapshots>
          <enabled>true</enabled>
        </snapshots>
        <id>repo.apache.snapshot</id>
        <url>https://repository.apache.org/content/repositories/snapshots/</url>
      </repository>
    </repositories>
    <pluginRepositories>
      <pluginRepository>
        <releases />
        <snapshots>
          <enabled>true</enabled>
        </snapshots>
        <id>repo.apache.snapshot</id>
        <url>https://repository.apache.org/content/repositories/snapshots/</url>
      </pluginRepository>
    </pluginRepositories>

Contact

Bugs: issues

mailing list: subscribe dev

Contributing

See CONTRIBUTING for details on submitting patches and the contribution workflow.