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

  • Home
  • SEARCH
  • 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 8545859
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T12:53:18+00:00 2026-06-11T12:53:18+00:00

So I am using Android Maven Plugin to generate apklib snapshot for one of

  • 0

So I am using Android Maven Plugin to generate apklib snapshot for one of my library project.
But the library project is also self sufficient to run on its own so I am thinking that may be we should generate .apklib and .apk both at the same time using maven.

Here is the pom configuration.

<groupId>com.comanyname.apps.lib</groupId>
<artifactId>MyProject-lib</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>apklib</packaging>
<name>MyProject-lib</name>

I tried adding another packaging like this

<groupId>com.comanyname.apps.lib</groupId>
<artifactId>MyProject-lib</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>apklib</packaging>
<packaging>apk</packaging>
<name>MyProject-lib</name>

I don’t know if it is possible. I can switch the packaging to apk/apklib one at a time though.

  • 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-11T12:53:19+00:00Added an answer on June 11, 2026 at 12:53 pm

    So I was able to create apk and apklib by creating two profiles.

    <profiles>
            <profile>
                <id>local</id>
                <activation>
                    <activeByDefault>true</activeByDefault>
                </activation>
                <properties>
                    <projectVersion>1.0.0-SNAPSHOT</projectVersion>
                    <packagingType>apk</packagingType>
                </properties>
            </profile>
            <profile>
                <id>build</id>
                <properties>
                    <projectVersion>1.0.0-SNAPSHOT</projectVersion>
                    <packagingType>apklib</packagingType>
                </properties>
            </profile>
    </profiles>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using the android-maven-plugin 3.2.0 and run the following in order to install and
I have an Android Maven project using maven-eclipse-plugin and android-maven-plugin. Since it grabs the
can i merge three maven android project into a single one using maven ?
I have an Android project that depends on an android library (apklib) project. The
I need a hand. I'm using android-maven-plugin 3.0.0 and maven-external-dependency-plugin 0.4 in an android
I'm working on an Android project using maven. I searched unsuccessfully on the known
I'm trying to create an Android application in Eclipse using the Maven plugin and
I have tried using Jenkins with my Android project which I'm using Maven for.
I have created a maven android project using this archetype . I want to
I'm using the Maven Android Plugin to build my application. Actually, I'm building 3

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.