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

Tycho error #138

Open
zfoxbaby opened this issue Jan 2, 2025 · 5 comments
Open

Tycho error #138

zfoxbaby opened this issue Jan 2, 2025 · 5 comments

Comments

@zfoxbaby
Copy link

zfoxbaby commented Jan 2, 2025

[INFO] Fetching content.xml.xz from https://download.eclipse.org/technology/swtbot/releases/2.8.0/ (11.62kB)
[INFO] Resolving dependencies of MavenProject: com.ate.develop.ui.product:com.ate.nattable:1.0.0-SNAPSHOT @ C:\Users\ZhangChundi\Desktop\1218\ate\com.ate.parent\com.ate.nattable\pom.xml
[INFO] Fetching 202112081000&countryCode=cn&timeZone=8&format=xml from https://www.eclipse.org/downloads/download.php?format=xml&file=/releases/2021-12/
[INFO] Fetching biz.aQute.bndlib_5.1.2.202007211702.jar from https://mirror.aarnet.edu.au/pub/eclipse/releases/2021-12/202112081000/plugins/ (3.68MB)
[INFO] Fetching biz.aQute.bndlib_5.1.2.202007211702.jar from https://mirror.aarnet.edu.au/pub/eclipse/releases/2021-12/202112081000/plugins/ (146.39kB of 3.68MB at 142.39kB/s)
[INFO] Fetching biz.aQute.bndlib_5.1.2.202007211702.jar from https://mirror.aarnet.edu.au/pub/eclipse/releases/2021-12/202112081000/plugins/ (1.39MB of 3.68MB at 663.19kB/s)
[INFO] Fetching 201909181001&countryCode=cn&timeZone=8&format=xml from https://www.eclipse.org/downloads/download.php?format=xml&file=/releases/2019-09/
[INFO] Fetching javax.xml_1.3.4.v201005080400.jar from https://mirrors.tuna.tsinghua.edu.cn/eclipse/releases/2019-09/201909181001/plugins/ (249kB)
[INFO] Fetching 202009161000&countryCode=cn&timeZone=8&format=xml from https://www.eclipse.org/downloads/download.php?format=xml&file=/releases/2020-09/
[INFO] Fetching org.slf4j.api_1.7.30.v20200204-2150.jar.pack.gz from https://www.ftp.saix.net/Eclipse//releases/2020-09/202009161000/plugins/ (24kB)
[INFO] Fetching org.eclipse.osgi_3.17.100.v20211104-1730.jar from https://mirror.aarnet.edu.au/pub/eclipse/releases/2021-12/202112081000/plugins/ (1.4MB)
[INFO] Fetching org.eclipse.osgi_3.17.100.v20211104-1730.jar from https://mirror.aarnet.edu.au/pub/eclipse/releases/2021-12/202112081000/plugins/ (210.39kB of 1.4MB at 206.39kB/s)
[INFO] Fetching org.eclipse.osgi.services_3.10.200.v20210723-0643.jar from https://eclipse.mirror.rafal.ca/releases/2021-12/202112081000/plugins/ (126.4kB)
[ERROR] All attempts to read artifact osgi.bundle,ca.odell.glazedlists,1.11.0 failed:
[ERROR] An error occurred while transferring artifact canonical: osgi.bundle,ca.odell.glazedlists,1.11.0 from repository https://mirrors.tuna.tsinghua.edu.cn/eclipse/nattable/releases/2.5.0/repository:
[ERROR] Result of processing steps.:
[ERROR] Public key not found for 5c28247a08c3bba7.
[ERROR] An error occurred while transferring artifact canonical: osgi.bundle,ca.odell.glazedlists,1.11.0 from repository http://download.eclipse.org/nattable/releases/2.5.0/repository:
[ERROR] Result of processing steps.:
[ERROR] Public key not found for 5c28247a08c3bba7.
[ERROR] Internal error: org.eclipse.tycho.repository.local.MirroringArtifactProvider$MirroringFailedException: Could not mirror artifact osgi.bundle,ca.odell.glazedlists,1.11.0 into the local Maven repository.See log output for details. -> [Help 1]
org.apache.maven.InternalErrorException: Internal error: org.eclipse.tycho.repository.local.MirroringArtifactProvider$MirroringFailedException: Could not mirror artifact osgi.bundle,ca.odell.glazedlists,1.11.0 into the local Maven repository.See log output for details.
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:120)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:566)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
Caused by: org.eclipse.tycho.repository.local.MirroringArtifactProvider$MirroringFailedException: Could not mirror artifact osgi.bundle,ca.odell.glazedlists,1.11.0 into the local Maven repository.See log output for details.
at org.eclipse.tycho.repository.local.MirroringArtifactProvider.downloadArtifact (MirroringArtifactProvider.java:251)
at org.eclipse.tycho.repository.local.MirroringArtifactProvider.makeOneFormatLocallyAvailable (MirroringArtifactProvider.java:231)
at org.eclipse.tycho.repository.local.MirroringArtifactProvider.makeLocallyAvailable (MirroringArtifactProvider.java:195)
at org.eclipse.tycho.repository.local.MirroringArtifactProvider.getArtifactFile (MirroringArtifactProvider.java:134)
at org.eclipse.tycho.repository.p2base.artifact.provider.CompositeArtifactProvider.getArtifactFile (CompositeArtifactProvider.java:87)
at org.eclipse.tycho.p2.target.TargetPlatformBaseImpl.getLocalArtifactFile (TargetPlatformBaseImpl.java:130)
at org.eclipse.tycho.p2.resolver.DefaultP2ResolutionResult.lambda$2 (DefaultP2ResolutionResult.java:89)
at org.eclipse.tycho.p2.resolver.DefaultP2ResolutionResultEntry.getLocation (DefaultP2ResolutionResultEntry.java:73)
at org.eclipse.tycho.p2.resolver.P2DependencyResolver.lambda$newDefaultTargetPlatform$2 (P2DependencyResolver.java:481)
at org.eclipse.tycho.core.osgitools.targetplatform.ArtifactCollection.lambda$addArtifactFile$2 (ArtifactCollection.java:66)
at org.eclipse.tycho.core.osgitools.DefaultArtifactDescriptor.getLocation (DefaultArtifactDescriptor.java:62)
at org.eclipse.tycho.core.osgitools.targetplatform.ArtifactCollection.lambda$addArtifact$3 (ArtifactCollection.java:121)
at org.eclipse.tycho.core.osgitools.DefaultArtifactDescriptor.getLocation (DefaultArtifactDescriptor.java:62)
at org.eclipse.tycho.core.osgitools.targetplatform.ArtifactCollection.lambda$addArtifact$3 (ArtifactCollection.java:121)
at org.eclipse.tycho.core.osgitools.DefaultArtifactDescriptor.getLocation (DefaultArtifactDescriptor.java:62)
at org.eclipse.tycho.core.maven.MavenDependencyInjector.collectExternalDependencies (MavenDependencyInjector.java:100)
at org.eclipse.tycho.core.maven.MavenDependencyInjector.addDependency (MavenDependencyInjector.java:84)
at org.eclipse.tycho.core.maven.MavenDependencyInjector.injectMavenDependencies (MavenDependencyInjector.java:55)
at org.eclipse.tycho.p2.resolver.P2DependencyResolver.injectDependenciesIntoMavenModel (P2DependencyResolver.java:501)
at org.eclipse.tycho.core.resolver.DefaultTychoResolver.resolveProject (DefaultTychoResolver.java:178)
at org.eclipse.tycho.core.maven.TychoMavenLifecycleParticipant.lambda$resolveProjects$0 (TychoMavenLifecycleParticipant.java:157)
at java.util.stream.ForEachOps$ForEachOp$OfRef.accept (ForEachOps.java:183)
at java.util.stream.WhileOps$1$1.accept (WhileOps.java:99)
at java.util.ArrayList$ArrayListSpliterator.tryAdvance (ArrayList.java:1632)
at java.util.stream.ReferencePipeline.forEachWithCancel (ReferencePipeline.java:127)
at java.util.stream.AbstractPipeline.copyIntoWithCancel (AbstractPipeline.java:502)
at java.util.stream.AbstractPipeline.copyInto (AbstractPipeline.java:488)
at java.util.stream.AbstractPipeline.wrapAndCopyInto (AbstractPipeline.java:474)
at java.util.stream.ForEachOps$ForEachOp.evaluateSequential (ForEachOps.java:150)
at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential (ForEachOps.java:173)
at java.util.stream.AbstractPipeline.evaluate (AbstractPipeline.java:234)
at java.util.stream.ReferencePipeline.forEach (ReferencePipeline.java:497)
at org.eclipse.tycho.core.maven.TychoMavenLifecycleParticipant.resolveProjects (TychoMavenLifecycleParticipant.java:188)
at org.eclipse.tycho.core.maven.TychoMavenLifecycleParticipant.afterProjectsRead (TychoMavenLifecycleParticipant.java:114)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:264)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:566)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
[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]

@zfoxbaby
Copy link
Author

zfoxbaby commented Jan 2, 2025

Eclipse version:2019-09 R (4.13.0)(Build id: 20190917-1200)
JDK 11;
Maven:3.8.8
Reason:NatTable upgrade from 1.6.0 to 2.5.0

@zfoxbaby
Copy link
Author

zfoxbaby commented Jan 2, 2025

image
I Can to export exe Using Product.

pom.xml

4.0.0
com.ate.parent
com.ate.parent
1.0.0-SNAPSHOT
pom

<modules>
	<module>com.ate.nattable</module>
	<module>com.ate.develop.ui</module>
	<module>com.ate.common</module>
	<module>com.ate.develop.product</module>
	<module>com.ate.tycho</module>
	<module>com.ate.service</module>
	<module>com.ate.data</module>
	<module>com.ate.guide</module>
	<module>com.ate.nebula</module>
	<module>com.ate.tools</module>
</modules>


<properties>
    <!-- version properties-->
	<ate.version>1.0.0</ate.version>
	<tycho.version>2.7.0</tycho.version>
	<java.version>11</java.version>
	<compile.version>3.9.0</compile.version>
	<!-- project build -->
	<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
	<maven.build.timestamp.format>yyyyMMddHHmm</maven.build.timestamp.format>
	<!--  local phontom  p2 repository  -->
    <local.p2>file:///E:/photonP2mirrors</local.p2>
    <!-- plugins依赖 -->
    <!--  <eclipse-repo.url>https://mirrors.tuna.tsinghua.edu.cn/eclipse/releases/photon</eclipse-repo.url> -->
	<!--  <eclipse-repo.url.photon>http://download.eclipse.org/releases/photon</eclipse-repo.url.photon> -->
    <eclipse-repo.url>https://mirrors.tuna.tsinghua.edu.cn/eclipse/releases/2019-09/201909181001/</eclipse-repo.url>
    <eclipse-repo.url201909>https://download.eclipse.org/releases/2019-09/</eclipse-repo.url201909>
    <eclipse-repo.url202009>https://download.eclipse.org/releases/2020-09/</eclipse-repo.url202009>
    <eclipse-repo.url202111>https://download.eclipse.org/releases/2021-12/</eclipse-repo.url202111>
	<nebula-repo.url>https://archive.eclipse.org/nebula/releases/2.1.0/</nebula-repo.url>
	<!--  http://download.eclipse.org/nattable/releases/2.5.0/repository/</nattable-repo.url>-->
	<nattable-repo1.url>https://mirrors.tuna.tsinghua.edu.cn/eclipse/nattable/releases/2.5.0/repository/</nattable-repo1.url>
	<nattable-repo2.url>http://download.eclipse.org/nattable/releases/2.5.0/repository/</nattable-repo2.url>
	<jeeeyul.url>http://eclipse.jeeeyul.net/update</jeeeyul.url>
	<swtbot.url>https://download.eclipse.org/technology/swtbot/releases/2.8.0/</swtbot.url>
</properties>


<repositories>
	<repository>
		<id>eclipse-release</id>
		<url>${eclipse-repo.url}</url>
		<layout>p2</layout>
	</repository>
	<repository>
		<id>eclipse-release201909</id>
		<url>${eclipse-repo.url201909}</url>
		<layout>p2</layout>
	</repository>
	<repository>
		<id>eclipse-release202009</id>
		<url>${eclipse-repo.url202009}</url>
		<layout>p2</layout>
	</repository>
	<repository>
		<id>eclipse-release202111</id>
		<url>${eclipse-repo.url202111}</url>
		<layout>p2</layout>
	</repository>
	<repository>
		<id>nebula</id>
		<url>${nebula-repo.url}</url>
		<layout>p2</layout>
	</repository>
	<repository>
		<id>nattable1</id>
		<url>${nattable-repo1.url}</url>
		<layout>p2</layout>
	</repository>
	<repository>
		<id>nattable2</id>
		<url>${nattable-repo2.url}</url>
		<layout>p2</layout>
	</repository>
	<repository>
		<id>jeeeyul</id>
		<url>${jeeeyul.url}</url>
		<layout>p2</layout>
	</repository>
	<repository>
		<id>swtbot</id>
		<url>${swtbot.url}</url>
		<layout>p2</layout>
	</repository>
</repositories>

<build>
	<sourceDirectory>${project.basedir}/src</sourceDirectory>
	<testSourceDirectory>${project.basedir}/tests</testSourceDirectory>
	<plugins>
		<plugin>
			<groupId>org.eclipse.tycho</groupId>
			<artifactId>tycho-maven-plugin</artifactId>
			<version>${tycho.version}</version>
			<extensions>true</extensions>
			<configuration>
                <targetPlatform>
                    <repositories>
                        <repository>
                            <id>eclipse-release</id>
                            <layout>p2</layout>
                            <url>http://download.eclipse.org/releases/latest</url>
                        </repository>
                    </repositories>
                </targetPlatform>
            </configuration>
		</plugin>
		<plugin>
			<groupId>org.eclipse.tycho</groupId>
			<artifactId>tycho-compiler-plugin</artifactId>
			<version>${tycho.version}</version>
			<configuration>
				<useProjectSettings>false</useProjectSettings>
				<source>${java.version}</source>
				<target>${java.version}</target>
				<compilerArgument>-warn:+discouraged,forbidden</compilerArgument>
			</configuration>
		</plugin>
		<plugin>
			<groupId>org.eclipse.tycho</groupId>
			<artifactId>tycho-packaging-plugin</artifactId>
			<version>${tycho.version}</version>
			<configuration>
				<archive>
					<manifestEntries>
						<Built-By>URT</Built-By>
						<Created-By>URT</Created-By>
						<Build-Time>${maven.build.timestamp}</Build-Time>
					</manifestEntries>
					<addMavenDescriptor>false</addMavenDescriptor>
				</archive>
			</configuration>
		</plugin>

		<plugin>
			<groupId>org.apache.maven.plugins</groupId>
			<artifactId>maven-compiler-plugin</artifactId>
			<version>${compile.version}</version>
			<configuration>
				<source>${java.version}</source>
				<target>${java.version}</target>
				<showWarnings>true</showWarnings>
			</configuration>
		</plugin>

		<plugin>
			<groupId>org.eclipse.tycho</groupId>
			<artifactId>target-platform-configuration</artifactId>
			<version>${tycho.version}</version>
			<configuration>
				<environments>
					<environment>
						<os>win32</os>
						<ws>win32</ws>
						<arch>x86_64</arch>
					</environment>
				</environments>
			</configuration>
		</plugin>
	</plugins>
	<pluginManagement>
		<plugins>
			<!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
			<plugin>
				<groupId>org.eclipse.m2e</groupId>
				<artifactId>lifecycle-mapping</artifactId>
				<version>1.0.0</version>
				<configuration>
					<lifecycleMappingMetadata>
						<pluginExecutions>
							<pluginExecution>
								<pluginExecutionFilter>
									<groupId>
										org.eclipse.tycho
									</groupId>
									<artifactId>
										tycho-compiler-plugin
									</artifactId>
									<versionRange>
										[2.7.0,)
									</versionRange>
									<goals>
										<goal>testCompile</goal>
										<goal>
											validate-classpath
										</goal>
										<goal>compile</goal>
									</goals>
								</pluginExecutionFilter>
								<action>
									<ignore></ignore>
								</action>
							</pluginExecution>
							<pluginExecution>
								<pluginExecutionFilter>
									<groupId>
										org.eclipse.tycho
									</groupId>
									<artifactId>
										tycho-packaging-plugin
									</artifactId>
									<versionRange>
										[2.7.0,)
									</versionRange>
									<goals>
										<goal>build-qualifier</goal>
										<goal>validate-id</goal>
										<goal>
											validate-version
										</goal>
									</goals>
								</pluginExecutionFilter>
								<action>
									<ignore></ignore>
								</action>
							</pluginExecution>
							<pluginExecution>
								<pluginExecutionFilter>
									<groupId>
										org.eclipse.tycho
									</groupId>
									<artifactId>
										target-platform-configuration
									</artifactId>
									<versionRange>
										[2.7.0,)
									</versionRange>
									<goals>
										<goal>target-platform</goal>
									</goals>
								</pluginExecutionFilter>
								<action>
									<ignore></ignore>
								</action>
							</pluginExecution>
						</pluginExecutions>
					</lifecycleMappingMetadata>
				</configuration>
			</plugin>
		</plugins>
	</pluginManagement>
</build>

@fipro78
Copy link
Contributor

fipro78 commented Jan 2, 2025

The error log says:

[ERROR] Public key not found for 5c28247a08c3bba7.
[ERROR] An error occurred while transferring artifact canonical: osgi.bundle,ca.odell.glazedlists,1.11.0 from repository http://download.eclipse.org/nattable/releases/2.5.0/repository:
[ERROR] Result of processing steps.:
[ERROR] Public key not found for 5c28247a08c3bba7.

I don't know why this happens on your side. Maybe because you are using an old tycho version or an old Java version or both.

@zfoxbaby
Copy link
Author

zfoxbaby commented Jan 2, 2025

The error log says:

[ERROR] Public key not found for 5c28247a08c3bba7. [ERROR] An error occurred while transferring artifact canonical: osgi.bundle,ca.odell.glazedlists,1.11.0 from repository http://download.eclipse.org/nattable/releases/2.5.0/repository: [ERROR] Result of processing steps.: [ERROR] Public key not found for 5c28247a08c3bba7.

I don't know why this happens on your side. Maybe because you are using an old tycho version or an old Java version or both.

I'll try to upgrade tycho

thanks so much

@fipro78
Copy link
Contributor

fipro78 commented Jan 20, 2025

Could the issue be solved by upgrading the Tycho version?

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