From e0c2992936ed9dc9abe6ec8a58758cbb2ae5b642 Mon Sep 17 00:00:00 2001 From: kelvingoodson Date: Thu, 27 May 2010 11:06:50 +0000 Subject: sandbox structure for understanding maven javadoc plugin params and behaviour in reactor build git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@948784 13f79535-47bb-0310-9956-ffa450edef68 --- sandbox/kgoodson/testroot/pom.xml | 64 ++++++++++++ sandbox/kgoodson/testroot/proj1/pom.xml | 111 +++++++++++++++++++++ .../testroot/proj1/src/main/java/a/Hay.java | 5 + .../proj1/src/main/java/a/HelloworldImpl.java | 36 +++++++ .../proj1/src/main/java/a/HelloworldService.java | 28 ++++++ .../testroot/proj1/src/main/java/b/Bee.java | 5 + .../testroot/proj1/src/main/java/x/Exx.java | 5 + .../main/resources/META-INF/sca-contribution.xml | 23 +++++ .../proj1/src/main/resources/helloworld.composite | 29 ++++++ sandbox/kgoodson/testroot/proj2/pom.xml | 109 ++++++++++++++++++++ .../proj2/src/main/java/c/HelloworldImpl.java | 36 +++++++ .../proj2/src/main/java/c/HelloworldService.java | 28 ++++++ .../testroot/proj2/src/main/java/d/Dee.java | 5 + .../testroot/proj2/src/main/java/y/Whyfor.java | 5 + .../testroot/proj2/src/main/java/z/Zee.java | 5 + .../main/resources/META-INF/sca-contribution.xml | 23 +++++ .../proj2/src/main/resources/helloworld.composite | 29 ++++++ 17 files changed, 546 insertions(+) create mode 100644 sandbox/kgoodson/testroot/pom.xml create mode 100644 sandbox/kgoodson/testroot/proj1/pom.xml create mode 100644 sandbox/kgoodson/testroot/proj1/src/main/java/a/Hay.java create mode 100644 sandbox/kgoodson/testroot/proj1/src/main/java/a/HelloworldImpl.java create mode 100644 sandbox/kgoodson/testroot/proj1/src/main/java/a/HelloworldService.java create mode 100644 sandbox/kgoodson/testroot/proj1/src/main/java/b/Bee.java create mode 100644 sandbox/kgoodson/testroot/proj1/src/main/java/x/Exx.java create mode 100644 sandbox/kgoodson/testroot/proj1/src/main/resources/META-INF/sca-contribution.xml create mode 100644 sandbox/kgoodson/testroot/proj1/src/main/resources/helloworld.composite create mode 100644 sandbox/kgoodson/testroot/proj2/pom.xml create mode 100644 sandbox/kgoodson/testroot/proj2/src/main/java/c/HelloworldImpl.java create mode 100644 sandbox/kgoodson/testroot/proj2/src/main/java/c/HelloworldService.java create mode 100644 sandbox/kgoodson/testroot/proj2/src/main/java/d/Dee.java create mode 100644 sandbox/kgoodson/testroot/proj2/src/main/java/y/Whyfor.java create mode 100644 sandbox/kgoodson/testroot/proj2/src/main/java/z/Zee.java create mode 100644 sandbox/kgoodson/testroot/proj2/src/main/resources/META-INF/sca-contribution.xml create mode 100644 sandbox/kgoodson/testroot/proj2/src/main/resources/helloworld.composite (limited to 'sandbox/kgoodson') diff --git a/sandbox/kgoodson/testroot/pom.xml b/sandbox/kgoodson/testroot/pom.xml new file mode 100644 index 0000000000..8a79511d18 --- /dev/null +++ b/sandbox/kgoodson/testroot/pom.xml @@ -0,0 +1,64 @@ + + + 4.0.0 + org.apache.tuscany + testroot + pom + 1.0-SNAPSHOT + testroot Multi Project + http://maven.apache.org + + proj1 + proj2 + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 2.6.1 + + 1024m + + + tuscany.spi.extension.inheritfrom + + t + Provides part of the Tuscany SPI for Extension Developers by specialization of this class/interface + + + + tuscany.spi.extension.asclient + + t + Provides part of the Tuscany SPI for Extension Developers by calling methods on this interface/class. + + + tuscany.spi.extension + + a + Elements of the Tuscany SPI for Extension developers are provided. + + + + + + + Basic + + a:b:c + + + + Advanced + x:y:z + + + a:x:c:d + + + + + \ No newline at end of file diff --git a/sandbox/kgoodson/testroot/proj1/pom.xml b/sandbox/kgoodson/testroot/proj1/pom.xml new file mode 100644 index 0000000000..a00bc4efdb --- /dev/null +++ b/sandbox/kgoodson/testroot/proj1/pom.xml @@ -0,0 +1,111 @@ + + + + 4.0.0 + + + testroot + org.apache.tuscany + 1.0-SNAPSHOT + + org.apache.tuscany + proj1 + jar + 1.0-SNAPSHOT + + quickstart + + + + + org.apache.tuscany.sca + tuscany-sca-api + ${tuscany.version} + provided + + + + + junit + junit + 4.8.1 + test + + + + + install + ${artifactId} + + + src/main/resources + + + src/main/java + + ** + + + **/*.java + + + + + + src/test/java + + ** + + + **/*.java + + + + + + true + org.apache.maven.plugins + maven-compiler-plugin + + 1.5 + 1.5 + true + true + + + + org.apache.maven.plugins + maven-eclipse-plugin + + true + + + + org.apache.tuscany.maven.plugins + maven-tuscany-plugin + + + + + 2.0-SNAPSHOT + + + + diff --git a/sandbox/kgoodson/testroot/proj1/src/main/java/a/Hay.java b/sandbox/kgoodson/testroot/proj1/src/main/java/a/Hay.java new file mode 100644 index 0000000000..8d41364730 --- /dev/null +++ b/sandbox/kgoodson/testroot/proj1/src/main/java/a/Hay.java @@ -0,0 +1,5 @@ +package a; + +public class Hay { + +} diff --git a/sandbox/kgoodson/testroot/proj1/src/main/java/a/HelloworldImpl.java b/sandbox/kgoodson/testroot/proj1/src/main/java/a/HelloworldImpl.java new file mode 100644 index 0000000000..babdbd648d --- /dev/null +++ b/sandbox/kgoodson/testroot/proj1/src/main/java/a/HelloworldImpl.java @@ -0,0 +1,36 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package a; + +import org.oasisopen.sca.annotation.Init; +import org.oasisopen.sca.annotation.Scope; +import org.oasisopen.sca.annotation.EagerInit; + +@Scope("COMPOSITE") @EagerInit +public class HelloworldImpl implements HelloworldService { + + public String sayHello(String name) { + return "Hello " + name; + } + + @Init + public void init() { + System.out.println(sayHello("world")); + } +} diff --git a/sandbox/kgoodson/testroot/proj1/src/main/java/a/HelloworldService.java b/sandbox/kgoodson/testroot/proj1/src/main/java/a/HelloworldService.java new file mode 100644 index 0000000000..5d97d722c4 --- /dev/null +++ b/sandbox/kgoodson/testroot/proj1/src/main/java/a/HelloworldService.java @@ -0,0 +1,28 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package a; + +import org.oasisopen.sca.annotation.Remotable; + +@Remotable +public interface HelloworldService { + + String sayHello(String name); + +} diff --git a/sandbox/kgoodson/testroot/proj1/src/main/java/b/Bee.java b/sandbox/kgoodson/testroot/proj1/src/main/java/b/Bee.java new file mode 100644 index 0000000000..7bbd651d3a --- /dev/null +++ b/sandbox/kgoodson/testroot/proj1/src/main/java/b/Bee.java @@ -0,0 +1,5 @@ +package b; + +public class Bee { + +} diff --git a/sandbox/kgoodson/testroot/proj1/src/main/java/x/Exx.java b/sandbox/kgoodson/testroot/proj1/src/main/java/x/Exx.java new file mode 100644 index 0000000000..5ac143b3a6 --- /dev/null +++ b/sandbox/kgoodson/testroot/proj1/src/main/java/x/Exx.java @@ -0,0 +1,5 @@ +package x; + +public class Exx { + +} diff --git a/sandbox/kgoodson/testroot/proj1/src/main/resources/META-INF/sca-contribution.xml b/sandbox/kgoodson/testroot/proj1/src/main/resources/META-INF/sca-contribution.xml new file mode 100644 index 0000000000..c7c869d81e --- /dev/null +++ b/sandbox/kgoodson/testroot/proj1/src/main/resources/META-INF/sca-contribution.xml @@ -0,0 +1,23 @@ + + + + + diff --git a/sandbox/kgoodson/testroot/proj1/src/main/resources/helloworld.composite b/sandbox/kgoodson/testroot/proj1/src/main/resources/helloworld.composite new file mode 100644 index 0000000000..8b8d542382 --- /dev/null +++ b/sandbox/kgoodson/testroot/proj1/src/main/resources/helloworld.composite @@ -0,0 +1,29 @@ + + + + + + + + + diff --git a/sandbox/kgoodson/testroot/proj2/pom.xml b/sandbox/kgoodson/testroot/proj2/pom.xml new file mode 100644 index 0000000000..867cc9bf58 --- /dev/null +++ b/sandbox/kgoodson/testroot/proj2/pom.xml @@ -0,0 +1,109 @@ + + + + 4.0.0 + + + testroot + org.apache.tuscany + 1.0-SNAPSHOT + + org.apache.tuscany + proj2 + jar + 1.0-SNAPSHOT + + quickstart + + + + + org.apache.tuscany.sca + tuscany-sca-api + ${tuscany.version} + provided + + + + + junit + junit + 4.8.1 + test + + + + + install + ${artifactId} + + + src/main/resources + + + src/main/java + + ** + + + **/*.java + + + + + + src/test/java + + ** + + + **/*.java + + + + + + true + org.apache.maven.plugins + maven-compiler-plugin + + 1.5 + 1.5 + true + true + + + + org.apache.maven.plugins + maven-eclipse-plugin + + true + + + + org.apache.tuscany.maven.plugins + maven-tuscany-plugin + + + + + 2.0-SNAPSHOT + + diff --git a/sandbox/kgoodson/testroot/proj2/src/main/java/c/HelloworldImpl.java b/sandbox/kgoodson/testroot/proj2/src/main/java/c/HelloworldImpl.java new file mode 100644 index 0000000000..9c5d9e170a --- /dev/null +++ b/sandbox/kgoodson/testroot/proj2/src/main/java/c/HelloworldImpl.java @@ -0,0 +1,36 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package c; + +import org.oasisopen.sca.annotation.Init; +import org.oasisopen.sca.annotation.Scope; +import org.oasisopen.sca.annotation.EagerInit; + +@Scope("COMPOSITE") @EagerInit +public class HelloworldImpl implements HelloworldService { + + public String sayHello(String name) { + return "Hello " + name; + } + + @Init + public void init() { + System.out.println(sayHello("world")); + } +} diff --git a/sandbox/kgoodson/testroot/proj2/src/main/java/c/HelloworldService.java b/sandbox/kgoodson/testroot/proj2/src/main/java/c/HelloworldService.java new file mode 100644 index 0000000000..c32f9448f6 --- /dev/null +++ b/sandbox/kgoodson/testroot/proj2/src/main/java/c/HelloworldService.java @@ -0,0 +1,28 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package c; + +import org.oasisopen.sca.annotation.Remotable; + +@Remotable +public interface HelloworldService { + + String sayHello(String name); + +} diff --git a/sandbox/kgoodson/testroot/proj2/src/main/java/d/Dee.java b/sandbox/kgoodson/testroot/proj2/src/main/java/d/Dee.java new file mode 100644 index 0000000000..639acefea0 --- /dev/null +++ b/sandbox/kgoodson/testroot/proj2/src/main/java/d/Dee.java @@ -0,0 +1,5 @@ +package d; + +public class Dee { + +} diff --git a/sandbox/kgoodson/testroot/proj2/src/main/java/y/Whyfor.java b/sandbox/kgoodson/testroot/proj2/src/main/java/y/Whyfor.java new file mode 100644 index 0000000000..299abaa85a --- /dev/null +++ b/sandbox/kgoodson/testroot/proj2/src/main/java/y/Whyfor.java @@ -0,0 +1,5 @@ +package y; + +public class Whyfor { + +} diff --git a/sandbox/kgoodson/testroot/proj2/src/main/java/z/Zee.java b/sandbox/kgoodson/testroot/proj2/src/main/java/z/Zee.java new file mode 100644 index 0000000000..adc3a6a7af --- /dev/null +++ b/sandbox/kgoodson/testroot/proj2/src/main/java/z/Zee.java @@ -0,0 +1,5 @@ +package z; + +public class Zee { + +} diff --git a/sandbox/kgoodson/testroot/proj2/src/main/resources/META-INF/sca-contribution.xml b/sandbox/kgoodson/testroot/proj2/src/main/resources/META-INF/sca-contribution.xml new file mode 100644 index 0000000000..58bd71cf8b --- /dev/null +++ b/sandbox/kgoodson/testroot/proj2/src/main/resources/META-INF/sca-contribution.xml @@ -0,0 +1,23 @@ + + + + + diff --git a/sandbox/kgoodson/testroot/proj2/src/main/resources/helloworld.composite b/sandbox/kgoodson/testroot/proj2/src/main/resources/helloworld.composite new file mode 100644 index 0000000000..c04f571c6a --- /dev/null +++ b/sandbox/kgoodson/testroot/proj2/src/main/resources/helloworld.composite @@ -0,0 +1,29 @@ + + + + + + + + + -- cgit v1.2.3