Skip to content

[bug] fix CI error #89

@hsluoyz

Description

@hsluoyz

see: https://github.com/jcasbin/jdbc-adapter/actions/runs/20369899621/job/58533738106

Run npm install -g @conveyal/maven-semantic-release semantic-release
npm warn deprecated semver-diff@5.0.0: Deprecated as the semver package now supports this built-in.
npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm warn deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported
npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
npm warn deprecated q@1.5.1: You or someone you depend on is using Q, the JavaScript Promise library that gave JavaScript developers strong feelings about promises. They can almost certainly migrate to the native JavaScript promise now. Thank you literally everyone for joining me in this bet against the odds. Be excellent to each other.
npm warn deprecated
npm warn deprecated (For a CapTP with native promises, see @endo/eventual-send and @endo/captp)
npm warn deprecated xml2js-es6-promise@1.1.1: Use xml2js.parseStringPromise(data /*, options */) from the xml2js package instead. https://www.npmjs.com/package/xml2js#promise-usage

added 665 packages in 15s

137 packages are looking for funding
  run `npm fund` for details
[12:24:33 PM] [semantic-release] › ℹ  Running semantic-release version 24.2.9
[12:24:34 PM] [semantic-release] › ✔  Loaded plugin "verifyConditions" from "@semantic-release/github"
[12:24:34 PM] [semantic-release] › ✔  Loaded plugin "verifyConditions" from "@conveyal/maven-semantic-release"
[12:24:34 PM] [semantic-release] › ✔  Loaded plugin "analyzeCommits" from "@semantic-release/commit-analyzer"
[12:24:34 PM] [semantic-release] › ✔  Loaded plugin "verifyRelease" from "@conveyal/maven-semantic-release"
[12:24:34 PM] [semantic-release] › ✔  Loaded plugin "generateNotes" from "@semantic-release/release-notes-generator"
[12:24:34 PM] [semantic-release] › ✔  Loaded plugin "prepare" from "@conveyal/maven-semantic-release"
[12:24:34 PM] [semantic-release] › ✔  Loaded plugin "publish" from "@semantic-release/github"
[12:24:34 PM] [semantic-release] › ✔  Loaded plugin "publish" from "@conveyal/maven-semantic-release"
[12:24:34 PM] [semantic-release] › ✔  Loaded plugin "addChannel" from "@semantic-release/npm"
[12:24:34 PM] [semantic-release] › ✔  Loaded plugin "addChannel" from "@semantic-release/github"
[12:24:34 PM] [semantic-release] › ✔  Loaded plugin "success" from "@semantic-release/github"
[12:24:34 PM] [semantic-release] › ✔  Loaded plugin "fail" from "@semantic-release/github"
[12:24:36 PM] [semantic-release] › ✔  Run automated release from branch master on repository https://github.com/jcasbin/jdbc-adapter
[12:24:36 PM] [semantic-release] › ✔  Allowed to push to the Git repository
[12:24:36 PM] [semantic-release] › ℹ  Start step "verifyConditions" of plugin "@semantic-release/github"
[12:24:36 PM] [semantic-release] [@semantic-release/github] › ℹ  Verify GitHub authentication (https://api.github.com)
[12:24:37 PM] [semantic-release] › ✔  Completed step "verifyConditions" of plugin "@semantic-release/github"
[12:24:37 PM] [semantic-release] › ℹ  Start step "verifyConditions" of plugin "@conveyal/maven-semantic-release"
[12:24:37 PM] [semantic-release] [@conveyal/maven-semantic-release] › ℹ  Running @conveyal/maven-semantic-release version 5.0.0
[12:24:37 PM] [semantic-release] [@conveyal/maven-semantic-release] › ℹ  validating pom.xml
[12:24:37 PM] [semantic-release] [@conveyal/maven-semantic-release] › ℹ  pom.xml validation successful
[12:24:37 PM] [semantic-release] [@conveyal/maven-semantic-release] › ℹ  validating maven-settings.xml
[INFO] Staging /home/runner/work/jdbc-adapter/jdbc-adapter/target/jdbc-adapter-2.12.0-sources.jar.asc
[INFO] Installing /home/runner/work/jdbc-adapter/jdbc-adapter/target/jdbc-adapter-2.12.0-sources.jar.asc to /home/runner/work/jdbc-adapter/jdbc-adapter/target/central-staging/org/casbin/jdbc-adapter/2.12.0/jdbc-adapter-2.12.0-sources.jar.asc
[INFO] Pre Bundling - deleted /home/runner/work/jdbc-adapter/jdbc-adapter/target/central-staging/org/casbin/jdbc-adapter/maven-metadata-central-staging.xml
[INFO] Generate checksums for dir: org/casbin/jdbc-adapter/2.12.0
[INFO] Going to create /home/runner/work/jdbc-adapter/jdbc-adapter/target/central-publishing/central-bundle.zip by bundling content at /home/runner/work/jdbc-adapter/jdbc-adapter/target/central-staging
[INFO] Created bundle successfully /home/runner/work/jdbc-adapter/jdbc-adapter/target/central-staging/central-bundle.zip
[INFO] Going to upload /home/runner/work/jdbc-adapter/jdbc-adapter/target/central-publishing/central-bundle.zip
[INFO] Uploaded bundle successfully, deployment name: Deployment, deploymentId: e142e4b4-8376-4ca9-a0e3-1071d9742956. Deployment will publish automatically
[INFO] Waiting until Deployment e142e4b4-8376-4ca9-a0e3-1071d9742956 is validated
Error:  

Deployment e142e4b4-8376-4ca9-a0e3-1071d9742956 failed
pkg:maven/org.casbin/jdbc-adapter@2.12.0:
 - Dependency version cannot contain 'latest' in version for dependency: org.casbin:jcasbin


[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  14.017 s
[INFO] Finished at: 2025-12-19T12:25:02Z
[INFO] ------------------------------------------------------------------------
Error:  Failed to execute goal org.sonatype.central:central-publishing-maven-plugin:0.5.0:publish (injected-central-publishing) on project jdbc-adapter: Execution injected-central-publishing of goal org.sonatype.central:central-publishing-maven-plugin:0.5.0:publish failed: Deployment e142e4b4-8376-4ca9-a0e3-1071d9742956 (Deployment) failed while publishing -> [Help 1]
Error:  
Error:  To see the full stack trace of the errors, re-run Maven with the -e switch.
Error:  Re-run Maven using the -X switch to enable full debug logging.
Error:  
Error:  For more information about the errors and possible solutions, please read the following articles:
Error:  [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException

    at makeError (/opt/hostedtoolcache/node/20.19.6/x64/lib/node_modules/@conveyal/maven-semantic-release/node_modules/execa/index.js:172:9)
    at /opt/hostedtoolcache/node/20.19.6/x64/lib/node_modules/@conveyal/maven-semantic-release/node_modules/execa/index.js:277:16
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async deploy (/opt/hostedtoolcache/node/20.19.6/x64/lib/node_modules/@conveyal/maven-semantic-release/lib/maven.js:47:5)
    at async publish (/opt/hostedtoolcache/node/20.19.6/x64/lib/node_modules/@conveyal/maven-semantic-release/lib/publish.js:16:5)
    at async validator (file:///opt/hostedtoolcache/node/20.19.6/x64/lib/node_modules/semantic-release/lib/plugins/normalize.js:36:24)
    at async file:///opt/hostedtoolcache/node/20.19.6/x64/lib/node_modules/semantic-release/lib/plugins/pipeline.js:38:36
    at async file:///opt/hostedtoolcache/node/20.19.6/x64/lib/node_modules/semantic-release/lib/plugins/pipeline.js:32:5
    at async pluginsConfigAccumulator.<computed> [as publish] (file:///opt/hostedtoolcache/node/20.19.6/x64/lib/node_modules/semantic-release/lib/plugins/index.js:87:11)
    at async run (file:///opt/hostedtoolcache/node/20.19.6/x64/lib/node_modules/semantic-release/index.js:215:20)
[12:25:02 PM] [semantic-release] › ✘  Failed step "publish" of plugin "@conveyal/maven-semantic-release"
[12:25:02 PM] [semantic-release] › ℹ  Start step "fail" of plugin "@semantic-release/github"
[12:25:02 PM] [semantic-release] › ✘  Failed step "fail" of plugin "@semantic-release/github"
[12:25:02 PM] [semantic-release] › ✘  An error occurred while running semantic-release: Error: Variable $owner of type String! was provided invalid value
    at file:///opt/hostedtoolcache/node/20.19.6/x64/lib/node_modules/semantic-release/node_modules/aggregate-error/index.js:23:26
    at Array.map (<anonymous>)
    at new AggregateError (file:///opt/hostedtoolcache/node/20.19.6/x64/lib/node_modules/semantic-release/node_modules/aggregate-error/index.js:16:19)
    at file:///opt/hostedtoolcache/node/20.19.6/x64/lib/node_modules/semantic-release/lib/plugins/pipeline.js:55:13
    at async pluginsConfigAccumulator.<computed> [as fail] (file:///opt/hostedtoolcache/node/20.19.6/x64/lib/node_modules/semantic-release/lib/plugins/index.js:87:11)
    at async callFail (file:///opt/hostedtoolcache/node/20.19.6/x64/lib/node_modules/semantic-release/index.js:252:7)
    at async Module.default (file:///opt/hostedtoolcache/node/20.19.6/x64/lib/node_modules/semantic-release/index.js:282:7)
    at async default (file:///opt/hostedtoolcache/node/20.19.6/x64/lib/node_modules/semantic-release/cli.js:55:5) {
  extensions: { value: [ 'semantic-release' ], problems: [ [Object] ] },
  locations: [ { line: 2, column: 21 } ],
  pluginName: '@semantic-release/github'
}
[12:25:02 PM] [semantic-release] › ✘  EMAVENDEPLOY Deployment to maven failed.
The deployment to maven failed for an unknown reason.

Please check the logs on the CI server to see what happened.

SemanticReleaseError: Deployment to maven failed.
    at getError (/opt/hostedtoolcache/node/20.19.6/x64/lib/node_modules/@conveyal/maven-semantic-release/lib/util.js:24:10)
    at deploy (/opt/hostedtoolcache/node/20.19.6/x64/lib/node_modules/@conveyal/maven-semantic-release/lib/maven.js:54:11)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async publish (/opt/hostedtoolcache/node/20.19.6/x64/lib/node_modules/@conveyal/maven-semantic-release/lib/publish.js:16:5)
    at async validator (file:///opt/hostedtoolcache/node/20.19.6/x64/lib/node_modules/semantic-release/lib/plugins/normalize.js:36:24)
    at async file:///opt/hostedtoolcache/node/20.19.6/x64/lib/node_modules/semantic-release/lib/plugins/pipeline.js:38:36
    at async file:///opt/hostedtoolcache/node/20.19.6/x64/lib/node_modules/semantic-release/lib/plugins/pipeline.js:32:5
    at async pluginsConfigAccumulator.<computed> [as publish] (file:///opt/hostedtoolcache/node/20.19.6/x64/lib/node_modules/semantic-release/lib/plugins/index.js:87:11)
    at async run (file:///opt/hostedtoolcache/node/20.19.6/x64/lib/node_modules/semantic-release/index.js:215:20)
    at async Module.default (file:///opt/hostedtoolcache/node/20.19.6/x64/lib/node_modules/semantic-release/index.js:278:22) {
  code: 'EMAVENDEPLOY',
  details: 'The deployment to maven failed for an unknown reason.\n' +
    '\n' +
    'Please check the logs on the CI server to see what happened.',
  semanticRelease: true,
  pluginName: '@conveyal/maven-semantic-release'
}
Error: Process completed with exit code 1.

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions