@@ -96,7 +96,7 @@ func TestGetCommandMaven(t *testing.T) {
96
96
jibMavenArtifact : latest.JibMavenArtifact {},
97
97
filesInWorkspace : []string {},
98
98
expectedCmd : func (workspace string ) * exec.Cmd {
99
- return MavenCommand .CreateCommand (ctx , workspace , []string {"-Djib.console=plain" , "- -non-recursive" , "jib:_skaffold-files" , "--quiet" })
99
+ return MavenCommand .CreateCommand (ctx , workspace , []string {"--non-recursive" , "jib:_skaffold-files" , "--quiet" })
100
100
},
101
101
},
102
102
{
@@ -106,47 +106,47 @@ func TestGetCommandMaven(t *testing.T) {
106
106
},
107
107
filesInWorkspace : []string {},
108
108
expectedCmd : func (workspace string ) * exec.Cmd {
109
- return MavenCommand .CreateCommand (ctx , workspace , []string {"-Djib.console=plain" , "- DskipTests" , "-x" , "--non-recursive" , "jib:_skaffold-files" , "--quiet" })
109
+ return MavenCommand .CreateCommand (ctx , workspace , []string {"-DskipTests" , "-x" , "--non-recursive" , "jib:_skaffold-files" , "--quiet" })
110
110
},
111
111
},
112
112
{
113
113
description : "maven with profile" ,
114
114
jibMavenArtifact : latest.JibMavenArtifact {Profile : "profile" },
115
115
filesInWorkspace : []string {},
116
116
expectedCmd : func (workspace string ) * exec.Cmd {
117
- return MavenCommand .CreateCommand (ctx , workspace , []string {"-Djib.console=plain" , "- -activate-profiles" , "profile" , "--non-recursive" , "jib:_skaffold-files" , "--quiet" })
117
+ return MavenCommand .CreateCommand (ctx , workspace , []string {"--activate-profiles" , "profile" , "--non-recursive" , "jib:_skaffold-files" , "--quiet" })
118
118
},
119
119
},
120
120
{
121
121
description : "maven with wrapper no profile" ,
122
122
jibMavenArtifact : latest.JibMavenArtifact {},
123
123
filesInWorkspace : []string {"mvnw" , "mvnw.bat" },
124
124
expectedCmd : func (workspace string ) * exec.Cmd {
125
- return MavenCommand .CreateCommand (ctx , workspace , []string {"-Djib.console=plain" , "- -non-recursive" , "jib:_skaffold-files" , "--quiet" })
125
+ return MavenCommand .CreateCommand (ctx , workspace , []string {"--non-recursive" , "jib:_skaffold-files" , "--quiet" })
126
126
},
127
127
},
128
128
{
129
129
description : "maven with wrapper no profile" ,
130
130
jibMavenArtifact : latest.JibMavenArtifact {},
131
131
filesInWorkspace : []string {"mvnw" , "mvnw.cmd" },
132
132
expectedCmd : func (workspace string ) * exec.Cmd {
133
- return MavenCommand .CreateCommand (ctx , workspace , []string {"-Djib.console=plain" , "- -non-recursive" , "jib:_skaffold-files" , "--quiet" })
133
+ return MavenCommand .CreateCommand (ctx , workspace , []string {"--non-recursive" , "jib:_skaffold-files" , "--quiet" })
134
134
},
135
135
},
136
136
{
137
137
description : "maven with wrapper and profile" ,
138
138
jibMavenArtifact : latest.JibMavenArtifact {Profile : "profile" },
139
139
filesInWorkspace : []string {"mvnw" , "mvnw.bat" },
140
140
expectedCmd : func (workspace string ) * exec.Cmd {
141
- return MavenCommand .CreateCommand (ctx , workspace , []string {"-Djib.console=plain" , "- -activate-profiles" , "profile" , "--non-recursive" , "jib:_skaffold-files" , "--quiet" })
141
+ return MavenCommand .CreateCommand (ctx , workspace , []string {"--activate-profiles" , "profile" , "--non-recursive" , "jib:_skaffold-files" , "--quiet" })
142
142
},
143
143
},
144
144
{
145
145
description : "maven with multi-modules" ,
146
146
jibMavenArtifact : latest.JibMavenArtifact {Module : "module" },
147
147
filesInWorkspace : []string {"mvnw" , "mvnw.bat" },
148
148
expectedCmd : func (workspace string ) * exec.Cmd {
149
- return MavenCommand .CreateCommand (ctx , workspace , []string {"-Djib.console=plain" , "- -projects" , "module" , "--also-make" , "jib:_skaffold-files" , "--quiet" })
149
+ return MavenCommand .CreateCommand (ctx , workspace , []string {"--projects" , "module" , "--also-make" , "jib:_skaffold-files" , "--quiet" })
150
150
},
151
151
},
152
152
}
0 commit comments