Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ebr-dev] Import Package version question

Thanks - that appears to be the case in the poms but still getting the issue will look into it further 



> On Feb 2, 2021, at 10:47 AM, Gunnar Wagenknecht <gunnar@xxxxxxxxxxxxxxx> wrote:
> 
> The Tycho version should be 1.7.0. We have not updated it yet.
> 
> -Gunnar
> 
> -- 
> Gunnar Wagenknecht
> gunnar@xxxxxxxxxxxxxxx, http://guw.io/
> 
> 
>> On Feb 2, 2021, at 16:21, sean.muir@xxxxxxxxxxxxxxx wrote:
>> 
>> I attempted to pull down the ebr repo and build 
>> 
>> I get the following error - I have tried several different tychos and java but still getting the issue 
>> 
>> I was not able to see any issues posted on this so any assistance appreciated
>> 
>> Sean
>> 
>> 
>> [ERROR] Failed to execute goal org.eclipse.tycho.extras:tycho-source-feature-plugin:2.2.0:source-feature (source-feature) on project org.eclipse.ebr.releng.feature.aggregation: Execution source-feature of goal org.eclipse.tycho.extras:tycho-source-feature-plugin:2.2.0:source-feature failed: An API incompatibility was encountered while executing org.eclipse.tycho.extras:tycho-source-feature-plugin:2.2.0:source-feature: java.lang.NoSuchMethodError: org.eclipse.tycho.core.utils.TychoProjectUtils.getTargetPlatform(Lorg/eclipse/tycho/ReactorProject;)Lorg/eclipse/tycho/artifacts/TargetPlatform;
>> [ERROR] -----------------------------------------------------
>> [ERROR] realm =    plugin>org.eclipse.tycho.extras:tycho-source-feature-plugin:2.2.0
>> [ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
>> [ERROR] urls[0] = file:/Users/seanmuir/.m2/repository/org/eclipse/tycho/extras/tycho-source-feature-plugin/2.2.0/tycho-source-feature-plugin-2.2.0.jar
>> [ERROR] urls[1] = file:/Users/seanmuir/.m2/repository/org/codehaus/plexus/plexus-utils/3.3.0/plexus-utils-3.3.0.jar
>> [ERROR] urls[2] = file:/Users/seanmuir/.m2/repository/org/sonatype/plexus/plexus-sec-dispatcher/1.4/plexus-sec-dispatcher-1.4.jar
>> [ERROR] urls[3] = file:/Users/seanmuir/.m2/repository/org/sonatype/plexus/plexus-cipher/1.7/plexus-cipher-1.7.jar
>> [ERROR] urls[4] = file:/Users/seanmuir/.m2/repository/org/apache/maven/maven-builder-support/3.6.3/maven-builder-support-3.6.3.jar
>> [ERROR] urls[5] = file:/Users/seanmuir/.m2/repository/org/apache/maven/resolver/maven-resolver-util/1.4.1/maven-resolver-util-1.4.1.jar
>> [ERROR] urls[6] = file:/Users/seanmuir/.m2/repository/org/apache/maven/shared/maven-shared-utils/3.2.1/maven-shared-utils-3.2.1.jar
>> [ERROR] urls[7] = file:/Users/seanmuir/.m2/repository/org/eclipse/sisu/org.eclipse.sisu.inject/0.3.4/org.eclipse.sisu.inject-0.3.4.jar
>> [ERROR] urls[8] = file:/Users/seanmuir/.m2/repository/com/google/inject/guice/4.2.1/guice-4.2.1-no_aop.jar
>> [ERROR] urls[9] = file:/Users/seanmuir/.m2/repository/aopalliance/aopalliance/1.0/aopalliance-1.0.jar
>> [ERROR] urls[10] = file:/Users/seanmuir/.m2/repository/com/google/guava/guava/25.1-android/guava-25.1-android.jar
>> [ERROR] urls[11] = file:/Users/seanmuir/.m2/repository/com/google/code/findbugs/jsr305/3.0.2/jsr305-3.0.2.jar
>> [ERROR] urls[12] = file:/Users/seanmuir/.m2/repository/org/checkerframework/checker-compat-qual/2.0.0/checker-compat-qual-2.0.0.jar
>> [ERROR] urls[13] = file:/Users/seanmuir/.m2/repository/com/google/errorprone/error_prone_annotations/2.1.3/error_prone_annotations-2.1.3.jar
>> [ERROR] urls[14] = file:/Users/seanmuir/.m2/repository/com/google/j2objc/j2objc-annotations/1.1/j2objc-annotations-1.1.jar
>> [ERROR] urls[15] = file:/Users/seanmuir/.m2/repository/org/codehaus/mojo/animal-sniffer-annotations/1.14/animal-sniffer-annotations-1.14.jar
>> [ERROR] urls[16] = file:/Users/seanmuir/.m2/repository/org/codehaus/plexus/plexus-component-annotations/2.1.0/plexus-component-annotations-2.1.0.jar
>> [ERROR] urls[17] = file:/Users/seanmuir/.m2/repository/org/apache/commons/commons-lang3/3.8.1/commons-lang3-3.8.1.jar
>> [ERROR] urls[18] = file:/Users/seanmuir/.m2/repository/org/apache/maven/maven-archiver/3.5.0/maven-archiver-3.5.0.jar
>> [ERROR] urls[19] = file:/Users/seanmuir/.m2/repository/commons-io/commons-io/2.5/commons-io-2.5.jar
>> [ERROR] urls[20] = file:/Users/seanmuir/.m2/repository/org/codehaus/plexus/plexus-archiver/4.2.2/plexus-archiver-4.2.2.jar
>> [ERROR] urls[21] = file:/Users/seanmuir/.m2/repository/org/codehaus/plexus/plexus-io/3.2.0/plexus-io-3.2.0.jar
>> [ERROR] urls[22] = file:/Users/seanmuir/.m2/repository/org/apache/commons/commons-compress/1.20/commons-compress-1.20.jar
>> [ERROR] urls[23] = file:/Users/seanmuir/.m2/repository/org/iq80/snappy/snappy/0.4/snappy-0.4.jar
>> [ERROR] urls[24] = file:/Users/seanmuir/.m2/repository/org/tukaani/xz/1.8/xz-1.8.jar
>> [ERROR] urls[25] = file:/Users/seanmuir/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.25/plexus-interpolation-1.25.jar
>> [ERROR] urls[26] = file:/Users/seanmuir/.m2/repository/org/eclipse/platform/org.eclipse.osgi.compatibility.state/1.2.200/org.eclipse.osgi.compatibility.state-1.2.200.jar
>> [ERROR] urls[27] = file:/Users/seanmuir/.m2/repository/org/eclipse/platform/org.eclipse.osgi/3.16.100/org.eclipse.osgi-3.16.100.jar
>> [ERROR] urls[28] = file:/Users/seanmuir/.m2/repository/org/eclipse/tycho/tycho-packaging-plugin/2.2.0/tycho-packaging-plugin-2.2.0.jar
>> [ERROR] urls[29] = file:/Users/seanmuir/.m2/repository/org/eclipse/tycho/tycho-source-plugin/2.2.0/tycho-source-plugin-2.2.0.jar
>> [ERROR] urls[30] = file:/Users/seanmuir/.m2/repository/org/apache/maven/plugins/maven-source-plugin/3.2.1/maven-source-plugin-3.2.1.jar
>> [ERROR] Number of foreign imports: 1
>> [ERROR] import: Entry[import  from realm ClassRealm[project>MY_EBR_BUNDLES_GROUP:ebr-bundles-p2-parent:1.0.0-SNAPSHOT, parent: ClassRealm[maven.api, parent: null]]]
>> [ERROR] 
>> [ERROR] -----------------------------------------------------
>> 
>> 
>>> On Feb 1, 2021, at 9:38 AM, sean.muir@xxxxxxxxxxxxxxx wrote:
>>> 
>>> Yes I did but did not see it 
>>> 
>>> I think the versioning might be an issue 
>>> 
>>> I will try to get a better description
>>> 
>>> 
>>>> On Jan 30, 2021, at 1:23 PM, Gunnar Wagenknecht <gunnar@xxxxxxxxxxxxxxx> wrote:
>>>> 
>>>> Hi Sean,
>>>> 
>>>> It seems that the artifact does not use semantic versioning. I think you need to use a scheme that fits best. You can override the version in the generated pom.xml. You can also modify the bnd file and remove any version from imports and exports. That's probably a more pragmatic approach.
>>>> 
>>>> The second observation is that they use shading to embed dependencies. It's interesting that this gets detected as a dependency. Those "jarjar" packages should all be within the closure-compiler jar and exported/included as part of the bundle. Did you look into the jar?
>>>> 
>>>> -Gunnar
>>>> 
>>>> -- 
>>>> Gunnar Wagenknecht
>>>> gunnar@xxxxxxxxxxxxxxx, http://guw.io/
>>>> 
>>>>> On Jan 29, 2021, at 23:40, sean.muir@xxxxxxxxxxxxxxx wrote:
>>>>> 
>>>>> Hello
>>>>> 
>>>>> I was attempting execute the following in attempt to leverage closure-compiler as plugin 
>>>>> 
>>>>> 
>>>>> mvn org.eclipse.ebr:ebr-maven-plugin::create-recipe \
>>>>>  -DbundleSymbolicName=closure-compiler.ebr \
>>>>>  -DgroupId=com.google.javascript \
>>>>>  -DartifactId=closure-compiler \
>>>>>  -Dversion=v20191027
>>>>> 
>>>>> 
>>>>> The version is not #.#.# so I am getting several issues with dependencies when installing 
>>>>> 
>>>>> 
>>>>> Import packages snippet 
>>>>> 
>>>>> com.google.debugging.sourcemap.proto;resolution=optional;version="[0.0,1)",
>>>>> com.google.javascript.jscomp;resolution=optional;version="[0.0,1)",
>>>>> com.google.javascript.jscomp.bundle;resolution=optional;version="[0.0,1)",
>>>>> com.google.javascript.jscomp.colors;resolution=optional,
>>>>> com.google.javascript.jscomp.deps;resolution=optional;version="[0.0,1)",
>>>>> com.google.javascript.jscomp.diagnostic;resolution=optional;version="[0.0,1)",
>>>>> com.google.javascript.jscomp.disambiguate;resolution=optional;version="[0.0,1)",
>>>>> com.google.javascript.jscomp.graph;resolution=optional;version="[0.0,1)",
>>>>> com.google.javascript.jscomp.ijs;resolution=optional;version="[0.0,1)",
>>>>> com.google.javascript.jscomp.instrumentation;resolution=optional;version="[0.0,1)",
>>>>> com.google.javascript.jscomp.jarjar.com.google.appengine.api;resolution=optional,
>>>>> com.google.javascript.jscomp.jarjar.com.google.apphosting.api;resolution=optional,
>>>>> 
>>>>> In particular 
>>>>> 
>>>>> com.google.javascript.jscomp.jarjar.com.google.appengine.api; is a missing dependency when installing 
>>>>> 
>>>>> I was not able to figure out how this dependency is generated and what I need to adjust on the osgibnd file 
>>>>> 
>>>>> 
>>>>> Appreciate any help
>>>>> 
>>>>> Sean
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> _______________________________________________
>>>>> ebr-dev mailing list
>>>>> ebr-dev@xxxxxxxxxxx
>>>>> To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/ebr-dev
>>>> 
>>>> _______________________________________________
>>>> ebr-dev mailing list
>>>> ebr-dev@xxxxxxxxxxx
>>>> To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/ebr-dev
>>> 
>> 
>> _______________________________________________
>> ebr-dev mailing list
>> ebr-dev@xxxxxxxxxxx
>> To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/ebr-dev
> 
> _______________________________________________
> ebr-dev mailing list
> ebr-dev@xxxxxxxxxxx
> To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/ebr-dev



Back to the top