Skip to content

Commit

Permalink
#6569 fixed mvn cell magic additional repos bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukasz Mitusinski committed Jan 23, 2018
1 parent 50dc638 commit 1d7c353
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/scala/Flint.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@
"metadata": {},
"outputs": [],
"source": [
"%classpath config resolver jitpack.io https://jitpack.io\n",
"%classpath add mvn com.github.twosigma flint master-SNAPSHOT"
"%classpath config resolver jitpack.io https://jitpack.io"
]
},
{
Expand All @@ -31,6 +30,7 @@
"outputs": [],
"source": [
"%%classpath add mvn\n",
"com.github.twosigma flint master-SNAPSHOT\n",
"org.apache.spark spark-sql_2.11 2.2.1\n",
"org.apache.spark spark-mllib_2.11 2.2.1\n",
"org.scalanlp breeze_2.10 0.13.2"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ public MagicCommandOutcomeItem execute(MagicCommandExecutionParam param) {
if (!validateCommandLines(commandLines)){
return new MagicCommandOutput(MagicCommandOutput.Status.ERROR, MVN_CELL_FORMAT_ERROR_MESSAGE);
}
commandParams.setRepos(kernel.getRepos().get());
List<MavenJarResolver.Dependency> dependencies =
getDepsFromCommand(Arrays.copyOfRange(commandLines, 1, commandLines.length));
MavenJarResolver mavenJarResolver = new MavenJarResolver(commandParams, pomFactory);
Expand Down

0 comments on commit 1d7c353

Please sign in to comment.