Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8090729
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T19:49:11+00:00 2026-06-05T19:49:11+00:00

Just moving my Android project over to Maven / Jenkins and am exploring the

  • 0

Just moving my Android project over to Maven / Jenkins and am exploring the build / compile / testing procedures.

Issue:
I introduced a simple compilation error in the java code, but when i run mvn clean install package I get a build success. It’s only when I deploy the App to my device that it crashes and fails.

Is there something wrong with my POM?

ps. I have XXXXX’d out some info. Don’t worry about it.

    <?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
    <modelVersion>4.0.0</modelVersion>

  <parent>
    <groupId>xxxxx</groupId>
    <artifactId>xxxxxx</artifactId>
    <version>1.0.0</version>
  </parent>

   <groupId>xxxxx</groupId>
    <artifactId>xxxx</artifactId>
    <version>1.0.0</version>
    <packaging>apk</packaging>
    <name>Android App</name>

    <dependencies>
        <dependency>
            <groupId>com.google.android</groupId>
            <artifactId>android</artifactId>
            <version>4.0.1.2</version>
            <scope>provided</scope>
        </dependency>

       <dependency>
            <groupId>com.actionbarsherlock</groupId>
            <artifactId>library</artifactId>
            <version>4.0.0</version>
            <type>apklib</type>
        </dependency>   
    </dependencies>

    <build>
    <plugins>
      <plugin>
        <groupId>com.jayway.maven.plugins.android.generation2</groupId>
        <artifactId>android-maven-plugin</artifactId>
        <configuration>
          <androidManifestFile>${project.basedir}/AndroidManifest.xml</androidManifestFile>
          <assetsDirectory>${project.basedir}/assets</assetsDirectory>
          <resourceDirectory>${project.basedir}/res</resourceDirectory>
          <nativeLibrariesDirectory>${project.basedir}/src/main/native</nativeLibrariesDirectory>
          <sdk>
            <platform>15</platform>
            <path>/Users/aidenfry/android-sdks</path>
          </sdk>
          <undeployBeforeDeploy>true</undeployBeforeDeploy>
        </configuration>
        <extensions>true</extensions>
      </plugin>
      <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
        <configuration>
          <source>1.5</source>
          <target>1.5</target>
        </configuration>
      </plugin>
    </plugins>
  </build>
</project>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T19:49:13+00:00Added an answer on June 5, 2026 at 7:49 pm

    I suspect, that the reason you’re not seeing an error is most likely because maven didn’t even bother compiling your classes in the first place.

    Maven has various conventions, and one of them is that it expects your sourcecode to be located under src/main/java.

    I’m betting that you’ve just dropped the above pom.xml into your project root area and run mvn clean install. Maven will happily run that, but since you’ve probably left your source files in the default IDE locations, maven just skips over it. Have a look in your target directory and you’ll see it hasn’t compiled any classes in there for you

    You have 2 options:

    1. Add this somewhere inside the <build> tags in the above pom :
      ${basedir}/src
    2. Re-arrange your source files so they follow the src/main/java structure.

    Personally, I’d opt for number 2.

    P.S, there is also src/main/test too, test classes should go there 🙂

    You can read more about the configuration of the pom file here

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've strange error i don't understand. I'm just moving my code from jQuery over
I am moving 1 project, just the data tier, the project is using MVC
I'm moving a project to the new Android Native Development Kit (i.e. JNI) and
I wanna to achieve a Fog effect using AndEngine for Android. Just some moving
Im just moving over to cakePHP from Code Igniter and I bet its right
Moving on in my attempt to learn Android, I just read the following :
I've just finished moving a Wordpress site to a new server. The domain has
I just noticed that moving the mouse cursor across a tooltip does not seem
Suppose I have two fingers touching iPhone's screen but just one is moving. TouchesMoved
I just create a new repo https://github.com/tolbard/ember-moving . In this repo I extend the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.