?
Solved

mockito example issue

Posted on 2016-11-14
8
Medium Priority
?
105 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 36

Accepted Solution

by:
mccarl earned 2000 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
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 36

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

I had a project requirement for a displaying a user workbench .This workbench would consist multiple data grids .In each grid the user will be able to see a large number of data. These data grids should allow the user to 1. Sort 2. Export the …
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
Suggested Courses

650 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