Skip to content

Commit

Permalink
samples-for-2.7.0-SNAPSHOT change groupId and package to org.apache.d…
Browse files Browse the repository at this point in the history
…ubbo (#33)

* modify poms

* dubbo-samples-annotation:change groupId and package to org.apache.dubbo

* dubbo-samples-api:change groupId and package to org.apache.dubbo

* dubbo-samples-async:change groupId and package to org.apache.dubbo

* dubbo-samples-async-consumer-future:change groupId and package to org.apache.dubbo

* dubbo-samples-async-original-future:change groupId and package to org.apache.dubbo

* dubbo-samples-async-provider:change groupId and package to org.apache.dubbo

* dubbo-samples-attachment:change groupId and package to org.apache.dubbo

* dubbo-samples-basic:change groupId and package to org.apache.dubbo

* dubbo-samples-basic:change groupId and package to org.apache.dubbo

* dubbo-samples-callback:change groupId and package to org.apache.dubbo

* dubbo-samples-compatible:change groupId and package to org.apache.dubbo

* dubbo-samples-context:change groupId and package to org.apache.dubbo

* dubbo-samples-direct:change groupId and package to org.apache.dubbo

* dubbo-samples-docker:change groupId and package to org.apache.dubbo

* dubbo-samples-echo:change groupId and package to org.apache.dubbo

* dubbo-samples-generic:change groupId and package to org.apache.dubbo

* dubbo-samples-group:change groupId and package to org.apache.dubbo

* dubbo-samples-http:change groupId and package to org.apache.dubbo

* dubbo-samples-merge:change groupId and package to org.apache.dubbo

* dubbo-samples-mock:change groupId and package to org.apache.dubbo

* dubbo-samples-notify:change groupId and package to org.apache.dubbo

* dubbo-samples-spring-hystrix:change groupId and package to org.apache.dubbo

* dubbo-samples-stub:change groupId and package to org.apache.dubbo

* dubbo-samples-validation:change groupId and package to org.apache.dubbo

* dubbo-samples-version:change groupId and package to org.apache.dubbo

* change groupId and package to org.apache.dubbo

* fix README
  • Loading branch information
leyou240 authored and jerrick-zhu committed Oct 24, 2018
1 parent b637bdc commit d715410
Show file tree
Hide file tree
Showing 226 changed files with 2,842 additions and 2,475 deletions.
9 changes: 7 additions & 2 deletions dubbo-samples-annotation/pom.xml
Expand Up @@ -23,11 +23,16 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>dubbo-samples-all</artifactId>
<groupId>com.alibaba</groupId>
<groupId>org.apache.dubbo</groupId>
<version>1.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

<artifactId>dubbo-samples-annotation</artifactId>

<dependencies>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
</dependency>
</dependencies>
</project>

This file was deleted.

Expand Up @@ -17,11 +17,10 @@
*
*/

package com.alibaba.dubbo.samples.annotation;

import com.alibaba.dubbo.config.spring.context.annotation.EnableDubbo;
import com.alibaba.dubbo.samples.annotation.action.AnnotationAction;
package org.apache.dubbo.samples.annotation;

import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
import org.apache.dubbo.samples.annotation.action.AnnotationAction;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
Expand All @@ -44,7 +43,7 @@ public static void main(String[] args) throws Exception {
@Configuration
@EnableDubbo(scanBasePackages = "com.alibaba.dubbo.samples.annotation.action")
@PropertySource("classpath:/spring/dubbo-consumer.properties")
@ComponentScan(value = {"com.alibaba.dubbo.samples.annotation.action"})
@ComponentScan(value = {"org.apache.dubbo.samples.annotation.action"})
static public class ConsumerConfiguration {

}
Expand Down
Expand Up @@ -17,11 +17,11 @@
*
*/

package com.alibaba.dubbo.samples.annotation;
package org.apache.dubbo.samples.annotation;

import com.alibaba.dubbo.config.ProviderConfig;
import com.alibaba.dubbo.config.spring.context.annotation.EnableDubbo;

import org.apache.dubbo.config.ProviderConfig;
import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
Expand Down
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.alibaba.dubbo.samples.callback;
package org.apache.dubbo.samples.annotation;

import java.io.File;
import java.lang.reflect.Method;
Expand Down
Expand Up @@ -17,10 +17,10 @@
*
*/

package com.alibaba.dubbo.samples.annotation.action;
package org.apache.dubbo.samples.annotation.action;

import com.alibaba.dubbo.config.annotation.Reference;
import com.alibaba.dubbo.samples.annotation.api.AnnotationService;
import org.apache.dubbo.config.annotation.Reference;
import org.apache.dubbo.samples.annotation.api.AnnotationService;

import org.springframework.stereotype.Component;

Expand Down
Expand Up @@ -17,7 +17,7 @@
*
*/

package com.alibaba.dubbo.samples.annotation.api;
package org.apache.dubbo.samples.annotation.api;

/**
* AsyncService
Expand Down
Expand Up @@ -17,17 +17,18 @@
*
*/

package com.alibaba.dubbo.samples.annotation.impl;
package org.apache.dubbo.samples.annotation.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.alibaba.dubbo.samples.annotation.api.AnnotationService;
import org.apache.dubbo.config.annotation.Service;
import org.apache.dubbo.samples.annotation.api.AnnotationService;

/**
* AsyncServiceImpl
*/
@Service
public class AnnotationServiceImpl implements AnnotationService {

@Override
public String sayHello(String name) {
System.out.println("async provider received: " + name);
return "annotation: hello, " + name;
Expand Down
4 changes: 2 additions & 2 deletions dubbo-samples-api/README.md
Expand Up @@ -6,11 +6,11 @@ This sample code demonstrates building up dubbo service provider and service con

```bash
mvn clean package
mvn -Djava.net.preferIPv4Stack=true -Dexec.mainClass=com.alibaba.dubbo.samples.server.Application exec:java
mvn -Djava.net.preferIPv4Stack=true -Dexec.mainClass=Application exec:java
```

## Invoke the service consumer

```bash
mvn -Djava.net.preferIPv4Stack=true -Dexec.mainClass=com.alibaba.dubbo.samples.client.Application exec:java
mvn -Djava.net.preferIPv4Stack=true -Dexec.mainClass=Application exec:java
```
2 changes: 1 addition & 1 deletion dubbo-samples-api/pom.xml
Expand Up @@ -21,7 +21,7 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>dubbo-samples-all</artifactId>
<groupId>com.alibaba</groupId>
<groupId>org.apache.dubbo</groupId>
<version>1.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand Down

0 comments on commit d715410

Please sign in to comment.