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

Release fails with Java 17 #15

Closed
gunnarmorling opened this issue Nov 30, 2021 · 4 comments
Closed

Release fails with Java 17 #15

gunnarmorling opened this issue Nov 30, 2021 · 4 comments

Comments

@gunnarmorling
Copy link
Member

See the execution of the release job, ran into this one: https://issues.sonatype.org/browse/OSSRH-66257.

@aalmiray, I believe we've had this before. Did we do that XStream dependency version override to prevent it?

@aalmiray
Copy link
Contributor

Don't remember seeing this error before. Does the release must use Java 17? Downgrading to 11 may solve the issue. Specifying an explicit version for xstream in the plugin's dependencies as shown at https://github.community/t/github-actions-bot-email-address/17204/4 would also work.

@gunnarmorling
Copy link
Member Author

yes, no problem with going to 11, apart from the shame of not using the latest and greatest of course :)

@gunnarmorling
Copy link
Member Author

So the release went out, using 11, and the artifacts are there: https://repo1.maven.org/maven2/org/moditect/ossquickstart/oss-quickstart-simple-archetype/1.0.0.Alpha1/. It still isn't found though :/

mvn archetype:generate -B \
  -DarchetypeGroupId=org.moditect.ossquickstart \
  -DarchetypeArtifactId=oss-quickstart-simple-archetype \
  -DarchetypeVersion=1.0.0.Alpha1 \
  -DgroupId=com.example.demos \
  -DartifactId=fancy-project \
  -Dversion=1.0.0-SNAPSHOT \
  -DmoduleName=com.example.fancy

Wondering whether some special trickery is needed in terms of deploying an archetype with the right metadata to Maven Central 🤔 ?

@gunnarmorling
Copy link
Member Author

Release is done with 11, artifacts can also be resolved now.

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

2 participants