build fail in maven project

hi am having this error when building project
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for hostname..dsn:dsnweb:jar:1.0-SNAPSHOT
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.mongodb:mongo-java-driver:jar -> version 2.11.3 vs 3.0.4 @ line 149, column 15
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO]
[INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder with a thread count of 1
[INFO]                                                                        
[INFO] ------------------------------------------------------------------------
[INFO] Building dsnweb 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.12.4/maven-surefire-plugin-2.12.4.pom
[INFO] Downloaded: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.12.4/maven-surefire-plugin-2.12.4.pom (11 KB at 4.4 KB/sec)
[INFO] Downloading: http://repo1.maven.org/maven2/org/apache/maven/surefire/surefire/2.12.4/surefire-2.12.4.pom
[INFO] Downloaded: http://repo1.maven.org/maven2/org/apache/maven/surefire/surefire/2.12.4/surefire-2.12.4.pom (14 KB at 24.1 KB/sec)
[INFO] Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-shade-plugin/3.0/maven-shade-plugin-3.0.pom
[INFO] Downloading: https://repository.jboss.org/nexus/content/groups/public/org/apache/maven/plugins/maven-shade-plugin/3.0/maven-shade-plugin-3.0.pom
[WARNING] The POM for org.apache.maven.plugins:maven-shade-plugin:jar:3.0 is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 7.909 s
[INFO] Finished at: 2015-11-10T12:29:10+02:00
[INFO] Final Memory: 7M/17M
[INFO] ------------------------------------------------------------------------
Plugin org.apache.maven.plugins:maven-shade-plugin:3.0 or one of its dependencies could not be resolved: Failure to find org.apache.maven.plugins:maven-shade-plugin:jar:3.0 in http://repo1.maven.org/maven2/ was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 1]

To see the full stack trace of the errors, re-run Maven with the -e switch.
Re-run Maven using the -X switch to enable full debug logging.

For more information about the errors and possible solutions, please read the following articles:
[Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException
chalie001Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

chaitu chaituCommented:
check whether inter connection is there to retrieve dependencies from http://repo1.maven.org/maven2/.

check the settings in settings.xml in apache-maven-3.0.x/conf folder.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
chalie001Author Commented:
i did that
network
0
gurpsbassiCommented:
haven't we already been through this?
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

mccarlIT Business Systems Analyst / Software DeveloperCommented:
What makes you think that there is a 3.0 version of the maven-shade-plugin?

Change your POM to specify version 2.4.2 for the maven-shade-plugin (this is the latest version available)
0
chalie001Author Commented:
am geting this error now
[INFO] Scanning for projects...
[INFO]
[INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder with a thread count of 1
[INFO]                                                                        
[INFO] ------------------------------------------------------------------------
[INFO] Building dsnweb 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] The artifact org.apache.commons:commons-io:jar:1.3.2 has been relocated to commons-io:commons-io:jar:1.3.2
[INFO]
[INFO] --- properties-maven-plugin:1.0-alpha-2:set-system-properties (default) @ dsnweb ---
[INFO] Set 2 system properties
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ dsnweb ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 145 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ dsnweb ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ dsnweb ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory C:\Users\username\Desktop\dsnworkspace\dsnweb\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ dsnweb ---
[WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. build is platform dependent!
[INFO] Compiling 1 source file to C:\Users\username\Desktop\dsnworkspace\dsnweb\target\test-classes
[INFO] -------------------------------------------------------------
COMPILATION ERROR :
[INFO] -------------------------------------------------------------
Unable to locate the Javac Compiler in:
  C:\java\..\lib\tools.jar
Please ensure you are using JDK 1.4 or above and
not a JRE (the com.sun.tools.javac.Main class is required).
In most cases you can change the location of your Java
installation by setting the JAVA_HOME environment variable.
[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.942 s
[INFO] Finished at: 2015-11-12T07:04:38+02:00
[INFO] Final Memory: 6M/16M
[INFO] ------------------------------------------------------------------------
Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:testCompile (default-testCompile) on project dsnweb: Compilation failure
Unable to locate the Javac Compiler in:
C:\java\..\lib\tools.jar
Please ensure you are using JDK 1.4 or above and
not a JRE (the com.sun.tools.javac.Main class is required).
In most cases you can change the location of your Java
installation by setting the JAVA_HOME environment variable.
-> [Help 1]

To see the full stack trace of the errors, re-run Maven with the -e switch.
Re-run Maven using the -X switch to enable full debug logging.

For more information about the errors and possible solutions, please read the following articles:
[Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
0
mccarlIT Business Systems Analyst / Software DeveloperCommented:
And have you checked what it was telling you? Post the value of your PATH and JAVA_HOME environment variables.
0
chalie001Author Commented:
my path

C:\>path
PATH=C:\java;C:\ifms\apps\apache-maven-3.3.3;C:\Program Files\Common Files\Microsoft Shared\Windows
Live;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v
1.0\;C:\Program Files\Windows Live\Shared;C:\Program Files\Intel\DMIX;C:\java\bin;C:\ifms\apps\apach
e-maven-2.2.1\bin;C:\ifms\apps\glassfish2.1\bin


C:\>set
ALLUSERSPROFILE=C:\ProgramData
APPDATA=C:\Users\desmondma\AppData\Roaming
CommonProgramFiles=C:\Program Files\Common Files
COMPUTERNAME=MERADD423
ComSpec=C:\Windows\system32\cmd.exe
DEFLOGDIR=C:\ProgramData\McAfee\DesktopProtection
EICDDrive=D:\
FP_NO_HOST_CHECK=NO
HOMEDRIVE=C:
HOMEPATH=\Users\desmondma
JAVA_HOME=C:\java
LOCALAPPDATA=C:\Users\desmondma\AppData\Local
LOGONSERVER=\\SERADC001
M2_HOME=C:\ifms\apps\apache-maven-3.3.3
M3=C:\ifms\apps\apache-maven-3.3.3
MAVEN_HOME=C:\ifms\apps\apache-maven-3.3.3
NUMBER_OF_PROCESSORS=4
OS=Windows_NT
Path=C:\java;C:\ifms\apps\apache-maven-3.3.3;C:\Program Files\Common Files\Microsoft Shared\Windows
Live;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v
1.0\;C:\Program Files\Windows Live\Shared;C:\Program Files\Intel\DMIX;C:\java\bin;C:\ifms\apps\apach
e-maven-2.2.1\bin;C:\ifms\apps\glassfish2.1\bin
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE=x86
PROCESSOR_IDENTIFIER=x86 Family 6 Model 37 Stepping 5, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=2505
ProgramData=C:\ProgramData
ProgramFiles=C:\Program Files
PROMPT=$P$G
PSModulePath=C:\Windows\system32\WindowsPowerShell\v1.0\Modules\
PUBLIC=C:\Users\Public
SESSIONNAME=Console
SystemDrive=C:
SystemRoot=C:\Windows
TEMP=C:\Users\DESMON~1\AppData\Local\Temp
TMP=C:\Users\DESMON~1\AppData\Local\Temp
USERDNSDOMAIN=SITA.CO.ZA
USERDOMAIN=SITA
USERNAME=desmondma
USERPROFILE=C:\Users\desmondma
VSEDEFLOGDIR=C:\ProgramData\McAfee\DesktopProtection
windir=C:\Windows
windows_tracing_flags=3
windows_tracing_logfile=C:\BVTBin\Tests\installpackage\csilogfile.log

C:\>
0
mccarlIT Business Systems Analyst / Software DeveloperCommented:
Now what's installed in C:/java? Is it a JDK or a JRE?
0
chalie001Author Commented:
both
0
chalie001Author Commented:
no am lying this is what i have
java
0
chalie001Author Commented:
I check  whether inter connection is there to retrieve dependencies from http://repo1.maven.org/maven2/.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.