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 6886129
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T05:43:16+00:00 2026-05-27T05:43:16+00:00

Several days ago I’ve decided to assemble Android APKs with Maven under IntellijIDEA. I’ve

  • 0

Several days ago I’ve decided to assemble Android APKs with Maven under IntellijIDEA. I’ve found all the libraries, connected it and now I have pom.xml looks like this:

<?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>
<groupId>com.example</groupId>
<artifactId>helloflashlight</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>apk</packaging>
<name>HelloFlashlight</name>

<dependencies>

    <dependency>
        <groupId>android</groupId>
        <artifactId>android</artifactId>
        <version>2.2_r3</version>
        <scope>provided</scope>
    </dependency>

    <dependency>
        <groupId>com.google.android.maps</groupId>
        <artifactId>maps</artifactId>
        <version>8_r2</version>
        <scope>provided</scope>
    </dependency>

    <dependency>
        <groupId>com.google.http-client</groupId>
        <artifactId>google-http-client</artifactId>
        <version>1.6.0-beta</version>
    </dependency>

    <dependency>
        <groupId>com.google.http-client</groupId>
        <artifactId>google-http-client-extensions-android2</artifactId>
        <version>1.6.0-beta</version>
    </dependency>

    <dependency>
        <groupId>com.google.guava</groupId>
        <artifactId>guava</artifactId>
        <version>10.0.1</version>
    </dependency>

    <dependency>
        <groupId>joda-time</groupId>
        <artifactId>joda-time</artifactId>
        <version>2.0</version>
    </dependency>

    <dependency>
        <groupId>com.bugsense.trace</groupId>
        <artifactId>bugsense-trace</artifactId>
        <version>1.1.2</version>
        <scope>system</scope>
        <systemPath>${project.basedir}/libs/bugsense-trace-1-1-2.jar</systemPath>
    </dependency>

</dependencies>

<build>

    <finalName>${project.artifactId}</finalName>
    <sourceDirectory>src</sourceDirectory>

    <pluginManagement>
        <plugins>
            <plugin>
                <groupId>com.jayway.maven.plugins.android.generation2</groupId>
                <artifactId>android-maven-plugin</artifactId>
                <version>3.0.0</version>
                <extensions>true</extensions>
            </plugin>
        </plugins>
    </pluginManagement>
    <plugins>
        <plugin>
            <groupId>com.jayway.maven.plugins.android.generation2</groupId>
            <artifactId>android-maven-plugin</artifactId>
            <configuration>
                <sdk>
                    <!-- platform or api level (api level 4 = platform 1.6)-->
                    <platform>8</platform>
                </sdk>
            </configuration>
        </plugin>
    </plugins>
</build>

But when I’m trying to run mvn3 install, I’ve get error:

[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 18.123s
[INFO] Finished at: Mon Nov 28 11:24:55 YEKT 2011
[INFO] Final Memory: 22M/255M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.0.0:dex (default-dex) on project helloflashlight: MojoExecutionException: ANDROID-040-001: Could not execute: Command = /bin/sh -c cd /home/dmitry/projects/flash/android && /usr/lib/jvm/jdk1.7.0/jre/bin/java -jar /home/dmitry/android-sdk/platform-tools/lib/dx.jar --dex --output=/home/dmitry/projects/flash/android/target/classes.dex /home/dmitry/.m2/repository/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar /home/dmitry/.m2/repository/org/khronos/opengl-api/gl1.1-android-2.1_r1/opengl-api-gl1.1-android-2.1_r1.jar /home/dmitry/.m2/repository/joda-time/joda-time/2.0/joda-time-2.0.jar /home/dmitry/.m2/repository/xerces/xmlParserAPIs/2.6.2/xmlParserAPIs-2.6.2.jar /home/dmitry/.m2/repository/junit/junit/4.8.2/junit-4.8.2.jar /home/dmitry/.m2/repository/org/codehaus/jackson/jackson-core-asl/1.9.1/jackson-core-asl-1.9.1.jar /home/dmitry/.m2/repository/com/google/android/android/2.1.2/android-2.1.2.jar /home/dmitry/.m2/repository/com/google/code/findbugs/jsr305/1.3.9/jsr305-1.3.9.jar /home/dmitry/projects/taxi/android/target/classes /home/dmitry/.m2/repository/com/google/guava/guava/10.0.1/guava-10.0.1.jar /home/dmitry/.m2/repository/org/apache/httpcomponents/httpclient/4.0.3/httpclient-4.0.3.jar /home/dmitry/.m2/repository/org/apache/httpcomponents/httpcore/4.0.1/httpcore-4.0.1.jar /home/dmitry/.m2/repository/com/google/protobuf/protobuf-java/2.2.0/protobuf-java-2.2.0.jar /home/dmitry/.m2/repository/com/google/code/gson/gson/1.7.1/gson-1.7.1.jar /home/dmitry/.m2/repository/commons-codec/commons-codec/1.3/commons-codec-1.3.jar /home/dmitry/.m2/repository/org/json/json/20080701/json-20080701.jar /home/dmitry/.m2/repository/com/google/http-client/google-http-client-extensions-android2/1.6.0-beta/google-http-client-extensions-android2-1.6.0-beta.jar /home/dmitry/.m2/repository/com/google/http-client/google-http-client/1.6.0-beta/google-http-client-1.6.0-beta.jar /home/dmitry/.m2/repository/xpp3/xpp3/1.1.4c/xpp3-1.1.4c.jar, Result = 1 -> [Help 1]

Anyone faced that?

EDIT: All the messages are printed after the TESTS section

  • 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-05-27T05:43:16+00:00Added an answer on May 27, 2026 at 5:43 am

    Have you tried to execute the command giving the error in a shell?
    This should give you more details on where and what appens…
    here is the reported command having a return code 1 (error) from your install report:

    $ /bin/sh -c cd /home/dmitry/projects/flash/android && /usr/lib/jvm/jdk1.7.0/jre/bin/java -jar \
      /home/dmitry/android-sdk/platform-tools/lib/dx.jar --dex --output=/home/dmitry/projects/flash/android/target/classes.dex \
      /home/dmitry/.m2/repository/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar 
      /home/dmitry/.m2/repository/org/khronos/opengl-api/gl1.1-android-2.1_r1/opengl-api-gl1.1-android-2.1_r1.jar 
      /home/dmitry/.m2/repository/joda-time/joda-time/2.0/joda-time-2.0.jar \
      /home/dmitry/.m2/repository/xerces/xmlParserAPIs/2.6.2/xmlParserAPIs-2.6.2.jar \
      /home/dmitry/.m2/repository/junit/junit/4.8.2/junit-4.8.2.jar \
      /home/dmitry/.m2/repository/org/codehaus/jackson/jackson-core-asl/1.9.1/jackson-core-asl-1.9.1.jar \
      /home/dmitry/.m2/repository/com/google/android/android/2.1.2/android-2.1.2.jar \
      /home/dmitry/.m2/repository/com/google/code/findbugs/jsr305/1.3.9/jsr305-1.3.9.jar \
      /home/dmitry/projects/taxi/android/target/classes \
      /home/dmitry/.m2/repository/com/google/guava/guava/10.0.1/guava-10.0.1.jar \
      /home/dmitry/.m2/repository/org/apache/httpcomponents/httpclient/4.0.3/httpclient-4.0.3.jar \
      /home/dmitry/.m2/repository/org/apache/httpcomponents/httpcore/4.0.1/httpcore-4.0.1.jar \
      /home/dmitry/.m2/repository/com/google/protobuf/protobuf-java/2.2.0/protobuf-java-2.2.0.jar \
      /home/dmitry/.m2/repository/com/google/code/gson/gson/1.7.1/gson-1.7.1.jar \
      /home/dmitry/.m2/repository/commons-codec/commons-codec/1.3/commons-codec-1.3.jar \
      /home/dmitry/.m2/repository/org/json/json/20080701/json-20080701.jar \
      /home/dmitry/.m2/repository/com/google/http-client/google-http-client-extensions-android2/1.6.0-beta/google-http-client-extensions-android2-1.6.0-beta.jar \
      /home/dmitry/.m2/repository/com/google/http-client/google-http-client/1.6.0-beta/google-http-client-1.6.0-beta.jar \
      /home/dmitry/.m2/repository/xpp3/xpp3/1.1.4c/xpp3-1.1.4c.jar
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Several days ago, all mail() calls in my custom PHP application cause a 500
Several days ago I had a question about removing index.php from the address bar,
Several days ago I attended a seminar and they were talking about dangerous PHP
Merging in my Mercurial repository is not working like I expected. Several days ago
Small and pretty nasty problem I've seen several days ago, asked to my friend
Several days ago I posted this question(I don't know if it's proper to open
I know that cout have buffer several days ago, and when I google it,
I asked several days ago about finding the most deeply nested lists . I
I have just started android development 3 days ago and I'm trying to develop
Several days ago I couldn't access the admin panel on my site based on

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.