You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opennlp.apache.org by "krickert (via GitHub)" <gi...@apache.org> on 2026/09/16 22:07:53 UTC

[PR] OPENNLP-1945: Publish snapshot artifacts for a branch on demand (opennlp)

krickert opened a new pull request, #1307:
URL: https://github.com/apache/opennlp/pull/1307

   Snapshots were only published from pushes to main. This adds a manual run
   of the same workflow, started from the Actions page on any branch, so a
   branch can publish its own snapshot. A downstream module that needs a core
   API still under review can then depend on that snapshot instead of building
   the branch locally. opennlp-addons has the same manual publish since
   OPENNLP-1924.
   
   Choices:
   
   - A branch publish gets the feature name in its version, by default the
     branch name: 3.0.0-<feature>-SNAPSHOT. It can never overwrite the main
     snapshot. If the pom version already contains the name, it is used as is.
   - On main the pom version is published unchanged, and the feature input must
     be empty.
   - A non-SNAPSHOT version is skipped with a notice on a push to main, because
     the release plugin commits one there at every release. Asking for one by
     hand fails the run.
   - The Maven settings file with the Nexus credentials is written to
     RUNNER_TEMP instead of the checkout.
   
   Thank you for contributing to Apache OpenNLP.
   
   In order to streamline the review of the contribution we ask you
   to ensure the following steps have been taken:
   
   ### For all changes:
   - [ ] Is there a JIRA ticket associated with this PR? Is it referenced 
        in the commit message?
   
   - [ ] Does your PR title start with OPENNLP-XXXX where XXXX is the JIRA number you are trying to resolve? Pay particular attention to the hyphen "-" character.
   
   - [ ] Has your PR been rebased against the latest commit within the target branch (typically main)?
   
   - [ ] Is your initial contribution a single, squashed commit?
   
   ### For code changes:
   - [ ] Have you ensured that the full suite of tests is executed via mvn clean install at the root opennlp folder?
   - [ ] Have you written or updated unit tests to verify your changes?
   - [ ] If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under [ASF 2.0](http://www.apache.org/legal/resolved.html#category-a)? 
   - [ ] If applicable, have you updated the LICENSE file, including the main LICENSE file in opennlp folder?
   - [ ] If applicable, have you updated the NOTICE file, including the main NOTICE file found in opennlp folder?
   
   ### For documentation related changes:
   - [ ] Have you ensured that format looks appropriate for the output in which it is rendered?
   
   ### Note:
   Please ensure that once the PR is submitted, you check GitHub Actions for build issues and submit an update to your PR as soon as possible.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@opennlp.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] OPENNLP-1945: Publish snapshot artifacts for a branch on demand (opennlp)

Posted by "krickert (via GitHub)" <gi...@apache.org>.
krickert merged PR #1307:
URL: https://github.com/apache/opennlp/pull/1307


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@opennlp.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] OPENNLP-1945: Publish snapshot artifacts for a branch on demand (opennlp)

Posted by "rzo1 (via GitHub)" <gi...@apache.org>.
rzo1 commented on PR #1307:
URL: https://github.com/apache/opennlp/pull/1307#issuecomment-5710988075

   I think the generated version format may be incompatible with OpenNLP’s own `Version.parse()` implementation.
   
   The workflow preserves dots in feature names:
   
   ```bash
   tr -c 'A-Za-z0-9.' '-'
   ```
   
   A branch such as `feature/OPENNLP-123-v1.2` would therefore produce something like:
   
   ```text
   2.5.13-feature-OPENNLP-123-v1.2-SNAPSHOT
   ```
   
   `Version.parse()` treats the third dot as the end of the numeric revision even when it occurs after the first `-`. It would consequently try to parse `13-feature-OPENNLP-123-v1` as an integer and throw `NumberFormatException`.
   
   Because `${project.version}` is embedded in `opennlp.version`, this could produce successfully deployed artifacts that fail when `Version.currentVersion()` is evaluated.
   
   Could feature names be restricted to `[A-Za-z0-9-]`, converting dots to hyphens as well? It would also be useful to add a test that calls `Version.parse()` with the exact version generated by this workflow.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@opennlp.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] OPENNLP-1945: Publish snapshot artifacts for a branch on demand (opennlp)

Posted by "krickert (via GitHub)" <gi...@apache.org>.
krickert commented on PR #1307:
URL: https://github.com/apache/opennlp/pull/1307#issuecomment-5710308842

   @rzo1  and @mawiesne  this is one of the big ones that'll save me some headaches with the grpc sandbox / demo FE


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@opennlp.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] OPENNLP-1945: Publish snapshot artifacts for a branch on demand (opennlp)

Posted by "krickert (via GitHub)" <gi...@apache.org>.
krickert commented on PR #1307:
URL: https://github.com/apache/opennlp/pull/1307#issuecomment-5711698258

   I have no strong opinions on the branch names, I'll make the changes as needed and make sure we mirror them in addons.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@opennlp.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] OPENNLP-1945: Publish snapshot artifacts for a branch on demand (opennlp)

Posted by "krickert (via GitHub)" <gi...@apache.org>.
krickert commented on PR #1307:
URL: https://github.com/apache/opennlp/pull/1307#issuecomment-5711709950

   Sidenote - I'm enjoying the irony of working on anti-regex and adding regex to the build.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@opennlp.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org