I have a file in my res/raw folder that I am able to view properly when I compile with Eclipse. When the same project is compiled with Maven through Continuous Integration the file is not coming through as I expect.
In Eclipse I have an API project and a UI project. The API project needs to be built first since the UI project calls into the API. The API project was brought into the UI project as a Link Source and so the source is included nicely within Eclipse.
For my CI with Maven, I have this dependency:
<dependency>
<groupId>com.myapp.api</groupId>
<artifactId>API</artifactId>
<version>${project.version}</version>
<scope>compile</scope>
</dependency>
When I run the app that was Maven built the resource id that I have referenced in the API is duplicated in the UI as a different resource id and so my res/raw file in the API is not found.
What am I missing in order to have Maven fold the R.java files together the way that Eclipse has done?
If you have two separated android projects, take a look at maven-android-plugin.
Here is short description how to use android library projects and here more details and troubleshooting.