Getting the following errors while working with Maven
Hi I'm getting the following errors while working with maven project I have installed JDK 1.7 and using eclipse mars version. I downloaded maven 3.6.3 and set the classpath as per that MVN_HOME and path. while trying to create a maven project from eclipse i get the following errors in POM .XML POM.xml 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/xsd/maven-4.0.0.xsd";> 4.0.0 w2a w2automation 0.0.1-SNAPSHOT Error in pom.xml Failure to transfer org.apache.maven.plugins:maven-resources-plugin:pom:2.6 from https://repo.maven.apache.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. Original error: Could not transfer artifact org.apache.maven.plugins:maven-resources-plugin:pom:2.6 from/to central (https://repo.maven.apache.org/maven2): Received fatal alert: protocol_version Generate sources [INFO] Scanning for projects... [INFO] [INFO] [INFO] Building w2automation 0.0.1-SNAPSHOT [INFO] [INFO] [INFO] BUILD SUCCESS [INFO] [INFO] Total time: 0.237 s [INFO] Finished at: 2020-10-27T21:44:45+05:30 [INFO] Final Memory: 5M/122M [INFO] - Maven Compile [INFO] Scanning for projects... [INFO] [INFO] [INFO] Building w2automation 0.0.1-SNAPSHOT [INFO] [INFO] Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.5/maven-clean-plugin-2.5.pom [INFO] [INFO] BUILD FAILURE [INFO] [INFO] Total time: 3.772 s [INFO] Finished at: 2020-10-27T21:45:40+05:30 [INFO] Final Memory: 5M/122M [INFO] [ERROR] Plugin org.apache.maven.plugins:maven-clean-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-clean-plugin:jar:2.5: Could not transfer artifact org.apache.maven.plugins:maven-clean-plugin:pom:2.5 from/to central (https://repo.maven.apache.org/maven2): Received fatal alert: protocol_version -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [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/PluginResolutionException Maven Install [INFO] Scanning for projects... [INFO] [INFO] [INFO] Building w2automation 0.0.1-SNAPSHOT [INFO] [INFO] Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.6/maven-resources-plugin-2.6.pom [INFO] [INFO] BUILD FAILURE [INFO] [INFO] Total time: 6.323 s [INFO] Finished at: 2020-10-27T21:46:59+05:30 [INFO] Final Memory: 5M/122M [INFO] [ERROR] Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.6: Could not transfer artifact org.apache.maven.plugins:maven-resources-plugin:pom:2.6 from/to central ( https://repo.maven.apache.org/maven2): Received fatal alert: protocol_version -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [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/PluginResolutionException. Kindly let me know what changes I should do in order to make it work, Thank you in advance Ram Kumar V
Re: Required goal not found
Fezgxzsuf Sent from my iPhone On Jan 12, 2012, at 10:51 AM, Adam Dyga wrote: > Hello, > > I have some problems with "goals not found". When I execute: > > > mvn help:describe -DgroupId=org.apache.maven.plugins > -DartifactId=maven-dependency-plugin > > > among many goals I get: > > ... > dependency:get > Description: Downloads a single artifact transitively from the specified >remote repositories. Caveat: will always check the central repository >defined in the super pom. You could use a mirror entry in your settings.xml > ... > dependency:help > Description: Display help information on maven-dependency-plugin. >Call > mvn dependency:help -Ddetail=true -Dgoal= >to display parameter details. > ... > > > But if I execute "mvn dependency:help" or "mvn dependency:get" I get: > > > [INFO] Searching repository for plugin with prefix: 'dependency'. > [INFO] > > [ERROR] BUILD FAILURE > [INFO] > > [INFO] Required goal not found: dependency:help in > org.apache.maven.plugins:maven-dependency-plugin:2.0 > > > Is this normal? This happens not only with dependency plugin but others too. > On the other hand dependency:list (for instance) works fine. > My Maven version is: > > > Apache Maven 2.2.1 (r801777; 2009-08-06 21:16:01+0200) > Java version: 1.6.0_30 > Java home: c:\\jdk1.6.0_30\jre > Default locale: de_DE, platform encoding: Cp1252 > OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows" > > > Regards, > AD > > - > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Building Dependencies
Thanks John for the response. It solved my purpose. To all Maven Users, Wish you a happy and a fun filled new year ahead. Cheers, Ram On Tue, Dec 30, 2008 at 11:37 PM, John Stoneham wrote: > On Mon, Dec 29, 2008 at 7:25 AM, Ram Mohan > wrote: > > My question is: > > while building M1, is there a plugin/way to tell in pom.xml to build M2 > and > > M3 if there are changes in M2 and M3. > > From the parent project level this can be ensured, is it possible to do > this > > using M1's POM. > > Ram, > > I suspect the Maven reactor plugin will probably do what you are > looking for, if you have these projects set up as modules. (Even if > you don't, you could create a little POM somewhere that -did- have > them listed as modules, just for the sake of being able to use the > reactor plugin.) > > http://maven.apache.org/plugins/maven-reactor-plugin/ > > - John > > - > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > >
Re: Building Dependencies
Thanks Wayne for the quick response. On Mon, Dec 29, 2008 at 11:09 PM, Wayne Fay wrote: > > My question is: > > while building M1, is there a plugin/way to tell in pom.xml to build M2 > and > > M3 if there are changes in M2 and M3. > > From the parent project level this can be ensured, is it possible to do > this > > using M1's POM. > > This is something you should be looking for as a feature in a > Continuous Integration server, not so much in a build tool like Maven. > Check Hudson and Continuum. > > Wayne > > - > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > >
Building Dependencies
Hi, This is Ram.I recently started learning on Maven and making it work for my org :) Let us say I have a Project P which has modules M1,M2,M3. M1 is dependent on M2 and M3. I have source code access for everything. My question is: while building M1, is there a plugin/way to tell in pom.xml to build M2 and M3 if there are changes in M2 and M3. >From the parent project level this can be ensured, is it possible to do this using M1's POM. Thanks, Ram
Re: How to let xmlbean generate jar file?
U can use outputJar tag to do the same Sent from my iPod On Sep 30, 2008, at 2:09 PM, youhaodeyi <[EMAIL PROTECTED]> wrote: Will this add it to the dependency tree automatically? Stephen Connolly-2 wrote: you need to attach it to the lifecycle and execute upto at least the package phase in the lifecycle 2008/9/30 youhaodeyi <[EMAIL PROTECTED]> I use xmlbean plugin in a Maven project. When doing mvn xmlbeans:xmlbeans, it will generate source and classes but not jar. How can I let it produce jar file? -- View this message in context: http://www.nabble.com/How-to-let-xmlbean-generate-jar-file--tp19737290p19737290.html Sent from the Maven - Users mailing list archive at Nabble.com. --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/How-to-add-generated-jar-into-project-dependency--tp19737290p19738224.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problems using XSD
Thanks Wayne, You correctly mentioned about using Unpack Dependency plugin. I used it & it resolved my issue. Thanks for the response. Regards, Ram On 9/22/08, Wayne Fay <[EMAIL PROTECTED]> wrote: > > What exactly is your question? I read the email twice, and there's no > question in it. > > If the XMLBeans plugin supports reading XSD files from a Jar and > generating the source, this should be pretty simple with a little > configuration. > > If it does not, you will probably need to use the dependency plugin to > unpack the XSD jar into Project 2's target folder so the XMLBeans > plugin has XSD files to work on so it can generate the source > properly. Or you could modify the XMLBeans plugin source code so it > supports reading from Jars. > > Wayne > > On Mon, Sep 22, 2008 at 1:49 AM, RAM <[EMAIL PROTECTED]> wrote: > > Hi All, > > > > I have few clarifications using XSD's from multiple Projects > using > > Maven and then generating Java Objects using XMLBeans Plugin. Any > > help/guidance is appreciated: > > > > I have 2 Projects now. > > > > *Project 1*: Called as XSD-PROJECT which just holds all the xsd's. This > > Project builds a "jar" file which contains all the xsd's. > > > > *Project 2: *This Project is a web Project, in which, we have WSDL & 1 > more > > XSD under WEB-INF. > > > > Our requirement is to use *Project 1* as dependency for *Project 2 *and > > generate the Java Objects using XMLBeans plugin for the Project 2. The > > generated classes should include all the Java Object for all the XSD's > from > > both the locations. > > > > We are using XMLBeans 2.3.0 & Maven 2.0.9. > > > > -- > > Thanks, > > Ram > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Thanks Ram
Problems using XSD
Hi All, I have few clarifications using XSD's from multiple Projects using Maven and then generating Java Objects using XMLBeans Plugin. Any help/guidance is appreciated: I have 2 Projects now. *Project 1*: Called as XSD-PROJECT which just holds all the xsd's. This Project builds a "jar" file which contains all the xsd's. *Project 2: *This Project is a web Project, in which, we have WSDL & 1 more XSD under WEB-INF. Our requirement is to use *Project 1* as dependency for *Project 2 *and generate the Java Objects using XMLBeans plugin for the Project 2. The generated classes should include all the Java Object for all the XSD's from both the locations. We are using XMLBeans 2.3.0 & Maven 2.0.9. -- Thanks, Ram
Re: maven repository
Again in your dependency, groupId is showing as "com.fedex.crm.onesource", however pom dependency is "com.fedex.crm", I believe because of which the missing artifact is showing as Missing: -- *com.fedex.crm:*myfile:jar:2.2.1 Two things I can ask you to try is: 1) use the below command to install the jar mvn install:install-file -DgroupId=*com.fedex.crm* -DartifactId=*myfile* -Dversion=*2.1.4* -Dpackaging=jar -Dfile=/path/to/file Note the groupId, it is not having *onesource.* ** *If solution1 is not working, then* ** *add the dependency as shown below:* com.fedex.crm.onesource myfile 2.2.1 jar system /path/to/your/jar file -- Ram On Fri, Aug 8, 2008 at 11:48 PM, Lakshmi Kurella <[EMAIL PROTECTED]> wrote: > > Ram, thanks for the response. My acutal problem is I executed this > install command and I also added dependency in pom.xml and I am now > trying to compile this project. I ssays it can not find the classes > which are in that myfile.jar. > > Pom.xml entry > > > com.fedex.crm.onesource > myfile > 2.2.1 > jar > > > > Following is the actual error > > > C:\CaseConsole>mvn install > [INFO] Scanning for projects... > [INFO] > > [INFO] Building CaseConsole > [INFO]task-segment: [install] > [INFO] > > [INFO] [resources:resources] > [INFO] Using default encoding to copy filtered resources. > Downloading: > http://repo1.maven.org/maven2/com/fedex/crm/onesource/myfile/2.2.1/myfil > e-2.2.1.pom > > > [INFO] > > [ERROR] BUILD ERROR > [INFO] > > [INFO] Failed to resolve artifact. > > Missing: > -- > 1) com.fedex.crm:myfile:jar:2.2.1 > > Try downloading the file manually from the project website. > > Then, install it using the command: > mvn install:install-file -DgroupId=com.fedex.crm > -DartifactId=myfile -Dversion=2.1.4 -Dpackaging=jar -Dfile=/path/to/file > > Alternatively, if you host your own repository you can deploy the file > there: > > mvn deploy:deploy-file -DgroupId=com.fedex.crm -DartifactId=myfile > -Dversion=2.1.4 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] > -Drepository > Id=[id] > > Path to dependency: >1) com.fedex.crm.onesource:CaseConsole:jar:1.0-SNAPSHOT >2) com.fedex.crm:myfile:jar:2.1.4 > > As you mentioned after I installed myfile.jar, I checked and it exists > in C:\MyDocu~1\{user}\.m2\repository repository. > Not sure why it is trying to download from > http://repo1.maven.org/maven2/com/fedex/crm/onesource/myfile/2.2.1/myfil > e-2.2.1.pom > > Am I having any configuration issues. > > Thanks, > Lakshmi > > > -Original Message- > From: RAM [mailto:[EMAIL PROTECTED] > Sent: Friday, August 08, 2008 12:11 PM > To: Maven Users List > Subject: Re: maven repository > > Hi, > > This install command is just to make Maven understand where to find > the Jar.. by default it looks under C:\MyDocu~1\{user}\.m2\repository. > > You can always change this repo, by modifying the conf/settings.xml file > available under Maven home. > > One more important point to note here is, the groupId, artifactId & the > version given while installing the JAR must match with the dependency > section in your pom.xml. > > So for the below mentioned install command, your dependency must look > like > com.fedex.crm.onesource > myfile > 2.2.1 > > One last point is always check carefully for spaces while executing the > mvn install:install-file command. > > -- Ram > On Fri, Aug 8, 2008 at 9:08 PM, Lakshmi Kurella <[EMAIL PROTECTED]> > wrote: > > > I executed the following command > > > > mvn install:install -file -DgroupId=com.fedex.crm.onesource > > -DartifactId=myfile -Dversion=2.2.1 -Dpackaging=jar > > -Dfile=/path/to/file/myfile.jar > > > > > > Could someone tell me once I run the above command, where does maven > > keeps maintains the repositories. In my case I saw where it is but I > > am receiving a problem while compiling. > > > > Thanks, > > Lakshmi > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > -- > Thanks > Ram > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Thanks Ram
Re: maven repository
Hi, This install command is just to make Maven understand where to find the Jar.. by default it looks under C:\MyDocu~1\{user}\.m2\repository. You can always change this repo, by modifying the conf/settings.xml file available under Maven home. One more important point to note here is, the groupId, artifactId & the version given while installing the JAR must match with the dependency section in your pom.xml. So for the below mentioned install command, your dependency must look like com.fedex.crm.onesource myfile 2.2.1 One last point is always check carefully for spaces while executing the mvn install:install-file command. -- Ram On Fri, Aug 8, 2008 at 9:08 PM, Lakshmi Kurella <[EMAIL PROTECTED]> wrote: > I executed the following command > > mvn install:install -file -DgroupId=com.fedex.crm.onesource > -DartifactId=myfile -Dversion=2.2.1 -Dpackaging=jar > -Dfile=/path/to/file/myfile.jar > > > Could someone tell me once I run the above command, where does maven keeps > maintains the repositories. In my case I saw where it is but I am receiving > a problem while compiling. > > Thanks, > Lakshmi > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Thanks Ram
Re: need help on maven compile phase.
Actually, I can think of seperate module inside the main root project and a seperate pom.xml for each one. Then you can build those one by one. Else, try increasing the memory with the compiler plugin (I think, you have atleast 1.5 GB RAM) org.apache.maven.plugins maven-compiler-plugin 512m 1024m This may resolve the out of memory error. Regards, Ram On 6/17/08, Niranjan Deshpande <[EMAIL PROTECTED]> wrote: > > Hi all > My prj_home_dir/src/main/java has about 1642 classes. When Maven executes > the compile life cycle, all tha 1642 classes are compiled at once and i > always get a out of memory error. Is there a way that i can instruct maven > to compile in steps. e.g web layer first, then the business layer etc. > > Please guide. > -- > Regards, > Niranjan Deshpande > > "Shut yourself from the world and create the reality you want" > -- Thanks Ram
Re: Building Maven2
The error message is little bit confusing :"Null Pointer Exception in thread main". What are you trying to build? I did the following setup and its working fine for me: M2_HOME = D:\apache-maven-2.0.9 JAVA_HOME = {Here the *JDK* Path] Remember Maven doesnt work properly with JRE PATH: %M2_HOME%/bin Just run mvn --version and we are good to go. If you are getting the version printed as 2.0.9, its correctly installed. Also, if you can forward the apache link you are talking about (where you got the example), I can look into that. Thanks & Regards, Ram On 6/12/08, Michael Delaney <[EMAIL PROTECTED]> wrote: > > All, > > > > I am trying to build Maven 2.0.9 from the source, as found on the Apache > site. I went through the necessary steps of setting M2_HOME to a valid > name (M2_HOME=c:\tmp\apache-maven-2.0.9) and adding M2_HOME to my > windows path (PATH=%M2_HOME%\bin;%PATH%) as per the documentation. > However, when I try to build I get an error. This is my first time > trying to build Maven2 so it's possible I did something stupid but I > don't know what. > > > > Can anyone help shed some light on this? > > > > [ Command Output ] > > Building project in C:\tmp\maven-2.0.9-src\maven-2.0.9-src\apache-maven > > -- > > Cleaning C:\tmp\maven-2.0.9-src\maven-2.0.9-src\apache-maven\target... > > Compiling sources ... > > Packaging resources ... > > Packaging > C:\tmp\maven-2.0.9-src\maven-2.0.9-src\apache-maven\target\apache-maven. > jar ... > > -- > > Exception in thread "main" java.lang.NullPointerException > >at > org.apache.maven.bootstrap.installer.BootstrapInstaller.createInstallati > on(BootstrapInstaller.java:254) > >at > org.apache.maven.bootstrap.installer.BootstrapInstaller.run(BootstrapIns > taller.java:136) > >at > org.apache.maven.bootstrap.installer.BootstrapInstaller.main(BootstrapIn > staller.java:91) > > --- > > BUILD FAILED > > --- > > C:\tmp\maven-2.0.9-src\maven-2.0.9-src> > > > > > Mike D. > > -- Thanks Ram
Embedded error: Error while executing the external compiler'
Hello I am getting the error 'Embedded error: Error while executing the external compiler'. This occurs when I have the following configurations - org.apache.maven.plugins maven-compiler-plugin true true 1.3 D:\jdk1.3.1_19/bin/javac I have more than 1200 java files in my project which i need to compile with jdk 1.3. I guess the javac command is too large and hence this problem. Can somebody suggest a way to solve this problem Thanks in advance Ram Want to start your own business? Learn how on Yahoo! Small Business (http://smallbusiness.yahoo.com) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]