Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Invalid Content?!

Hello Mikhail,

 

Sorry for not giving enough informations. This is because i simply do not know what you need.

 

I wrote an application which requires Plugins which are NOT included in any published features.

This is why i HAD my application plugin-based. Now i moved it to be feature based.

Therefore i created Features which contain all the plugins i need. With those features i generated an update Site (with eclipse) so i do not have to add every single update site for all the different features. (and hey, thats quite a bit!)

So this is the updateSite (D:\Java7\Workspace3\UpdateSite) You saw in the log!

 

Did this build ever work? Nope, because i just start building my pom’s to get it working.

 

My structure by now (example)

Biooffice.parent

at.biooffice.feature (eclipse-feature)

lumo.core.runtime (eclipse-plugin)

at.biooffice.rcp (eclipse-plugin)

 

iff i try to build the biooffice.parent with tycho (and refer only to lumo.core.runtime and at.biooffice.rcp) the build is done successfull.

If i add at.biooffiec.feature to the parent i am getting the error

 

I attached the pom files i am using %s_pom.xml (%s=bundlename)

Whereat the at.biooffice.parent_pom.xml does NOT use the feature…

 

Probably i only have an error in my pom’s?

 

I really hope you can enlight me

 

Kind regards,

Ludwig

 

Von: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] Im Auftrag von Mikhail Kalkov
Gesendet: Mittwoch, 16. Juli 2014 16:12
An: Tycho user list
Betreff: Re: [tycho-user] Invalid Content?!

 

Hi,


Something has obviously gone wrong, but you don't provide enough information to guess what. Let us read your error log more carefully.

Firstly, it complains that the org.w3c.sac/1.3.0.v20120820 plugin from D:\Java7\Workspace3\UpdateSite p2 repository has invalid file lib/flute.jar. It is noteworthy that the JAR which represents the org.w3c.sac/1.3.0.v20120820 bundle is for some reason located in a temporary directory. I don't know if this is how it should be or if it's wrong, but it looks a bit suspicious to me.

Then, Maven complains about an identical problem org.eclipse.nebula.widgets.nattable.core.feature/1.1.0.201405012245 with feature.

My guess is both the plugin and the feature jars in the temp directory are corrupted. Why they are corrupted is beyond me and depends on how they got there. Were they mirrored from a remote repo at eclipse.org, from a local Nexus instance? Were they build by Tycho or Eclipse PDE? You don't tell anything. Finally, your description sounds like you didn't do anything and the build has broken, but this is improbable. What have you done since the last successful build? Any code modifications/cleanups/jdk reinstalls/git checkouts/ide updates? Has this configuration ever worked before at all?

I hope the process of getting answers for these questions would help you self or with list's help understand the problem's origin.


Kind regards,
Mikhail Kalkov

 

Eclipse Developer | Purple Scout AB | www.purplescout.com

Kyrkogatan 20-22, SE-41110 Gothenburg, Sweden

 

On Wed, Jul 16, 2014 at 11:58 AM, Moser-Spitzenstaetter Ludwig <L.Spitzenstaetter@xxxxxxxxxxxxxxxxxxxxxxx> wrote:

Hello tycho-users

Today while building my app i ran into a problem, which i am not able to resolve. Probably one of you have an idea what to do?

Thanks in advance

Ludwig

 

[INFO] Scanning for projects...

[WARNING] No explicit target runtime environment configuration. Build is platform dependent.

[WARNING] No explicit target runtime environment configuration. Build is platform dependent.

[WARNING] No explicit target runtime environment configuration. Build is platform dependent.

[INFO] Computing target platform for MavenProject: biooffice.feature:at.biooffice.feature:0.0.1-SNAPSHOT @ D:\Java7\Workspace3\at.biooffice.feature\pom.xml

[INFO] Adding repository file:/D:/Java7/Workspace3/UpdateSite

[INFO] Resolving dependencies of MavenProject: biooffice.feature:at.biooffice.feature:0.0.1-SNAPSHOT @ D:\Java7\Workspace3\at.biooffice.feature\pom.xml

[WARNING] Some attempts to read artifact osgi.bundle,org.w3c.sac,1.3.0.v20120820 failed:

[WARNING]    An error occurred while transferring artifact packed: osgi.bundle,org.w3c.sac,1.3.0.v20120820 from repository file:/D:/Java7/Workspace3/UpdateSite:

[WARNING]       Problems downloading artifact: osgi.bundle,org.w3c.sac,1.3.0.v20120820.:

[WARNING]          File has invalid content:C:\Users\moser\AppData\Local\Temp\signatureFile3019669552370150271.jar:

[WARNING]             Invalid content:lib/flute.jar

[ERROR] An error occurred while transferring artifact canonical: org.eclipse.update.feature,org.eclipse.nebula.widgets.nattable.core.feature,1.1.0.201405012245 from repository file:/D:/Java7/Workspace3/UpdateSite:

[ERROR]    Problems downloading artifact: org.eclipse.update.feature,org.eclipse.nebula.widgets.nattable.core.feature,1.1.0.201405012245.:

[ERROR]       File has invalid content:C:\Users\moser\AppData\Local\Temp\signatureFile3383485435845636711.jar:

[ERROR]          Invalid content:META-INF/maven/org.eclipse.nebula.widgets.nattable/org.eclipse.nebula.widgets.nattable.core.feature/pom.xml

[ERROR] Internal error: org.eclipse.tycho.repository.local.MirroringArtifactProvider$MirroringFailedException: Could not mirror artifact org.eclipse.update.feature,org.eclipse.nebula.widgets.nattable.core.feature,1.1.0.201405012245 into the local Maven repository.See log output for details. A file "META-INF/maven/org.eclipse.nebula.widgets.nattable/org.eclipse.nebula.widgets.nattable.core.feature/pom.xml" has been removed from the jar: C:\Users\moser\AppData\Local\Temp\signatureFile3383485435845636711.jar -> [Help 1]

org.apache.maven.InternalErrorException: Internal error: org.eclipse.tycho.repository.local.MirroringArtifactProvider$MirroringFailedException: Could not mirror artifact org.eclipse.update.feature,org.eclipse.nebula.widgets.nattable.core.feature,1.1.0.201405012245 into the local Maven repository.See log output for details.

       at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:167)

       at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)

       at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:213)

       at org.apache.maven.cli.MavenCli.main(MavenCli.java:157)

       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

       at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

       at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

       at java.lang.reflect.Method.invoke(Unknown Source)

       at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)

       at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)

       at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)

       at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)

Caused by: org.eclipse.tycho.repository.local.MirroringArtifactProvider$MirroringFailedException: Could not mirror artifact org.eclipse.update.feature,org.eclipse.nebula.widgets.nattable.core.feature,1.1.0.201405012245 into the local Maven repository.See log output for details.

       at org.eclipse.tycho.repository.local.MirroringArtifactProvider.downloadArtifact(MirroringArtifactProvider.java:218)

       at org.eclipse.tycho.repository.local.MirroringArtifactProvider.makeOneFormatLocallyAvailable(MirroringArtifactProvider.java:203)

       at org.eclipse.tycho.repository.local.MirroringArtifactProvider.makeLocallyAvailable(MirroringArtifactProvider.java:174)

       at org.eclipse.tycho.repository.local.MirroringArtifactProvider.getArtifactFile(MirroringArtifactProvider.java:118)

       at org.eclipse.tycho.repository.p2base.artifact.provider.CompositeArtifactProvider.getArtifactFile(CompositeArtifactProvider.java:70)

       at org.eclipse.tycho.p2.target.TargetPlatformImpl.getLocalArtifactFile(TargetPlatformImpl.java:146)

       at org.eclipse.tycho.p2.impl.resolver.P2ResolverImpl.addUnit(P2ResolverImpl.java:208)

       at org.eclipse.tycho.p2.impl.resolver.P2ResolverImpl.toResolutionResult(P2ResolverImpl.java:171)

       at org.eclipse.tycho.p2.impl.resolver.P2ResolverImpl.resolveDependencies(P2ResolverImpl.java:163)

       at org.eclipse.tycho.p2.impl.resolver.P2ResolverImpl.resolveDependencies(P2ResolverImpl.java:107)

       at org.eclipse.tycho.p2.resolver.P2TargetPlatformResolver.doResolveDependencies(P2TargetPlatformResolver.java:348)

       at org.eclipse.tycho.p2.resolver.P2TargetPlatformResolver.resolveDependencies(P2TargetPlatformResolver.java:321)

       at org.eclipse.tycho.core.resolver.DefaultTychoDependencyResolver.resolveProject(DefaultTychoDependencyResolver.java:109)

       at org.eclipse.tycho.core.maven.TychoMavenLifecycleParticipant.afterProjectsRead(TychoMavenLifecycleParticipant.java:75)

       at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:317)

       at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155)

       ... 11 more

Caused by: org.eclipse.osgi.signedcontent.InvalidContentException: A file "META-INF/maven/org.eclipse.nebula.widgets.nattable/org.eclipse.nebula.widgets.nattable.core.feature/pom.xml" has been removed from the jar: C:\Users\moser\AppData\Local\Temp\signatureFile3383485435845636711.jar

       at org.eclipse.osgi.internal.signedcontent.SignedContentImpl$SignedContentEntryImpl.verify(SignedContentImpl.java:164)

       at org.eclipse.osgi.internal.signedcontent.SignedContentFile.getSignedEntries(SignedContentFile.java:51)

       at org.eclipse.equinox.internal.p2.artifact.repository.SignatureVerifier.verifyContent(SignatureVerifier.java:82)

       at org.eclipse.equinox.internal.p2.artifact.repository.SignatureVerifier.verify(SignatureVerifier.java:59)

       at org.eclipse.equinox.internal.p2.artifact.repository.SignatureVerifier.close(SignatureVerifier.java:100)

       at org.eclipse.equinox.internal.provisional.p2.artifact.repository.processing.ProcessingStep.close(ProcessingStep.java:85)

       at org.eclipse.equinox.internal.provisional.p2.artifact.repository.processing.ZipVerifierStep.close(ZipVerifierStep.java:41)

       at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.reportStatus(SimpleArtifactRepository.java:1183)

       at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.downloadArtifact(SimpleArtifactRepository.java:591)

       at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.getArtifact(SimpleArtifactRepository.java:723)

       at org.eclipse.tycho.repository.p2base.artifact.repository.RepositoryArtifactProvider.getArtifactFromOneMirror(RepositoryArtifactProvider.java:209)

       at org.eclipse.tycho.repository.p2base.artifact.repository.RepositoryArtifactProvider.getArtifactFromAnyMirror(RepositoryArtifactProvider.java:192)

       at org.eclipse.tycho.repository.p2base.artifact.repository.RepositoryArtifactProvider.access$1(RepositoryArtifactProvider.java:187)

       at org.eclipse.tycho.repository.p2base.artifact.repository.RepositoryArtifactProvider$1.perform(RepositoryArtifactProvider.java:167)

       at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.getArtifact(SimpleArtifactRepository.java:707)

       at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.getArtifacts(SimpleArtifactRepository.java:778)

       at org.eclipse.tycho.repository.p2base.artifact.repository.RepositoryArtifactProvider.getArtifactFromAnyChildRepository(RepositoryArtifactProvider.java:179)

       at org.eclipse.tycho.repository.p2base.artifact.repository.RepositoryArtifactProvider.getArtifactFromAnyFormatAvailableInRepository(RepositoryArtifactProvider.java:149)

       at org.eclipse.tycho.repository.p2base.artifact.repository.RepositoryArtifactProvider.getArtifactFromAnySource(RepositoryArtifactProvider.java:135)

       at org.eclipse.tycho.repository.p2base.artifact.provider.CompositeArtifactProviderBaseImpl.getArtifact(CompositeArtifactProviderBaseImpl.java:50)

       at org.eclipse.tycho.repository.local.MirroringArtifactProvider.downloadCanonicalArtifact(MirroringArtifactProvider.java:236)

       at org.eclipse.tycho.repository.local.MirroringArtifactProvider.downloadMostSpecificNeededFormatOfArtifact(MirroringArtifactProvider.java:229)

       at org.eclipse.tycho.repository.local.MirroringArtifactProvider.downloadArtifact(MirroringArtifactProvider.java:214)

       ... 26 more

Caused by: java.lang.SecurityException: A file "META-INF/maven/org.eclipse.nebula.widgets.nattable/org.eclipse.nebula.widgets.nattable.core.feature/pom.xml" has been removed from the jar: C:\Users\moser\AppData\Local\Temp\signatureFile3383485435845636711.jar

       at org.eclipse.osgi.internal.signedcontent.SignedBundleFile.getEntry(SignedBundleFile.java:119)

       at org.eclipse.osgi.internal.signedcontent.SignedContentImpl$SignedContentEntryImpl.verify(SignedContentImpl.java:159)

       ... 48 more

[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]

[ERROR] For more information about the errors and possible solutions, please read the following articles:

[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/InternalErrorException

 

 


_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user

 

<project xmlns="http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd";>
  <modelVersion>4.0.0</modelVersion>
  <artifactId>at.biooffice.rcp</artifactId>
  <version>0.0.1-SNAPSHOT</version>
  <packaging>eclipse-plugin</packaging>
  <properties>
    <tycho-version>0.20.0</tycho-version>
  </properties>
  <build>
    <plugins>
      <plugin>
        <!-- enable the Tycho build extension -->
        <groupId>org.eclipse.tycho</groupId>
        <artifactId>tycho-maven-plugin</artifactId>
        <version>${tycho-version}</version>
        <extensions>true</extensions>
      </plugin>
    </plugins>
  </build> 
  <repositories>
    <!-- configure p2 repository to resolve against -->
    <!-- 
    <repository>
      <id>eclipse-emf-gwt</id>
      <layout>p2</layout>
      <url>http://download.eclipse.org/modeling/emf/emf/updates/2.8/</url>
    </repository>
    <repository>
      <id>eclipse-project-luna-4.4-Milestones</id>
      <layout>p2</layout>
      <url>http://download.eclipse.org/eclipse/updates/4.4milestones</url>
    </repository>
    -->
    <repository>
      <id>BioOffice UpdateSite</id>
      <layout>p2</layout>
      <url>file:/D:/Java7/Workspace3/UpdateSite/</url>
    </repository>
  </repositories>  
  <parent>
  	<artifactId>at.biooffice.parent</artifactId>
  	<version>3.0.0-SNAPSHOT</version>
  	<groupId>biooffice</groupId>
  	<relativePath>../at.biooffice.parent</relativePath>
  </parent>
  <dependencies>
  	<dependency>
  		<groupId>biooffice</groupId>
  		<artifactId>lumo.core.runtime</artifactId>
  		<version>0.0.1-SNAPSHOT</version>
  		<type>eclipse-plugin</type>
  	</dependency>
  </dependencies>
</project>
<project xmlns="http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd";>
  <modelVersion>4.0.0</modelVersion>
  <artifactId>lumo.core.runtime</artifactId>
  <version>0.0.1-SNAPSHOT</version>
  <packaging>eclipse-plugin</packaging>
  
  <properties>
    <tycho-version>0.20.0</tycho-version>
  </properties>
  <build>
    <plugins>
      <plugin>
        <!-- enable the Tycho build extension -->
        <groupId>org.eclipse.tycho</groupId>
        <artifactId>tycho-maven-plugin</artifactId>
        <version>${tycho-version}</version>
        <extensions>true</extensions>
      </plugin>
    </plugins>
  </build> 
  <repositories>
    <!-- configure p2 repository to resolve against
    <repository>
      <id>eclipse-project-luna</id>
      <layout>p2</layout>
      <url>http://download.eclipse.org/eclipse/updates/4.4milestones</url>
    </repository>
    <repository>
      <id>org.eclipse.emf</id>
      <layout>p2</layout>
      <url>http://download.eclipse.org/modeling/emf/emf/updates/releases/</url>
    </repository>
    -->
    <repository>
      <id>BioOffice UpdateSite</id>
      <layout>p2</layout>
      <url>file:/D:/Java7/Workspace3/UpdateSite/</url>
    </repository>
  </repositories>     
  <parent>
  	<groupId>biooffice</groupId>
  	<artifactId>at.biooffice.parent</artifactId>
  	<version>3.0.0-SNAPSHOT</version>
  	<relativePath>../at.biooffice.parent</relativePath>
  </parent>
</project>
<project xmlns="http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd";>
  <modelVersion>4.0.0</modelVersion>
  <artifactId>at.biooffice.feature</artifactId>
  <version>1.0.0-SNAPSHOT</version>
  <packaging>eclipse-feature</packaging>
  <properties>
    <tycho-version>0.20.0</tycho-version>
  </properties>
  <build>
    <plugins>
      <plugin>
        <!-- enable the Tycho build extension -->
        <groupId>org.eclipse.tycho</groupId>
        <artifactId>tycho-maven-plugin</artifactId>
        <version>${tycho-version}</version>
        <extensions>true</extensions>
      </plugin>
    </plugins>
  </build>
  <repositories> 
  	<repository>
      <id>BioOffice UpdateSite</id>
      <layout>p2</layout>
      <url>file:/D:/Java7/Workspace3/UpdateSite/</url>
    </repository>
  </repositories>
  <groupId>biooffice</groupId>
</project>
<project xmlns="http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd";>
  <modelVersion>4.0.0</modelVersion>
  <groupId>biooffice</groupId>
  <artifactId>at.biooffice.parent</artifactId>
  <version>3.0.0-SNAPSHOT</version>
  <packaging>pom</packaging>
  <modules>
  <module>../at.biooffice.rcp</module>
  <module>../lumo.core.runtime</module>
  </modules>
  <repositories> 
  	<repository>
      <id>BioOffice UpdateSite</id>
      <layout>p2</layout>
      <url>file:/D:/Java7/Workspace3/UpdateSite/</url>
    </repository>
  </repositories> 
</project>

Back to the top