felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Wall" <cw...@bea.com>
Subject OSGi Plugin for Maven 2.0 - add support for individual class dependencies
Date Mon, 10 Jul 2006 14:18:51 GMT
Hey there.
 
I've enhanced the OSGi Plugin for Maven 2.0 to support declaring
individual classes as dependencies.  Currently the plugin only supports
bundling dependencies at the jar level.
 
Currently we're using this internally.  Is there interest in including
this feature back-in into the main plugin?
 
Comments, suggestions, etc are welcome.
 
 
  <build>
    <plugins>
      <plugin>
        ...
        <configuration>
        <!-- designate classes to be include after "@" comma delimited; 
        only designated classes will be included; TODO: wildcard feature
-->
          <inlinedArtifacts>
 
<inlinedArtifact>bootstrap@org.apache.catalina.startup.Bootstrap,org.apa
che.catalina.startup.CatalinaProperties</inlinedArtifact>
          </inlinedArtifacts>
          <manifestFile>../manifest-template.mf</manifestFile>
         ...
        </configuration>
      </plugin>
    </plugins>
  </build>
 
  <dependencies>
    <!-- must designate jar containing individual class(es) as a runtime
dependency -->
    <dependency>
      <groupId>tomcat</groupId>
      <artifactId>bootstrap</artifactId>
      <version>5.5.12</version>
      <scope>runtime</scope>
    </dependency>    
  </dependencies>
 
Resulting jar:
../target 561$ jar tf bootstrap-0.1-SNAPSHOT.jar
META-INF/
META-INF/MANIFEST.MF
com/
com/example/
com/example/opensource/
org/
org/apache/
org/apache/catalina/
org/apache/catalina/startup/
com/example/boot/Activator.class
org/apache/catalina/startup/Bootstrap.class
org/apache/catalina/startup/CatalinaProperties.class
META-INF/maven/
META-INF/maven/com.example.boot/
META-INF/maven/com.example.boot/bootstrap/
META-INF/maven/com.example.boot/bootstrap/pom.xml
META-INF/maven/com.example.boot/bootstrap/pom.properties
 
-Chris
 
_______________________________________________________________________
Notice:  This email message, together with any attachments, may contain
information  of  BEA Systems,  Inc.,  its subsidiaries  and  affiliated
entities,  that may be confidential,  proprietary,  copyrighted  and/or
legally privileged, and is intended solely for the use of the individual
or entity named in this message. If you are not the intended recipient,
and have received this message in error, please immediately return this
by email and then delete it.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message