You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When attempting to compile my Android app with the Jakarta Activation Maven Central component below my build fails because of invalid XML defined in the pom.xml
To Reproduce
Steps to reproduce the behaviour:
Add the Jakarta Activation component to an Android application by adding the line below to the dependencies section of app/build.gradle
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':exampleapp:kaptGenerateStubsDebugKotlin'.
> Could not resolve all artifacts for configuration ':exampleapp:debugCompileClasspath'.
> Failed to transform jakarta.activation-2.0.0-RC3.jar (com.sun.activation:jakarta.activation:2.0.0-RC3) to match attributes {artifactType=android-classes-jar, org.gradle.category=library, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-api}.
> Execution failed for JetifyTransform: /Users/warwick/.gradle/caches/modules-2/files-2.1/com.sun.activation/jakarta.activation/2.0.0-RC3/fb066ef8205a8d4b4ca7c18eafc920a1e00383dd/jakarta.activation-2.0.0-RC3.jar.
> Failed to transform '/Users/warwick/.gradle/caches/modules-2/files-2.1/com.sun.activation/jakarta.activation/2.0.0-RC3/fb066ef8205a8d4b4ca7c18eafc920a1e00383dd/jakarta.activation-2.0.0-RC3.jar' using Jetifier. Reason: JDOMParseException, message: Error on line 76: The prefix "Xlint" for element "Xlint:all" is not bound.. (Run with --stacktrace for more details.)
Suggestions:
- Check out existing issues at https://issuetracker.google.com/issues?q=componentid:460323&s=modified_time:desc, it's possible that this issue has already been filed there.
- If this issue has not been filed, please report it at https://issuetracker.google.com/issues/new?component=460323 (run with --stacktrace and provide a stack trace if possible).
Expected behavior
The app build correctly.
Smartphone (please complete the following information):
Device: Emulator running Android 11
OS: Android 11
Additional context
I believe the problem is caused by the way the Xlint arguments are defined in the activation/pom.xml file. They don't appear to be valid XML to me, but I am not an experienced maven user.
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<executions>
<execution>
<id>default-compile</id>
<configuration>
<!--
ignore some of the errors that are
too hard to fix for now
-->
<compilerArguments>
<Xlint:all/>
<Xlint:-rawtypes/>
<Xlint:-unchecked/>
<Xlint:-finally/>
</compilerArguments>
<showWarnings>true</showWarnings>
</configuration>
</execution>
</executions>
</plugin>
By contrast this is how these options are defined in the Jakarta Mail mail/pom.xml which appears to me to be valid XML.
Describe the bug
When attempting to compile my Android app with the Jakarta Activation Maven Central component below my build fails because of invalid XML defined in the pom.xml
To Reproduce
Steps to reproduce the behaviour:
app/build.gradle
Expected behavior
The app build correctly.
Smartphone (please complete the following information):
Additional context
I believe the problem is caused by the way the Xlint arguments are defined in the
activation/pom.xml
file. They don't appear to be valid XML to me, but I am not an experienced maven user.By contrast this is how these options are defined in the Jakarta Mail
mail/pom.xml
which appears to me to be valid XML.The text was updated successfully, but these errors were encountered: