6 Replies Latest reply: Dec 12, 2012 2:57 AM by vchahal RSS

    Not able to add m2eclipse plugin in Eclipse!!!

    vchahal

      We are using Eclipse JUNO and we want to add the m2eclipse plugin with it for the customization of the Jive Instance.

      But we are not able to do that when we are adding the new software from Help and then we are using the following link to download this plugin

       

      http://m2eclipse.sonatype.org/sites/m2e

      But then we are not able to do that.

       

      Actually we are behind the corporate firewall . So is there any way to add the plugin ??

      Is there any particular port number which eclipse is making use of while downloading the plugin???

      Thanks !!!

        • Re: Not able to add m2eclipse plugin in Eclipse!!!
          Ryan Rutan

          I believe in the latest versions of eclipse, Maven is included, but I could be wrong.  Have you tried looking in your project/IDE preferences for a  Maven configuration.  If it's already there, probably don't need an additional plugin.

            • Re: Not able to add m2eclipse plugin in Eclipse!!!
              vchahal

              Hi Ryan Rutan ,

               

              Now I got m2eclipse plugin with my Eclipse Helios IDE.

              But , when I tried to create a New Maven Project from my IDE, it asks to select a Archetype. Archetype related to our Jive(maven-jive-plugin-archetype) is not available in the list of archetypes shown in the list of IDE. So , I tried to add our archetype by selecting the Add Archetype button. I used the following details to create our required archetype

              Archetype GroupId :-  com.jivesoftware.maven

              Archetype ArtifactId :-maven-jive-plugin-archetype

              Archetype version  :-5.0.2-SNAPSHOT

              Repository URL   :-  http://maven-secure.jiveland.com/archiva/repository/jive.snapshots

               

              But when I tried to add the Archetype with the above mentioned details the error message :-

              " Can't resolve Archetype com.jivesoftware.maven:maven-jive-plugin-archetype:5.0.2-SNAPSHOT

              org.eclipse.core.runtime.CoreException: Could not resolve artifact "  

              is coming.

               

              Am I using the correct details regarding archetype ?

               

              or

               

              Is there some other way to work with the Eclipse IDE and m2eclipse for base project creation ?

               

              Looking for your support !!

               


                • Re: Not able to add m2eclipse plugin in Eclipse!!!
                  John Larson

                  Hey Vikash

                   

                  You should probably create your project from the Jive archetype using the maven command line. You would then import your project into Eclipse using the import existing maven project command. Works every time for us.

                    • Re: Not able to add m2eclipse plugin in Eclipse!!!
                      vchahal

                      Thanks a lot John !!

                      It worked fine that way .

                      • Re: Not able to add m2eclipse plugin in Eclipse!!!
                        vchahal

                        Hi John and Ryan ,

                        I am able to create any other base project using my Maven (others than Jive ) . But when I am creating base project using the Jive Archetype , I am getting some errors like "Proxy Authentication Error"  and like "not autherized by proxy".

                        When I am executing the  following command to create the base project

                           "mvn archetype:generate -e -B -DarchetypeGroupId=com.jivesoftware.maven -DarchetypeArtifactId=maven-jive-archetype

                        -DarchetypeVersion=5.0.x-SNAPSHOT -DgroupId=com.jivesoftware.dummycustomer -DartifactId=dummyCustomerSite  "

                          Then I am getting the following result :-

                         

                        ---------------------------------------------------------------------------------------------------------------------------

                        mvn archetype:generate -e -B -DarchetypeGroupId=com.jivesoftware.maven -DarchetypeArtifactId=maven-jive-archetype

                        -DarchetypeVersion=5.0.x-SNAPSHOT -DgroupId=com.jivesoftware.dummycustomer -DartifactId=dummyCustomerSite     
                                                    
                        [INFO] Error stacktraces are turned on.                                        
                        [INFO] Scanning for projects...                                             
                           Downloading: https://maven-secure.jivesoftware.com/archiva/repository/jive.snapshots/org/codehaus/mojo/maven-metadata.xml         

                                                   
                        Downloading: https://maven-secure.jivesoftware.com/archiva/repository/jive.internal/org/codehaus/mojo/maven-metadata.xml             

                                               
                        Downloading: https://maven-secure.jivesoftware.com/archiva/repository/jive.snapshots/org/apache/maven/plugins/maven-metadata.xml    

                                                 
                        Downloading: https://maven-secure.jivesoftware.com/archiva/repository/jive.internal/org/apache/maven/plugins/maven-metadata.xml      

                                               
                        Dec 12, 2012 1:46:53 PM org.apache.maven.wagon.providers.http.httpclient.client.protocol.RequestProxyAuthentication process         

                                                
                        SEVERE: Proxy authentication error: Invalid name provided (Mechanism level: Could not load configuration file C:\WINDOWS\krb5.ini

                        (The system cannot find the file specified))                                                                 
                        Dec 12, 2012 1:46:53 PM org.apache.maven.wagon.providers.http.httpclient.client.protocol.RequestProxyAuthentication process          

                                                
                        SEVERE: Proxy authentication error: Invalid name provided (Mechanism level: Could not load configuration file C:\WINDOWS\krb5.ini (The

                        system cannot find the file specified))                                                                 
                        Dec 12, 2012 1:46:53 PM org.apache.maven.wagon.providers.http.httpclient.client.protocol.RequestProxyAuthentication process          

                                               
                        SEVERE: Proxy authentication error: Invalid name provided (Mechanism level: Could not load configuration file C:\WINDOWS\krb5.ini

                        (The system cannot find the file specified))                                                                 
                        Dec 12, 2012 1:46:53 PM org.apache.maven.wagon.providers.http.httpclient.client.protocol.RequestProxyAuthentication process          

                                               
                        SEVERE: Proxy authentication error: Invalid name provided (Mechanism level: Could not load configuration file C:\WINDOWS\krb5.ini

                        (The system cannot find the file specified))                                                                
                        [WARNING] Could not transfer metadata org.apache.maven.plugins/maven-metadata.xml from/to jive.internal

                        (https://maven-secure.jivesoftware.com/archiva/repository/jive.internal): Not authorized by proxy, ReasonPhrase:Proxy Authorization

                        Required.                                                                         
                        [WARNING] Could not transfer metadata org.apache.maven.plugins/maven-metadata.xml from/to jive.snapshots

                        (https://maven-secure.jivesoftware.com/archiva/repository/jive.snapshots): Not authorized by proxy, ReasonPhrase:Proxy Authorization

                        Required.                                                                       
                        [WARNING] Could not transfer metadata org.codehaus.mojo/maven-metadata.xml from/to jive.internal

                        (https://maven-secure.jivesoftware.com/archiva/repository/jive.internal): Not authorized by proxy, ReasonPhrase:Proxy Authorization

                        Required. 
                        [WARNING] Could not transfer metadata org.codehaus.mojo/maven-metadata.xml from/to jive.snapshots

                        (https://maven-secure.jivesoftware.com/archiva/repository/jive.snapshots): Not authorized by proxy, ReasonPhrase:Proxy Authorization

                        Required.                                                                              
                        Downloading:

                        https://maven-secure.jivesoftware.com/archiva/repository/jive.snapshots/org/apache/maven/plugins/maven-archetype-plugin/maven-metadata

                        .xml        
                        Downloading:

                        https://maven-secure.jivesoftware.com/archiva/repository/jive.internal/org/apache/maven/plugins/maven-archetype-plugin/maven-metadata.

                        xml          Dec 12, 2012 1:46:53 PM org.apache.maven.wagon.providers.http.httpclient.client.protocol.RequestProxyAuthentication

                        process                                    
                        SEVERE: Proxy authentication error: Invalid name provided (Mechanism level: Could not load configuration file C:\WINDOWS\krb5.ini (The

                        system cannot find the file specified))                                                                 
                        Dec 12, 2012 1:46:53 PM org.apache.maven.wagon.providers.http.httpclient.client.protocol.RequestProxyAuthentication process          

                                                
                        SEVERE: Proxy authentication error: Invalid name provided (Mechanism level: Could not load configuration file C:\WINDOWS\krb5.ini (The

                        system cannot find the file specified))                                                                  [WARNING] Could not transfer

                        metadata org.apache.maven.plugins:maven-archetype-plugin/maven-metadata.xml from/to jive.internal

                        (https://maven-secure.jivesoftware.com/archiva/repository/jive.internal): Not authorized by proxy, ReasonPhrase:Proxy Authorization

                        Required.                                                   
                        [WARNING] Could not transfer metadata org.apache.maven.plugins:maven-archetype-plugin/maven-metadata.xml from/to jive.snapshots

                        (https://maven-secure.jivesoftware.com/archiva/repository/jive.snapshots): Not authorized by proxy, ReasonPhrase:Proxy Authorization

                        Required.                                                 
                        [INFO]                                                                         
                        [INFO] ------------------------------------------------------------------------
                        [INFO] Building Maven Stub Project (No POM) 1                                  
                        [INFO] ------------------------------------------------------------------------
                        [WARNING] Failure to transfer org.apache.maven.plugins/maven-metadata.xml from

                        https://maven-secure.jivesoftware.com/archiva/repository/jive.internal was cached in the local repository, resolution will not be

                        reattempted until the update interval of jive.internal has elapsed or updates are forced. Original error: Could not transfer metadata

                        org.apache.maven.plugins/maven-metadata.xml from/to jive.internal

                        (https://maven-secure.jivesoftware.com/archiva/repository/jive.internal): Not authorized by proxy, ReasonPhrase:Proxy Authorization

                        Required.         
                        [WARNING] Failure to transfer org.apache.maven.plugins/maven-metadata.xml from

                        https://maven-secure.jivesoftware.com/archiva/repository/jive.snapshots was cached in the local repository, resolution will not be

                        reattempted until the update interval of jive.snapshots has elapsed or updates are forced. Original error: Could not transfer metadata

                        org.apache.maven.plugins/maven-metadata.xml from/to jive.snapshots

                        (https://maven-secure.jivesoftware.com/archiva/repository/jive.snapshots): Not authorized by proxy, ReasonPhrase:Proxy Authorization

                        Required.     
                        [WARNING] Failure to transfer org.codehaus.mojo/maven-metadata.xml from

                        https://maven-secure.jivesoftware.com/archiva/repository/jive.internal was cached in the local repository, resolution will not be

                        reattempted until the update interval of jive.internal has elapsed or updates are forced. Original error: Could not transfer metadata

                        org.codehaus.mojo/maven-metadata.xml from/to jive.internal (https://maven-secure.jivesoftware.com/archiva/repository/jive.internal):

                        Not authorized by proxy, ReasonPhrase:Proxy Authorization Required.                       
                        [WARNING] Failure to transfer org.codehaus.mojo/maven-metadata.xml from

                        https://maven-secure.jivesoftware.com/archiva/repository/jive.snapshots was cached in the local repository, resolution will not be

                        reattempted until the update interval of jive.snapshots has elapsed or updates are forced. Original error: Could not transfer metadata

                        org.codehaus.mojo/maven-metadata.xml from/to jive.snapshots (https://maven-secure.jivesoftware.com/archiva/repository/jive.snapshots):

                        Not authorized by proxy, ReasonPhrase:Proxy Authorization Required.                   
                        [WARNING] Failure to transfer org.apache.maven.plugins:maven-archetype-plugin/maven-metadata.xml from

                        https://maven-secure.jivesoftware.com/archiva/repository/jive.internal was cached in the local repository, resolution will not be

                        reattempted until the update interval of jive.internal has elapsed or updates are forced. Original error: Could not transfer metadata

                        org.apache.maven.plugins:maven-archetype-plugin/maven-metadata.xml from/to jive.internal

                        (https://maven-secure.jivesoftware.com/archiva/repository/jive.internal): Not authorized by proxy, ReasonPhrase:Proxy Authorization

                        Required.                                           
                        [WARNING] Failure to transfer org.apache.maven.plugins:maven-archetype-plugin/maven-metadata.xml from

                        https://maven-secure.jivesoftware.com/archiva/repository/jive.snapshots was cached in the local repository, resolution will not be

                        reattempted until the update interval of jive.snapshots has elapsed or updates are forced. Original error: Could not transfer metadata

                        org.apache.maven.plugins:maven-archetype-plugin/maven-metadata.xml from/to jive.snapshots

                        (https://maven-secure.jivesoftware.com/archiva/repository/jive.snapshots): Not authorized by proxy, ReasonPhrase:Proxy Authorization

                        Required.                                      

                        [INFO]                                                                         
                        [INFO] >>> maven-archetype-plugin:2.2:generate (default-cli) @ standalone-pom >>>                                                    

                                                
                        [INFO]                                                                         
                        [INFO] <<< maven-archetype-plugin:2.2:generate (default-cli) @ standalone-pom <<<                                                    

                                                
                        [INFO]                                                                         
                        [INFO] --- maven-archetype-plugin:2.2:generate (default-cli) @ standalone-pom ---                                                    

                                                
                        [INFO] Generating project in Batch mode                                        
                        [WARNING] Archetype not found in any catalog. Falling back to central repository (http://repo1.maven.org/maven2).                    

                                                
                        [WARNING] Use -DarchetypeRepository=<your repository> if archetype's repository is elsewhere.                                        

                                                
                        Downloading:

                        https://maven-secure.jivesoftware.com/archiva/repository/jive.internal/com/jivesoftware/maven/maven-jive-archetype/5.0.x-SNAPSHOT/mave

                        n-metadata.xml                                                                              
                        Downloading:

                        https://maven-secure.jivesoftware.com/archiva/repository/jive.snapshots/com/jivesoftware/maven/maven-jive-archetype/5.0.x-SNAPSHOT/mav

                        en-metadata.xml                                                                             
                        Downloading: http://repo1.maven.org/maven2/com/jivesoftware/maven/maven-jive-archetype/5.0.x-SNAPSHOT/maven-metadata.xml             

                                                 Dec 12, 2012 1:46:55 PM

                        org.apache.maven.wagon.providers.http.httpclient.client.protocol.RequestProxyAuthentication process                                  


                        SEVERE: Proxy authentication error: Invalid name provided (Mechanism level: Could not load configuration file C:\WINDOWS\krb5.ini (The

                        system cannot find the file specified))                                                                  Dec 12, 2012 1:46:55 PM

                        org.apache.maven.wagon.providers.http.httpclient.client.protocol.RequestProxyAuthentication process                                   
                        SEVERE: Proxy authentication error: Invalid name provided (Mechanism level: Could not load configuration file C:\WINDOWS\krb5.ini

                        (The system cannot find the file specified))                                                                 
                        [WARNING] Could not transfer metadata com.jivesoftware.maven:maven-jive-archetype:5.0.x-SNAPSHOT/maven-metadata.xml from/to

                        jive.internal (https://maven-secure.jivesoftware.com/archiva/repository/jive.internal): Not authorized by proxy, ReasonPhrase:Proxy

                        Authorization Required.                                        
                        [WARNING] Could not transfer metadata com.jivesoftware.maven:maven-jive-archetype:5.0.x-SNAPSHOT/maven-metadata.xml from/to

                        jive.snapshots (https://maven-secure.jivesoftware.com/archiva/repository/jive.snapshots): Not authorized by proxy, ReasonPhrase:Proxy

                        Authorization Required.                                      
                        Downloading:

                        http://repo1.maven.org/maven2/com/jivesoftware/maven/maven-jive-archetype/5.0.x-SNAPSHOT/maven-jive-archetype-5.0.x-SNAPSHOT.jar     

                                   
                        Downloading:

                        https://maven-secure.jivesoftware.com/archiva/repository/jive.internal/com/jivesoftware/maven/maven-jive-archetype/5.0.x-SNAPSHOT/mave

                        n-jive-archetype-5.0.x-SNAPSHOT.jar                                                          Dec 12, 2012 1:46:56 PM

                        org.apache.maven.wagon.providers.http.httpclient.client.protocol.RequestProxyAuthentication process                                  


                        SEVERE: Proxy authentication error: Invalid name provided (Mechanism level: Could not load configuration file C:\WINDOWS\krb5.ini (The

                        system cannot find the file specified))                                                                 
                        Downloading:

                        https://maven-secure.jivesoftware.com/archiva/repository/jive.snapshots/com/jivesoftware/maven/maven-jive-archetype/5.0.x-SNAPSHOT/mav

                        en-jive-archetype-5.0.x-SNAPSHOT.jar                                                         Dec 12, 2012 1:46:56 PM

                        org.apache.maven.wagon.providers.http.httpclient.client.protocol.RequestProxyAuthentication process                                  


                        SEVERE: Proxy authentication error: Invalid name provided (Mechanism level: Could not load configuration file C:\WINDOWS\krb5.ini (The

                        system cannot find the file specified))                                                                 
                        [INFO] ------------------------------------------------------------------------
                        [INFO] BUILD FAILURE                                                           
                        [INFO] ------------------------------------------------------------------------
                        [INFO] Total time: 3.625s                                                      
                        [INFO] Finished at: Wed Dec 12 13:46:56 IST 2012                               
                        [INFO] Final Memory: 8M/19M                                                    
                        [INFO] ------------------------------------------------------------------------

                        [ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.2:generate (default-cli) on project standalone-pom:

                        The desired archetype does not exist (com.jivesoftware.maven:maven-jive-archetype:5.0.x-SNAPSHOT) -> [Help 1]                        

                                                                            org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal

                        org.apache.maven.plugins:maven-archetype-plugin:2.2:generate (default-cli) on project standalone-pom: The desired archetype does not

                        exist (com.jivesoftware.maven:maven-jive-archetype:5.0.x-SNAPSHOT)                                                  at

                        org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:213)                                                      

                                              at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)                             

                                                                       at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)    

                                                                                                at

                        org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)                              

                                              at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)     

                                                                       at

                        org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)                                  

                                              at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)                     

                                                                       at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)               at

                        org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)                 at

                        org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)                     at

                        org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)                      at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)

                                              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)                  at

                        sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)                                                        

                                              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)                       

                                                                       at java.lang.reflect.Method.invoke(Method.java:597)                             at

                        org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)                                                  

                                              at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)                                 

                                                                       at

                        org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)                                                

                                              at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)                                   

                                                               Caused by: org.apache.maven.plugin.MojoFailureException: The desired archetype does not exist

                        (com.jivesoftware.maven:maven-jive-archetype:5.0.x-SNAPSHOT)              at

                        org.apache.maven.archetype.mojos.CreateProjectFromArchetypeMojo.execute(CreateProjectFromArchetypeMojo.java:221)                     

                                              at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)           

                                                                       at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)    

                                                                                                ... 19 more                                                  

                                 Caused by: org.apache.maven.archetype.exception.UnknownArchetype: The desired archetype does not exist

                        (com.jivesoftware.maven:maven-jive-archetype:5.0.x-SNAPSHOT)                                                                         

                                  at

                        org.apache.maven.archetype.ui.generation.DefaultArchetypeGenerationConfigurator.configureArchetype(DefaultArchetypeGenerationConfigura

                        tor.java:117)          at

                        org.apache.maven.archetype.mojos.CreateProjectFromArchetypeMojo.execute(CreateProjectFromArchetypeMojo.java:205)                     

                                              ... 21 more                                                            
                        [ERROR]                                                                        
                        [ERROR] Re-run Maven using the -X switch to enable full debug logging.         
                        [ERROR]                                                                        
                        [ERROR] For more information about the errors and possible solutions, please read the following articles:                            

                                                
                        [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException                              

                         

                        --------------------------------------------------------------------------------------------------------------------------------

                        I am using my username and password for the proxy settings and also used the username and password provided by the Jive Support to access the repositories in  the Settings.xml of the Maven.

                        Are there some other settings which I need to do in the Settings.xml?

                        I referred the document "https://community.jivesoftware.com/docs/DOC-38298 " to make the necessary changes in the Settings.xml.