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

build with tycho 4.0.3 does not work without resolver classic #277

Open
cdietrich opened this issue Nov 7, 2023 · 5 comments
Open

build with tycho 4.0.3 does not work without resolver classic #277

cdietrich opened this issue Nov 7, 2023 · 5 comments
Labels

Comments

@cdietrich
Copy link
Member

build with tycho 4.0.3 does not work without resolver classic

https://ci.eclipse.org/mwe/job/mwe2/job/cd_noResolverClassic/1/consoleFull

10:56:43  [INFO] [jenkins-event-spy] Generated /home/jenkins/agent/workspace/mwe2_cd_noResolverClassic@tmp/withMavena1d52e64/maven-spy-20231107-095611-27314107875135209752222.log
10:56:43  [ERROR] Failed to execute goal org.eclipse.tycho:tycho-compiler-plugin:4.0.3:compile (default-compile) on project org.eclipse.emf.mwe.activities: Execution default-compile of goal org.eclipse.tycho:tycho-compiler-plugin:4.0.3:compile failed: Tycho build extension not configured for MavenProject: org.eclipse.emf:org.eclipse.emf.mwe.activities:1.10.0-SNAPSHOT @ /home/jenkins/agent/workspace/mwe2_cd_noResolverClassic/git-repo-nightly/plugins/org.eclipse.emf.mwe.activities/pom.xml -> [Help 1]
10:56:43  org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.eclipse.tycho:tycho-compiler-plugin:4.0.3:compile (default-compile) on project org.eclipse.emf.mwe.activities: Execution default-compile of goal org.eclipse.tycho:tycho-compiler-plugin:4.0.3:compile failed: Tycho build extension not configured for MavenProject: org.eclipse.emf:org.eclipse.emf.mwe.activities:1.10.0-SNAPSHOT @ /home/jenkins/agent/workspace/mwe2_cd_noResolverClassic/git-repo-nightly/plugins/org.eclipse.emf.mwe.activities/pom.xml
10:56:43      at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:347)
10:56:43      at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:330)
10:56:43      at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:213)
10:56:43      at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:175)
10:56:43      at org.apache.maven.lifecycle.internal.MojoExecutor.access$000 (MojoExecutor.java:76)
10:56:43      at org.apache.maven.lifecycle.internal.MojoExecutor$1.run (MojoExecutor.java:163)
10:56:43      at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute (DefaultMojosExecutionStrategy.java:39)
10:56:43      at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:160)
10:56:43      at org.apache.maven.lifecycle.internal.MojoExecutor.executeForkedExecutions (MojoExecutor.java:462)
10:56:43      at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:325)
10:56:43      at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:213)
10:56:43      at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:175)
10:56:43      at org.apache.maven.lifecycle.internal.MojoExecutor.access$000 (MojoExecutor.java:76)
10:56:43      at org.apache.maven.lifecycle.internal.MojoExecutor$1.run (MojoExecutor.java:163)
10:56:43      at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute (DefaultMojosExecutionStrategy.java:39)
10:56:43      at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:160)
10:56:43      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:105)
10:56:43      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:73)
10:56:43      at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:53)
10:56:43      at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:118)
10:56:43      at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:261)
10:56:43      at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:173)
10:56:43      at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:101)
10:56:43      at org.apache.maven.cli.MavenCli.execute (MavenCli.java:827)
10:56:43      at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:272)
10:56:43      at org.apache.maven.cli.MavenCli.main (MavenCli.java:195)
10:56:43      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
10:56:43      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:77)
10:56:43      at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
10:56:43      at java.lang.reflect.Method.invoke (Method.java:568)
10:56:43      at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
10:56:43      at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
10:56:43      at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
10:56:43      at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
10:56:43  Caused by: org.apache.maven.plugin.PluginExecutionException: Execution default-compile of goal org.eclipse.tycho:tycho-compiler-plugin:4.0.3:compile failed: Tycho build extension not configured for MavenProject: org.eclipse.emf:org.eclipse.emf.mwe.activities:1.10.0-SNAPSHOT @ /home/jenkins/agent/workspace/mwe2_cd_noResolverClassic/git-repo-nightly/plugins/org.eclipse.emf.mwe.activities/pom.xml
10:56:43      at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:133)
10:56:43      at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:342)
10:56:43      at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:330)
10:56:43      at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:213)
10:56:43      at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:175)
10:56:43      at org.apache.maven.lifecycle.internal.MojoExecutor.access$000 (MojoExecutor.java:76)
10:56:43      at org.apache.maven.lifecycle.internal.MojoExecutor$1.run (MojoExecutor.java:163)
10:56:43      at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute (DefaultMojosExecutionStrategy.java:39)
10:56:43      at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:160)
10:56:43      at org.apache.maven.lifecycle.internal.MojoExecutor.executeForkedExecutions (MojoExecutor.java:462)
10:56:43      at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:325)
10:56:43      at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:213)
10:56:43      at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:175)
10:56:43      at org.apache.maven.lifecycle.internal.MojoExecutor.access$000 (MojoExecutor.java:76)
10:56:43      at org.apache.maven.lifecycle.internal.MojoExecutor$1.run (MojoExecutor.java:163)
10:56:43      at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute (DefaultMojosExecutionStrategy.java:39)
10:56:43      at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:160)
10:56:43      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:105)
10:56:43      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:73)
10:56:43      at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:53)
10:56:43      at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:118)
10:56:43      at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:261)
10:56:43      at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:173)
10:56:43      at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:101)
10:56:43      at org.apache.maven.cli.MavenCli.execute (MavenCli.java:827)
10:56:43      at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:272)
10:56:43      at org.apache.maven.cli.MavenCli.main (MavenCli.java:195)
10:56:43      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
10:56:43      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:77)
10:56:43      at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
10:56:43      at java.lang.reflect.Method.invoke (Method.java:568)
10:56:43      at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
10:56:43      at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
10:56:43      at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
10:56:43      at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
10:56:43  Caused by: java.lang.IllegalStateException: Tycho build extension not configured for MavenProject: org.eclipse.emf:org.eclipse.emf.mwe.activities:1.10.0-SNAPSHOT @ /home/jenkins/agent/workspace/mwe2_cd_noResolverClassic/git-repo-nightly/plugins/org.eclipse.emf.mwe.activities/pom.xml
10:56:43      at org.eclipse.tycho.core.utils.TychoProjectUtils.getDependencyArtifacts (TychoProjectUtils.java:50)
10:56:43      at org.eclipse.tycho.core.osgitools.AbstractTychoProject.getDependencyArtifacts (AbstractTychoProject.java:68)
10:56:43      at org.eclipse.tycho.core.osgitools.OsgiBundleProject.resolveClassPath (OsgiBundleProject.java:193)
10:56:43      at org.eclipse.tycho.core.osgitools.OsgiBundleProject.getBundleClassPath (OsgiBundleProject.java:368)
10:56:43      at org.eclipse.tycho.core.osgitools.OsgiBundleProject.getClasspath (OsgiBundleProject.java:356)
10:56:43      at org.eclipse.tycho.compiler.AbstractOsgiCompilerMojo.getClasspath (AbstractOsgiCompilerMojo.java:892)
10:56:43      at org.eclipse.tycho.compiler.AbstractOsgiCompilerMojo.getClasspathElements (AbstractOsgiCompilerMojo.java:576)
10:56:43      at copied.org.apache.maven.plugin.AbstractCompilerMojo.getCompilerConfiguration (AbstractCompilerMojo.java:442)
10:56:43      at org.eclipse.tycho.compiler.AbstractOsgiCompilerMojo.getCompilerConfiguration (AbstractOsgiCompilerMojo.java:697)
10:56:43      at copied.org.apache.maven.plugin.AbstractCompilerMojo.execute (AbstractCompilerMojo.java:330)
10:56:43      at org.eclipse.tycho.compiler.AbstractOsgiCompilerMojo.doCompile (AbstractOsgiCompilerMojo.java:404)
10:56:43      at org.eclipse.tycho.compiler.AbstractOsgiCompilerMojo.execute (AbstractOsgiCompilerMojo.java:385)
10:56:43      at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:126)
10:56:43      at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:342)
10:56:43      at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:330)
10:56:43      at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:213)
10:56:43      at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:175)
10:56:43      at org.apache.maven.lifecycle.internal.MojoExecutor.access$000 (MojoExecutor.java:76)
10:56:43      at org.apache.maven.lifecycle.internal.MojoExecutor$1.run (MojoExecutor.java:163)
10:56:43      at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute (DefaultMojosExecutionStrategy.java:39)
10:56:43      at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:160)
10:56:43      at org.apache.maven.lifecycle.internal.MojoExecutor.executeForkedExecutions (MojoExecutor.java:462)
10:56:43      at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:325)
10:56:43      at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:213)
10:56:43      at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:175)
10:56:43      at org.apache.maven.lifecycle.internal.MojoExecutor.access$000 (MojoExecutor.java:76)
10:56:43      at org.apache.maven.lifecycle.internal.MojoExecutor$1.run (MojoExecutor.java:163)
10:56:43      at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute (DefaultMojosExecutionStrategy.java:39)
10:56:43      at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:160)
10:56:43      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:105)
10:56:43      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:73)
10:56:43      at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:53)
10:56:43      at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:118)
10:56:43      at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:261)
10:56:43      at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:173)
10:56:43      at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:101)
10:56:43      at org.apache.maven.cli.MavenCli.execute (MavenCli.java:827)
10:56:43      at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:272)
10:56:43      at org.apache.maven.cli.MavenCli.main (MavenCli.java:195)
10:56:43      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
10:56:43      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:77)
10:56:43      at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
10:56:43      at java.lang.reflect.Method.invoke (Method.java:568)
10:56:43      at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
10:56:43      at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
10:56:43      at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
10:56:43      at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
10:56:43  [ERROR] 
10:56:43  [ERROR] Re-run Maven using the -X switch to enable full debug logging.
10:56:43  [ERROR] 
10:56:43  [ERROR] For more information about the errors and possible solutions, please read the following articles:
10:56:43  [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
10:56:43  [ERROR] 
10:56:43  [ERROR] After correcting the problems, you can resume the build with the command
10:56:43  [ERROR]   mvn <args> -rf :org.eclipse.emf.mwe.activities

@laeubi what does this error message wants to tell us

@cdietrich cdietrich added this to the Release 2.16.0 milestone Nov 7, 2023
@laeubi
Copy link
Member

laeubi commented Nov 7, 2023

Mostly that is because Tycho is not enabled as a plugin in the parent pom of that project but still executing some Tycho mojos.

@cdietrich
Copy link
Member Author

hmmm there is

<groupId>org.eclipse.tycho</groupId>

and https://github.com/eclipse/mwe/blob/735ee06476e48072abf551363f19b3a4454f4314/plugins/org.eclipse.emf.mwe.activities/pom.xml#L7C16-L7C50

and

<relativePath>../maven/org.eclipse.emf.mwe2.parent/pom.xml</relativePath>

so from my pov tycho-maven-plugin is configured

@laeubi
Copy link
Member

laeubi commented Nov 8, 2023

It looks fine at a first glance, any chance to reproduce this with a smaller example?

@cdietrich
Copy link
Member Author

cdietrich commented Nov 8, 2023

@laeubi i fear not but cloning and

mvn \
        -e -f maven/org.eclipse.emf.mwe2.parent/pom.xml \
        -Dtycho-version=4.0.3 \
        -Dsign.skip=true \
        -DtestFailureIgnore=true \
        -Dmaven.javadoc.failOnError=false \
        -Dtycho.localArtifacts=ignore \
        -Dtarget-platform=org.eclipse.emf.mwe2.target.nightly \
        -DBUILD_TYPE=N clean javadoc:aggregate-jar test deploy -DaltDeploymentRepository=snapshot-repo::default::file:./my-local-snapshots-dir

should do the trick

i think javadoc:aggregate-jar is the problematic goal

@laeubi
Copy link
Member

laeubi commented Nov 9, 2023

i think javadoc:aggregate-jar is the problematic goal

That could be the case, I never really understood how it is supposed to work but it seem to fork executions in some case that could cause issues here.

Can you try clean test javadoc:aggregate-jar deploy instead?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants