@@ -104,7 +104,7 @@ func TestGetCommandMaven(t *testing.T) {
104
104
jibMavenArtifact : latest.JibMavenArtifact {Profile : "profile" },
105
105
filesInWorkspace : []string {},
106
106
expectedCmd : func (workspace string ) * exec.Cmd {
107
- return MavenCommand .CreateCommand (ctx , workspace , []string {"--quiet" , "--non-recursive " , "jib:_skaffold-files " , "--activate-profiles " , "profile " })
107
+ return MavenCommand .CreateCommand (ctx , workspace , []string {"--quiet" , "--activate-profiles " , "profile " , "--non-recursive " , "jib:_skaffold-files " })
108
108
},
109
109
},
110
110
{
@@ -128,7 +128,7 @@ func TestGetCommandMaven(t *testing.T) {
128
128
jibMavenArtifact : latest.JibMavenArtifact {Profile : "profile" },
129
129
filesInWorkspace : []string {"mvnw" , "mvnw.bat" },
130
130
expectedCmd : func (workspace string ) * exec.Cmd {
131
- return MavenCommand .CreateCommand (ctx , workspace , []string {"--quiet" , "--non-recursive " , "jib:_skaffold-files " , "--activate-profiles " , "profile " })
131
+ return MavenCommand .CreateCommand (ctx , workspace , []string {"--quiet" , "--activate-profiles " , "profile " , "--non-recursive " , "jib:_skaffold-files " })
132
132
},
133
133
},
134
134
{
@@ -165,9 +165,9 @@ func TestGenerateMavenArgs(t *testing.T) {
165
165
out []string
166
166
}{
167
167
{latest.JibMavenArtifact {}, []string {"--non-recursive" , "prepare-package" , "jib:goal" , "-Dimage=image" }},
168
- {latest.JibMavenArtifact {Profile : "profile" }, []string {"--non-recursive" , "prepare-package" , "jib:goal" , "-Dimage=image" , "--activate-profiles" , "profile " }},
168
+ {latest.JibMavenArtifact {Profile : "profile" }, []string {"--activate-profiles" , "profile" , "-- non-recursive" , "prepare-package" , "jib:goal" , "-Dimage=image" }},
169
169
{latest.JibMavenArtifact {Module : "module" }, []string {"--projects" , "module" , "--also-make" , "package" , "-Dimage=image" }},
170
- {latest.JibMavenArtifact {Module : "module" , Profile : "profile" }, []string {"--projects" , "module" , "--also-make" , "package" , "-Dimage=image" , "--activate-profiles" , "profile " }},
170
+ {latest.JibMavenArtifact {Module : "module" , Profile : "profile" }, []string {"--activate-profiles" , "profile" , "-- projects" , "module" , "--also-make" , "package" , "-Dimage=image" }},
171
171
}
172
172
173
173
for _ , tt := range testCases {
0 commit comments