0

Purpose

I want to create a Flutter Module and upload it to a Maven repository on Github Packages to serve it to an Android app.

problem

The command used to upload to the Github Packages Maven repository is no longer available from 3.3.0.

reproduction

  1. Run flutter build aar
  2. Run the command
find . -name "*.pom" -type f -print0 | xargs -I{} -0 bash -c 'mvn deploy:deploy-file -Durl="https://maven.pkg.github.com/.. ." -DrepositoryId=github -Dtoken=... -DpomFile="$0" -Dfile="${0%.pom}.aar"' '{}' \;
  1. Some pom and aar files are successful, but when I upload multi-modularized pom and aar files, I get the following error.
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy-file (default-cli) on project standalone-pom: /Users/{name}}/StudioProjects/user-app -go-flutter-sample/build/host/outputs/repo/io/flutter/plugins/flutter_plugin_android_lifecycle/flutter_plugin_android_lifecycle/5.3.0/flutter_plugin_android_lifecycle-5.3.0.aar not found.

expected cause

  • This pull request was implemented in 3.3.0 and the structure of the local Maven repository changed.
  • Before 3.3.0, the ratio of pom file and aar file was 1:1.
S. Simon
  • 1
  • 1

0 Answers0