SWAT-engineering / SWAT-engineering/maven-full-artifacts-action

mvn deploy fails with fatal error on typepal

Open
#2 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
0
Forks
1
Avg merge
1d 8h
Merged PRs (30d)
3

Description

This is an example failed action: https://github.com/usethesource/typepal/runs/4105740347?check_suite_focus=true

It is unclear to me what is going wrong. The root error message does not make sense to me:

compiling: basedir /home/runner/work/typepal/typepal/target/generated-sources/annotations does not exist -> [Help 1]

  • The double typepal/typepal looks weird, but that does not have to be the problem
  • neither generated-sources, nor annotations are relevant in this project
  • yet somehow we are looking for annotations in generated-sources

pls help?

This is the entire log:

Run SWAT-engineering/maven-full-artifacts-action@v1
Running maven deploy
/usr/bin/mvn -B -Dmaven.test.skip=true -DskipTests -DaltDeploymentRepository=local::file:///home/runner/work/_temp/ec653788227e36138f48d5505a9c06f2d66574ec package org.apache.maven.plugins:maven-deploy-plugin:3.0.0-M1:deploy
1124 [INFO] Scanning for projects...
3944 [INFO] 
3944 [INFO] -----------------------< org.rascalmpl:typepal >------------------------
3947 [INFO] Building typepal 0.5.1-SNAPSHOT
3947 [INFO] --------------------------------[ jar ]---------------------------------
4983 [INFO] 
4984 [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ typepal ---
5149 [INFO] Using 'UTF-8' encoding to copy filtered resources.
5161 [INFO] Copying 15 resources
5166 [INFO] Copying 16 resources
5167 [INFO] 
5168 [INFO] --- maven-compiler-plugin:3.7.0:compile (default-compile) @ typepal ---
5390 [INFO] Changes detected - recompiling the module!
5396 [INFO] ------------------------------------------------------------------------
5396 [INFO] BUILD FAILURE
5396 [INFO] ------------------------------------------------------------------------
5397 [INFO] Total time:  4.300 s
5398 [INFO] Finished at: 2021-11-04T14:01:03Z
5399 [INFO] ------------------------------------------------------------------------
Error: RROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile (default-compile) on project typepal: Fatal error compiling: basedir /home/runner/work/typepal/typepal/target/generated-sources/annotations does not exist -> [Help 1]
Error: RROR] 
Error: RROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
Error: RROR] Re-run Maven using the -X switch to enable full debug logging.
Error: RROR] 
Error: RROR] For more information about the errors and possible solutions, please read the following articles:
Error: RROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
Error: The process '/usr/bin/mvn' failed with exit code 1

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked GitHub Actions run and the Maven command shown in the log, then inspect how maven-full-artifacts-action invokes Maven for typepal. Determine why the compile step expects target/generated-sources/annotations and verify the fix by rerunning the deployment workflow without the fatal error.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions, java, typescript
Domain
build-system, ci-cd, devops
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.