Skip to content

ST6RI-970 Bundles maven artifacts have a dependency to build environment path - #828

Open
ylussaud wants to merge 1 commit into
masterfrom
ST6RI-970
Open

ylussaud wants to merge 1 commit into
masterfrom
ST6RI-970

Conversation

@ylussaud

Copy link
Copy Markdown
Contributor

To summarize this issue, when one want to parse a SysMLv2 file in a standalone application (outside of Eclipse), he will need to depend on the maven artifact org.omg.sysml.xtext.

This trigger the following error during build (via transitive dependencies):
[ERROR] Failed to execute goal on project myartifact: Could not resolve dependencies for project mygroup:myartifact:jar:0.0.1-SNAPSHOT
[ERROR] dependency: org.omg.sysml:org.omg.sysml.model.bundle.jars.extra.classpath:jar:lib/org.omg.sysml.model-0.63.0-SNAPSHOT.jar:0.63.0-SNAPSHOT (system)
[ERROR] 	Could not find artifact org.omg.sysml:org.omg.sysml.model.bundle.jars.extra.classpath:jar:lib/org.omg.sysml.model-0.63.0-SNAPSHOT.jar:0.63.0-SNAPSHOT at specified path /home/runner/work/SysML-v2-Pilot-Implementation/SysML-v2-Pilot-Implementation/org.omg.sysml.model.bundle/lib/org.omg.sysml.model-0.63.0-SNAPSHOT.jar
[ERROR] dependency: org.omg.sysml:org.omg.sysml.logic.bundle.jars.extra.classpath:jar:lib/org.omg.sysml.logic-0.63.0-SNAPSHOT.jar:0.63.0-SNAPSHOT (system)
[ERROR] 	Could not find artifact org.omg.sysml:org.omg.sysml.logic.bundle.jars.extra.classpath:jar:lib/org.omg.sysml.logic-0.63.0-SNAPSHOT.jar:0.63.0-SNAPSHOT at specified path /home/runner/work/SysML-v2-Pilot-Implementation/SysML-v2-Pilot-Implementation/org.omg.sysml.logic.bundle/lib/org.omg.sysml.logic-0.63.0-SNAPSHOT.jar

This error comes from a jar referenced with its absolute path on the CI used to build org.omg.sysml.model.bundle and org.omg.sysml.logic.bundle. This dependency is added by the maven org.eclipse.m2e:lifecycle-mapping that map dependencies form the Eclipse world (MANIFEST.MF and build.properties files) to the Maven world the pom.xml file that reference a jar from the CI. This maven dependence is added because of the jars.extra.classpath property in the build.properties file of each *-bundle project.

The proposed fix removes jars.extra.classpath properties.

…ent path

Signed-off-by: Yvan Lussaud <yvan.lussaud@obeo.fr>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants