From: Mathieu Baudier Date: Wed, 18 Mar 2009 18:02:06 +0000 (+0000) Subject: Maven OSGi plugin X-Git-Tag: svn/tags/maven-plugins-0.3.0@2542~20 X-Git-Url: http://git.argeo.org/?a=commitdiff_plain;ds=sidebyside;h=0d8f4c545f92b1b85841ce37a8bab68201b74e01;p=gpl%2Fargeo-slc.git Maven OSGi plugin git-svn-id: https://svn.argeo.org/slc/trunk/maven@2281 4cfe0d0a-d680-48aa-b62c-e0a02a3f76cc --- diff --git a/maven-argeo-osgi-plugin/.classpath b/maven-argeo-osgi-plugin/.classpath new file mode 100644 index 000000000..0fd79a7e9 --- /dev/null +++ b/maven-argeo-osgi-plugin/.classpath @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/maven-argeo-osgi-plugin/.project b/maven-argeo-osgi-plugin/.project new file mode 100644 index 000000000..d57bc6c2e --- /dev/null +++ b/maven-argeo-osgi-plugin/.project @@ -0,0 +1,23 @@ + + + maven-argeo-osgi-plugin + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.maven.ide.eclipse.maven2Builder + + + + + + org.eclipse.jdt.core.javanature + org.maven.ide.eclipse.maven2Nature + + diff --git a/maven-argeo-osgi-plugin/pom.xml b/maven-argeo-osgi-plugin/pom.xml new file mode 100644 index 000000000..297f2d4ea --- /dev/null +++ b/maven-argeo-osgi-plugin/pom.xml @@ -0,0 +1,75 @@ + + 4.0.0 + org.argeo.slc.maven + maven-argeo-osgi-plugin + 0.1.1 + maven-plugin + Argeo OSGi Plugin + + + + + maven-compiler-plugin + + 1.4 + 1.4 + + + + maven-plugin-plugin + + + org.apache.maven + maven-plugin-tools-ant + + 2.1 + + + + + + + + org.apache.maven + maven-plugin-api + 2.0 + + + org.apache.maven + maven-script-ant + 2.0.9 + + + org.apache.maven + maven-project + 2.0.7 + + + ant-contrib + ant-contrib + 1.0b3 + + + ant + ant + + + + + + + false + argeo-restricted + Argeo FOSS Repository + file:///var/argeo/maven2/argeo + + + + true + argeo-snapshots-restricted + Argeo FOSS Snapshots Repository + file:///var/argeo/maven2/argeo-snapshots + + + + diff --git a/maven-argeo-osgi-plugin/src/main/scripts/argeo-osgi.build.xml b/maven-argeo-osgi-plugin/src/main/scripts/argeo-osgi.build.xml new file mode 100644 index 000000000..4d32de36f --- /dev/null +++ b/maven-argeo-osgi-plugin/src/main/scripts/argeo-osgi.build.xml @@ -0,0 +1,145 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 4.0.0 + ${projectGroupId} + aggregator + ${projectVersion} + pom + + ]]> + + + + + @{dir}]]> + + + + bundles + + + ]]> + + + + + Generate POM for @{dir} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 4.0.0 + ${projectGroupId} + bundles + ${projectVersion} + pom + + ]]> + + + + + Add @{dir} to deploy POM + + + + + + + + ${projectGroupId} + ${Bundle-SymbolicName} + ${Bundle-Version} + + ]]> + + + + + + + ]]> + + \ No newline at end of file diff --git a/maven-argeo-osgi-plugin/src/main/scripts/argeo-osgi.mojos.xml b/maven-argeo-osgi-plugin/src/main/scripts/argeo-osgi.mojos.xml new file mode 100644 index 000000000..a29990b64 --- /dev/null +++ b/maven-argeo-osgi-plugin/src/main/scripts/argeo-osgi.mojos.xml @@ -0,0 +1,77 @@ + + + + simple-bundles + simple-bundles + + Process a simple bundle (no Java) + + + true + + + + bundlesBase + bundlesBase + true + bundles + java.io.File + The base directory for the bundles. + + + + projectVersion + projectVersion + true + true + ${project.version} + java.lang.String + The group id of the project currently being built. + + + + projectGroupId + projectGroupId + true + true + ${project.groupId} + java.lang.String + The group id of the project currently being built. + + + + + + deploy-pom + deploy-pom + + Generate a POM with the dependencies + + + true + + + projectGroupId + projectGroupId + true + true + ${project.groupId} + java.lang.String + The group id of the project currently being built. + + + + projectVersion + projectVersion + true + true + ${project.version} + java.lang.String + The group id of the project currently being built. + + + + + + + \ No newline at end of file