Skip to content

Commit

Permalink
Added dependencies for maven-embedder to be able to communicate over …
Browse files Browse the repository at this point in the history
…http
  • Loading branch information
rodinaarssen committed Aug 27, 2024
1 parent 718a6b3 commit a4d1565
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -511,5 +511,15 @@
<artifactId>maven-core</artifactId>
<version>${maven-version}</version>
</dependency>
<dependency> <!-- needed for maven-embedder-->
<groupId>org.apache.maven.resolver</groupId>
<artifactId>maven-resolver-connector-basic</artifactId>
<version>1.9.22</version>
</dependency>
<dependency> <!-- needed for maven-embedder-->
<groupId>org.apache.maven.resolver</groupId>
<artifactId>maven-resolver-transport-http</artifactId>
<version>1.9.22</version>
</dependency>
</dependencies>
</project>
2 changes: 1 addition & 1 deletion src/org/rascalmpl/library/util/PathConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,7 @@ private static IList getPomXmlCompilerClasspath(ISourceLocation manifestRoot) {
var maven = new MavenCli();
var tempFile = Files.createTempFile("rascal-classpath-", ".tmp");

maven.doMain(buildRequest(new String[] {"-o", "dependency:build-classpath", "-DincludeScope=compile", "-Dmdep.outputFile=" + tempFile.toString()}, manifestRoot));
maven.doMain(buildRequest(new String[] {"-quiet", "dependency:build-classpath", "-DincludeScope=compile", "-Dmdep.outputFile=" + tempFile.toString()}, manifestRoot));

var foundClassPath = Files.readAllLines(tempFile);

Expand Down

0 comments on commit a4d1565

Please sign in to comment.