error when compiling my project in eclipse luna

hi am in eclipse luna am having this error when compiling the project
Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for co.za.hostaname.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 144, 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://repo.maven.apache.org/maven2/org/codehaus/mojo/properties-maven-plugin/1.0-alpha-2/properties-maven-plugin-1.0-alpha-2.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 10.419 s
[INFO] Finished at: 2015-10-14T14:34:11+02:00
[INFO] Final Memory: 2M/15M
[INFO] ------------------------------------------------------------------------
Plugin org.codehaus.mojo:properties-maven-plugin:1.0-alpha-2 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.codehaus.mojo:properties-maven-plugin:jar:1.0-alpha-2: Could not transfer artifact org.codehaus.mojo:properties-maven-plugin:pom:1.0-alpha-2 from/to central (http://repo.maven.apache.org/maven2): connect timed out -> [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.

gurpsbassiCommented:
perhaps you need to configure a proxy in eclipse since its talking about connection refused.
0
chalie001Author Commented:
i have done that
proxy
0
gurpsbassiCommented:
and still the same issue?

Have you tried using maven from command line?
0
Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

chalie001Author Commented:
i did this
C:\Users\desmondma>mvn --version
Apache Maven 2.2.1 (r801777; 2009-08-06 21:16:01+0200)
Java version: 1.6.0_27
Java home: C:\ifms\apps\jdk1.6.0_27\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 7" version: "6.1" arch: "x86" Family: "windows"
C:\Users\desmondma>mvn package
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Default Project
[INFO]    task-segment: [package]
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Cannot execute mojo: resources. It requires a project with an existing po
m.xml, but the build is not using one.
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2 seconds
[INFO] Finished at: Fri Oct 16 13:01:05 CAT 2015
[INFO] Final Memory: 3M/15M
[INFO] ------------------------------------------------------------------------
0
chalie001Author Commented:
I do have pom
pom2.jpg
0
gurpsbassiCommented:
you are executing maven from C:\Users\desmondma

But the screenshot says your project is somewhere else (dsnweb)
0
chalie001Author Commented:
hi I did this
C:\Users\usernamema\Desktop\dsnworkspace\dsnweb>mvn package
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] The projects in the reactor contain a cyclic reference: Edge between 'Vertex{label='co.za.sit
a.dsn:dsnweb'}' and 'Vertex{label='hostname..dsn:dsnweb'}' introduces to cycle in the graph hostname.s
ita.dsn:dsnweb --> hostname..dsn:dsnweb
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Mon Oct 19 16:21:30 CAT 2015
[INFO] Final Memory: 1M/15M
[INFO] ------------------------------------------------------------------------
0
gurpsbassiCommented:
hmm no idea whats going on here.

can you post your pom.xml?
0
chalie001Author Commented:
hi this is my pom.xml
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <groupId>hostname.dsn</groupId>
    <artifactId>dsnweb</artifactId>
    <packaging>jar</packaging>
    <version>1.0-SNAPSHOT</version>
    <name>dsnweb</name>
    <url>http://maven.apache.org</url>
 
    <properties>
        <maven.compiler.source>1.8</maven.compiler.source>
        <maven.compiler.target>1.8</maven.compiler.target>
        <policy.file>java.policy</policy.file>
    </properties>
 
    <dependencies>
        <dependency>
            <groupId>org.apache.commons</groupId>
            <artifactId>commons-lang3</artifactId>
            <version>3.1</version>
        </dependency>

        <dependency>
            <groupId>com.sparkjava</groupId>
            <artifactId>spark-core</artifactId>
            <version>2.0.0</version>
        </dependency>
        <!--                <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-simple</artifactId>
            <version>1.7.5</version>
        </dependency>-->
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-api</artifactId>
            <version>1.7.2</version>
        </dependency>
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-log4j12</artifactId>
            <version>1.7.2</version>
        </dependency>
        <dependency>
            <groupId>org.mongodb</groupId>
            <artifactId>mongo-java-driver</artifactId>
            <version>2.11.3</version>
        </dependency>
        <dependency>
            <groupId>com.google.code.gson</groupId>
            <artifactId>gson</artifactId>
            <version>2.2.4</version>
        </dependency>
        <dependency>
            <groupId>com.j256.ormlite</groupId>
            <artifactId>ormlite-jdbc</artifactId>
            <version>4.43</version>
        </dependency>  
        <dependency>
            <groupId>mysql</groupId>
            <artifactId>mysql-connector-java</artifactId>
            <version>5.1.6</version>
        </dependency>      
        <dependency>
            <groupId>com.itextpdf</groupId>
            <artifactId>itextpdf</artifactId>
            <version>5.0.6</version>
        </dependency>

        <dependency>
            <groupId>org.eclipse.jetty</groupId>
            <artifactId>jetty-server</artifactId>
            <version>9.2.2.v20140723</version>
        </dependency>
       
        <dependency>
            <groupId>org.apache.pdfbox</groupId>
            <artifactId>pdfbox</artifactId>
            <version>1.8.7</version>
        </dependency>
      
        <dependency>
            <groupId>com.ibm.icu</groupId>
            <artifactId>icu4j</artifactId>
            <version>3.8</version>
        </dependency>    
        <dependency>
            <groupId>org.apache.commons</groupId>
            <artifactId>commons-io</artifactId>
            <version>1.3.2</version>
        </dependency>
       
        <dependency>
            <groupId>net.java.spnego</groupId>
            <artifactId>spnego</artifactId>
            <version>1.1</version>
        </dependency>
       
        <dependency>
            <groupId>com.github.dblock.waffle</groupId>
            <artifactId>waffle-jna</artifactId>
            <version>1.5</version>
        </dependency>

        <!--        <dependency>
            <groupId>org.apache.cxf</groupId>
            <artifactId>cxf-rt-rs-security-sso-saml</artifactId>
            <version>2.6.1</version>
        </dependency>-->
<!--        <dependency>
            <groupId>co.za.sita</groupId>
            <artifactId>dsndesktop</artifactId>
            <version>1.0-SNAPSHOT</version>
        </dependency>-->
        <dependency>
      <groupId>org.webjars</groupId>
      <artifactId>angularjs</artifactId>
      <version>1.2.15</version>
</dependency>
        <dependency>
            <groupId>javax.ws.rs</groupId>
            <artifactId>jsr311-api</artifactId>
            <version>1.1.1</version>
            <type>jar</type>
        </dependency>
        <dependency>
            <groupId>com.google.guava</groupId>
            <artifactId>guava</artifactId>
            <version>13.0.1</version>
            <type>jar</type>
        </dependency>
        <dependency>
            <groupId>hostname.dsn</groupId>
            <artifactId>dsnweb</artifactId>
            <version>1.0-SNAPSHOT</version>
            <type>jar</type>
        </dependency>
        <dependency>
                <groupId>com.sun.jersey</groupId>
                <artifactId>jersey-client</artifactId>
                <version>1.12</version>
            </dependency>
            <!-- DSN -->
            <dependency>
                    <groupId>org.mongodb</groupId>
                    <artifactId>mongo-java-driver</artifactId>
                     <version>3.0.4</version>
    </dependency>
   
    </dependencies>
    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-shade-plugin</artifactId>
                <version>2.3</version>
                <configuration>
                    <createDependencyReducedPom>true</createDependencyReducedPom>
                    <filters>
                        <filter>
                            <artifact>*:*</artifact>
                            <excludes>
                                <exclude>META-INF/*.SF</exclude>
                                <exclude>META-INF/*.DSA</exclude>
                                <exclude>META-INF/*.RSA</exclude>
                            </excludes>
                        </filter>
                    </filters>
                </configuration>
                <executions>
                    <execution>
                        <phase>package</phase>
                        <goals>
                            <goal>shade</goal>
                        </goals>
                        <configuration>
                            <transformers>
                                <transformer
                                    implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
                                    <mainClass>hostname.dsn.Bootstrap</mainClass>
                                </transformer>
                            </transformers>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                 <groupId>org.codehaus.mojo</groupId>
                <artifactId>properties-maven-plugin</artifactId>
                <version>1.0-alpha-2</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>set-system-properties</goal>
                        </goals>
                        <configuration>
                            <properties>
                                <!-- makes jetty log the exception if it fails to initialize slf4j -->
                                  <property>
                                    <name>org.eclipse.jetty.util.log.IGNORED</name>
                                    <value>true</value>
                                </property>
                                <!-- this tells where the log4j configuration is -->
                                   <property>
                                    <name>log4j.configuration</name>
                                    <value>file:./src/main/resources/log4j.properties</value>
                                </property>
                                <!-- this can be uncommented to debug startup log4j itself,
                                e.g. how it locates log4j.properties etc -->
                                <!--
                                <property>
                                  <name>log4j.debug</name>
                                  <value></value>
                                </property>
                                -->
                              </properties>
                        </configuration>
                    </execution>
                </executions>
             </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>2.3.2</version>
                <configuration>
                    <source>1.8</source>
                    <target>1.8</target>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-jar-plugin</artifactId>
                <version>2.4</version>
                <configuration>
                    <archive>
                        <manifest>
                            <mainClass>hostname.dsn.Bootstrap</mainClass>
                        </manifest>
                    </archive>
                </configuration>
            </plugin>
           
           
        </plugins>
    </build>
</project>

and the image is this
pom
0
gurpsbassiCommented:
can you remove the following from your pom and try again?

 <dependency>
            <groupId>hostname.dsn</groupId>
            <artifactId>dsnweb</artifactId>
            <version>1.0-SNAPSHOT</version>
            <type>jar</type>
        </dependency>
0
chalie001Author Commented:
am getting this error now
C:\Users\desmondma\Desktop\dsnworkspace\dsnweb>mvn package
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building dsnweb
[INFO]    task-segment: [package]
[INFO] ------------------------------------------------------------------------
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/2.3.2/mave
n-compiler-plugin-2.3.2.pom
[WARNING] Unable to get resource 'org.apache.maven.plugins:maven-compiler-plugin:pom:2.3.2' from rep
ository central (http://repo1.maven.org/maven2): Error transferring file: Connection timed out: conn
ect
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/2.3.2/mave
n-compiler-plugin-2.3.2.pom
[WARNING] Unable to get resource 'org.apache.maven.plugins:maven-compiler-plugin:pom:2.3.2' from rep
ository central (http://repo1.maven.org/maven2): Error transferring file: Connection timed out: conn
ect
[INFO] ------------------------------------------------------------------------
BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).


Project ID: org.apache.maven.plugins:maven-compiler-plugin

Reason: POM 'org.apache.maven.plugins:maven-compiler-plugin' not found in repository: Unable to down
load the artifact from any repository

  org.apache.maven.plugins:maven-compiler-plugin:pom:2.3.2

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)

 for project org.apache.maven.plugins:maven-compiler-plugin


[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 43 seconds
[INFO] Finished at: Tue Oct 20 10:34:37 CAT 2015
[INFO] Final Memory: 2M/15M
[INFO] ------------------------------------------------------------------------
C:\Users\desmondma\Desktop\dsnworkspace\dsnweb>mvn clean install
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building dsnweb
[INFO]    task-segment: [clean, install]
[INFO] ------------------------------------------------------------------------
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-shade-plugin/2.3/maven-sha
de-plugin-2.3.pom
[WARNING] Unable to get resource 'org.apache.maven.plugins:maven-shade-plugin:pom:2.3' from reposito
ry central (http://repo1.maven.org/maven2): Error transferring file: Connection timed out: connect
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-shade-plugin/2.3/maven-sha
de-plugin-2.3.pom
[WARNING] Unable to get resource 'org.apache.maven.plugins:maven-shade-plugin:pom:2.3' from reposito
ry central (http://repo1.maven.org/maven2): Error transferring file: Connection timed out: connect
[INFO] ------------------------------------------------------------------------
BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).


Project ID: org.apache.maven.plugins:maven-shade-plugin

Reason: POM 'org.apache.maven.plugins:maven-shade-plugin' not found in repository: Unable to downloa
d the artifact from any repository

  org.apache.maven.plugins:maven-shade-plugin:pom:2.3

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)

 for project org.apache.maven.plugins:maven-shade-plugin


[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 42 seconds
[INFO] Finished at: Tue Oct 20 10:40:09 CAT 2015
[INFO] Final Memory: 1M/15M
[INFO] ------------------------------------------------------------------------
C:\Users\desmondma\Desktop\dsnworkspace\dsnweb>
0
gurpsbassiCommented:
hmm. not sure whats going on.
Perhaps try clearing out your .m2 directory
0
chalie001Author Commented:
how do I clear the .m2 directory
0
gurpsbassiCommented:
go to the .m2 directoy and delete its contents.

It lives in your home directory. (show hidden files and folders)
0
chalie001Author Commented:
I did this
C:\Users\desmondma\Desktop\dsnworkspace\dsnweb>mvn dependency:purge-local-repository -DreResolve=fal
se
[INFO] Scanning for projects...
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-shade-plugin/2.3/maven-sha
de-plugin-2.3.pom
[WARNING] Unable to get resource 'org.apache.maven.plugins:maven-shade-plugin:pom:2.3' from reposito
ry central (http://repo1.maven.org/maven2): Error transferring file: Connection timed out: connect
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-shade-plugin/2.3/maven-sha
de-plugin-2.3.pom
[WARNING] Unable to get resource 'org.apache.maven.plugins:maven-shade-plugin:pom:2.3' from reposito
ry central (http://repo1.maven.org/maven2): Error transferring file: Connection timed out: connect
[INFO] ------------------------------------------------------------------------
BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).


Project ID: org.apache.maven.plugins:maven-shade-plugin

Reason: POM 'org.apache.maven.plugins:maven-shade-plugin' not found in repository: Unable to downloa
d the artifact from any repository

  org.apache.maven.plugins:maven-shade-plugin:pom:2.3

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)

 for project org.apache.maven.plugins:maven-shade-plugin


[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 42 seconds
[INFO] Finished at: Tue Oct 20 12:57:42 CAT 2015
[INFO] Final Memory: 1M/15M
[INFO] ------------------------------------------------------------------------
C:\Users\desmondma\Desktop\dsnworkspace\dsnweb>mvn dependency:purge-local-repository -DactTransitive
ly=false -DreResolve=false
[INFO] Scanning for projects...
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-shade-plugin/2.3/maven-sha
de-plugin-2.3.pom
[WARNING] Unable to get resource 'org.apache.maven.plugins:maven-shade-plugin:pom:2.3' from reposito
ry central (http://repo1.maven.org/maven2): Error transferring file: Connection timed out: connect
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-shade-plugin/2.3/maven-sha
de-plugin-2.3.pom
[WARNING] Unable to get resource 'org.apache.maven.plugins:maven-shade-plugin:pom:2.3' from reposito
ry central (http://repo1.maven.org/maven2): Error transferring file: Connection timed out: connect
[INFO] ------------------------------------------------------------------------
BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).


Project ID: org.apache.maven.plugins:maven-shade-plugin

Reason: POM 'org.apache.maven.plugins:maven-shade-plugin' not found in repository: Unable to downloa
d the artifact from any repository

  org.apache.maven.plugins:maven-shade-plugin:pom:2.3

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)

 for project org.apache.maven.plugins:maven-shade-plugin


[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 42 seconds
[INFO] Finished at: Tue Oct 20 12:58:40 CAT 2015
[INFO] Final Memory: 1M/15M
[INFO] ------------------------------------------------------------------------

but still
0
chalie001Author Commented:
I must delete C:\Users\desmondma\.m2
0
chalie001Author Commented:
I delete it am now getting this error
C:\Users\desmondma\Desktop\dsnworkspace\dsnweb>mvn package
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building dsnweb
[INFO]    task-segment: [package]
[INFO] ------------------------------------------------------------------------
Downloading: http://repo1.maven.org/maven2//org/apache/maven/plugins/maven-compiler-plugin/2.3.2/mav
en-compiler-plugin-2.3.2.pom
7K downloaded  (maven-compiler-plugin-2.3.2.pom)
Downloading: http://repo1.maven.org/maven2//org/apache/maven/plugins/maven-plugins/18/maven-plugins-
18.pom
12K downloaded  (maven-plugins-18.pom)
Downloading: http://repo1.maven.org/maven2//org/apache/maven/maven-parent/16/maven-parent-16.pom
22K downloaded  (maven-parent-16.pom)
Downloading: http://repo1.maven.org/maven2//org/apache/apache/7/apache-7.pom
14K downloaded  (apache-7.pom)
Downloading: http://repo1.maven.org/maven2//org/apache/maven/plugins/maven-compiler-plugin/2.3.2/mav
en-compiler-plugin-2.3.2.jar
28K downloaded  (maven-compiler-plugin-2.3.2.jar)
Downloading: http://repo1.maven.org/maven2//org/apache/maven/plugins/maven-jar-plugin/2.4/maven-jar-
plugin-2.4.pom
5K downloaded  (maven-jar-plugin-2.4.pom)
Downloading: http://repo1.maven.org/maven2//org/apache/maven/plugins/maven-plugins/22/maven-plugins-
22.pom
12K downloaded  (maven-plugins-22.pom)
Downloading: http://repo1.maven.org/maven2//org/apache/maven/maven-parent/21/maven-parent-21.pom
25K downloaded  (maven-parent-21.pom)
Downloading: http://repo1.maven.org/maven2//org/apache/apache/10/apache-10.pom
14K downloaded  (apache-10.pom)
Downloading: http://repo1.maven.org/maven2//org/apache/maven/plugins/maven-jar-plugin/2.4/maven-jar-
plugin-2.4.jar
33K downloaded  (maven-jar-plugin-2.4.jar)
Downloading: http://repo1.maven.org/maven2//org/apache/maven/plugins/maven-shade-plugin/2.3/maven-sh
ade-plugin-2.3.pom
7K downloaded  (maven-shade-plugin-2.3.pom)
Downloading: http://repo1.maven.org/maven2//org/apache/maven/plugins/maven-plugins/25/maven-plugins-
25.pom
9K downloaded  (maven-plugins-25.pom)
Downloading: http://repo1.maven.org/maven2//org/apache/maven/maven-parent/24/maven-parent-24.pom
36K downloaded  (maven-parent-24.pom)
Downloading: http://repo1.maven.org/maven2//org/apache/apache/14/apache-14.pom
14K downloaded  (apache-14.pom)
[INFO] ------------------------------------------------------------------------
BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error resolving version for 'org.apache.maven.plugins:maven-shade-plugin': Plugin requires Ma
ven version 3.0
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 7 seconds
[INFO] Finished at: Tue Oct 20 13:14:23 CAT 2015
[INFO] Final Memory: 4M/15M
[INFO] ------------------------------------------------------------------------
0
gurpsbassiCommented:
run
mvn -version
0
chalie001Author Commented:
am now getting this
C:\Users\desmondma\Desktop\dsnworkspace\dsnweb>mvn install
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building dsnweb
[INFO]    task-segment: [install]
[INFO] ------------------------------------------------------------------------
Downloading: http://repo1.maven.org/maven2//org/apache/maven/plugins/maven-shade-plugin/3.0/maven-sh
ade-plugin-3.0.pom
[INFO] Unable to find resource 'org.apache.maven.plugins:maven-shade-plugin:pom:3.0' in repository c
entral (http://repo1.maven.org/maven2/)
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] Unable to get resource 'org.apache.maven.plugins:maven-shade-plugin:pom:3.0' from reposito
ry jms (https://repository.jboss.org/nexus/content/groups/public): Error transferring file: Connecti
on timed out: connect
Downloading: http://repo1.maven.org/maven2//org/apache/maven/plugins/maven-shade-plugin/3.0/maven-sh
ade-plugin-3.0.pom
[INFO] Unable to find resource 'org.apache.maven.plugins:maven-shade-plugin:pom:3.0' in repository c
entral (http://repo1.maven.org/maven2/)
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] Unable to get resource 'org.apache.maven.plugins:maven-shade-plugin:pom:3.0' from reposito
ry jms (https://repository.jboss.org/nexus/content/groups/public): Error transferring file: Connecti
on timed out: connect
[INFO] ------------------------------------------------------------------------
BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).


Project ID: org.apache.maven.plugins:maven-shade-plugin

Reason: POM 'org.apache.maven.plugins:maven-shade-plugin' not found in repository: Unable to downloa
d the artifact from any repository

  org.apache.maven.plugins:maven-shade-plugin:pom:3.0

from the specified remote repositories:
  central (http://repo1.maven.org/maven2/),
  jms (https://repository.jboss.org/nexus/content/groups/public)

 for project org.apache.maven.plugins:maven-shade-plugin


[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 44 seconds
[INFO] Finished at: Tue Oct 20 14:10:13 CAT 2015
[INFO] Final Memory: 5M/15M
[INFO] ------------------------------------------------------------------------
0
chalie001Author Commented:
C:\Users\desmondma\Desktop\dsnworkspace\dsnweb>mvn -version
Apache Maven 2.2.1 (r801777; 2009-08-06 21:16:01+0200)
Java version: 1.6.0_27
Java home: C:\ifms\apps\jdk1.6.0_27\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 7" version: "6.1" arch: "x86" Family: "windows"
C:\Users\desmondma\Desktop\dsnworkspace\dsnweb>
0
gurpsbassiCommented:
You have a lot of errors saying
"Error resolving version for 'org.apache.maven.plugins:maven-shade-plugin': Plugin requires Ma
ven version 3.0"


Please try upgrading your maven.
0
chalie001Author Commented:
how to upgrade I did this
 <artifactId>maven-shade-plugin</artifactId>
                <version>3.2.1</version>

but am getting this error
C:\Users\desmondma\Desktop\dsnworkspace\dsnweb>mvn package
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building dsnweb
[INFO]    task-segment: [package]
[INFO] ------------------------------------------------------------------------
Downloading: http://repo1.maven.org/maven2//org/apache/maven/plugins/maven-shade-plugin/3.2.1/maven-
shade-plugin-3.2.1.pom
[INFO] Unable to find resource 'org.apache.maven.plugins:maven-shade-plugin:pom:3.2.1' in repository
 central (http://repo1.maven.org/maven2/)
Downloading: https://repository.jboss.org/nexus/content/groups/public/org/apache/maven/plugins/maven
-shade-plugin/3.2.1/maven-shade-plugin-3.2.1.pom
[WARNING] Unable to get resource 'org.apache.maven.plugins:maven-shade-plugin:pom:3.2.1' from reposi
tory jms (https://repository.jboss.org/nexus/content/groups/public): Error transferring file: Connec
tion timed out: connect
Downloading: http://repo1.maven.org/maven2//org/apache/maven/plugins/maven-shade-plugin/3.2.1/maven-
shade-plugin-3.2.1.pom
[INFO] Unable to find resource 'org.apache.maven.plugins:maven-shade-plugin:pom:3.2.1' in repository
 central (http://repo1.maven.org/maven2/)
Downloading: https://repository.jboss.org/nexus/content/groups/public/org/apache/maven/plugins/maven
-shade-plugin/3.2.1/maven-shade-plugin-3.2.1.pom
[WARNING] Unable to get resource 'org.apache.maven.plugins:maven-shade-plugin:pom:3.2.1' from reposi
tory jms (https://repository.jboss.org/nexus/content/groups/public): Error transferring file: Connec
tion timed out: connect
[INFO] ------------------------------------------------------------------------
BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).


Project ID: org.apache.maven.plugins:maven-shade-plugin

Reason: POM 'org.apache.maven.plugins:maven-shade-plugin' not found in repository: Unable to downloa
d the artifact from any repository

  org.apache.maven.plugins:maven-shade-plugin:pom:3.2.1

from the specified remote repositories:
  central (http://repo1.maven.org/maven2/),
  jms (https://repository.jboss.org/nexus/content/groups/public)

 for project org.apache.maven.plugins:maven-shade-plugin


[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 43 seconds
[INFO] Finished at: Tue Oct 20 15:16:41 CAT 2015
[INFO] Final Memory: 5M/15M
0
gurpsbassiCommented:
No you have to actually upgrade your maven installation. Not the plugin!
download a newer version of maven.
0
chalie001Author Commented:
must I download this https://maven.apache.org/download.cgi which one
0
chalie001Author Commented:
I download this Binary zip archive apache-maven-3.3.3-bin.zip  and extract to folder maven in c:\ what must I do now
0
gurpsbassiCommented:
instructions are supplied if you look carefully.
0
chalie001Author Commented:
thanks is working now just syntax error in code
0
chalie001Author Commented:
this is the error am getting
Description      Resource      Path      Location      Type
Plugin execution not covered by lifecycle configuration: org.codehaus.mojo:properties-maven-plugin:1.0-alpha-2:set-system-properties (execution: default, phase: initialize)      pom.xml      /dsnweb      line 198      Maven Project Build Lifecycle Mapping Problem
Project configuration is not up-to-date with pom.xml. Run Maven->Update Project or use Quick Fix.      dsnweb            line 1      Maven Configuration Problem
0
gurpsbassiCommented:
how about doing what it says?

Run Maven->Update Project
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:
correct
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
Editors IDEs

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.