错误的jarjar maven插件配置

时间:2014-06-26 19:22:43

标签: android maven pom.xml jarjar

这是jarjar插件配置。我需要添加这个插件来替换 harmon.beans java.beans ,因为在android中我们不能使用java.Beans

<build>
<pluginManagement>
  <plugins>
    <plugin>
      <groupId>org.sonatype.plugins</groupId>
      <artifactId>jarjar-maven-plugin</artifactId>
      <!-- <version>${maven-dependency-plugin.version}</version> -->
      <configuration>
        <includes>
          <include>com.myproject.adhoc:beans-harmony</include>
        </includes>
        <rules>
          <rule>
            <pattern>com.myproject.adhoc.**</pattern>
                 <result>com.myproject.util.beans.**</result> 
          </rule>
          <keep>
            <pattern>org.apache.harmony.beans.**</pattern>
          </keep>
        </rules>
      </configuration>
    </plugin>
  </plugins>
</pluginManagement>

我认为结果标记中有错误,请问我该如何解决?

0 个答案:

没有答案