Oops! My bad! 2006/1/18, Timothy Bennett <[EMAIL PROTECTED]>: > > Trustin Lee wrote: > > >Hi Timothy, > > > >This sounds very good. Wouldn't it be much better if this plugin is > hosted > >under official M2 tree or here in Felix? WDYT? > > > > > > > Hmmm... the archetype project is hosted at Felix... > > https://svn.apache.org/repos/asf/incubator/felix/trunk/tools/maven2/osgi-archetype > > See excerpts of my email below... > > >2006/1/2, Timothy Bennett <[EMAIL PROTECTED]>: > > > > > >>Folks, > >> > >>How-To > >>====== > >>To use the OSGi archetype to kickstart your next OSGi/Maven2 bundle > >>development project, perform the following steps: > >> > >>(1) fetch the osgi-archetype project from the Felix repo at [2] > >> > >>(2) install the osgi-archetype plugin by executing the following from > >>the root of the osgi-archetype directory: > >> > >>mvn clean install > >> > >>(3) navigate to the directory where you wish to create your new OSGi > >>bundle project and execute the following: > >> > >>mvn archetype:create -DarchetypeGroupId=org.apache.felix.archetypes > >>-DarchetypeArtifactId=osgi-archetype -DarchetypeVersion=1.0 > >>-DgroupId=<your project group ID> -DartifactId=<your project artifact > ID> > >> > >>(4) navigate to the subdirectory just created (named after your > >>artifactId specified), and execute the following to build your OSGi > >>bundle: > >> > >>mvn package > >> > >>(5) navigate to the subdirectory named 'target' and you'll see the your > >>bundle jar (named after the artifactId specified). deploy this to your > >>OSGi container such as Oscar (or Felix). A working bundle out of the > box! > >> > >>(6) Modify the Activator code, add your additional bundle classes, and > >>modify the POM to customize the manifest entries to complete your bundle > >>development. > >> > >> > >> > <snip> > > >>References > >>======= > >>[1] http://docs.safehaus.org/display/OSGI/OSGi+Plugin+for+Maven+2.0 > >>[2] > https://svn.apache.org/repos/asf/incubator/felix/trunk/tools/maven2/osgi-archetype > >>[3] http://maven.apache.org/guides/index.html > >> > >> > >
-- what we call human nature is actually human habit -- http://gleamynode.net/ PGP Key ID: 0x854B996C