Quantcast
Channel: JetBrains Developer Community : Thread List - IntelliJ IDEA Users
Viewing all articles
Browse latest Browse all 5661

Android Maven IntelliJ project with git submodules

$
0
0

Hi,


We have a maven project with Git submodules contrib/holo-everywhere andcontrib/ActionBarSherlock

Root pom.xml describes modules like that:

<module>contrib/holo-everywhere/resbuilder</module><module>contrib/holo-everywhere/library</module><module>contrib/holo-everywhere/addons/preferences</module><module>contrib/holo-everywhere/addons/slidingmenu</module><module>contrib/ActionBarSherlock/actionbarsherlock</module>

maven build from console works perfectly, but when project is improted into IntelliJ IDEA errors occurs.

Each and every pom.xml like contrib/ActionBarSherlock/actionbarsherlock/pom.xml can't resolve dependecy version from dependecy management in it's projects parent pom. In this case it'scontrib/ActionBarSherlock/pom.xml


contrib/ActionBarSherlock/pom.xml

<dependency>    <groupId>android</groupId>    <artifactId>android</artifactId>    <version>${android.version}</version>  </dependency>


contrib/ActionBarSherlock/actionbarsherlock/pom.xml

  <dependencyManagement> 

  ....

<dependency>    <groupId>android</groupId>    <artifactId>android</artifactId>    <scope>provided</scope></dependency>
 ...
</dependencyManagement>

This happens only with these submodules that are in contrib dir. We have maven modules that depend on parent pom - their dependencies are resolved fine.

Is it a bug or should I import projects some other way?


Viewing all articles
Browse latest Browse all 5661

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>