| Summary: | FileNotFoundException with stacktrace on LocalRepositoryReader.getContents | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Geoffrey De Smet <ge0ffrey.spam> |
| Component: | Tycho | Assignee: | Project Inbox <tycho-inbox> |
| Status: | RESOLVED DUPLICATE | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | ||
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Whiteboard: | |||
If tycho is validly raising a problem here (and 0.10.0 didn't do that yet), the explanation should be clearer. Also this is an INFO log, not a WARNING log, which seems unnatural to be accompanied by a long stacktrace. This is a known issue. *** This bug has been marked as a duplicate of bug 351080 *** |
During our build, we get these unexplained stacktraces that don't fail the build. We didn't have this in tycho 0.10.0 (=regression?), but do have it in tycho 0.11.0 and 0.12.0. For example: [INFO] Resolving target platform for project MavenProject: org.drools:org.drools.eclipse:5.3.0-SNAPSHOT @ /home/gdesmet/projects/jboss/droolsjbpm/droolsjbpm-tools/drools-eclipse/org.drools.eclipse/pom.xml java.io.FileNotFoundException: /home/gdesmet/.m2/repository/org/drools/org.drools.eclipse/5.2.0-SNAPSHOT/org.drools.eclipse-5.2.0-SNAPSHOT-p2artifacts.xml (No such file or directory) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(FileInputStream.java:106) at org.eclipse.tycho.p2.repository.LocalRepositoryReader.getContents(LocalRepositoryReader.java:31) at org.eclipse.tycho.p2.repository.LocalRepositoryReader.getContents(LocalRepositoryReader.java:27) at org.eclipse.tycho.p2.maven.repository.AbstractMavenArtifactRepository.loadMaven(AbstractMavenArtifactRepository.java:74) at org.eclipse.tycho.p2.maven.repository.AbstractMavenArtifactRepository.<init>(AbstractMavenArtifactRepository.java:66) at org.eclipse.tycho.p2.maven.repository.LocalArtifactRepository.<init>(LocalArtifactRepository.java:55) at org.eclipse.tycho.p2.impl.resolver.P2ResolverImpl.setLocalRepositoryLocation(P2ResolverImpl.java:579) at org.eclipse.tycho.p2.facade.P2TargetPlatformResolver.doResolvePlatform(P2TargetPlatformResolver.java:185) at org.eclipse.tycho.p2.facade.P2TargetPlatformResolver.resolvePlatform(P2TargetPlatformResolver.java:150) at org.eclipse.tycho.core.resolver.DefaultTychoDependencyResolver.resolveProject(DefaultTychoDependencyResolver.java:90) at org.eclipse.tycho.core.maven.TychoMavenLifecycleParticipant.afterProjectsRead(TychoMavenLifecycleParticipant.java:91) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:273) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) To reproduce: git clone git@github.com:droolsjbpm/droolsjbpm-tools.git cd droolsjbpm-tools/drools-eclipse mvn clean install // Watch the output as the stacktraces scroll by but don't crash the build Our issue: https://issues.jboss.org/browse/JBRULES-2949