ActionBarSherlock + maven + eclipse: dependency not found in workspace

前端 未结 5 1349
我在风中等你
我在风中等你 2021-01-07 20:08

I\'ve updated to lastest version of ADT Plugin and I faced this issue, solved updating also m2e-android eclipse plugin. Now, I\'m able to compile my project through console,

相关标签:
5条回答
  • 2021-01-07 20:29

    I've wrote detailed tutorial about mvn + eclipse + action bar sherlock integration http://v.zasadnyy.com/blog/abs-maven-eclipse-integration/

    Hope it will be helpful.

    0 讨论(0)
  • 2021-01-07 20:31

    Add this to your parent pom.xml file as a dependency:

    <dependency>
      <groupId>com.actionbarsherlock</groupId>
      <artifactId>actionbarsherlock</artifactId>
      <type>apklib</type>
      <version>4.2.0</version>
    </dependency>
    

    And the following lines to your project pom.xml:

    <dependency>
        <groupId>com.actionbarsherlock</groupId>
        <artifactId>actionbarsherlock</artifactId>
        <version>4.2.0</version>
    </dependency>
    
    0 讨论(0)
  • 2021-01-07 20:32

    you can include the actionbarsherlock dependency as jar file only when using eclipse via profiles

    <profile>
      <id>m2e</id>
      <activation>
        <property><name>m2e.version</name></property>
       </activation>
       <dependencies>
        <dependency>
          <groupId>com.actionbarsherlock</groupId>
          <artifactId>actionbarsherlock</artifactId>
          <version>${abs.version}</version>
          <type>jar</type>
        </dependency>
      </dependencies>
    </profile> 
    

    and don't need to include the entire actionbarsherlock as project in eclipse

    0 讨论(0)
  • 2021-01-07 20:37

    As of Android 0.4.2 you now need to mavenise the Android library projects in your Eclipse workspace for m2e-android to successfully detect them. The POM for ActionBarSherlock can be found here:

    https://github.com/JakeWharton/ActionBarSherlock/blob/master/library/pom.xml#

    Note: m2e-android is beta software and so changes that might affect functionality can occur between releases.

    0 讨论(0)
  • 2021-01-07 20:37

    For those who don't know what "MAVENIZED" means it is convert a simple project to be a Maven Project.

    In Eclipse, right click in your project, Configure -> Convert to Maven Project

    0 讨论(0)
提交回复
热议问题