File tree Expand file tree Collapse file tree 2 files changed +3
-11
lines changed
src/main/java/com/browserstack/local Expand file tree Collapse file tree 2 files changed +3
-11
lines changed Original file line number Diff line number Diff line change 60
60
<artifactId >json</artifactId >
61
61
<version >20160212</version >
62
62
</dependency >
63
- <dependency >
64
- <groupId >org.apache.maven</groupId >
65
- <artifactId >maven-model</artifactId >
66
- <version >3.3.9</version >
67
- </dependency >
68
63
</dependencies >
69
64
70
65
<profiles >
Original file line number Diff line number Diff line change 7
7
import java .util .List ;
8
8
import java .util .Map ;
9
9
import org .json .*;
10
- import org .apache .maven .model .Model ;
11
- import org .apache .maven .model .io .xpp3 .MavenXpp3Reader ;
12
10
13
11
/**
14
12
* Creates and manages a secure tunnel connection to BrowserStack.
@@ -24,6 +22,7 @@ public class Local {
24
22
25
23
private LocalProcess proc = null ;
26
24
25
+ private final String packageVersion = "1.0.5" ;
27
26
private final Map <String , String > parameters ;
28
27
private final Map <String , String > avoidValueParameters ;
29
28
@@ -133,18 +132,16 @@ public boolean isRunning() throws Exception {
133
132
*
134
133
* @param options Options supplied for the Local instance
135
134
*/
136
- private void makeCommand (Map <String , String > options , String opCode ) throws Exception {
135
+ private void makeCommand (Map <String , String > options , String opCode ) {
137
136
command = new ArrayList <String >();
138
137
command .add (binaryPath );
139
138
command .add ("-d" );
140
139
command .add (opCode );
141
140
command .add ("--key" );
142
141
command .add (options .get ("key" ));
143
142
144
- MavenXpp3Reader reader = new MavenXpp3Reader ();
145
- Model model = reader .read (new FileReader ("pom.xml" ));
146
143
command .add ("--source" );
147
- command .add ("java-" + model . getVersion () );
144
+ command .add ("java-" + packageVersion );
148
145
149
146
for (Map .Entry <String , String > opt : options .entrySet ()) {
150
147
String parameter = opt .getKey ().trim ();
You can’t perform that action at this time.
0 commit comments