Skip to content
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

Getting weird error when using with gradle #298

Open
flozano opened this issue Apr 18, 2023 · 6 comments
Open

Getting weird error when using with gradle #298

flozano opened this issue Apr 18, 2023 · 6 comments

Comments

@flozano
Copy link

flozano commented Apr 18, 2023

in plain Java-OpenJDK (not android) I'm getting:

12:18:06 Errors occurred while build effective model from /mnt/ebs/jenkins/.gradle/caches/modules-2/files-2.1/org.mariuszgromada.math/MathParser.org-mXparser/5.2.1/4a5ae2e93b23415b779e05547d28f2e066759547/MathParser.org-mXparser-5.2.1.pom:
12:18:06 	'build.resources.resource.directory' is missing. in org.mariuszgromada.math:MathParser.org-mXparser:5.2.1

dependency is defined as

api group: 'org.mariuszgromada.math', name: 'MathParser.org-mXparser', version: '5.2.1'
❯ ./gradlew --version

------------------------------------------------------------
Gradle 7.4.2
------------------------------------------------------------

Build time:   2022-03-31 15:25:29 UTC
Revision:     540473b8118064efcc264694cbcaa4b677f61041

Kotlin:       1.5.31
Groovy:       3.0.9
Ant:          Apache Ant(TM) version 1.10.11 compiled on July 10 2021
JVM:          17.0.6 (Azul Systems, Inc. 17.0.6+10-LTS)
OS:           Mac OS X 13.2.1 aarch64

@mariuszgromada
Copy link
Owner

Unfortunately, with this very short description, I might not be able to help you :-(

@flozano
Copy link
Author

flozano commented Apr 18, 2023

it's basically what I get in gradle when I add the dependency to the 5.2.1 version of the artifact. the POM contains an empty tag that causes this error

@jfisbein
Copy link

I get he same error message with org.mariuszgromada.math:MathParser.org-mXparser:5.2.1 and Gradle 8.5

@mariuszgromada
Copy link
Owner

@flozano what is the tag name that is causing this problem?

@flozano
Copy link
Author

flozano commented Dec 26, 2023

@mariuszgromada it's in my original description : build.resources.resource.directory

<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>org.mariuszgromada.math</groupId>
	<artifactId>MathParser.org-mXparser</artifactId>
	<version>5.2.1</version>
	<packaging>jar</packaging>
	<name>MathParser.org-mXparser - Math Expressions Parser / Formula Evaluator library for JAVA Android C# 
<!-- ... -->
	<build>
<!-- ... -->

        <resources>
            <resource>
				<directory></directory>
                <includes>
                    <include>LICENSE</include>
                </includes>
                <targetPath>META-INF</targetPath>
            </resource>
        </resources>
	</build>
<!-- ... -->
</project>

@mariuszgromada
Copy link
Owner

mariuszgromada commented Dec 26, 2023

I think it might be the "<directory></directory>" empty tag, I will fix it soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants