Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
Fully offline resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
aldrinleal committed Aug 18, 2023
1 parent 3a473e9 commit 0f1d194
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/main/java/io/github/pixee/maven/operator/Chain.kt
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ class Chain(vararg commands: Command) {
* for this reason we'll use <pre>Class.forName</pre> and report issues creating
*/
val AVAILABLE_QUERY_COMMANDS = listOf(
QueryType.SAFE to "QueryByResolver",
QueryType.SAFE to "QueryByEmbedder",
QueryType.SAFE to "QueryByParsing",
QueryType.UNSAFE to "QueryByResolver",
QueryType.UNSAFE to "QueryByEmbedder",
QueryType.UNSAFE to "QueryByInvoker",
)

Expand Down
3 changes: 2 additions & 1 deletion src/main/java/io/github/pixee/maven/operator/POMScanner.kt
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ object POMScanner {
.withParentPomFiles(parentPoms.map { POMDocumentFactory.load(it) })
}

private fun legacyScanFrom(originalFile: File, topLevelDirectory: File): ProjectModelFactory {
@JvmStatic
fun legacyScanFrom(originalFile: File, topLevelDirectory: File): ProjectModelFactory {
val pomFile: POMDocument = POMDocumentFactory.load(originalFile)
val parentPomFiles: MutableList<POMDocument> = arrayListOf()

Expand Down

0 comments on commit 0f1d194

Please sign in to comment.