-
Notifications
You must be signed in to change notification settings - Fork 395
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Releasing a multi-module project w/ aar submodules, requires -DignoreSnapshots=true #529
Comments
that seems to be maven-release-plugin related and afaict has nothing to do with the android maven plugin. |
This was not an issue when using apklib, before switching to aar. Quick search brought up this: Line 236 in b5499ee
|
apklib was a much simpler format than aar. It could not contain inner On Fri, Dec 5, 2014 at 6:32 PM, Martin M Reed [email protected]
|
I think Martin is correct here. When the release plugin checks if the dependency is part of the reactor then the suffix "extracted" will make the parent's Please review this pull request to address the issue: #530 It should be noted that anything added to the artifactId will cause the release plugin to fail so I'm not sure the usecase for appending a suffix. |
@william-ferguson-au,
https://maven.apache.org/maven-release/maven-release-plugin/examples/prepare-release.html |
Here is a way to test this. Run the following on your
The result:
|
Martin I understand the behaviour of release:prepare ᐧ On Sat, Dec 6, 2014 at 5:21 AM, Martin M Reed [email protected]
|
@william-ferguson-au, With this error it never gets to the state where the target directory is even created, so there is zero file output. |
I am looking for the log output of 'mvn release:prepare' not 'mvn clean ᐧ On Sat, Dec 6, 2014 at 5:56 AM, Martin M Reed [email protected]
|
@william-ferguson-au,
vs
Thanks. |
…d of appending a string to the created dependency
…d of appending a string to the created dependency
Fixing #529 Thanks @secondsun This fixes a really annoying I have been having with IntelliJ which was being caused by the _extracted suffix.
Can this be closed? |
I believe so. |
When performing the release of a multi-module project that has aar submodules, using
-DignoreSnapshots=true
is required when it should not be.If you run the above, in the log when it executes release:prepare and it says it is checking the versions, it prints this in the error:
The correct full name should be
com.my.company:my-app-android:aar:1.0.0-SNAPSHOT
The artifact and packaging changed to the
_extracted:jar
.The release plugin is only supposed to care about external dependencies:
http://grepcode.com/file/repo1.maven.org/maven2/org.apache.maven.release/maven-release-manager/2.5/org/apache/maven/shared/release/phase/CheckDependencySnapshotsPhase.java#311
So when its validating the versions it should ignore submodules because they are part of the reactor. But its finding the
_extracted:jar
, so it fails. The workaround is to add-DignoreSnapshots=true
, however this should not be required.android-maven-plugin version 4.0.0
maven-release-plugin version 2.3.2, 2.5.1
The text was updated successfully, but these errors were encountered: