Solved

mockito example issue

Posted on 2016-11-14
8
93 Views
Last Modified: 2016-11-29
Hi,

I am working on below example


https://dzone.com/articles/getting-started-mocking-java

i went to below path from command prompt on my windows laptop

C:\Users\testWorkspace


C:\Users\testWorkspace>cd mvn archetype:generate -DgroupId=info.sanaulla -D
artifactId=MockitoDemo -DarchetypeArtifactId=maven-archetype-quickstart -Dintera
ctiveMode=false
The system cannot find the path specified.
i am getting above error. please advise
0
Comment
Question by:gudii9
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 2
8 Comments
 
LVL 16

Expert Comment

by:gurpsbassi
ID: 41886788
guddi9 ARE YOU A REAL PERSON?

I have my doubts!!!

how can one post such a diverse set of questions. The questions very in nature similar to studying how to put a car wheel on to designing a new version of the 4 stroke engine.

I don't get it!
1
 
LVL 7

Author Comment

by:gudii9
ID: 41886922
guddi9 ARE YOU A REAL PERSON?

I have my doubts!!!

how can one post such a diverse set of questions. The questions very in nature similar to studying how to put a car wheel on to designing a new version of the 4 stroke engine.
i am real person. java is such a diverse field as i am working getting more and more questions
0
 
LVL 35

Accepted Solution

by:
mccarl earned 500 total points
ID: 41887120
Remove the "cd" from the start of the command that you are running...

C:\Users\testWorkspace>cd mvn archetype:generate -DgroupId=info.sanaulla -D
artifactId=MockitoDemo -DarchetypeArtifactId=maven-archetype-quickstart -Dintera
ctiveMode=false
0
Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

 
LVL 7

Author Comment

by:gudii9
ID: 41887133
Sure I will try
0
 
LVL 7

Author Comment

by:gudii9
ID: 41888400
now i am getting below errors

[WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:mave
n-dependency-plugin:2.8: Plugin org.apache.maven.plugins:maven-dependency-plugin
:2.8 or one of its dependencies could not be resolved: Failed to read artifact d
escriptor for org.apache.maven.plugins:maven-dependency-plugin:jar:2.8
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven
-release-plugin/2.3.2/maven-release-plugin-2.3.2.pom
[WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:mave
n-release-plugin:2.3.2: Plugin org.apache.maven.plugins:maven-release-plugin:2.3
.2 or one of its dependencies could not be resolved: Failed to read artifact des
criptor for org.apache.maven.plugins:maven-release-plugin:jar:2.3.2
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven
-metadata.xml
Downloading: https://repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metada
ta.xml
[WARNING] Could not transfer metadata org.apache.maven.plugins/maven-metadata.xm
l from/to central (https://repo.maven.apache.org/maven2): Connect to repo.maven.
apache.org:443 [repo.maven.apache.org/151.101.56.215] failed: Connection timed o
ut: connect
[WARNING] Could not transfer metadata org.codehaus.mojo/maven-metadata.xml from/
to central (https://repo.maven.apache.org/maven2): Connect to repo.maven.apache.
org:443 [repo.maven.apache.org/151.101.56.215] failed: Connection timed out: con
nect
[WARNING] Failure to transfer org.apache.maven.plugins/maven-metadata.xml from h
ttps://repo.maven.apache.org/maven2 was cached in the local repository, resoluti
on will not be reattempted until the update interval of central has elapsed or u
pdates are forced. Original error: Could not transfer metadata org.apache.maven.
plugins/maven-metadata.xml from/to central (https://repo.maven.apache.org/maven2
): Connect to repo.maven.apache.org:443 [repo.maven.apache.org/151.101.56.215] f
ailed: Connection timed out: connec


i will try on other machine when i reach home
0
 
LVL 35

Expert Comment

by:mccarl
ID: 41889000
Does that machine connect to the internet via a proxy? If so, Maven needs to have those proxy details configured.
0
 
LVL 7

Author Comment

by:gudii9
ID: 41889730
i think so. it is on secured network
0
 
LVL 7

Author Comment

by:gudii9
ID: 41896411
i will try from other laptop
0

Featured Post

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
Suggested Courses

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question