Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document Maven dependencies README.textile #141

Open
jukzi opened this issue Sep 28, 2023 · 2 comments
Open

Document Maven dependencies README.textile #141

jukzi opened this issue Sep 28, 2023 · 2 comments

Comments

@jukzi
Copy link

jukzi commented Sep 28, 2023

please document the keywords for maven added with #115
in

Then, you define the locations of your p2 repositories. You can add as many locations as your want to your target. Location string must be URL, if your p2 repository is local, don't forget to put a @file:/@ URL.

see https://github.com/eclipse-cbi/targetplatform-dsl/blame/67c0f8838880eb0b36eb99b581f08615e56037d7/org.eclipse.cbi.targetplatform/src/main/java/org/eclipse/cbi/targetplatform/TargetPlatform.xtext#L52

@UdoW
Copy link

UdoW commented Oct 31, 2023

As I read the Xtext grammar correctly the documentation should look something like this for Maven artifacts:

maven central scope = test dependencyDepth = direct missingManifest = generate includeSources {
	dependency {
		groupId = "org.testcontainers"
		artifactId = "testcontainers"
		version = "1.19.0"
	}
}

At least this works for me and the generated target source looks like this:

    <location includeDependencyDepth="direct" includeDependencyScopes="test" includeSource="true" missingManifest="generate" type="Maven" label="central">
    <dependencies>
    	<dependency>
    		<groupId>org.testcontainers</groupId>
    		<artifactId>testcontainers</artifactId>
    		<version>1.19.0</version>
    		<type>jar</type>
    	</dependency>
    </dependencies>
    </location>

The Xtext grammar is here:

org.eclipse.cbi.targetplatform/src/main/java/org/eclipse/cbi/targetplatform/TargetPlatform.xtext

@jukzi
Copy link
Author

jukzi commented Nov 2, 2023

@hannesN can you provide a documentation, please?

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

No branches or pull requests

2 participants