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

Use the artifacts generated from JIRO lb_2052_maven_tycho branch #324

Open
LorenzoBettini opened this issue Feb 10, 2023 · 8 comments
Open

Comments

@LorenzoBettini
Copy link
Contributor

See eclipse/xtext#2135 (comment)

Branch: https://github.com/LorenzoBettini/xtext-reference-projects/tree/lb_2052_maven_tycho

@LorenzoBettini
Copy link
Contributor Author

@cdietrich I adapted the Wizard generator (not yet the domainmodel example) and I see the failure for Maven projects, e.g., https://github.com/LorenzoBettini/xtext-reference-projects/actions/runs/4143942852/jobs/7166402228

I don't understand the root of the problem, but it looks like xtend-maven-plugin complains with

[INFO] --- xtend-maven-plugin:2.30.0-SNAPSHOT:compile (default) @ org.xtext.example.mydsl ---
[ERROR] resolution of uriFragment '|1' failed.
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1DiagnosticWrappedException: org.eclipse.xtext.common.types.access.TypeResource$CannotLoadTypeResourceException: java.lang.IllegalStateException: Cannot read bytes for java.util.zip.ZipException: ZipFile invalid LOC header (bad signature)

@szarnekow do you have a clue of what might go wrong here?

@szarnekow
Copy link
Member

Cannot read bytes for java.util.zip.ZipException: ZipFile invalid LOC header (bad signature)

I'd assume some jar on the CP is corrupt

@LorenzoBettini
Copy link
Contributor Author

mh... I can reproduce it locally and in the download log (which, by the way, is suppressed on the GitHub Actions configuration, but it should never be for easier debugging):

Downloaded from xtext-lib-p: https://ci.eclipse.org/xtext/job/xtext-lib/job/lb_2052_maven_tycho/lastSuccessfulBuild/artifact/build/maven-repository/org/eclipse/xtend/org.eclipse.xtend.lib.macro/2.30.0-SNAPSHOT/maven-metadata.xml (1.4 kB at 4.7 kB/s)
Downloading from sonatype-snapshots: https://oss.sonatype.org/content/repositories/snapshots/org/eclipse/xtend/org.eclipse.xtend.core/2.30.0-SNAPSHOT/org.eclipse.xtend.core-2.30.0-20230210.025029-91.jar

So, it takes more recent stuff from sonatype snapshots and things get mixed up with the older snapshots from JIRO.

I thought that not enabling sonatype snapshots was enough, but it looks like sonatype snapshots must be explicitly disabled.

I'll check that...

@LorenzoBettini
Copy link
Contributor Author

mh... interesting: it looks like our project wizards explicitly disable sonatype snapshots ONLY for Tycho projects, not for pure Maven projects. This looks wrong to me. In fact, I hit the above problems (while the Tycho projects build fine). @cdietrich do you know why we generate the POM instructions for disabling sonatype snapshots only for Tycho projects?

@LorenzoBettini
Copy link
Contributor Author

Yes, the problem was that sonatype snapshots were used and I guess things got mixed up.

@cdietrich If I understand correctly what you were proposing for locally and temporarily adapting the wizard I did this:

LorenzoBettini/xtext-core@45066e2

but that was not enough: I had to do this as well (disabling explicitly sonatype snapshots):

LorenzoBettini/xtext-core@07f4fa7

The regenerated projects can be found here: https://github.com/LorenzoBettini/xtext-reference-projects/tree/lb_2052_maven_tycho

I have to stop now, and I'd leave domainmodel to you, OK?

@cdietrich
Copy link
Member

cdietrich commented Feb 10, 2023

@LorenzoBettini yes of course i meant also disabling sonatype. sorry to be too imprecise (though this was obvious)

i also dont the the tycho non tycho thing.

you mean this one:

this is cause this only breaks in tycho
please note the http instead of https there

@cdietrich
Copy link
Member

@LorenzoBettini
Copy link
Contributor Author

And everything is green, isn't it?

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

3 participants