- p2 create by org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher: https://idempiere.github.io/binary.file/p2.repackaged/12.0.0
- p2 normal: https://download.eclipse.org/eclipse/updates/4.29
- maven artifact source artifact already has OSGi Bundle Manifest Headers
git clone git@github.com:hieplq/vn.hieplq.tycho.target.mirror.sourceissue.git
cd vn.hieplq.tycho.target.mirror.sourceissue/com.codeandme.tycho.releng
mvn verify
ls -1 ../com.codeandme.tycho.releng.targetplatform/target/target-platform-repository/plugins
org.apache.commons.lang_2.6.0.jar
org.atmosphere.runtime_2.7.2.v202109010034.jar
org.atmosphere.runtime.source_2.7.2.v202109010034.jar
org.eclipse.jetty.server_12.0.14.jar
org.eclipse.jetty.server.source_12.0.14.jar
org.eclipse.text_3.13.100.v20230801-1334.jar
org.opentest4j_1.3.0.jar
org.opentest4j.source_1.3.0.jar
wrapped.org.apache.lucene.lucene-core_8.4.1.jar
- artifact on p2 repository created using org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher are automatically included source in the mirror
- artifact on every p2 can explicitly include source by use
unit id="org.opentest4j.source" version="1.3.0"/>
- artifact that source has OSGi Bundle Manifest Headers on maven can explicitly include by use
<classifier>sources</classifier>
- source artifact without OSGi Bundle Manifest Headers on maven can't add to mirror
download/mirror p2 repository and recreate it by run
eclipse -application org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher \
-metadataRepository file:$PWD \
-artifactRepository file:$PWD \
-source $PWD \
-publishArtifact
NOTE
goal mirror-target-platform from tycho target-platform-configuration help create p2 repository at local but without source bundle so hard to use it for debug
on eclipse target always include source for easy debug but tycho for terminal it don't need source
the feature targetDefinitionIncludeSource is added for case need source on terminal
but seem targetDefinitionIncludeSource isn't support on some case
- p2 isn't create by org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher
- maven repository