From 13d05bc8458758ee39cb829098241e89616717ee Mon Sep 17 00:00:00 2001 From: Ashlee Young Date: Wed, 9 Sep 2015 22:15:21 -0700 Subject: ONOS checkin based on commit tag e796610b1f721d02f9b0e213cf6f7790c10ecd60 Change-Id: Ife8810491034fe7becdba75dda20de4267bd15cd --- .../src/onos/tools/package/archetypes/api/pom.xml | 31 +++++++++++ .../META-INF/maven/archetype-metadata.xml | 30 +++++++++++ .../src/main/resources/archetype-resources/pom.xml | 60 ++++++++++++++++++++++ .../src/main/java/AppService.java | 26 ++++++++++ .../resources/projects/basic/archetype.properties | 21 ++++++++ .../api/src/test/resources/projects/basic/goal.txt | 0 6 files changed, 168 insertions(+) create mode 100644 framework/src/onos/tools/package/archetypes/api/pom.xml create mode 100644 framework/src/onos/tools/package/archetypes/api/src/main/resources/META-INF/maven/archetype-metadata.xml create mode 100644 framework/src/onos/tools/package/archetypes/api/src/main/resources/archetype-resources/pom.xml create mode 100644 framework/src/onos/tools/package/archetypes/api/src/main/resources/archetype-resources/src/main/java/AppService.java create mode 100644 framework/src/onos/tools/package/archetypes/api/src/test/resources/projects/basic/archetype.properties create mode 100644 framework/src/onos/tools/package/archetypes/api/src/test/resources/projects/basic/goal.txt (limited to 'framework/src/onos/tools/package/archetypes/api') diff --git a/framework/src/onos/tools/package/archetypes/api/pom.xml b/framework/src/onos/tools/package/archetypes/api/pom.xml new file mode 100644 index 00000000..d34db1f0 --- /dev/null +++ b/framework/src/onos/tools/package/archetypes/api/pom.xml @@ -0,0 +1,31 @@ + + + + 4.0.0 + + + org.onosproject + onos-archetypes + 1.3.0-SNAPSHOT + + + onos-api-archetype + maven-archetype + + ONOS OSGi API bundle archetype + + diff --git a/framework/src/onos/tools/package/archetypes/api/src/main/resources/META-INF/maven/archetype-metadata.xml b/framework/src/onos/tools/package/archetypes/api/src/main/resources/META-INF/maven/archetype-metadata.xml new file mode 100644 index 00000000..e35285e6 --- /dev/null +++ b/framework/src/onos/tools/package/archetypes/api/src/main/resources/META-INF/maven/archetype-metadata.xml @@ -0,0 +1,30 @@ + + + + + + src/main/java + + **/*.java + + + + diff --git a/framework/src/onos/tools/package/archetypes/api/src/main/resources/archetype-resources/pom.xml b/framework/src/onos/tools/package/archetypes/api/src/main/resources/archetype-resources/pom.xml new file mode 100644 index 00000000..f29a327a --- /dev/null +++ b/framework/src/onos/tools/package/archetypes/api/src/main/resources/archetype-resources/pom.xml @@ -0,0 +1,60 @@ + + + + 4.0.0 + + ${groupId} + ${artifactId} + ${version} + bundle + + ONOS OSGi API bundle archetype + http://onosproject.org + + + 1.3.0-SNAPSHOT + + + + + org.onosproject + onos-api + ${onos.version} + + + + + + + org.apache.felix + maven-bundle-plugin + 2.5.3 + true + + + org.apache.maven.plugins + maven-compiler-plugin + 2.5.1 + + 1.8 + 1.8 + + + + + + diff --git a/framework/src/onos/tools/package/archetypes/api/src/main/resources/archetype-resources/src/main/java/AppService.java b/framework/src/onos/tools/package/archetypes/api/src/main/resources/archetype-resources/src/main/java/AppService.java new file mode 100644 index 00000000..4878f2ba --- /dev/null +++ b/framework/src/onos/tools/package/archetypes/api/src/main/resources/archetype-resources/src/main/java/AppService.java @@ -0,0 +1,26 @@ +#set( $symbol_pound = '#' ) +#set( $symbol_dollar = '$' ) +#set( $symbol_escape = '\' ) +/* + * Copyright 2014 Open Networking Laboratory + * + * Licensed 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 ${package}; + +/** + * Skeletal ONOS application API. + */ +public interface AppService { + +} diff --git a/framework/src/onos/tools/package/archetypes/api/src/test/resources/projects/basic/archetype.properties b/framework/src/onos/tools/package/archetypes/api/src/test/resources/projects/basic/archetype.properties new file mode 100644 index 00000000..a1213b40 --- /dev/null +++ b/framework/src/onos/tools/package/archetypes/api/src/test/resources/projects/basic/archetype.properties @@ -0,0 +1,21 @@ +# +# Copyright 2014 Open Networking Laboratory +# +# Licensed 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. +# + +#Thu Dec 04 09:24:50 PST 2014 +package=it.pkg +version=0.1-SNAPSHOT +groupId=archetype.it +artifactId=basic diff --git a/framework/src/onos/tools/package/archetypes/api/src/test/resources/projects/basic/goal.txt b/framework/src/onos/tools/package/archetypes/api/src/test/resources/projects/basic/goal.txt new file mode 100644 index 00000000..e69de29b -- cgit 1.2.3-korg