tycho 2.7.1: jar is tried to get from mvn central but is (and should) just be get from the target file (p2 site) #895
Replies: 2 comments 19 replies
-
From the |
Beta Was this translation helpful? Give feedback.
-
You generally do not need anymore generate "custom" p2 sites for 3rd party dependencies from maven. You can simply reference them directly in your target and then they won't get downloaded twice. If you don't want to do that, simply add the developer repo so tycho can download from there:
Beside the duplicate download, tycho will still use the p2 artifact in all cases but this might change in 3.x see #818 |
Beta Was this translation helpful? Give feedback.
-
below a -X output
this is very weird i have no idea how tycho knows this or gets that info from
you see that it tries to resolve "com.servoy:javax.websocket"
Orignally that javax.websocket is created yes under that group. To generate our p2 site for 3rd party libs
so it is there:
https://developer.servoy.com/p2_repository/ship_plugins/2022.06/plugins/javax.websocket_1.1.0.jar
that 2022.06 is a dir that is a p2 site that is generated from a category.xml file:
https://github.com/Servoy/servoy-eclipse/blob/master/shipplugins/category.xml#L32
and the pom:
https://github.com/Servoy/servoy-eclipse/blob/master/shipplugins/pom.xml#L197
thats the only place where i mention the grouping..
After that the below project is build with the target file that points to that p2 site:
https://github.com/Servoy/servoy-eclipse/blob/master/launch_targets/com.servoy.eclipse.target.target#L15
but suddenly when i build my project that has that target:
https://github.com/Servoy/sablo/blob/master/sablo/pom.xml#L188
as its "classpath"
That pom has some mvn depedencies (mostly for testing) but it does not mention that javax.websockets at all.
But suddenly it seems to know that it is com.servoy grouping and it want to download it
[DEBUG] com.servoy:javax.websocket:jar:1.1.0:compile
but that should also just be like the others so i guess something like this?
[DEBUG] p2.eclipse.plugin:javax.websocket:jar:1.1.0:system
because it should just be gotten from the p2 site, not mvn..
But for sure i still am really confused how he knows that grouping at that time.. where does he get that info from?
[DEBUG] =======================================================================
[DEBUG] Resolving artifact com.servoy:javax.websocket:pom:1.1.0 from [central (https://repo.maven.apache.org/maven2, default, releases)]
[DEBUG] Using transporter WagonTransporter with priority -1.0 for https://repo.maven.apache.org/maven2
[DEBUG] Using connector BasicRepositoryConnector with priority 0.0 for https://repo.maven.apache.org/maven2
Downloading from central: https://repo.maven.apache.org/maven2/com/servoy/javax.websocket/1.1.0/javax.websocket-1.1.0.pom
[DEBUG] Writing tracking file C:\Users\jcomp.m2\repository\com\servoy\javax.websocket\1.1.0\javax.websocket-1.1.0.pom.lastUpdated
[WARNING] The POM for com.servoy:javax.websocket:jar:1.1.0 is missing, no dependency information available
[DEBUG] Dependency collection stats {ConflictMarker.analyzeTime=211000, ConflictMarker.markTime=122800, ConflictMarker.nodeCount=45, ConflictIdSorter.graphTime=71700, ConflictIdSorter.topsortTime=36800, ConflictIdSorter.conflictIdCount=30, ConflictIdSorter.conflictIdCycleCount=0, ConflictResolver.totalTime=463800, ConflictResolver.conflictItemCount=39, DefaultDependencyCollector.collectTime=337482900, DefaultDependencyCollector.transformTime=976900}
[DEBUG] org.sablo:sablo:eclipse-plugin:2022.6.0.3780_rc
[DEBUG] junit:junit:jar:4.13.1:test
[DEBUG] org.hamcrest:hamcrest-core:jar:1.3:test
[DEBUG] org.mockito:mockito-core:jar:3.5.13:test
[DEBUG] net.bytebuddy:byte-buddy:jar:1.10.15:test
[DEBUG] net.bytebuddy:byte-buddy-agent:jar:1.10.15:test
[DEBUG] org.objenesis:objenesis:jar:3.1:test
[DEBUG] org.json:json:jar:20200518:test
[DEBUG] org.skyscreamer:jsonassert:jar:1.5.0:test
[DEBUG] p2.eclipse.plugin:jabsorb:jar:1.3.2.s6:system
[DEBUG] p2.eclipse.plugin:jakarta.servlet-api:jar:4.0.0:system
[DEBUG] p2.eclipse.plugin:slf4j.api:jar:1.8.0.beta3-SNAPSHOT:system
[DEBUG] org.apache.aries.spifly:org.apache.aries.spifly.dynamic.bundle:jar:1.3.4:compile
[DEBUG] org.ow2.asm:asm:jar:9.2:compile
[DEBUG] org.ow2.asm:asm-util:jar:9.2:compile
[DEBUG] p2.eclipse.plugin:org.objectweb.asm:jar:9.2.0.v20210813-1119:system
[DEBUG] org.ow2.asm:asm-commons:jar:9.2:compile
[DEBUG] org.ow2.asm:asm-tree:jar:9.2:compile
[DEBUG] org.ow2.asm:asm-analysis:jar:9.2:compile
[DEBUG] p2.eclipse.plugin:org.objectweb.asm.util:jar:9.2.0.v20210813-1119:system
[DEBUG] p2.eclipse.plugin:org.eclipse.osgi:jar:3.17.200.v20220215-2237:system
[DEBUG] p2.eclipse.plugin:org.apache.commons.io:jar:2.8.0.v20210415-0900:system
[DEBUG] org.apache.logging.log4j:log4j-api:jar:2.17.2:compile
[DEBUG] org.apache.logging.log4j:log4j-slf4j18-impl:jar:2.17.2:compile
[DEBUG] org.slf4j:slf4j-api:jar:1.8.0-beta4:compile
[DEBUG] org.apache.logging.log4j:log4j-core:jar:2.17.2:runtime
[DEBUG] p2.eclipse.plugin:org.junit:jar:4.13.2.v20211018-1956:system
[DEBUG] p2.eclipse.plugin:org.hamcrest.core:jar:1.3.0.v20180420-1519:system
[DEBUG] p2.eclipse.plugin:org.objectweb.asm.analysis:jar:9.2.0.v20210813-1119:system
[DEBUG] p2.eclipse.plugin:org.objectweb.asm.tree:jar:9.2.0.v20210813-1119:system
[DEBUG] com.servoy:javax.websocket:jar:1.1.0:compile
[DEBUG] Resolving artifact com.servoy:javax.websocket:jar:1.1.0 from [central (https://repo.maven.apache.org/maven2, default, releases)]
[DEBUG] Using transporter WagonTransporter with priority -1.0 for https://repo.maven.apache.org/maven2
[DEBUG] Using connector BasicRepositoryConnector with priority 0.0 for https://repo.maven.apache.org/maven2
Downloading from central: https://repo.maven.apache.org/maven2/com/servoy/javax.websocket/1.1.0/javax.websocket-1.1.0.jar
[DEBUG] Writing tracking file C:\Users\jcomp.m2\repository\com\servoy\javax.websocket\1.1.0\javax.websocket-1.1.0.jar.lastUpdated
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 36.572 s
[INFO] Finished at: 2022-04-19T13:37:30+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project sablo: Could not resolve dependencies for project org.sablo:sablo:eclipse-plugin:2022.6.0.3780_rc: Could not find artifact com.servoy:javax.websocket:jar:1.1.0 in central (https://repo.maven.apache.org/maven2) -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project sablo: Could not resolve dependencies for project org.sablo:sablo:eclipse-plugin:2022.6.0.3780_rc: Could not find artifact com.servoy:javax.websocket:jar:1.1.0 in central (https://repo.maven.apache.org/maven2)
Beta Was this translation helpful? Give feedback.
All reactions