zoukankan      html  css  js  c++  java
  • maven-bundle-plugin

          
          <plugin>
            <groupId>org.apache.felix</groupId>
            <artifactId>maven-bundle-plugin</artifactId>
            <version>2.1.0</version>
            <executions>
              <execution>
                <phase>process-classes</phase>
                <goals>
                  <goal>manifest</goal>
                </goals>
                <configuration>
                  <instructions>
                    <Export-Package>jline;jline.console;jline.console.completer;jline.console.history;version:=${project.version};-noimport:=true,
                                        =org.fusesource.jansi;version=${jansi.version}</Export-Package>
                    <Import-Package>javax.swing;resolution:=optional</Import-Package>
                    <DynamicImport-Package>*</DynamicImport-Package>
                  </instructions>
                </configuration>
              </execution>
            </executions>
          </plugin>
          
          -----------------------------old
          <plugin>
            <groupId>org.apache.felix</groupId>
            <artifactId>maven-bundle-plugin</artifactId>
            <version>2.0.1</version>
            <executions>
              <execution>
                <id>bundle-manifest</id>
                <phase>process-classes</phase>
                <goals>
                  <goal>manifest</goal>
                </goals>
                <configuration>
                  <instructions>
                    <Import-Package>!org.fusesource.jansi*,!org.fusesource.hawtjni*,sun.reflect;resolution:=optional,*</Import-Package>
                  </instructions>
                </configuration>
              </execution>
            </executions>
          </plugin>

    http://felix.apache.org/components/bundle-plugin/index.html

    Bundle Plugin for Maven

    https://blog.csdn.net/Snoopy7713/article/details/84172208

    OSGi实战(1)使用Maven创建Bundle

    https://blog.csdn.net/guzicheng/article/details/43735031

  • 相关阅读:
    工程事故与现实世界(续)
    工程事故与现实世界
    直觉与概率
    有一种冲动:世界那么大
    人生的意义
    这些年来什么才是最好的投资?
    时间太少,如何阅读?
    程序员的成长法则与进阶攻略
    秘密:从程序员到领导者的微妙之处
    为什么加入付费社群?
  • 原文地址:https://www.cnblogs.com/tonggc1668/p/14273918.html
Copyright © 2011-2022 走看看