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

Make API jar available via Maven repository #214

Open
berndmoos opened this issue Nov 20, 2024 · 4 comments
Open

Make API jar available via Maven repository #214

berndmoos opened this issue Nov 20, 2024 · 4 comments
Assignees

Comments

@berndmoos
Copy link
Member

To make it easier and more transparent for other projects to deploy a ZuMult application.

See also: Exmaralda-Org/exmaralda#388

berndmoos added a commit that referenced this issue Dec 6, 2024
@berndmoos berndmoos self-assigned this Dec 6, 2024
@berndmoos
Copy link
Member Author

N.B.: If the jar is available via Maven, I think that the POM that goes along with it can specify all the transitive dependencies. So a project building on the API (like zumulttgdp) will not have all those dependencies in its own POM. Makes sense?!
The plan would now be to publish the jar in a MAVEN conformant manner via GitHub. Not doing this before a more elegant solution has been found for Exmaralda-Org/exmaralda#388. The difference will be that this API is not built with Ant, but with Maven. Could make things easier or more confusing...

@berndmoos
Copy link
Member Author

Added a <distributionManagement> element to the pom. In order for this to work, there needs to be a GitHub authentication token specified in Maven's settings.xml. The following command will then make a distribution package:

mvn clean package
mvn deploy

The package is then listed on the GitHub page:

https://github.com/zumult-org/zumultapi/packages/2338653

berndmoos added a commit that referenced this issue Dec 8, 2024
@berndmoos
Copy link
Member Author

Seems to work all right, but it includes many dependencies that are probably not needed.

berndmoos added a commit that referenced this issue Dec 8, 2024
@berndmoos
Copy link
Member Author

Excluded solr and wordnet dependencies. Much smaller now.

berndmoos added a commit that referenced this issue Dec 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant