Re: Solve my exception for mvn installtion
+1 On 17.12.11 02:14, Graham Leggett wrote: On 16 Dec 2011, at 9:48 PM, Barrie Treloar wrote: I found the problem and now it is solved. thank all who helped me. This reply makes me angry. Please state what you problem actually was and what you did to solve it. The next person who has the same problem as you will hate you for not posting this information. +1. Regards, Graham -- - 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
No POM 1 how do I install my POM (Please help!!!)
i'm trying to get maven fully operational but every time i run anything there's an error stating NO POM1 how do I correct this??? Microsoft Windows [Version 6.1.7600] Copyright (c) 2009 Microsoft Corporation. All rights reserved. C:\Users\Administratormvn install:install [INFO] Scanning for projects... [INFO] [INFO] [INFO] Building Maven Stub Project (No POM) 1 [INFO] [INFO] [INFO] BUILD FAILURE [INFO] [INFO] Total time: 0.296s [INFO] Finished at: Sun Dec 18 09:08:37 CST 2011 [INFO] Final Memory: 7M/73M [INFO] [ERROR] Failed to execute goal org.apache.maven.plugins:maven-install-plugin:2.3 .1:install (default-cli): Goal requires a project to execute but there is no POM in this directory (C:\Users\Administrator). Please verify you invoked Maven fro m the correct directory. - [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit ch. [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 rea d the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MissingProject Exception C:\Users\Administratormvn install:install-file -Dfile=path-to-your-artifact-jar -DpomFile=path-to-pom [INFO] Scanning for projects... [INFO] [INFO] [INFO] Building Maven Stub Project (No POM) 1 [INFO] [INFO] [INFO] --- maven-install-plugin:2.3.1:install-file (default-cli) @ standalone-po m --- Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-plugin-api/2.0 .6/maven-plugin-api-2.0.6.pom Downloaded: http://repo1.maven.org/maven2/org/apache/maven/maven-plugin-api/2.0. 6/maven-plugin-api-2.0.6.pom (2 KB at 3.1 KB/sec) Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven/2.0.6/maven-2. 0.6.pom Downloaded: http://repo1.maven.org/maven2/org/apache/maven/maven/2.0.6/maven-2.0 .6.pom (9 KB at 18.4 KB/sec) Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-parent/5/maven -parent-5.pom Downloaded: http://repo1.maven.org/maven2/org/apache/maven/maven-parent/5/maven- parent-5.pom (15 KB at 30.2 KB/sec) Downloading: http://repo1.maven.org/maven2/org/apache/apache/3/apache-3.pom Downloaded: http://repo1.maven.org/maven2/org/apache/apache/3/apache-3.pom (4 KB at 7.0 KB/sec) Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-project/2.0.6/ maven-project-2.0.6.pom Downloaded: http://repo1.maven.org/maven2/org/apache/maven/maven-project/2.0.6/m aven-project-2.0.6.pom (3 KB at 5.0 KB/sec) Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-settings/2.0.6 /maven-settings-2.0.6.pom Downloaded: http://repo1.maven.org/maven2/org/apache/maven/maven-settings/2.0.6/ maven-settings-2.0.6.pom (2 KB at 4.7 KB/sec) Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-model/2.0.6/ma ven-model-2.0.6.pom Downloaded: http://repo1.maven.org/maven2/org/apache/maven/maven-model/2.0.6/mav en-model-2.0.6.pom (3 KB at 6.3 KB/sec) Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-utils/1.4. 1/plexus-utils-1.4.1.pom Downloaded: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-utils/1.4.1 /plexus-utils-1.4.1.pom (2 KB at 3.9 KB/sec) Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus/1.0.11/ple xus-1.0.11.pom Downloaded: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus/1.0.11/plex us-1.0.11.pom (9 KB at 19.6 KB/sec) Downloading: http://repo1.maven.org/maven2/junit/junit/3.8.1/junit-3.8.1.pom Downloaded: http://repo1.maven.org/maven2/junit/junit/3.8.1/junit-3.8.1.pom (998 B at 2.5 KB/sec) Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-utils/1.0. 4/plexus-utils-1.0.4.pom Downloaded: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-utils/1.0.4 /plexus-utils-1.0.4.pom (7 KB at 14.1 KB/sec) Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-profile/2.0.6/ maven-profile-2.0.6.pom Downloaded: http://repo1.maven.org/maven2/org/apache/maven/maven-profile/2.0.6/m aven-profile-2.0.6.pom (2 KB at 3.7 KB/sec) Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-artifact-manag er/2.0.6/maven-artifact-manager-2.0.6.pom Downloaded: http://repo1.maven.org/maven2/org/apache/maven/maven-artifact-manage r/2.0.6/maven-artifact-manager-2.0.6.pom (3 KB at 6.1 KB/sec) Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-repository-met adata/2.0.6/maven-repository-metadata-2.0.6.pom Downloaded:
Re: No POM 1 how do I install my POM (Please help!!!)
You should run Maven from a directory where a pom.xml is present or use the -f argument. Regards Jeff MAURY On Sat, Dec 17, 2011 at 4:22 PM, Apache Omega jason007tho...@yahoo.comwrote: i'm trying to get maven fully operational but every time i run anything there's an error stating NO POM1 how do I correct this??? Microsoft Windows [Version 6.1.7600] Copyright (c) 2009 Microsoft Corporation. All rights reserved. C:\Users\Administratormvn install:install [INFO] Scanning for projects... [INFO] [INFO] [INFO] Building Maven Stub Project (No POM) 1 [INFO] [INFO] [INFO] BUILD FAILURE [INFO] [INFO] Total time: 0.296s [INFO] Finished at: Sun Dec 18 09:08:37 CST 2011 [INFO] Final Memory: 7M/73M [INFO] [ERROR] Failed to execute goal org.apache.maven.plugins:maven-install-plugin:2.3 .1:install (default-cli): Goal requires a project to execute but there is no POM in this directory (C:\Users\Administrator). Please verify you invoked Maven fro m the correct directory. - [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit ch. [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 rea d the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MissingProject Exception C:\Users\Administratormvn install:install-file -Dfile=path-to-your-artifact-jar -DpomFile=path-to-pom [INFO] Scanning for projects... [INFO] [INFO] [INFO] Building Maven Stub Project (No POM) 1 [INFO] [INFO] [INFO] --- maven-install-plugin:2.3.1:install-file (default-cli) @ standalone-po m --- Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-plugin-api/2.0 .6/maven-plugin-api-2.0.6.pom Downloaded: http://repo1.maven.org/maven2/org/apache/maven/maven-plugin-api/2.0. 6/maven-plugin-api-2.0.6.pomhttp://repo1.maven.org/maven2/org/apache/maven/maven-plugin-api/2.0.%0A6/maven-plugin-api-2.0.6.pom(2 KB at 3.1 KB/sec) Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven/2.0.6/maven-2. 0.6.pom Downloaded: http://repo1.maven.org/maven2/org/apache/maven/maven/2.0.6/maven-2.0 .6.pom (9 KB at 18.4 KB/sec) Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-parent/5/maven -parent-5.pomhttp://repo1.maven.org/maven2/org/apache/maven/maven-parent/5/maven%0A-parent-5.pom Downloaded: http://repo1.maven.org/maven2/org/apache/maven/maven-parent/5/maven- parent-5.pomhttp://repo1.maven.org/maven2/org/apache/maven/maven-parent/5/maven-%0Aparent-5.pom(15 KB at 30.2 KB/sec) Downloading: http://repo1.maven.org/maven2/org/apache/apache/3/apache-3.pom Downloaded: http://repo1.maven.org/maven2/org/apache/apache/3/apache-3.pom (4 KB at 7.0 KB/sec) Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-project/2.0.6/ maven-project-2.0.6.pomhttp://repo1.maven.org/maven2/org/apache/maven/maven-project/2.0.6/%0Amaven-project-2.0.6.pom Downloaded: http://repo1.maven.org/maven2/org/apache/maven/maven-project/2.0.6/m aven-project-2.0.6.pomhttp://repo1.maven.org/maven2/org/apache/maven/maven-project/2.0.6/m%0Aaven-project-2.0.6.pom(3 KB at 5.0 KB/sec) Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-settings/2.0.6 /maven-settings-2.0.6.pomhttp://repo1.maven.org/maven2/org/apache/maven/maven-settings/2.0.6%0A/maven-settings-2.0.6.pom Downloaded: http://repo1.maven.org/maven2/org/apache/maven/maven-settings/2.0.6/ maven-settings-2.0.6.pomhttp://repo1.maven.org/maven2/org/apache/maven/maven-settings/2.0.6/%0Amaven-settings-2.0.6.pom(2 KB at 4.7 KB/sec) Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-model/2.0.6/ma ven-model-2.0.6.pomhttp://repo1.maven.org/maven2/org/apache/maven/maven-model/2.0.6/ma%0Aven-model-2.0.6.pom Downloaded: http://repo1.maven.org/maven2/org/apache/maven/maven-model/2.0.6/mav en-model-2.0.6.pomhttp://repo1.maven.org/maven2/org/apache/maven/maven-model/2.0.6/mav%0Aen-model-2.0.6.pom(3 KB at 6.3 KB/sec) Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-utils/1.4. 1/plexus-utils-1.4.1.pomhttp://repo1.maven.org/maven2/org/codehaus/plexus/plexus-utils/1.4.%0A1/plexus-utils-1.4.1.pom Downloaded: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-utils/1.4.1
Re: No POM 1 how do I install my POM (Please help!!!)
how do i find pom.xml -- View this message in context: http://maven.40175.n5.nabble.com/No-POM-1-how-do-I-install-my-POM-Please-help-tp5082740p5082770.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
RE: No POM 1 how do I install my POM (Please help!!!)
Funny you can find the mailing lists easier than the usage of Maven. Please read Maven in 5 minutes[1] first to understand the basics. -Robert [1] http://maven.apache.org/guides/getting-started/maven-in-five-minutes.html Date: Sat, 17 Dec 2011 07:46:53 -0800 From: jason007tho...@yahoo.com To: users@maven.apache.org Subject: Re: No POM 1 how do I install my POM (Please help!!!) how do i find pom.xml -- View this message in context: http://maven.40175.n5.nabble.com/No-POM-1-how-do-I-install-my-POM-Please-help-tp5082740p5082770.html Sent from the Maven - Users mailing list archive at Nabble.com. - 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: No POM 1 how do I install my POM (Please help!!!)
I entered mvn -f and this is what i got what does all this mean??? C:\Program Files\apache-maven-3.0.3mvn -f Unable to parse command line options: Missing argument for option: f usage: mvn [options] [goal(s)] [phase(s)] Options: -am,--also-makeIf project list is specified, also build projects required by the list -amd,--also-make-dependentsIf project list is specified, also build projects that depend on projects on the list -B,--batch-modeRun in non-interactive (batch) mode -C,--strict-checksums Fail the build if checksums don't match -c,--lax-checksums Warn if checksums don't match -cpu,--check-plugin-updatesIneffective, only kept for backward compatibility -D,--define arg Define a system property -e,--errorsProduce execution error messages -emp,--encrypt-master-password arg Encrypt master security password -ep,--encrypt-password arg Encrypt server password -f,--file argForce the use of an alternate POM file. -fae,--fail-at-end Only fail the build afterwards; allow all non-impacted builds to continue -ff,--fail-fastStop at first failure in reactorized builds -fn,--fail-never NEVER fail the build, regardless of project result -gs,--global-settings argAlternate path for the global settings file -h,--help Display help information -l,--log-file argLog file to where all build output will go. -N,--non-recursive Do not recurse into sub-projects -npr,--no-plugin-registry Ineffective, only kept for backward compatibility -npu,--no-plugin-updates Ineffective, only kept for backward compatibility -nsu,--no-snapshot-updates Suppress SNAPSHOT updates -o,--offline Work offline -P,--activate-profiles arg Comma-delimited list of profiles to activate -pl,--projects arg Comma-delimited list of specified reactor projects to build instead of all projects. A project can be specified by [groupId]:artifactId or by its relative path. -q,--quiet Quiet output - only show errors -rf,--resume-from argResume reactor from specified project -s,--settings argAlternate path for the user settings file -T,--threads arg Thread count, for instance 2.0C where C is core multiplied -t,--toolchains arg Alternate path for the user toolchains file -U,--update-snapshots Forces a check for updated releases and snapshots on remote repositories -up,--update-plugins Ineffective, only kept for backward compatibility -V,--show-version Display version information WITHOUT stopping build -v,--version Display version information -X,--debug Produce execution debug output [ERROR] Error executing Maven. org.apache.commons.cli.MissingArgumentException: Missing argument for option: f at org.apache.commons.cli.Parser.processArgs(Parser.java:343) at org.apache.commons.cli.Parser.processOption(Parser.java:393) at org.apache.commons.cli.Parser.parse(Parser.java:199) at org.apache.commons.cli.Parser.parse(Parser.java:85) at org.apache.maven.cli.CLIManager.parse(CLIManager.java:154) at org.apache.maven.cli.MavenCli.cli(MavenCli.java:302) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:187) at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) at
Re: No POM 1 how do I install my POM (Please help!!!)
I suggest you read the documentation before asking such questions ? The -f parameter allows to specify the name and location of the pom.xml (if you want to use other names than the standard pom.xml) Regards Jeff MAURY On Sat, Dec 17, 2011 at 4:53 PM, Apache Omega jason007tho...@yahoo.comwrote: I entered mvn -f and this is what i got what does all this mean??? C:\Program Files\apache-maven-3.0.3mvn -f Unable to parse command line options: Missing argument for option: f usage: mvn [options] [goal(s)] [phase(s)] Options: -am,--also-makeIf project list is specified, also build projects required by the list -amd,--also-make-dependentsIf project list is specified, also build projects that depend on projects on the list -B,--batch-modeRun in non-interactive (batch) mode -C,--strict-checksums Fail the build if checksums don't match -c,--lax-checksums Warn if checksums don't match -cpu,--check-plugin-updatesIneffective, only kept for backward compatibility -D,--define arg Define a system property -e,--errorsProduce execution error messages -emp,--encrypt-master-password arg Encrypt master security password -ep,--encrypt-password arg Encrypt server password -f,--file argForce the use of an alternate POM file. -fae,--fail-at-end Only fail the build afterwards; allow all non-impacted builds to continue -ff,--fail-fastStop at first failure in reactorized builds -fn,--fail-never NEVER fail the build, regardless of project result -gs,--global-settings argAlternate path for the global settings file -h,--help Display help information -l,--log-file argLog file to where all build output will go. -N,--non-recursive Do not recurse into sub-projects -npr,--no-plugin-registry Ineffective, only kept for backward compatibility -npu,--no-plugin-updates Ineffective, only kept for backward compatibility -nsu,--no-snapshot-updates Suppress SNAPSHOT updates -o,--offline Work offline -P,--activate-profiles arg Comma-delimited list of profiles to activate -pl,--projects arg Comma-delimited list of specified reactor projects to build instead of all projects. A project can be specified by [groupId]:artifactId or by its relative path. -q,--quiet Quiet output - only show errors -rf,--resume-from argResume reactor from specified project -s,--settings argAlternate path for the user settings file -T,--threads arg Thread count, for instance 2.0C where C is core multiplied -t,--toolchains arg Alternate path for the user toolchains file -U,--update-snapshots Forces a check for updated releases and snapshots on remote repositories -up,--update-plugins Ineffective, only kept for backward compatibility -V,--show-version Display version information WITHOUT stopping build -v,--version Display version information -X,--debug Produce execution debug output [ERROR] Error executing Maven. org.apache.commons.cli.MissingArgumentException: Missing argument for option: f at org.apache.commons.cli.Parser.processArgs(Parser.java:343) at org.apache.commons.cli.Parser.processOption(Parser.java:393) at org.apache.commons.cli.Parser.parse(Parser.java:199) at
Re: Release plugin should tag the revision that was built in the prepare phase
On Fri, Dec 16, 2011 at 12:44 AM, Jörg Schaible joerg.schai...@scalaris.com wrote: Phillip Hellewell wrote: Thanks Todd; can you give me a hint on how to change the goals that get run by release:prepare? See configuration parameters of realase:prepare. Ah yes, here it is: preparationGoals. Thanks. I don't know why I didn't notice that. Does that mean compiling my own special version of the release plugin? No. Just set the parameter up in a pluginMgmt section to inherit it everywhere. Cool, to change the default in a global way. Right now we are using a cheat to avoid building twice. After the release:prepare we do an svn switch to the tag and a mvn deploy, rather than run release:perform. But if we were to take the approach of just not building during the release:prepare phase, we wouldn't have to do that cheat anymore. So the only downside I can see to this approach is that when a build does fail, you end up with a useless tag / version. Thanks, Phillip - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Release plugin should tag the revision that was built in the prepare phase
On Fri, Dec 16, 2011 at 4:51 AM, Olivier Lamy ol...@apache.org wrote: As you use svn, a possible solution is to use remoteTagging=false (http://maven.apache.org/plugins/maven-release-plugin/prepare-mojo.html#remoteTagging) which do svn cp . http://blbl/tags/ Thanks for the tip, but I don't think that has anything to do with my issue. That sounds like a workaround for a bug in older SVN clients that causes tagging to fail. Phillip - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Release plugin should tag the revision that was built in the prepare phase
On Fri, Dec 16, 2011 at 6:24 AM, Thiessen, Todd (Todd) tthies...@avaya.com wrote: http://maven.apache.org/plugins/maven-release-plugin/prepare-mojo.html If you look at the preperationGoal option of the prepare goal, you will see the default is clean verify. If you change with to simple be clean, the prepare phase won't actually try and build the snapshot. Yep, I see it now... IMHO, your second concern isn't very severe if you have continuous integration in place. If you do, you will always know when your snapsnot is sane making the building of the snapshot during the prepare phase virtually useless. You of course don't want to release if your CI shows the build to be broken. Hmm, yeah we do have CI runs going from Jenkins, so I think you're right. As long as we don't launch a release build when the last continuation build failed, then the chance of it failing is very small (although there is a tiny race condition there where someone could slip in a breaking change). Thanks everyone for all your help, and I like all the solutions presented, but what does everyone think of my idea? Would it not be a cool idea to change the release plugin, or at least provide an option, for it to behave by doing an upfront change of the pom file, so that when it reaches the tag stage it tags from that revision instead of having to change the pom file at the end and tag there? Phillip - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: maven-release-plugin: using git where do I see the tag used to build the release in the pom?
No comments on this? How would a scm:bootstrap know which tag to build with git? Regards Mirko On Fri, Dec 16, 2011 at 22:58, Mirko Friedenhagen mfriedenha...@gmail.com wrote: Hello, I know that with SVN the developerConnection and connection are updated to the real URL, that is when I invoke release:prepare with a URL like: https://SVNSERVER/svn/REPO/myproject/branches/release it will be replaced by https://SVNSERVER/svn/REPO/myproject/tags/myproject-1.0 which is fine because now I know which revision to checkout for building the release. With git there is no such possibility to realize this with rewriting the URL AFAIK. So I would have expected however, that maybe the tag element would be updated to reflect the fact, that the pom is the one of release, either to the symbolic name myproject-1.0 or to the hash of the tag. Regards Mirko -- http://illegalstateexception.blogspot.com/ https://github.com/mfriedenhagen/ https://bitbucket.org/mfriedenhagen/ - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
RE: maven-release-plugin: using git where do I see the tag used to build the release in the pom?
Hi Mirko, Did you have a look at the related code? http://maven.apache.org/scm/maven-scm-providers/maven-scm-providers-git/maven-scm-provider-gitexe/xref/org/apache/maven/scm/provider/git/gitexe/command/tag/GitTagCommand.html -Robert From: mfriedenha...@gmail.com Date: Sat, 17 Dec 2011 20:51:02 +0100 Subject: Re: maven-release-plugin: using git where do I see the tag used to build the release in the pom? To: users@maven.apache.org No comments on this? How would a scm:bootstrap know which tag to build with git? Regards Mirko On Fri, Dec 16, 2011 at 22:58, Mirko Friedenhagen mfriedenha...@gmail.com wrote: Hello, I know that with SVN the developerConnection and connection are updated to the real URL, that is when I invoke release:prepare with a URL like: https://SVNSERVER/svn/REPO/myproject/branches/release it will be replaced by https://SVNSERVER/svn/REPO/myproject/tags/myproject-1.0 which is fine because now I know which revision to checkout for building the release. With git there is no such possibility to realize this with rewriting the URL AFAIK. So I would have expected however, that maybe the tag element would be updated to reflect the fact, that the pom is the one of release, either to the symbolic name myproject-1.0 or to the hash of the tag. Regards Mirko -- http://illegalstateexception.blogspot.com/ https://github.com/mfriedenhagen/ https://bitbucket.org/mfriedenhagen/ - 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
using maven for flex on java
I'm using maven for flex on java so I'm completly new to maven. I went through the maven in 5 minutes and i got a better prospective on how to use it. I'm having problems now with two things one from the flex on java book and the maven plug in installed in my eclipse SDK. A) when I enter the code from maven in 5 it works also when I run the code from Maven getting started guide it worked also but when I enter this code from flex on java I get an error mvn archetype:create -DgroupId=org.foj -DartifactId=flex-bugs -DarchetypeArtifactId=maven-archetype-site-simple how do I create a new File or archetype everytime I want a new because I'm going over the steps from maven in five and nothing will work now b)I installed Maven as a plug in for my eclipse SDK and I cant find it when I go to the Run as menu PLEASE PLEASE PLEASE tell me what I'm doing wrong. -- View this message in context: http://maven.40175.n5.nabble.com/using-maven-for-flex-on-java-tp5083136p5083136.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: No POM 1 how do I install my POM (Please help!!!)
Please read http://www.sonatype.com/books/mvnref-book/reference/. You don't hardly ever install a POM. You just run mvn in the directory where it is sitting. On Sat, Dec 17, 2011 at 10:22 AM, Apache Omega jason007tho...@yahoo.com wrote: i'm trying to get maven fully operational but every time i run anything there's an error stating NO POM1 how do I correct this??? Microsoft Windows [Version 6.1.7600] Copyright (c) 2009 Microsoft Corporation. All rights reserved. C:\Users\Administratormvn install:install [INFO] Scanning for projects... [INFO] [INFO] [INFO] Building Maven Stub Project (No POM) 1 [INFO] [INFO] [INFO] BUILD FAILURE [INFO] [INFO] Total time: 0.296s [INFO] Finished at: Sun Dec 18 09:08:37 CST 2011 [INFO] Final Memory: 7M/73M [INFO] [ERROR] Failed to execute goal org.apache.maven.plugins:maven-install-plugin:2.3 .1:install (default-cli): Goal requires a project to execute but there is no POM in this directory (C:\Users\Administrator). Please verify you invoked Maven fro m the correct directory. - [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit ch. [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 rea d the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MissingProject Exception C:\Users\Administratormvn install:install-file -Dfile=path-to-your-artifact-jar -DpomFile=path-to-pom [INFO] Scanning for projects... [INFO] [INFO] [INFO] Building Maven Stub Project (No POM) 1 [INFO] [INFO] [INFO] --- maven-install-plugin:2.3.1:install-file (default-cli) @ standalone-po m --- Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-plugin-api/2.0 .6/maven-plugin-api-2.0.6.pom Downloaded: http://repo1.maven.org/maven2/org/apache/maven/maven-plugin-api/2.0. 6/maven-plugin-api-2.0.6.pom (2 KB at 3.1 KB/sec) Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven/2.0.6/maven-2. 0.6.pom Downloaded: http://repo1.maven.org/maven2/org/apache/maven/maven/2.0.6/maven-2.0 .6.pom (9 KB at 18.4 KB/sec) Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-parent/5/maven -parent-5.pom Downloaded: http://repo1.maven.org/maven2/org/apache/maven/maven-parent/5/maven- parent-5.pom (15 KB at 30.2 KB/sec) Downloading: http://repo1.maven.org/maven2/org/apache/apache/3/apache-3.pom Downloaded: http://repo1.maven.org/maven2/org/apache/apache/3/apache-3.pom (4 KB at 7.0 KB/sec) Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-project/2.0.6/ maven-project-2.0.6.pom Downloaded: http://repo1.maven.org/maven2/org/apache/maven/maven-project/2.0.6/m aven-project-2.0.6.pom (3 KB at 5.0 KB/sec) Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-settings/2.0.6 /maven-settings-2.0.6.pom Downloaded: http://repo1.maven.org/maven2/org/apache/maven/maven-settings/2.0.6/ maven-settings-2.0.6.pom (2 KB at 4.7 KB/sec) Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-model/2.0.6/ma ven-model-2.0.6.pom Downloaded: http://repo1.maven.org/maven2/org/apache/maven/maven-model/2.0.6/mav en-model-2.0.6.pom (3 KB at 6.3 KB/sec) Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-utils/1.4. 1/plexus-utils-1.4.1.pom Downloaded: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-utils/1.4.1 /plexus-utils-1.4.1.pom (2 KB at 3.9 KB/sec) Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus/1.0.11/ple xus-1.0.11.pom Downloaded: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus/1.0.11/plex us-1.0.11.pom (9 KB at 19.6 KB/sec) Downloading: http://repo1.maven.org/maven2/junit/junit/3.8.1/junit-3.8.1.pom Downloaded: http://repo1.maven.org/maven2/junit/junit/3.8.1/junit-3.8.1.pom (998 B at 2.5 KB/sec) Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-utils/1.0. 4/plexus-utils-1.0.4.pom Downloaded: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-utils/1.0.4 /plexus-utils-1.0.4.pom (7 KB at 14.1 KB/sec) Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-profile/2.0.6/ maven-profile-2.0.6.pom Downloaded: http://repo1.maven.org/maven2/org/apache/maven/maven-profile/2.0.6/m aven-profile-2.0.6.pom (2 KB at 3.7 KB/sec) Downloading:
Re: using maven for flex on java
It would help if you would send a message stating what you tried, what you expected to happen, and what happened instead. I have no idea what 'flex on java' is, so I can't guess what's going on. On Sat, Dec 17, 2011 at 4:30 PM, Apache Omega jason007tho...@yahoo.com wrote: I'm using maven for flex on java so I'm completly new to maven. I went through the maven in 5 minutes and i got a better prospective on how to use it. I'm having problems now with two things one from the flex on java book and the maven plug in installed in my eclipse SDK. A) when I enter the code from maven in 5 it works also when I run the code from Maven getting started guide it worked also but when I enter this code from flex on java I get an error mvn archetype:create -DgroupId=org.foj -DartifactId=flex-bugs -DarchetypeArtifactId=maven-archetype-site-simple how do I create a new File or archetype everytime I want a new because I'm going over the steps from maven in five and nothing will work now b)I installed Maven as a plug in for my eclipse SDK and I cant find it when I go to the Run as menu PLEASE PLEASE PLEASE tell me what I'm doing wrong. -- View this message in context: http://maven.40175.n5.nabble.com/using-maven-for-flex-on-java-tp5083136p5083136.html Sent from the Maven - Users mailing list archive at Nabble.com. - 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
mvn package (build failure)
OK these are the steps I took 1)mkdir 2)mvn archetype:generate 3)groupid 4)artifactid 5)mvn compile 6)mvn package (this is where i got the build failure and here's what printed out on the screen) Where did I go wrong? C:\Program Files\apache-maven-3.0.3\my-app\jason\MavenFlexJavaAppmvn package [INFO] Scanning for projects... [INFO] [INFO] [INFO] Building MavenFlexJavaApp Flex 1.0-SNAPSHOT [INFO] [INFO] [INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ MavenFlexJ avaApp --- [debug] execute contextualize [WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] Copying 0 resource [INFO] [INFO] --- flexmojos-maven-plugin:4.1-beta:compile-swf (default-compile-swf) @ M avenFlexJavaApp --- [INFO] Flexmojos 4.1-beta [INFO] Apache License - Version 2.0 (NO WARRANTY) - See COPYRIGHT file [WARNING] No themes are explicitly defined in the theme section or in any scop e=theme dependencies. Flexmojos is now attempting to figure out which themes t o include. (to avoid this warning you should explicitly state your theme depende ncies) [WARNING] Adding spark.css theme because spark.swc was included as a dependency [INFO] Writing configuration dump to C:\Program Files\apache-maven-3.0.3\my-app\ jason\MavenFlexJavaApp\target\MavenFlexJavaApp-1.0-SNAPSHOT-configs.xml [INFO] C:\Program Files\apache-maven-3.0.3\my-app\jason\MavenFlexJavaApp\target\ MavenFlexJavaApp-1.0-SNAPSHOT.swf (570344 bytes) [INFO] [INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ Ma venFlexJavaApp --- [debug] execute contextualize [WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] skip non existing resourceDirectory C:\Program Files\apache-maven-3.0.3\m y-app\jason\MavenFlexJavaApp\src\test\resources [INFO] [INFO] --- flexmojos-maven-plugin:4.1-beta:test-compile (default-test-compile) @ MavenFlexJavaApp --- [INFO] Flexmojos 4.1-beta [INFO] Apache License - Version 2.0 (NO WARRANTY) - See COPYRIGHT file [INFO] Compiling test class: [org.JasonThomas.ShadowInnovations.TestApp] [WARNING] No themes are explicitly defined in the theme section or in any scop e=theme dependencies. Flexmojos is now attempting to figure out which themes t o include. (to avoid this warning you should explicitly state your theme depende ncies) [WARNING] Adding spark.css theme because spark.swc was included as a dependency [INFO] Writing configuration dump to C:\Program Files\apache-maven-3.0.3\my-app\ jason\MavenFlexJavaApp\target\test-classes\TestRunner-configs.xml [INFO] C:\Program Files\apache-maven-3.0.3\my-app\jason\MavenFlexJavaApp\target\ test-classes\TestRunner.swf (960078 bytes) [INFO] [INFO] --- flexmojos-maven-plugin:4.1-beta:test-run (default-test-run) @ MavenFl exJavaApp --- [INFO] Flexmojos 4.1-beta [INFO] Apache License - Version 2.0 (NO WARRANTY) - See COPYRIGHT file [INFO] Running tests C:\Program Files\apache-maven-3.0.3\my-app\jason\MavenFlexJ avaApp\target\test-classes\TestRunner.swf [WARNING] [LAUNCHER] Using regular flashplayer tests [INFO] [INFO] BUILD FAILURE [INFO] [INFO] Total time: 19.588s [INFO] Finished at: Sun Dec 18 21:20:58 CST 2011 [INFO] Final Memory: 18M/342M [INFO] [ERROR] Failed to execute goal org.sonatype.flexmojos:flexmojos-maven-plugin:4.1 -beta:test-run (default-test-run) on project MavenFlexJavaApp: Failed to launch Flash Player. Probably java was not able to find flashplayer. [ERROR] Make sure flashplayer is available on PATH [ERROR] or use -DflashPlayer.command=${flashplayer executable} [ERROR] Read more at: https://docs.sonatype.org/display/FLEXMOJOS/Running+unit+t ests: Cannot run program flashplayer: CreateProcess error=2, The system cannot find the file specified [ERROR] - [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit ch. [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 rea d the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionE xception C:\Program Files\apache-maven-3.0.3\my-app\jason\MavenFlexJavaApp -- View this message in context: http://maven.40175.n5.nabble.com/mvn-package-build-failure-tp5083380p5083380.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: mvn package (build failure)
What part of [ERROR] Failed to execute goal org.sonatype.flexmojos:flexmojos-maven-plugin:4.1 -beta:test-run (default-test-run) on project MavenFlexJavaApp: Failed to launch Flash Player. Probably java was not able to find flashplayer. [ERROR] Make sure flashplayer is available on PATH don't you get? mvn is trying to run the 'flashplayer' command for you, and it isn't on PATH. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org