Re: application url context change is it possible
It should be apps/archiva/conf/application.xml, change context/ On 16/04/2008, Paul G [EMAIL PROTECTED] wrote: Running in stand alone mode is it possible to change the context root of the Archiva application. Currently it is set to archiva I would like to set it to repomanager. Any hint's on which config file controls this? -- View this message in context: http://www.nabble.com/application-url-context-change-is-it-possible-tp16719758p16719758.html Sent from the archiva-users mailing list archive at Nabble.com. -- Brett Porter Blog: http://blogs.exist.com/bporter/
AW: deploying third party artifacts: Unsupported Protocol: 'dav'
thanks much, Brett. the file is being uploaded now, however another error occurs: [ERROR] BUILD ERROR [INFO] [INFO] Error deploying artifact: Failed to transfer file: ... Return code is: 401 so it's an authentication issue. on the local machine (where mvn deploy is called) in settings.xml is configured: server idsomeid/id usernamearchiva-user-with-repo-manager-rights/username passwordpw/password /server /servers any idea what might cause the 401? Do I need to map the server-id to something? M. -Ursprüngliche Nachricht- Von: Brett Porter [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 16. April 2008 13:00 An: archiva-users@maven.apache.org Betreff: Re: deploying third party artifacts: Unsupported Protocol: 'dav' What version of Maven are you using? You may also try without dav: - just http:// is often fine. - Brett On 16/04/2008, Lustig, Marc (Allianz Deutschland AG) [EMAIL PROTECTED] wrote: We are having trouble to deploy 3rd party-artefacts using mvn deploy-plugin. I followed the instructions located here http://maven.apache.org/archiva/guides/getting-started/maven-configurati on.html but the result is [ERROR] BUILD ERROR [INFO] [INFO] Error deploying artifact: Unsupported Protocol: 'dav': Cannot find wagon which supports the requested protocol: dav Component descriptor cannot be found in the component repository: org.apache.maven.wagon.Wagondav. [INFO] [DEBUG] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Error deploying artifact: Unsupported Protocol: 'dav': Cannot find wagon which supports the requested protocol: dav here is the pom.xml used for upload: project modelVersion4.0.0/modelVersion groupIdcom.example/groupId artifactIdwebdav-deploy/artifactId packagingpom/packaging version1/version nameWebdav Deployment POM/name build extensions extension groupIdorg.apache.maven.wagon/groupId artifactIdwagon-webdav/artifactId version1.0-beta-2/version /extension /extensions /build /project -- Brett Porter Blog: http://blogs.exist.com/bporter/
including artifacts
Hi, I don't know if I understood well how it works. If I wanna purchase a new artifact as a normal user and I don't have access to the links for remote repositories, then how can I get ant (example) if I don't know the path and version so it could be added to my archiva repository? There is an easy way to do it? PS: not talking about deploy. Regards, Renato
Re: Error uploading artifact (MRM-753)
Brett proposed to try if the change in wagon for archiva 1.1 will change this. I'll try to free some hours to test it, because it is a very very anoying bug. The repository doesn't have all data and our CI server fails without a real reason. Arnaud On Wed, Apr 16, 2008 at 10:55 AM, Benoit Decherf [EMAIL PROTECTED] wrote: Hi, We are blocked by this issue. This is blocker because if it fails while uploading a jar file, then the pom is already in the repo and the metadata.xml is already updated. It makes the others components that depend on it to fails. Is there any workaround ? The stacktrace shows that it come from the security module (redback). Is it possible to desactivate it ? Benoit -- .. Arnaud HERITIER .. OCTO Technology - aheritier AT octo DOT com www.octo.com | blog.octo.com .. ASF - aheritier AT apache DOT org www.apache.org | maven.apache.org ...
RE: Executing a hook before reading a POM
Hello, yes, you're right there - you could, as Cynthia mentioned, use ${env.parentversion} and pass the env variable on the command line or set it as an environment variable in the system. What we do is use a shell script to update the versions every time we make a new release - I'll send it as attachment. David -Original Message- From: Joshua ChaitinPollak [mailto:[EMAIL PROTECTED] Sent: 15 April 2008 19:22 To: Maven Users List Subject: Re: Executing a hook before reading a POM In this setup, you still need to refer to the version of the parent pom, right? We are just starting to use multi-module pom, and are realizing that all of our modules are going to need to be updated with the parent- pom's version every time we release a new version. Is there any way around this? On Apr 15, 2008, at 7:22 AM, Bernhard David wrote: Hi, what we do is declare all global constants (version numbers etc.) in one parent pom like this: properties version.moudule-xxx1.0/version.module-xxx /properties then in the modules' pom declare it (or a descendent of it) as parent. Then you can just write artifactIdmodule-xxx/artifactId version${version.module-xxx}/version in the actual module pom. Maybe that will help solve your problem. Regards, David -Original Message- From: VUB Stefan Seidel [mailto:[EMAIL PROTECTED] Sent: 15 April 2008 12:30 To: Maven Users List Subject: Re: Executing a hook before reading a POM Hi, use properties myPropertymyValue/myProperty /properties if you want to set fixed properties for the build process. You may also want to have a look at how to use profiles. regards, Stefan [EMAIL PROTECTED] wrote: Hi to all, I am trying to find out how I can get maven to execute a hook before it reads the POM file. But it seems that unless you go in and modify the maven source code, at a user level, there is nothing to be done. I am trying to execute the hook since maven doesn't replace variables within the POM. And I need this information to be statically available within our internal repositories. 1. Is there a smart way to get maven to execute hooks? 2. Am I a little far fetched for trying to implement a hook to do something that Ant could do to pre-process the POM file? Thanks in advance, Fernando - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - 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] -- Joshua ChaitinPollak | Software Engineer Kiva Systems, Inc., 225 Wildwood Ave, Woburn, MA 01970 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: classpath property
Hello, in a plugin, you can get the classpath like this: /** * The project we are dealing with. * @parameter expression=${project} */ private MavenProject m_project; ListString classPath = m_project.getRuntimeClasspathElements(); Greetings, David -Original Message- From: Eric White [mailto:[EMAIL PROTECTED] Sent: 15 April 2008 21:46 To: users@maven.apache.org Subject: classpath property Is there a plain old maven property equivalent to the antrun maven.runtime.classpath reference? I need to filter some resources I'm adding to an assembly, and really don't want to take the long way around with antrun if I can get there directly. Thanks! -- View this message in context: http://www.nabble.com/classpath-property-tp16706768s177p16706768.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: Executing a hook before reading a POM
It appears my attachment didn't work. So here's the script once again: #!/bin/bash -e #* %box% Go through all the pom.xml and set the version number (if present). E.g. =1.1.1-SNAPSHOT= - =1.1.1= and correct the version of the parent. # * %box% Update the version of all modules to indicate that they changed. # * Remove the =-SNAPSHOT= for modules and plugins that weren't changed. E.g. 1.6-SNAPSHOT - 1.6 # make sure you are in right folder if ! [ -e external ] ; then echo Error: Folder 'external' not found. Go to its parent folder (el4j)! exit fi echo Update framework (external and internal) el4jCurrent=$(cat external/pom.xml | grep version.el4j-framework.current -A 1 | tail -n 1 | tr -d ' \t\r\n' | sed 's/-SNAPSHOT//') echo Current version is $el4jCurrent-SNAPSHOT, OK? read dummy echo Enter next el4j version number read el4jNext el4jCurrent=$el4jCurrent-SNAPSHOT echo Replacing '$el4jCurrent' by '$el4jNext', OK? read dummy echo Searching for pom.xml files... # list pom files find ./ -name pom.xml pom.files.txt find ./ -name site.xml pom.files.txt # el4j x.y-SNAPSHOT - x.y # for i in $(cat pom.files.txt) ; do if [ $(grep -c version$el4jCurrent/version $i) -eq 1 ] ; then cat $i | sed s/$el4jCurrent/$el4jNext/ $i.new mv $i.new $i echo FOUND $i else echo - $i fi done ## # el4j modules: remove -SNAPSHOT # ## search=external/pom.xml if [ -e internal ] ; then search=$search internal/pom.xml fi for i in $search ; do cat $i | sed s/-SNAPSHOT$// $i.new mv $i.new $i done echo echo ### ## echo #Work is not finished yet! Search in all pom.xml and site.xml files for the String SNAPSHOT.# echo #It's also a good practice to go through the changes this script made (use svn diff). # echo ### ## echo echo Searching for SNAPSHOT: cat pom.files.txt | xargs grep SNAPSHOT echo echo Correct these files manually if necessary! rm pom.files.txt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Order of executing plugins changed in 2.0.9 ?
Hello, in maven 2.0.8 I can put the following in a pom to execute first cargo:start then cargo:deploy in the pre-integration-test phase. In 2.0.9, maven executes deploy first, which breaks the build. Declaring the plugin once and having two goal entries in the goals doesn't help. plugin groupIdorg.codehaus.cargo/groupId artifactIdcargo-maven2-plugin/artifactId executions execution idstart-container/id phasepre-integration-test/phase goals goalstart/goal /goals /execution /executions /plugin plugin groupIdorg.codehaus.cargo/groupId artifactIdcargo-maven2-plugin/artifactId executions execution iddeploy/id phasepre-integration-test/phase goals goaldeploy/goal /goals /execution /executions /plugin ** Shouldn't an entry like goals goalstart/goal goaldeploy/goal /goals force maven to do start first, then deploy? Is there a way to influence this - or, what are the rules for execution order of plugins in a phase? David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Parents version isn't check for new updates on the remote repository
Hello! I've defined a hierarchical layout using a parent pom.xml : |-module1 | | | |-- pom.xml |-module2 | | | |-- pom.xml | |-- pom.xml Since we are using eclipse, only a flat hierarchy is supported. Therefore, we checkout only the second level in eclipse for development. It works well, once the parent pom is installed on the local repository. The parent pom has a snapshot version and the devlepers shall get the modifications automatically from the remote repository. However, the m2 doens't check the snapshot version for the projects parent pom. Is it a bug? Does maven2 require to have the parent pom in the workspace too? It doens't make sense to me, since I see the parent pom as a normal dependency. Thanks for your help in advance Kuno
Re: Order of executing plugins changed in 2.0.9 ?
Hi, AFAIK, the execution of plugins in the same phase is not consistent. We have used 6 different phases to ensure the ordering is correct. See http://cvs.peopleware.be/training/maven/maven2/buildLifecyclePhases.html for a good list. Stefan Bernhard David wrote: Hello, in maven 2.0.8 I can put the following in a pom to execute first cargo:start then cargo:deploy in the pre-integration-test phase. In 2.0.9, maven executes deploy first, which breaks the build. Declaring the plugin once and having two goal entries in the goals doesn't help. plugin groupIdorg.codehaus.cargo/groupId artifactIdcargo-maven2-plugin/artifactId executions execution idstart-container/id phasepre-integration-test/phase goals goalstart/goal /goals /execution /executions /plugin plugin groupIdorg.codehaus.cargo/groupId artifactIdcargo-maven2-plugin/artifactId executions execution iddeploy/id phasepre-integration-test/phase goals goaldeploy/goal /goals /execution /executions /plugin ** Shouldn't an entry like goals goalstart/goal goaldeploy/goal /goals force maven to do start first, then deploy? Is there a way to influence this - or, what are the rules for execution order of plugins in a phase? David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Executing a hook before reading a POM
Hi Joshua, Joshua ChaitinPollak wrote: In this setup, you still need to refer to the version of the parent pom, right? Yes. We are just starting to use multi-module pom, and are realizing that all of our modules are going to need to be updated with the parent- pom's version every time we release a new version. Is there any way around this? No, not really. Forget about all those recommendations to use properties for the version of the parent POM. This is not suppoerted and using properties for dependency versions is discouraged. Use a project (or company) wide POM to define the versions of your dependencies in a dependencyManagement section. Then you don't have to set any version for the deps in your POMs. To refer the global parent POM you might use simply SNAPSHOT as version for that. Each time you like to release the artifact, you will have to replace it with the latest release of the global POM. You may immediately return to SNAPSHOT after the release then or keep the version number of the released parent until you need a dependency with a newer version. With this approach all artifacts that refer the global POM as SNAPSHOT don't have to be changed if you have to release the global POM (using SNAPSHOT as the next development version). - Jörg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: javadoc problem
2008/4/16, I am Who i am [EMAIL PROTECTED]: Hi All, I was trying to do mvn javadoc:javadoc, and getting the following error org.apache.maven.lifecycle.LifecycleExecutionException: An error has occurred in JavaDocs report generation:Exit code: 1 - javadoc: java.lang.OutOfMemoryError: Please increase memory. For example, on the Sun Classic or HotSpot VMs, add the option -J-Xmx such as -J-Xmx32m. any ideas? Following the suggestion and increase the memory? Antonio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
assembly-plugin behaviour for duplicate dependency (but with different version)
hi, i am using dependency analyzer to pack my app. currently i want to remove some not-needed dependencies. what happened was that respective dependency was not included any longer but instead the same dependency but with different version got packed. so i guess that assembly plugin includes only one library with a certain groupId:artifactId. if it resolves two dependencies with same groupId:artifactId it only includes the latest one. am i right with this assumption? i got a custom assembly-distribution file (never the less it only slightly differs from the standard one - outputFileNameMapping is different): assembly idbinary/id formats formatzip/format /formats includeBaseDirectoryfalse/includeBaseDirectory baseDirectoryall/baseDirectory fileSets fileSet includes include*.jar/include /includes excludes exclude*-sources.jar/exclude /excludes directory${basedir}/target/directory outputDirectory/outputDirectory lineEndingkeep/lineEnding fileMode0644/fileMode /fileSet /fileSets dependencySets dependencySet outputFileNameMapping${groupId}-${artifactId}-${version}.${extension}/outputFileNameMapping outputDirectorylib/outputDirectory /dependencySet /dependencySets /assembly - manuel aldana aldana((at))gmx.de software-engineering blog: http://www.aldana-online.de -- View this message in context: http://www.nabble.com/assembly-plugin-behaviour-for-duplicate-dependency-%28but-with-different-version%29-tp16718250s177p16718250.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]
Re: Deploying Libs to Archiva
I think this was reported as an issue with the timestamp checking (because the ones you sync probably have timestamps older than the last scan). Unfortunately the only way to correct this at the moment is to completely delete the Archiva database and have it recreated (this will not lose any data, it just takes some time). - Brett On 15/04/2008, James Clinton [EMAIL PROTECTED] wrote: I did try that (without attempting to run the build) pressed scan but couldn't see the libs when browsing. Only libs displayed were ones via deploy command... -Original Message- From: David Delbecq [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 15, 2008 12:34 PM To: Maven Users List Subject: Re: Deploying Libs to Archiva En l'instant précis du 15/04/08 13:26, James Clinton s'exprimait en ces termes: Is there a way where I can upload my entire local repository into Archiva as a Managed Repository in one hit, or do I need to use the mvn deploy:deploy-file command for each file? Regards. Just copy the files to the archiva folder on the server filesystem (using scp for example) -- David Delbecq Institut Royal Météorologique Ext:557 - 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] -- Brett Porter Blog: http://blogs.exist.com/bporter/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
scm:bootstrap executes checkout twice
Hello all, I'm sorry threre's already a thread about this subject but , i don't find emmanuel venisse' response after the author posted his pom.xml snippet. I use scm plugin as it is on plugin site. plugin removes the workingdirectory, executes checkout. removes again the workingdirectory and execute chekout again before executes goal. How to avoid this. Thanks in advance. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: disabling default deploy behavior
The next version of the deploy plugin will have the option to skip deployment. http://jira.codehaus.org/browse/MDEPLOY-63 Nice, but rather than each plugin implements the skip feature, it would better to manage this feature at the maven or plexus level instead of the plugins level. See http://www.nabble.com/-Proposal--Skip-feature-tt11576000s177.html#a11578861and http://jira.codehaus.org/browse/MNG-3102 Rémy
Archiva Deployment Problem...
Why can I deploy to the pre-configured internal repository OK, but not my identical custom repository? INTERNAL mvn deploy:deploy-file -Dfile=commons-logging-1.1.1.jar -DgroupId=commons-logging -DartifactId=commons-logging -Dversion=1.1.1 -DrepositoryId=internal -Durl=dav:http://localhost:8080/archiva/repository/internal/ -Dpackaging=jar [INFO] [deploy:deploy-file] Uploading: http://localhost:8080/archiva/repository/internal//commons-logging/commo ns-logging/1.1.1/commons-logging-1.1.1.jar [INFO] Retrieving previous metadata from internal [INFO] Uploading project information for commons-logging 1.1.1 [INFO] Retrieving previous metadata from internal [INFO] Uploading repository metadata for: 'artifact commons-logging:commons-logging' [INFO] [INFO] BUILD SUCCESSFUL CUSTOM mvn deploy:deploy-file -Dfile=commons-logging-1.1.1.jar -DgroupId=commons-logging -DartifactId=commons-logging -Dversion=1.1.1 -DrepositoryId=custom-repos -Durl=dav:http://localhost:8080/archiva/repository/custom/ -Dpackaging=jar [INFO] [deploy:deploy-file] Uploading: http://localhost:8080/archiva/repository/custom//commons-logging/commons -logging/1.1.1/commons-logging-1.1.1.jar [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error deploying artifact: Resource to deploy not found: File: http://localhost:8080/archiva/repository/custom/commons-logging/com mons-logging/1.1.1/commons-logging-1.1.1.jar does not exist The settings.xml includes the server settings. Advice appreciated? DISCLAIMER: This e-mail is confidential and may also be legally privileged. If you are not the intended recipient, use of the information contained in this e-mail (including disclosure, copying or distribution) is prohibited and may be unlawful. Please inform the sender and delete the message immediately from your system. This e-mail is attributed to the sender and may not necessarily reflect the views of the Patsystems Group and no member of the Patsystems Group accepts any liability for any action taken in reliance on the contents of this e-mail (other than where it has a legal or regulatory obligation to do so) or for the consequences of any computer viruses which may have been transmitted by this e-mail. The Patsystems Group comprises Patsystems plc and its subsidiary group of companies. Thank you for your Co-Operation.
mvn install site performs test phase 2 times?
Hi, I use CruiseControl for continous integration. There are many projects, which builds are configured as mvn clean install site. The problem is, that both 'install' and 'site' commands perform tests and some of my tests take about 20-30mins! This is waste of time (of course, both test phases do exactly the same work), so I would like somehow to do only 1 test phase - is that possible? Regards -- View this message in context: http://www.nabble.com/%22mvn-install-site%22-performs-test-phase-2-times--tp16719990s177p16719990.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]
Assembly plugin 2.2-beta-2 shows odd behavior regarding dependencies inclusion
Hello, today I tried to upgrade the Maven assembly plugin from 2.2-beta-1 to 2.2-beta-2. However, I noticed that for my project which consists of multiple modules the resulting binary assembly now contains dependency JAR files multiple times. The assembly descriptor contains the following excerpt (with changed module names): moduleSets moduleSet includes include${pom.groupId}:a/include include${pom.groupId}:b/include include${pom.groupId}:c/include /includes binaries includeDependenciestrue/includeDependencies unpackfalse/unpack outputDirectory/lib/outputDirectory /binaries /moduleSet /moduleSets The projects a, b, c have several dependencies, whereby some of those dependencies refer to identical artifacts (derived from a parent POM), e.g., commons-logging. The resulting ZIP and TAR.GZ assembly files then contain those dependencies multiple times (in the lib folder) with equal names! Im not sure if this is a bug or a feature and I might have missed something. When I change the version back to 2.2-beta-1 it works as expected, i.e., all files exist only once. Any hints? Thanks, Thorsten -- View this message in context: http://www.nabble.com/Assembly-plugin-2.2-beta-2-shows-odd-behavior-regarding-dependencies-inclusion-tp16720569s177p16720569.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]
Re: application url context change is it possible
Cheers Brett That worked a treat Brett Porter wrote: It should be apps/archiva/conf/application.xml, change context/ On 16/04/2008, Paul G [EMAIL PROTECTED] wrote: Running in stand alone mode is it possible to change the context root of the Archiva application. Currently it is set to archiva I would like to set it to repomanager. Any hint's on which config file controls this? -- View this message in context: http://www.nabble.com/application-url-context-change-is-it-possible-tp16719758p16719758.html Sent from the archiva-users mailing list archive at Nabble.com. -- Brett Porter Blog: http://blogs.exist.com/bporter/ -- View this message in context: http://www.nabble.com/application-url-context-change-is-it-possible-tp16719758p16720679.html Sent from the archiva-users mailing list archive at Nabble.com.
application url context change is it possible
Running in stand alone mode is it possible to change the context root of the Archiva application. Currently it is set to archiva I would like to set it to repomanager. Any hint's on which config file controls this? -- View this message in context: http://www.nabble.com/application-url-context-change-is-it-possible-tp16719758p16719758.html Sent from the archiva-users mailing list archive at Nabble.com.
Re: Maven and Ant
Worked perfectly! Thank you! Graham Leggett wrote: amidrunk wrote: I need to use maven's ant tasks from an ant file called by maven. I use the maven-antrun-plugin to call the ant file, and then I use the ant file to copy maven dependencies into a folder. The ant file works on its own, but when called from maven, I get a class loader problem or something; org.apache.tools.ant.Task can't be found. Any idea how to solve this? I would prefer to declare ant as a dependency and then add that dependency to the class path of the antrun plugin, or something like that. The maven-dependency-plugin can be configured to copy maven dependencies into a folder without ant being involved at all. You might be able to work around the ant problem by using the dependency plugin for this. Regards, Graham -- -- View this message in context: http://www.nabble.com/Maven-and-Ant-tp16677068s177p16720008.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]
RE: continuous integration server
I run an instance for TDD. I run another instance for build and release (proprietary maven plugins). I run another instance for delivery (more maven plugins). I then run metrics (yet more plugins) on two instances. All together I run 8 instances on 4 different machines. Works well for us and got us to CMMI level 4 while still working agile. -Original Message- From: Gregory Kick [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 15, 2008 2:08 PM To: Maven Users List Subject: Re: continuous integration server @Liz Just out of curiosity, why would you want to be running multiple instances? On Tue, Apr 15, 2008 at 12:13 PM, Sommers, Elizabeth [EMAIL PROTECTED] wrote: I use Vulcan. I like the fact that I can run multiple instances of it in the same tomcat. It also does everything I need in a CI server. http://code.google.com/p/vulcan/ Liz Sommers [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Gregory Kick http://kickstyle.net/ - 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]
deploying third party artifacts: Unsupported Protocol: 'dav'
We are having trouble to deploy 3rd party-artefacts using mvn deploy-plugin. I followed the instructions located here http://maven.apache.org/archiva/guides/getting-started/maven-configurati on.html but the result is [ERROR] BUILD ERROR [INFO] [INFO] Error deploying artifact: Unsupported Protocol: 'dav': Cannot find wagon which supports the requested protocol: dav Component descriptor cannot be found in the component repository: org.apache.maven.wagon.Wagondav. [INFO] [DEBUG] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Error deploying artifact: Unsupported Protocol: 'dav': Cannot find wagon which supports the requested protocol: dav here is the pom.xml used for upload: project modelVersion4.0.0/modelVersion groupIdcom.example/groupId artifactIdwebdav-deploy/artifactId packagingpom/packaging version1/version nameWebdav Deployment POM/name build extensions extension groupIdorg.apache.maven.wagon/groupId artifactIdwagon-webdav/artifactId version1.0-beta-2/version /extension /extensions /build /project
RE: Executing a hook before reading a POM
Hi, The proper way around this is: Use the release-plugin. When you execute mvn release:prepare and mvn release:perform all the version-number in the parent-element of all modules get updated automatically. Within the pom of the child-modules you remove the version-tag of the project, since all child-modules will inherit the version for the parent in a multi-module-project. With kind regards, Marco Beelen -Original Message- From: Joshua ChaitinPollak [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 15, 2008 7:22 PM To: Maven Users List Subject: Re: Executing a hook before reading a POM In this setup, you still need to refer to the version of the parent pom, right? We are just starting to use multi-module pom, and are realizing that all of our modules are going to need to be updated with the parent- pom's version every time we release a new version. Is there any way around this? On Apr 15, 2008, at 7:22 AM, Bernhard David wrote: Hi, what we do is declare all global constants (version numbers etc.) in one parent pom like this: properties version.moudule-xxx1.0/version.module-xxx /properties then in the modules' pom declare it (or a descendent of it) as parent. Then you can just write artifactIdmodule-xxx/artifactId version${version.module-xxx}/version in the actual module pom. Maybe that will help solve your problem. Regards, David -Original Message- From: VUB Stefan Seidel [mailto:[EMAIL PROTECTED] Sent: 15 April 2008 12:30 To: Maven Users List Subject: Re: Executing a hook before reading a POM Hi, use properties myPropertymyValue/myProperty /properties if you want to set fixed properties for the build process. You may also want to have a look at how to use profiles. regards, Stefan [EMAIL PROTECTED] wrote: Hi to all, I am trying to find out how I can get maven to execute a hook before it reads the POM file. But it seems that unless you go in and modify the maven source code, at a user level, there is nothing to be done. I am trying to execute the hook since maven doesn't replace variables within the POM. And I need this information to be statically available within our internal repositories. 1. Is there a smart way to get maven to execute hooks? 2. Am I a little far fetched for trying to implement a hook to do something that Ant could do to pre-process the POM file? Thanks in advance, Fernando - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - 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] -- Joshua ChaitinPollak | Software Engineer Kiva Systems, Inc., 225 Wildwood Ave, Woburn, MA 01970 ** For information, services and offers, please visit our web site: http://www.klm.com. This e-mail and any attachment may contain confidential and privileged material intended for the addressee only. If you are not the addressee, you are notified that no part of the e-mail or any attachment may be disclosed, copied or distributed, and that any other action related to this e-mail or attachment is strictly prohibited, and may be unlawful. If you have received this e-mail by error, please notify the sender immediately by return e-mail, and delete this message. Koninklijke Luchtvaart Maatschappij NV (KLM), its subsidiaries and/or its employees shall not be liable for the incorrect or incomplete transmission of this e-mail or any attachments, nor responsible for any delay in receipt. Koninklijke Luchtvaart Maatschappij N.V. (also known as KLM Royal Dutch Airlines) is registered in Amstelveen, The Netherlands, with registered number 33014286 ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: deploying third party artifacts: Unsupported Protocol: 'dav'
What version of Maven are you using? You may also try without dav: - just http:// is often fine. - Brett On 16/04/2008, Lustig, Marc (Allianz Deutschland AG) [EMAIL PROTECTED] wrote: We are having trouble to deploy 3rd party-artefacts using mvn deploy-plugin. I followed the instructions located here http://maven.apache.org/archiva/guides/getting-started/maven-configurati on.html but the result is [ERROR] BUILD ERROR [INFO] [INFO] Error deploying artifact: Unsupported Protocol: 'dav': Cannot find wagon which supports the requested protocol: dav Component descriptor cannot be found in the component repository: org.apache.maven.wagon.Wagondav. [INFO] [DEBUG] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Error deploying artifact: Unsupported Protocol: 'dav': Cannot find wagon which supports the requested protocol: dav here is the pom.xml used for upload: project modelVersion4.0.0/modelVersion groupIdcom.example/groupId artifactIdwebdav-deploy/artifactId packagingpom/packaging version1/version nameWebdav Deployment POM/name build extensions extension groupIdorg.apache.maven.wagon/groupId artifactIdwagon-webdav/artifactId version1.0-beta-2/version /extension /extensions /build /project -- Brett Porter Blog: http://blogs.exist.com/bporter/
Maven 1 - snapshot dependencies update problem
Hi everyone, we use maven 1 on out project and we have problem with snapshot dependecies. Our project uses framework that is build every night and deployed to our repository jar:deploy. Versions of all subproject are set to SNAPSHOT. Every morning developers download this snapshots versions. This process is performed by maven again . Project.xml for it looks like this : ... dependency groupId${gdf.groupId}/${gdf.version}/groupId artifactIdC02_SS/artifactId typejar/type jarC02_SS-SNAPSHOT.jar/jar versionSNAPSHOT/version /dependency ... In general it works fine but on some computer not. The output is : ... - Checking for an update of gdf/SNAPSHOT:C04_D1 Skipping download as local copy is up to date! ... But that's not right, caused jars were rebuilt during the night. Why is that happening ? I would be gratefull for any ideas, because I am still a beginner in this. Thanks very much Jan
Re: maven-buildnumber-plugin / revision number last changed rev number
Thanks, nice to know that, but I still cannot find any useful information, don't kow how to configure scm to receive Last Changed Rev number... Dirk Olmes-4 wrote: DCVer wrote: You presented link to buildnumber-maven-plugin. I used maven-buildnumber-plugin - this is quite different plugin i think. Can anyone help with maven-buildnumber-plugin, please? Or maybe better way would be to change plugin? IIRC the buildnumber-maven-plugin started out as maven-buildnumber-plugin but was renamed to match codehaus' default naming conventions when it was moved over to codehaus. -dirk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/maven-buildnumber-plugin---revision-number---last-changed-rev-number-tp16583306s177p16721004.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]
Re: continuous integration server
Matthew Tordoff wrote: Has anyone looked at Bamboo? We have used Bamboo for Mule for quite some time now. The setup seems to be easy (haven't done it) and the day to day operations are supported by the UI, too. The only (big) boo that came up in the whole time we used it was that Bamboo 1.x used to store the entire build log in memory before writing it out in XML at the end of the build. This caused frequent OOMs with our build as it can generate quite a bit of log output. This should be fixed with Bamboo 2.0 now. For my private pet projects I use Hudson and while Bamboo has some concepts that Hudson doesn't have (e.g. Build queues) I like Hudson's approach of extensibility by plugins, e.g. I use the findbugs plugin as part of the build and have Hudson pick up the XML files and render neat timelines of bug increase/decrease etc. -dirk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
sql-maven-plugin and UTF-8
Hello, is anyone having problems with http://mojo.codehaus.org/sql-maven-plugin/when trying to insert data in utf8 encoding? It works when inserting with mysql -u backend -pmasterkey -h localhost portal insert.sql but it inserts garbage when using profile idcreate-initial-data/id build plugins plugin groupIdorg.codehaus.mojo/groupId artifactIdsql-maven-plugin/artifactId configuration !-- drivercom.mysql.jdbc.Driver/driver usernameroot/username passwordpassword/password urljdbc:mysql://${db-host}:3306/url -- !-- skipfalse/skip -- /configuration executions execution idcreate-schema-insert-data/id phasepackage/phase goals goalexecute/goal /goals configuration url jdbc:mysql://${db-host}:3306/portal /url autocommittrue/autocommit srcFiles srcFile src/test/resources/create.ddl /srcFile srcFile src/test/resources/insert.sql /srcFile /srcFiles /configuration /execution /executions /plugin /plugins /build /profile Regards, Borut
Re: sql-maven-plugin and UTF-8
Maybe you just need to append a couple of JDBC url params url jdbc:mysql://${db-host}:3306/portal?useUnicode=yesamp;characterEncoding=UTF-8 /url hth, Manos Borut Bolčina wrote: Hello, is anyone having problems with http://mojo.codehaus.org/sql-maven-plugin/when trying to insert data in utf8 encoding? It works when inserting with mysql -u backend -pmasterkey -h localhost portal insert.sql but it inserts garbage when using profile idcreate-initial-data/id build plugins plugin groupIdorg.codehaus.mojo/groupId artifactIdsql-maven-plugin/artifactId configuration !-- drivercom.mysql.jdbc.Driver/driver usernameroot/username passwordpassword/password urljdbc:mysql://${db-host}:3306/url -- !-- skipfalse/skip -- /configuration executions execution idcreate-schema-insert-data/id phasepackage/phase goals goalexecute/goal /goals configuration url jdbc:mysql://${db-host}:3306/portal /url autocommittrue/autocommit srcFiles srcFile src/test/resources/create.ddl /srcFile srcFile src/test/resources/insert.sql /srcFile /srcFiles /configuration /execution /executions /plugin /plugins /build /profile Regards, Borut - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Parents version isn't check for new updates on the remote repository
Kuno, Why maven wouldn't check from newer versions of snapshot-parent, that is any issue I can't anwser. I do have a solution for your problem though. I would like to suggest: Upgrade your eclipse. Since Eclipse 3.3 it is possible to have overlapping projects. I check out the entire multi-module-project from SVN to a location on my computer outside my eclipse workspace. This becomes a 'General project'. Then I run mvn eclipse:eclipse with the project folder and import the projects for each separate module. When I synchronize with my SVN-repository I also receive the latest version of parent pom and do not need the maven-functionality for retrieving the latest SNAPSHOT of the parent.pom from the snapshot-repository. For me it works like a charm. With kind regards, Marco Beelen -Original Message- From: Baeriswyl Kuno - Extern (IT-BA-MV) [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 16, 2008 9:01 AM To: 'users@maven.apache.org' Subject: Parents version isn't check for new updates on the remote repository Hello! I've defined a hierarchical layout using a parent pom.xml : |-module1 | | | |-- pom.xml |-module2 | | | |-- pom.xml | |-- pom.xml Since we are using eclipse, only a flat hierarchy is supported. Therefore, we checkout only the second level in eclipse for development. It works well, once the parent pom is installed on the local repository. The parent pom has a snapshot version and the devlepers shall get the modifications automatically from the remote repository. However, the m2 doens't check the snapshot version for the projects parent pom. Is it a bug? Does maven2 require to have the parent pom in the workspace too? It doens't make sense to me, since I see the parent pom as a normal dependency. Thanks for your help in advance Kuno ** For information, services and offers, please visit our web site: http://www.klm.com. This e-mail and any attachment may contain confidential and privileged material intended for the addressee only. If you are not the addressee, you are notified that no part of the e-mail or any attachment may be disclosed, copied or distributed, and that any other action related to this e-mail or attachment is strictly prohibited, and may be unlawful. If you have received this e-mail by error, please notify the sender immediately by return e-mail, and delete this message. Koninklijke Luchtvaart Maatschappij NV (KLM), its subsidiaries and/or its employees shall not be liable for the incorrect or incomplete transmission of this e-mail or any attachments, nor responsible for any delay in receipt. Koninklijke Luchtvaart Maatschappij N.V. (also known as KLM Royal Dutch Airlines) is registered in Amstelveen, The Netherlands, with registered number 33014286 ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: Parents version isn't check for new updates on the remote repository
Hi Marco, thanks for your help. Unfortunately, I'm stucked on Eclipse 3.2 since we are using RAD7 (IBM Develoment environement based on Eclipse). However, it's nice to hear that it would be possible in the future and I'm looking forward to it. Many Thanks Kuno -Ursprüngliche Nachricht- Von: Beelen, M. - SPLXL [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 16. April 2008 14:27 An: Maven Users List Betreff: RE: Parents version isn't check for new updates on the remote repository Kuno, Why maven wouldn't check from newer versions of snapshot-parent, that is any issue I can't anwser. I do have a solution for your problem though. I would like to suggest: Upgrade your eclipse. Since Eclipse 3.3 it is possible to have overlapping projects. I check out the entire multi-module-project from SVN to a location on my computer outside my eclipse workspace. This becomes a 'General project'. Then I run mvn eclipse:eclipse with the project folder and import the projects for each separate module. When I synchronize with my SVN-repository I also receive the latest version of parent pom and do not need the maven-functionality for retrieving the latest SNAPSHOT of the parent.pom from the snapshot-repository. For me it works like a charm. With kind regards, Marco Beelen -Original Message- From: Baeriswyl Kuno - Extern (IT-BA-MV) [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 16, 2008 9:01 AM To: 'users@maven.apache.org' Subject: Parents version isn't check for new updates on the remote repository Hello! I've defined a hierarchical layout using a parent pom.xml : |-module1 | | | |-- pom.xml |-module2 | | | |-- pom.xml | |-- pom.xml Since we are using eclipse, only a flat hierarchy is supported. Therefore, we checkout only the second level in eclipse for development. It works well, once the parent pom is installed on the local repository. The parent pom has a snapshot version and the devlepers shall get the modifications automatically from the remote repository. However, the m2 doens't check the snapshot version for the projects parent pom. Is it a bug? Does maven2 require to have the parent pom in the workspace too? It doens't make sense to me, since I see the parent pom as a normal dependency. Thanks for your help in advance Kuno ** For information, services and offers, please visit our web site: http://www.klm.com. This e-mail and any attachment may contain confidential and privileged material intended for the addressee only. If you are not the addressee, you are notified that no part of the e-mail or any attachment may be disclosed, copied or distributed, and that any other action related to this e-mail or attachment is strictly prohibited, and may be unlawful. If you have received this e-mail by error, please notify the sender immediately by return e-mail, and delete this message. Koninklijke Luchtvaart Maatschappij NV (KLM), its subsidiaries and/or its employees shall not be liable for the incorrect or incomplete transmission of this e-mail or any attachments, nor responsible for any delay in receipt. Koninklijke Luchtvaart Maatschappij N.V. (also known as KLM Royal Dutch Airlines) is registered in Amstelveen, The Netherlands, with registered number 33014286 ** - 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: Parents version isn't check for new updates on the remote repository
Kuno, If you are running RAD: Try to do it like I wrote. I'm not sure if support for overlapping projects was added to eclipse 3.2 or eclipse 3.3. I think it was the first and if it was, then RAD7 should support this as well. I won't start asking questions about why you are using RAD for your development, because that could start a long discussion, but I have found out that eclipse with various other plugins work much easier that RAD (At least faster.) (Yes, I know that building EJB's and deploying them on a WebSphere Application Server for testing and debugging, RAD is easier). Good luck with or without RAD, Marco Beelen -Original Message- From: Baeriswyl Kuno - Extern (IT-BA-MV) [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 16, 2008 2:48 PM To: 'Maven Users List' Subject: AW: Parents version isn't check for new updates on the remote repository Hi Marco, thanks for your help. Unfortunately, I'm stucked on Eclipse 3.2 since we are using RAD7 (IBM Develoment environement based on Eclipse). However, it's nice to hear that it would be possible in the future and I'm looking forward to it. Many Thanks Kuno -Ursprüngliche Nachricht- Von: Beelen, M. - SPLXL [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 16. April 2008 14:27 An: Maven Users List Betreff: RE: Parents version isn't check for new updates on the remote repository Kuno, Why maven wouldn't check from newer versions of snapshot-parent, that is any issue I can't anwser. I do have a solution for your problem though. I would like to suggest: Upgrade your eclipse. Since Eclipse 3.3 it is possible to have overlapping projects. I check out the entire multi-module-project from SVN to a location on my computer outside my eclipse workspace. This becomes a 'General project'. Then I run mvn eclipse:eclipse with the project folder and import the projects for each separate module. When I synchronize with my SVN-repository I also receive the latest version of parent pom and do not need the maven-functionality for retrieving the latest SNAPSHOT of the parent.pom from the snapshot-repository. For me it works like a charm. With kind regards, Marco Beelen -Original Message- From: Baeriswyl Kuno - Extern (IT-BA-MV) [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 16, 2008 9:01 AM To: 'users@maven.apache.org' Subject: Parents version isn't check for new updates on the remote repository Hello! I've defined a hierarchical layout using a parent pom.xml : |-module1 | | | |-- pom.xml |-module2 | | | |-- pom.xml | |-- pom.xml Since we are using eclipse, only a flat hierarchy is supported. Therefore, we checkout only the second level in eclipse for development. It works well, once the parent pom is installed on the local repository. The parent pom has a snapshot version and the devlepers shall get the modifications automatically from the remote repository. However, the m2 doens't check the snapshot version for the projects parent pom. Is it a bug? Does maven2 require to have the parent pom in the workspace too? It doens't make sense to me, since I see the parent pom as a normal dependency. Thanks for your help in advance Kuno ** For information, services and offers, please visit our web site: http://www.klm.com. This e-mail and any attachment may contain confidential and privileged material intended for the addressee only. If you are not the addressee, you are notified that no part of the e-mail or any attachment may be disclosed, copied or distributed, and that any other action related to this e-mail or attachment is strictly prohibited, and may be unlawful. If you have received this e-mail by error, please notify the sender immediately by return e-mail, and delete this message. Koninklijke Luchtvaart Maatschappij NV (KLM), its subsidiaries and/or its employees shall not be liable for the incorrect or incomplete transmission of this e-mail or any attachments, nor responsible for any delay in receipt. Koninklijke Luchtvaart Maatschappij N.V. (also known as KLM Royal Dutch Airlines) is registered in Amstelveen, The Netherlands, with registered number 33014286 ** - 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] ** For information, services and offers, please visit our web site: http://www.klm.com. This e-mail and any attachment may contain confidential and privileged material intended for the addressee only. If you are not the addressee, you are notified that no part of the e-mail or any
AW: Parents version isn't check for new updates on the remote repository
Hi, I'm just the little man in the middle. So, don't ask me why we are using RAD. But as you said, the deployment on WAS might be one reason. I haven't any clear statement about nested projects in Eclipse. However, my installation doens't seem to support it. Thanks Kuno -Ursprüngliche Nachricht- Von: Beelen, M. - SPLXL [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 16. April 2008 15:21 An: Maven Users List Betreff: RE: Parents version isn't check for new updates on the remote repository Kuno, If you are running RAD: Try to do it like I wrote. I'm not sure if support for overlapping projects was added to eclipse 3.2 or eclipse 3.3. I think it was the first and if it was, then RAD7 should support this as well. I won't start asking questions about why you are using RAD for your development, because that could start a long discussion, but I have found out that eclipse with various other plugins work much easier that RAD (At least faster.) (Yes, I know that building EJB's and deploying them on a WebSphere Application Server for testing and debugging, RAD is easier). Good luck with or without RAD, Marco Beelen -Original Message- From: Baeriswyl Kuno - Extern (IT-BA-MV) [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 16, 2008 2:48 PM To: 'Maven Users List' Subject: AW: Parents version isn't check for new updates on the remote repository Hi Marco, thanks for your help. Unfortunately, I'm stucked on Eclipse 3.2 since we are using RAD7 (IBM Develoment environement based on Eclipse). However, it's nice to hear that it would be possible in the future and I'm looking forward to it. Many Thanks Kuno -Ursprüngliche Nachricht- Von: Beelen, M. - SPLXL [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 16. April 2008 14:27 An: Maven Users List Betreff: RE: Parents version isn't check for new updates on the remote repository Kuno, Why maven wouldn't check from newer versions of snapshot-parent, that is any issue I can't anwser. I do have a solution for your problem though. I would like to suggest: Upgrade your eclipse. Since Eclipse 3.3 it is possible to have overlapping projects. I check out the entire multi-module-project from SVN to a location on my computer outside my eclipse workspace. This becomes a 'General project'. Then I run mvn eclipse:eclipse with the project folder and import the projects for each separate module. When I synchronize with my SVN-repository I also receive the latest version of parent pom and do not need the maven-functionality for retrieving the latest SNAPSHOT of the parent.pom from the snapshot-repository. For me it works like a charm. With kind regards, Marco Beelen -Original Message- From: Baeriswyl Kuno - Extern (IT-BA-MV) [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 16, 2008 9:01 AM To: 'users@maven.apache.org' Subject: Parents version isn't check for new updates on the remote repository Hello! I've defined a hierarchical layout using a parent pom.xml : |-module1 | | | |-- pom.xml |-module2 | | | |-- pom.xml | |-- pom.xml Since we are using eclipse, only a flat hierarchy is supported. Therefore, we checkout only the second level in eclipse for development. It works well, once the parent pom is installed on the local repository. The parent pom has a snapshot version and the devlepers shall get the modifications automatically from the remote repository. However, the m2 doens't check the snapshot version for the projects parent pom. Is it a bug? Does maven2 require to have the parent pom in the workspace too? It doens't make sense to me, since I see the parent pom as a normal dependency. Thanks for your help in advance Kuno ** For information, services and offers, please visit our web site: http://www.klm.com. This e-mail and any attachment may contain confidential and privileged material intended for the addressee only. If you are not the addressee, you are notified that no part of the e-mail or any attachment may be disclosed, copied or distributed, and that any other action related to this e-mail or attachment is strictly prohibited, and may be unlawful. If you have received this e-mail by error, please notify the sender immediately by return e-mail, and delete this message. Koninklijke Luchtvaart Maatschappij NV (KLM), its subsidiaries and/or its employees shall not be liable for the incorrect or incomplete transmission of this e-mail or any attachments, nor responsible for any delay in receipt. Koninklijke Luchtvaart Maatschappij N.V. (also known as KLM Royal Dutch Airlines) is registered in Amstelveen, The Netherlands, with registered number 33014286 ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Order of executing plugins changed in 2.0.9 ?
They are consistent for a given lifecycle, and a lifecycle is setup for a given packaging. The phases are consistent, what is bound to each phase differs. On 16-Apr-08, at 12:08 AM, VUB Stefan Seidel wrote: Hi, AFAIK, the execution of plugins in the same phase is not consistent. We have used 6 different phases to ensure the ordering is correct. See http://cvs.peopleware.be/training/maven/maven2/buildLifecyclePhases.html for a good list. Stefan Bernhard David wrote: Hello, in maven 2.0.8 I can put the following in a pom to execute first cargo:start then cargo:deploy in the pre-integration-test phase. In 2.0.9, maven executes deploy first, which breaks the build. Declaring the plugin once and having two goal entries in the goals doesn't help. plugin groupIdorg.codehaus.cargo/groupId artifactIdcargo-maven2-plugin/artifactId executions execution idstart-container/id phasepre-integration-test/phase goals goalstart/goal /goals /execution /executions /plugin plugin groupIdorg.codehaus.cargo/groupId artifactIdcargo-maven2-plugin/artifactId executions execution iddeploy/id phasepre-integration-test/phase goals goaldeploy/goal /goals /execution /executions /plugin ** Shouldn't an entry like goals goalstart/goal goaldeploy/goal /goals force maven to do start first, then deploy? Is there a way to influence this - or, what are the rules for execution order of plugins in a phase? David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Thanks, Jason -- Jason van Zyl Founder, Apache Maven jason at sonatype dot com -- We all have problems. How we deal with them is a measure of our worth. -- Unknown - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Maven-assembly-plugin
Hi, I used the following assembly descriptor to create an assembly directory with my project's jar and all the jars that are it's dependencies: assembly iddistribution/id formats formatdir/format /formats includeBaseDirectoryfalse/includeBaseDirectory fileSets fileSet directorytarget/directory outputDirectory/outputDirectory includes include*.jar/include /includes /fileSet /fileSets dependencySets dependencySet outputDirectory/lib/outputDirectory unpackfalse/unpack scoperuntime/scope /dependencySet /dependencySets /assembly However, all the jars that are copied inside lib/ had the version numbers attached to them. Is there a way to filter out these version numbers and just have the jars. Also, if I want to create this assembly directory at a location outside this projects's target directory, where do I specify that path. Thanks and Regards, Venkat - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Order of executing plugins changed in 2.0.9 ?
Hello, after some long hours with the debugger, I discovered the following. If I define a plugin twice like this: plugin groupIdorg.codehaus.cargo/groupId artifactIdcargo-maven2-plugin/artifactId executions execution idstart-container/id phasepre-integration-test/phase goals goalstart/goal /goals /execution /executions /plugin plugin groupIdorg.codehaus.cargo/groupId artifactIdcargo-maven2-plugin/artifactId executions execution iddeploy/id phasepre-integration-test/phase goals goaldeploy/goal /goals /execution /executions /plugin Maven executes the plugins backwards. (Deploy first) However, this can be fixed with plugin groupIdorg.codehaus.cargo/groupId artifactIdcargo-maven2-plugin/artifactId executions execution idstart-container-and-deploy/id phasepre-integration-test/phase goals goalstart/goal goaldeploy/goal /goals /execution /executions /plugin which solves my problem. The backwards issue does seem odd to me - I've posted to the dev list too, asking about it. The point is that the merging is done with the new definition as parent and the old one as child, resulting in the parent coming first. Apart from this, you're right about the ordering. Yours, David Bernhard -Original Message- From: Max Bowsher [mailto:[EMAIL PROTECTED] Sent: 16 April 2008 16:10 To: Maven Users List Subject: Re: Order of executing plugins changed in 2.0.9 ? Bernhard David wrote: in maven 2.0.8 I can put the following in a pom to execute first cargo:start then cargo:deploy in the pre-integration-test phase. In 2.0.9, maven executes deploy first, which breaks the build. VUB Stefan Seidel wrote: AFAIK, the execution of plugins in the same phase is not consistent. I was under the impression that there was ordering of lifecycle bound executions first, then executions from each pom in a parent-child hierarchy in that order, and within each pom, in declaration order. Am I just imagining things? Max. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Order of executing plugins changed in 2.0.9 ?
In practice and to my knowledge and experiences, it has never been like that. If you can make a simple test case that demonstrates this bug and upload to JIRA, I'm sure someone will take a look at it. Wayne - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Order of executing plugins changed in 2.0.9 ?
Thanks - it should be reconstructable from my last mail too, but I'll make a test case anyway to simplify things. David -Original Message- From: Wayne Fay [mailto:[EMAIL PROTECTED] Sent: 16 April 2008 16:23 To: Maven Users List Subject: Re: Order of executing plugins changed in 2.0.9 ? In practice and to my knowledge and experiences, it has never been like that. If you can make a simple test case that demonstrates this bug and upload to JIRA, I'm sure someone will take a look at it. Wayne - 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: Order of executing plugins changed in 2.0.9 ?
Max Bowsher wrote: Bernhard David wrote: in maven 2.0.8 I can put the following in a pom to execute first cargo:start then cargo:deploy in the pre-integration-test phase. In 2.0.9, maven executes deploy first, which breaks the build. VUB Stefan Seidel wrote: AFAIK, the execution of plugins in the same phase is not consistent. I was under the impression that there was ordering of lifecycle bound executions first, then executions from each pom in a parent-child hierarchy in that order, and within each pom, in declaration order. Am I just imagining things? Actually, according to http://docs.codehaus.org/display/MAVENUSER/introduction-to-the-lifecycle you are right: When multiple executions are given that match a particular phase, they are executed in the order specified in the POM, with inherited executions running first. In practice and to my knowledge and experiences, it has never been like that. regards, Stefan -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Order of executing plugins changed in 2.0.9 ?
Bernhard David wrote: in maven 2.0.8 I can put the following in a pom to execute first cargo:start then cargo:deploy in the pre-integration-test phase. In 2.0.9, maven executes deploy first, which breaks the build. VUB Stefan Seidel wrote: AFAIK, the execution of plugins in the same phase is not consistent. I was under the impression that there was ordering of lifecycle bound executions first, then executions from each pom in a parent-child hierarchy in that order, and within each pom, in declaration order. Am I just imagining things? Max. signature.asc Description: OpenPGP digital signature
Re: doubt about getting new artifacts
On Tue, Apr 15, 2008 at 6:18 AM, Renato Souza [EMAIL PROTECTED] wrote: Hi, I don't know if I understood well how it works. If I wanna purchase a new artifact as a normal user and I don't have access to the links for remote repositories. So how can I get ant for example if I don't know the path so it could be added to my archiva repository? Are you talking about using Archiva as a proxy, so that it automatically pulls things from the remote repository? (Following up your own post with more info is better than starting a new thread with the same question.) -- Wendy
Re: Order of executing plugins changed in 2.0.9 ?
On Wed, Apr 16, 2008 at 7:22 AM, Bernhard David [EMAIL PROTECTED] wrote: Hello, after some long hours with the debugger, I discovered the following. If I define a plugin twice like this: What happens if you put both executions in the same plugin? I see you've already solved it by consolidating even further, to one execution with two goals. I'm trying to think of a situation where you'd need to declare a plugin twice in one phase-- usually multiple executions are fine. -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven 2.0.9 complains it can't download maven-surefire-plugin 2.4.2 -- NEED HELP
I see the url you are talking about, but I don't know how to fix it as the URL is being build by maven. The only URL I have defined are in show in the at the bottom of the maven out put below. What is weird is this same configuration works fine in Maven 2.0.8. Any suggestions? Thanks! org.apache.maven.plugins:maven-surefire-plugin:pom:2.4.2 from the specified remote repositories: codehaus.org (http://snapshots.repository.codehaus.org), maven.org (http://repo1.maven.org/maven2/org/apache/maven/), aviall-maven-repo (http://xxx.xxx.xxx.xxx/svn-repos), central (http://repo1.maven.org/maven2), apache.org (http://people.apache.org/repo/m2-snapshot-repository) for project org.apache.maven.plugins:maven-surefire-plugin Wayne Fay [EMAIL PROTECTED] omTo Maven Users List 04/15/2008 11:44 users@maven.apache.org PM cc Subject Please respond to Re: Maven 2.0.9 complains it can't Maven Usersdownload maven-surefire-plugin List 2.4.2 -- NEED HELP [EMAIL PROTECTED] he.org That first URL has an extra org/apache/maven/ in it, and an extra / too. I imagine this is the source of your troubles. Wayne On 4/15/08, Brian E. Fox [EMAIL PROTECTED] wrote: The reason you see this with 2.0.9 is probably because it bumped you up to surefire 2.4.2, but otherwise nothing in 2.0.9 changed that should affect this. It's a little hard to know why you can't get that jar. Are you able to load it from a browser without a proxy? Adding the ibiblio repo won't help if you aren't able to get to the main repo. -Original Message- From: Tonté Pouncil [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 15, 2008 12:16 PM To: users@maven.apache.org Subject: Maven 2.0.9 complains it can't download maven-surefire-plugin 2.4.2 -- NEED HELP I just downloaded Maven 2.0.9. I was using Maven 2.0.8. When I tried to run the clean install goal, Maven complains it can't download maven-surefire-plugin. (See below for maven output.) How do I fix this? How do I set up the ibiblio maven 2 repository in my setting.xml file as a profile. What is the URL to the ibiblio maven 2 repository? Thanks! Tonté Downloading: http://repo1.maven.org/maven2/org/apache/maven//org/apache/maven/plugins/maven-surefire-plugin/2.4.2 /maven-surefire-plugin-2.4.2.pom Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.4.2 /maven-surefire-plugin-2.4.2.pom Downloading: http://172.18.10.165 /svn-repos/org/apache/maven/plugins/maven-surefire-plugin/2.4.2 /maven-surefire-plugin-2.4.2.pom Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.4.2 /maven-surefire-plugin-2.4.2.pom [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error building POM (may not be this project's POM). Project ID: org.apache.maven.plugins:maven-surefire-plugin Reason: POM 'org.apache.maven.plugins:maven-surefire-plugin' not found in repository: Unable to download the artifact from any repository org.apache.maven.plugins:maven-surefire-plugin:pom:2.4.2 from the specified remote repositories: codehaus.org (http://snapshots.repository.codehaus.org), maven.org (http://repo1.maven.org/maven2/org/apache/maven/), aviall-maven-repo (http://xxx.xxx.xxx.xxx/svn-repos), central (http://repo1.maven.org/maven2), apache.org (http://people.apache.org/repo/m2-snapshot-repository) for project org.apache.maven.plugins:maven-surefire-plugin _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ This e-mail message, including attachments, may contain confidential, proprietary, or export controlled information. Any unauthorized disclosure, distribution, or other use is prohibited, unless expressly authorized. If you receive this e-mail in error, please notify the sender, and
RE: Maven-assembly-plugin
Hi, I used the following assembly descriptor to create an assembly directory with my project's jar and all the jars that are it's dependencies: assembly iddistribution/id formats formatdir/format /formats includeBaseDirectoryfalse/includeBaseDirectory fileSets fileSet directorytarget/directory outputDirectory/outputDirectory includes include*.jar/include /includes /fileSet /fileSets dependencySets dependencySet outputDirectory/lib/outputDirectory unpackfalse/unpack scoperuntime/scope /dependencySet /dependencySets /assembly However, all the jars that are copied inside lib/ had the version numbers attached to them. Is there a way to filter out these version numbers and just have the jars. Also, if I want to create this assembly directory at a location outside this projects's target directory, where do I specify that path. Thanks and Regards, Venkat - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven 2.0.9 complains it can't download maven-surefire-plugin 2.4.2 -- NEED HELP
Ok I have fixed the malformed URL; but still no luck. In my pom I had a configuration for plugin repositories: pluginRepositories pluginRepository releases updatePolicydaily/updatePolicy checksumPolicywarn/checksumPolicy /releases snapshots updatePolicydaily/updatePolicy checksumPolicywarn/checksumPolicy /snapshots idmaven.org/id urlhttp://repo1.maven.org/maven2/org/apache/maven//url /pluginRepository /pluginRepositories See maven out put below: C:\dev\projects\aviall\aviall-edi\aviall-edi-projectmvn clean test [INFO] Scanning for projects... [INFO] Reactor build order: [INFO] aviall-edi [INFO] aviall-edi-site [INFO] aviall-edi-commons [INFO] aviall-edi-process-engine-module [INFO] aviall-edi-order-process-module [INFO] aviall-edi-processor-application-module [INFO] [INFO] Building aviall-edi [INFO]task-segment: [clean, test] [INFO] Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.4.2 /maven-surefire-plugin-2.4.2.pom Downloading: http://172.18.10.165 /svn-repos/org/apache/maven/plugins/maven-surefire-plugin/2.4.2 /maven-surefire-plugin-2.4.2.pom Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.4.2 /maven-surefire-plugin-2.4.2.pom [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error building POM (may not be this project's POM). Project ID: org.apache.maven.plugins:maven-surefire-plugin Reason: POM 'org.apache.maven.plugins:maven-surefire-plugin' not found in repository: Unable to download the artifact from any repository org.apache.maven.plugins:maven-surefire-plugin:pom:2.4.2 from the specified remote repositories: codehaus.org (http://snapshots.repository.codehaus.org), aviall-maven-repo (http://xxx.xxx.xxx.xxx/svn-repos), central (http://repo1.maven.org/maven2), apache.org (http://people.apache.org/repo/m2-snapshot-repository) for project org.apache.maven.plugins:maven-surefire-plugin [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 2 seconds [INFO] Finished at: Wed Apr 16 09:39:28 CDT 2008 [INFO] Final Memory: 2M/4M [INFO] Tonté Pouncil [EMAIL PROTECTED] iall.com To Maven Users List 04/16/2008 09:35 users@maven.apache.org AM cc Subject Please respond to Re: Maven 2.0.9 complains it can't Maven Usersdownload maven-surefire-plugin List 2.4.2 -- NEED HELP [EMAIL PROTECTED] he.org I see the url you are talking about, but I don't know how to fix it as the URL is being build by maven. The only URL I have defined are in show in the at the bottom of the maven out put below. What is weird is this same configuration works fine in Maven 2.0.8. Any suggestions? Thanks! org.apache.maven.plugins:maven-surefire-plugin:pom:2.4.2 from the specified remote repositories: codehaus.org (http://snapshots.repository.codehaus.org), maven.org (http://repo1.maven.org/maven2/org/apache/maven/), aviall-maven-repo (http://xxx.xxx.xxx.xxx/svn-repos), central (http://repo1.maven.org/maven2), apache.org (http://people.apache.org/repo/m2-snapshot-repository) for project org.apache.maven.plugins:maven-surefire-plugin Wayne Fay [EMAIL PROTECTED] omTo Maven Users List 04/15/2008 11:44
Re: Maven-assembly-plugin
To change the format for the dependency artifacts, add something like the following to the dependencySet: outputFileNameMapping${artifact.artifactId}.${artifact.extension}/outputFileNameMapping For other options to fine-tune your assembly configuration, see: http://maven.apache.org/plugins/maven-assembly-plugin/single-mojo.html -john On Wed, Apr 16, 2008 at 10:32 AM, Krishnamurthi, Venkat [EMAIL PROTECTED] wrote: Hi, I used the following assembly descriptor to create an assembly directory with my project's jar and all the jars that are it's dependencies: assembly iddistribution/id formats formatdir/format /formats includeBaseDirectoryfalse/includeBaseDirectory fileSets fileSet directorytarget/directory outputDirectory/outputDirectory includes include*.jar/include /includes /fileSet /fileSets dependencySets dependencySet outputDirectory/lib/outputDirectory unpackfalse/unpack scoperuntime/scope /dependencySet /dependencySets /assembly However, all the jars that are copied inside lib/ had the version numbers attached to them. Is there a way to filter out these version numbers and just have the jars. Also, if I want to create this assembly directory at a location outside this projects's target directory, where do I specify that path. Thanks and Regards, Venkat - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- John Casey --- Maven Developer (http://maven.apache.org) --- Blog: http://www.ejlife.net/blogs/buildchimp
RE: Order of executing plugins changed in 2.0.9 ?
Hello, due to the way merging is done (a plugin can have many executions, but there cannot be two plugin definitions with the same name and phase) if you add two executions no merging is done and all is fine. This issue arose because in EL4J we used to have two definitions in our pom file which worked fine up until 2.0.8 - I've changed that now. I suppose you might need two if they are both in different profiles or different pom files. David -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: 16 April 2008 16:29 To: Maven Users List Subject: Re: Order of executing plugins changed in 2.0.9 ? On Wed, Apr 16, 2008 at 7:22 AM, Bernhard David [EMAIL PROTECTED] wrote: Hello, after some long hours with the debugger, I discovered the following. If I define a plugin twice like this: What happens if you put both executions in the same plugin? I see you've already solved it by consolidating even further, to one execution with two goals. I'm trying to think of a situation where you'd need to declare a plugin twice in one phase-- usually multiple executions are fine. -- Wendy - 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: Maven 2.0.9 complains it can't download maven-surefire-plugin 2.4.2 -- NEED HELP
The reason you see this with 2.0.9 is probably because it bumped you up to surefire 2.4.2, but otherwise nothing in 2.0.9 changed that should affect this. It's a little hard to know why you can't get that jar. Are you able to load it from a browser without a proxy? Brian, yes I am able to load it from a browser without a proxy. Let me check my proxy settings I think for got to set these up for Maven 2.0.9! Tonté Pouncil [EMAIL PROTECTED] iall.com To Maven Users List 04/16/2008 09:44 users@maven.apache.org AM cc Subject Please respond to Re: Maven 2.0.9 complains it can't Maven Usersdownload maven-surefire-plugin List 2.4.2 -- NEED HELP [EMAIL PROTECTED] he.org Ok I have fixed the malformed URL; but still no luck. In my pom I had a configuration for plugin repositories: pluginRepositories pluginRepository releases updatePolicydaily/updatePolicy checksumPolicywarn/checksumPolicy /releases snapshots updatePolicydaily/updatePolicy checksumPolicywarn/checksumPolicy /snapshots idmaven.org/id urlhttp://repo1.maven.org/maven2/org/apache/maven//url /pluginRepository /pluginRepositories See maven out put below: C:\dev\projects\aviall\aviall-edi\aviall-edi-projectmvn clean test [INFO] Scanning for projects... [INFO] Reactor build order: [INFO] aviall-edi [INFO] aviall-edi-site [INFO] aviall-edi-commons [INFO] aviall-edi-process-engine-module [INFO] aviall-edi-order-process-module [INFO] aviall-edi-processor-application-module [INFO] [INFO] Building aviall-edi [INFO]task-segment: [clean, test] [INFO] Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.4.2 /maven-surefire-plugin-2.4.2.pom Downloading: http://172.18.10.165 /svn-repos/org/apache/maven/plugins/maven-surefire-plugin/2.4.2 /maven-surefire-plugin-2.4.2.pom Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.4.2 /maven-surefire-plugin-2.4.2.pom [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error building POM (may not be this project's POM). Project ID: org.apache.maven.plugins:maven-surefire-plugin Reason: POM 'org.apache.maven.plugins:maven-surefire-plugin' not found in repository: Unable to download the artifact from any repository org.apache.maven.plugins:maven-surefire-plugin:pom:2.4.2 from the specified remote repositories: codehaus.org (http://snapshots.repository.codehaus.org), aviall-maven-repo (http://xxx.xxx.xxx.xxx/svn-repos), central (http://repo1.maven.org/maven2), apache.org (http://people.apache.org/repo/m2-snapshot-repository) for project org.apache.maven.plugins:maven-surefire-plugin [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 2 seconds [INFO] Finished at: Wed Apr 16 09:39:28 CDT 2008 [INFO] Final Memory: 2M/4M [INFO] Tonté Pouncil [EMAIL PROTECTED] iall.com To Maven Users List 04/16/2008 09:35 users@maven.apache.org AM cc Subject Please respond to Re: Maven 2.0.9 complains it can't Maven Usersdownload maven-surefire-plugin
Re: Maven 2.0.9 complains it can't download maven-surefire-plugin 2.4.2 -- NEED HELP
Yup that was it! When migrating to Maven 2.0.9 I forgot to port over all of my setting.xml configurations. Thanks Guys for your help! Tonté Tonté Pouncil [EMAIL PROTECTED] iall.com To Maven Users List 04/16/2008 09:48 users@maven.apache.org AM cc Subject Please respond to Re: Maven 2.0.9 complains it can't Maven Usersdownload maven-surefire-plugin List 2.4.2 -- NEED HELP [EMAIL PROTECTED] he.org The reason you see this with 2.0.9 is probably because it bumped you up to surefire 2.4.2, but otherwise nothing in 2.0.9 changed that should affect this. It's a little hard to know why you can't get that jar. Are you able to load it from a browser without a proxy? Brian, yes I am able to load it from a browser without a proxy. Let me check my proxy settings I think for got to set these up for Maven 2.0.9! Tonté Pouncil [EMAIL PROTECTED] iall.com To Maven Users List 04/16/2008 09:44 users@maven.apache.org AM cc Subject Please respond to Re: Maven 2.0.9 complains it can't Maven Usersdownload maven-surefire-plugin List 2.4.2 -- NEED HELP [EMAIL PROTECTED] he.org Ok I have fixed the malformed URL; but still no luck. In my pom I had a configuration for plugin repositories: pluginRepositories pluginRepository releases updatePolicydaily/updatePolicy checksumPolicywarn/checksumPolicy /releases snapshots updatePolicydaily/updatePolicy checksumPolicywarn/checksumPolicy /snapshots idmaven.org/id urlhttp://repo1.maven.org/maven2/org/apache/maven//url /pluginRepository /pluginRepositories See maven out put below: C:\dev\projects\aviall\aviall-edi\aviall-edi-projectmvn clean test [INFO] Scanning for projects... [INFO] Reactor build order: [INFO] aviall-edi [INFO] aviall-edi-site [INFO] aviall-edi-commons [INFO] aviall-edi-process-engine-module [INFO] aviall-edi-order-process-module [INFO] aviall-edi-processor-application-module [INFO] [INFO] Building aviall-edi [INFO]task-segment: [clean, test] [INFO] Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.4.2 /maven-surefire-plugin-2.4.2.pom Downloading: http://172.18.10.165 /svn-repos/org/apache/maven/plugins/maven-surefire-plugin/2.4.2 /maven-surefire-plugin-2.4.2.pom Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.4.2 /maven-surefire-plugin-2.4.2.pom [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error building POM (may not be this project's POM). Project ID: org.apache.maven.plugins:maven-surefire-plugin Reason: POM 'org.apache.maven.plugins:maven-surefire-plugin' not found in repository: Unable to download the artifact from any repository org.apache.maven.plugins:maven-surefire-plugin:pom:2.4.2 from the specified remote repositories: codehaus.org (http://snapshots.repository.codehaus.org), aviall-maven-repo (http://xxx.xxx.xxx.xxx/svn-repos), central (http://repo1.maven.org/maven2), apache.org (http://people.apache.org/repo/m2-snapshot-repository) for project org.apache.maven.plugins:maven-surefire-plugin [INFO] [INFO] For more information, run Maven with the -e switch [INFO]
Maven2 Eclipse Plugin - ordering of .classpath entries
Hi everybody, I am using Maven2 with the Maven2 Eclipse plugin and in my project I would like to use a newer version of JaxWS (https://jax-ws.dev.java.net/) than the one supplied with JDK6. When using the eclipse goal ($ mvn eclipse:eclipse) the generated .classpath file in my project directory contains all relevant entries headed by the entry for the JRE container. ---CODE--- classpath classpathentry kind=src path=src/main/java/ classpathentry kind=output path=target/classes/ classpathentry kind=con path=org.eclipse.jdt.launching.JRE_CONTAINER/ classpathentry kind=var path=M2_REPO/commons-lang/commons-lang/2.3/commons-lang-2.3.jar sourcepath=M2_REPO/commons-lang/commons-lang/2.3/commons-lang-2.3-sources.jar/ !-- MORE ENTRIES -- classpathentry kind=var path=M2_REPO/dev/java/net/jaxws-api/2.1.1/jaxws-api-2.1.1.jar/ !-- EVEN MORE ENTRIES -- classpathentry kind=var path=M2_REPO/commons-logging/commons-logging/1.1/commons-logging-1.1.jar sourcepath=M2_REPO/commons-logging/commons-logging/1.1/commons-logging-1.1-sources.jar/ /classpath ---/CODE--- As long as the JRE_CONTAINER is mentioned and loaded first my project will not compile in Eclipse. When I set the order of the classpath entries in Eclipse (Properties - Java Build Path - Order and Export, setting the entry for JRE_CONTAINER to the 'bottom') my project will compile. Is there a way to control the order in which these classpath entries (and the one for the JRE_CONTAINER in particular) are written to the .classpath file? Is there a better way to do what I'm trying to do? ;) Thx Patrick -- View this message in context: http://www.nabble.com/Maven2-Eclipse-Plugin---ordering-of-.classpath-entries-tp16722527s177p16722527.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]
maven asembly plugin: merge META-INF
Hi, the asembly plugin creates a (executeable) jar file of my project. I have several concept-plugins that contain a META-INF/foo/bar file. It is a simple java Properties file. Can the assembly-plugin merge all foo/bar files into one big Properties file? (filename is always the same, but keys are different!) Jan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven2 Eclipse Plugin - ordering of .classpath entries
I get a similar issue, but using StandardVMType/J2SE-1.5 as JRE container on a JDK 6.0 This creates (unmodifiable) allowed/forbidden acces rules on eclipse classpath. As the JRE is first in library ordering, I cannot include jax-ws API that is allways resolved as forbidden. Having any hook to force the javax.ws* libs first solves this... Maybe the eclipse plugin could detect java* and javax* groupIds and force them as toplevel ? This would require : - improve EclipseConfigWriter to have a new getJavaApiDeps(), and remove those deps from getDepsOrdered - improve EclipseClasspathWriter to write getJavaApiDeps prior to the JRE container. Could you create a Jira issue for this ? Nico. 2008/4/16, Patrick Zeising [EMAIL PROTECTED]: Hi everybody, I am using Maven2 with the Maven2 Eclipse plugin and in my project I would like to use a newer version of JaxWS (https://jax-ws.dev.java.net/) than the one supplied with JDK6. When using the eclipse goal ($ mvn eclipse:eclipse) the generated .classpath file in my project directory contains all relevant entries headed by the entry for the JRE container. ---CODE--- classpath classpathentry kind=src path=src/main/java/ classpathentry kind=output path=target/classes/ classpathentry kind=con path=org.eclipse.jdt.launching.JRE_CONTAINER/ classpathentry kind=var path=M2_REPO/commons-lang/commons-lang/2.3/commons-lang-2.3.jar sourcepath=M2_REPO/commons-lang/commons-lang/2.3/commons-lang-2.3-sources.jar/ !-- MORE ENTRIES -- classpathentry kind=var path=M2_REPO/dev/java/net/jaxws-api/2.1.1/jaxws-api-2.1.1.jar/ !-- EVEN MORE ENTRIES -- classpathentry kind=var path=M2_REPO/commons-logging/commons-logging/1.1/commons-logging-1.1.jar sourcepath=M2_REPO/commons-logging/commons-logging/1.1/commons-logging-1.1-sources.jar/ /classpath ---/CODE--- As long as the JRE_CONTAINER is mentioned and loaded first my project will not compile in Eclipse. When I set the order of the classpath entries in Eclipse (Properties - Java Build Path - Order and Export, setting the entry for JRE_CONTAINER to the 'bottom') my project will compile. Is there a way to control the order in which these classpath entries (and the one for the JRE_CONTAINER in particular) are written to the .classpath file? Is there a better way to do what I'm trying to do? ;) Thx Patrick -- View this message in context: http://www.nabble.com/Maven2-Eclipse-Plugin---ordering-of-.classpath-entries-tp16722527s177p16722527.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]
RE: Maven-assembly-plugin
Thanks John. That worked. Is there a way to override the location which is currently {basedir}/target/finalName-descriptorId.dir/lib to any other directory outside this project's directory. Thanks and Regards, Venkat -Original Message- From: John Casey [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 16, 2008 10:45 AM To: Maven Users List Subject: Re: Maven-assembly-plugin To change the format for the dependency artifacts, add something like the following to the dependencySet: outputFileNameMapping${artifact.artifactId}.${artifact.extension}/out putFileNameMapping For other options to fine-tune your assembly configuration, see: http://maven.apache.org/plugins/maven-assembly-plugin/single-mojo.html -john On Wed, Apr 16, 2008 at 10:32 AM, Krishnamurthi, Venkat [EMAIL PROTECTED] wrote: Hi, I used the following assembly descriptor to create an assembly directory with my project's jar and all the jars that are it's dependencies: assembly iddistribution/id formats formatdir/format /formats includeBaseDirectoryfalse/includeBaseDirectory fileSets fileSet directorytarget/directory outputDirectory/outputDirectory includes include*.jar/include /includes /fileSet /fileSets dependencySets dependencySet outputDirectory/lib/outputDirectory unpackfalse/unpack scoperuntime/scope /dependencySet /dependencySets /assembly However, all the jars that are copied inside lib/ had the version numbers attached to them. Is there a way to filter out these version numbers and just have the jars. Also, if I want to create this assembly directory at a location outside this projects's target directory, where do I specify that path. Thanks and Regards, Venkat - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- John Casey --- Maven Developer (http://maven.apache.org) --- Blog: http://www.ejlife.net/blogs/buildchimp - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Order of executing plugins changed in 2.0.9 ?
Hello, the problem occurs when merging the two definitions of the same plugin into one. John Casey from the maven team just commented on the JIRA issue I submitted on this that two definitions of the same plugin in one pom should be a validation error. As far as two different plugins go, I haven't tested it but I imagine, as they are not merged, that the execution order is the order they are defined in the pom. I'd be thankful if anyone could confirm or refute that statement though. David -Original Message- From: VUB Stefan Seidel [mailto:[EMAIL PROTECTED] Sent: 16 April 2008 17:08 To: Maven Users List Subject: Re: Order of executing plugins changed in 2.0.9 ? Wendy Smoak wrote: On Wed, Apr 16, 2008 at 7:22 AM, Bernhard David [EMAIL PROTECTED] wrote: Hello, after some long hours with the debugger, I discovered the following. If I define a plugin twice like this: What happens if you put both executions in the same plugin? I see you've already solved it by consolidating even further, to one execution with two goals. I'm trying to think of a situation where you'd need to declare a plugin twice in one phase-- usually multiple executions are fine. The problem is: if it doesn't work with the same plugin twice, it will most probably not work with two different plugins - that's what I had here. Stefan -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - 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: Order of executing plugins changed in 2.0.9 ?
Wendy Smoak wrote: On Wed, Apr 16, 2008 at 7:22 AM, Bernhard David [EMAIL PROTECTED] wrote: Hello, after some long hours with the debugger, I discovered the following. If I define a plugin twice like this: What happens if you put both executions in the same plugin? I see you've already solved it by consolidating even further, to one execution with two goals. I'm trying to think of a situation where you'd need to declare a plugin twice in one phase-- usually multiple executions are fine. The problem is: if it doesn't work with the same plugin twice, it will most probably not work with two different plugins - that's what I had here. Stefan -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] How to set location of activemq-data?
I am running ActiveMQ and I keep getting ${basedir}/activemq-data when what I want is ${basedire}/target/activemq-data Where would I set this? -- Thanks, Mick Knutson http://www.baselogic.com http://www.blincmagazine.com http://www.linkedin.com/in/mickknutson http://www.djmick.com http://www.myspace.com/mickknutson http://www.myspace.com/BLiNCMagazine http://tahoe.baselogic.com ---
maven 2.0.9 create-from-project error
Hi, when running mvn archetype:create-from-project from the project directory I get an error message saying could not start c:\tools\maven-2.0.9\bin\mvn archetype:create-from-project has the process for creating archetypes from existing projects changed? ..kace -- View this message in context: http://www.nabble.com/maven-2.0.9-create-from-project-error-tp16722568s177p16722568.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]
Re: sql-maven-plugin and UTF-8
encodingUTF-8/encoding this is in latest snapshot, please give it a try -D On Wed, Apr 16, 2008 at 5:07 AM, Manos Batsis [EMAIL PROTECTED] wrote: Maybe you just need to append a couple of JDBC url params url jdbc:mysql://${db-host}:3306/portal?useUnicode=yesamp;characterEncoding=UTF-8 /url hth, Manos Borut Bolčina wrote: Hello, is anyone having problems with http://mojo.codehaus.org/sql-maven-plugin/when trying to insert data in utf8 encoding? It works when inserting with mysql -u backend -pmasterkey -h localhost portal insert.sql but it inserts garbage when using profile idcreate-initial-data/id build plugins plugin groupIdorg.codehaus.mojo/groupId artifactIdsql-maven-plugin/artifactId configuration !-- drivercom.mysql.jdbc.Driver/driver usernameroot/username passwordpassword/password urljdbc:mysql://${db-host}:3306/url -- !-- skipfalse/skip -- /configuration executions execution idcreate-schema-insert-data/id phasepackage/phase goals goalexecute/goal /goals configuration url jdbc:mysql://${db-host}:3306/portal /url autocommittrue/autocommit srcFiles srcFile src/test/resources/create.ddl /srcFile srcFile src/test/resources/insert.sql /srcFile /srcFiles /configuration /execution /executions /plugin /plugins /build /profile Regards, Borut - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: Expanding ... into null
Hello, I had sent an email to this list a week ago (see below). I finally found out where the problem is (by running maven in debug mode: mvn -X). I think I'm going to file an issue against dependency:unpack-dependencies, because it treats a file URL badly. Expanding a dependency fails when I specify the local repository in settings.xml like this: localRepositoryfile:///C:/Documents and Settings/myuser/.m2/repository/localRepository The file URL is honored when artifacts are downloaded, but not when a dependency is expanded. This is a bug, or at least inconsistent. So artifacts go to C:/Documents and Settings/myuser/.m2/repository, which is as expected. But an artifact is expanded to the directory where mvn was executed, instead of .unpacked-modules in the repository. All goes well if I specify the local repository without the file:/// prefix: localRepositoryC:/Documents and Settings/myuser/.m2/repository/localRepository Heiko PS: Here is a bit of the debug output which shows what went wrong with outputDirectory: [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-dependency-plugin:2.0-alpha-4:unpack-dependencies' -- [DEBUG] (f) excludeTransitive = false [DEBUG] (s) failOnMissingClassifierArtifact = true [DEBUG] (f) includeTypes = zip [DEBUG] (s) local = [local] - file:///C:/Documents and Settings/myuser/.m2/repository [DEBUG] (s) markersDirectory = C:\src\myproject\trunk\core-cpp\subproject\target\dependency-maven-plugin-markers [DEBUG] (f) outputAbsoluteArtifactFilename = false [DEBUG] (s) outputDirectory = C:\src\myproject\trunk\core-cpp\subproject\file:\C:\Documents and Settings\myuser\.m2\repository\.unpacked-modules [DEBUG] (f) overWriteIfNewer = true [DEBUG] (f) overWriteReleases = false [DEBUG] (f) overWriteSnapshots = false [DEBUG] (f) project = MavenProject: com.company.project.core-cpp:ams-activemq:4.0.0-0-SNAPSHOT @ C:\src\myproject\trunk\core-cpp\subproject\pom.xml [DEBUG] (f) reactorProjects = [MavenProject: com.company.project.core-cpp:ams-activemq:4.0.0-0-SNAPSHOT @ C:\src\myproject\trunk\core-cpp\subproject\pom.xml] [DEBUG] (s) remoteRepos = [[central-snapshot] - http://localrepo.intra.net/maven-proxy/repository/snapshot, [central] - http://localrepo.intra.net/maven-proxy/repository/release] [DEBUG] (f) silent = false [DEBUG] (s) stripVersion = false [DEBUG] (f) type = java-source [DEBUG] (s) useRepositoryLayout = false [DEBUG] (s) useSubDirectoryPerArtifact = true [DEBUG] (s) useSubDirectoryPerType = false [DEBUG] -- end configuration -- [INFO] [dependency:unpack-dependencies {execution: unpack-dependencies}] [DEBUG] Including Transitive Dependencies. [DEBUG] Including only Types: zip [INFO] Expanding: C:\Documents and Settings\myuser\.m2\repository\com\company\project\activemq-cpp\2.1.3_02\activemq-cpp-2.1.3_02-win32.zip into null -Ursprüngliche Nachricht- Von: Selber, Heiko (NSN - DE/Berlin) Gesendet: Mittwoch, 9. April 2008 15:17 An: 'users@maven.apache.org' Betreff: Expanding ... into null Hello, I have a problem with an artifact that is downloaded from a local repository server, but is not expanded. So when its contents are accessed, they are not found. Apparently, there is a problem with a null pointer. The console says this: [INFO] Expanding: c:\.m2\repository\com\company\project\activemq-cpp\2.1.3_02\ac tivemq-cpp-2.1.3_02-win32.zip into null I would have expected something like expanding ... into c:\.m2\repository\.unpacked-modules\activemq-cpp-2.1.3_02-win32 There is more of the console output at the end. I am entirely unsure about the reason. What disturbs me is that the expansion works sporadically. I'd have preferred a reproducible error. I googled a similar problem reported on this list a while ago, which was solved by cleaning first. But it happens for me also when I execute 'mvn clean install'. Could the problem be related to the fact that the target in question is a Visual C++ compilation? But I'd assume that expanding a dependency is independent of the type of the target, right? Can anybody enlighten me? Thanks in advance, Heiko PS: I use Maven 2.0.8 on Windows XP. pom.xml extract dependency groupIdcom.company.project/groupId artifactIdactivemq-cpp/artifactId classifier${operating-system}/classifier version${activemq-version}/version typezip/type scopecompile/scope /dependency extract of console output [INFO] -- -- [INFO] Building [...] [INFO]task-segment: [clean, install] [INFO] -- -- [INFO] [clean:clean] [INFO] Deleting directory
Re: [m2] How to set location of activemq-data?
Mick, I presume you sent this to the maven list because you're running amq within a unit or integration test? Hmm, might be a better question for the amq users list, but I'll try... How are you configuring the startup of amq? If you're using XBean XML configuration, there is a dataDirectory attribute on the broker element[1]. This is equivalent to calling BrokerService.setDataDirectory(), if you're instantiating amq directly. The unit tests I've done use camel directly configured within a Spring application context using vm transport with mock and test components[2]. I'm no amq wiz, so YMMV. HTH, Doug [1] http://activemq.apache.org/version-5-xml-configuration.html [2] http://activemq.apache.org/camel/test.html On Wed, Apr 16, 2008 at 9:47 AM, Mick Knutson [EMAIL PROTECTED] wrote: I am running ActiveMQ and I keep getting ${basedir}/activemq-data when what I want is ${basedire}/target/activemq-data Where would I set this? -- Thanks, Mick Knutson http://www.baselogic.com http://www.blincmagazine.com http://www.linkedin.com/in/mickknutson http://www.djmick.com http://www.myspace.com/mickknutson http://www.myspace.com/BLiNCMagazine http://tahoe.baselogic.com ---
maven 2.0.9 create-from-project
Hi, I run mvn archetype:create-from-project from the root directory of myproject. I then move to the generated directory and run mvn install. After recieving the success message I move to a new directory and run mvn archetype:generate -DarchetypeCatalog=local, select the archetype but then it tells me the defined artifact is not an archetype. What do I do now - did I mess up a step somewhere? Regards, ..kace -- View this message in context: http://www.nabble.com/maven-2.0.9-create-from-project-tp16724738s177p16724738.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]
Re: maven 2.0.9 create-from-project
Can you please send the trace (pasting to http://rafb.net/paste/) Regards, Raphaël 2008/4/16, kace [EMAIL PROTECTED]: Hi, I run mvn archetype:create-from-project from the root directory of myproject. I then move to the generated directory and run mvn install. After recieving the success message I move to a new directory and run mvn archetype:generate -DarchetypeCatalog=local, select the archetype but then it tells me the defined artifact is not an archetype. What do I do now - did I mess up a step somewhere? Regards, ..kace -- View this message in context: http://www.nabble.com/maven-2.0.9-create-from-project-tp16724738s177p16724738.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]
Re: mvn install site performs test phase 2 times?
in Hudson you can use a freestyle project and specify the goals as either install -DskipTests | site or install | site -DskipTests to do what your after Sent from my iPod On 16 Apr 2008, at 10:41, DCVer [EMAIL PROTECTED] wrote: Hi, I use CruiseControl for continous integration. There are many projects, which builds are configured as mvn clean install site. The problem is, that both 'install' and 'site' commands perform tests and some of my tests take about 20-30mins! This is waste of time (of course, both test phases do exactly the same work), so I would like somehow to do only 1 test phase - is that possible? Regards -- View this message in context: http://www.nabble.com/%22mvn-install-site%22-performs-test-phase-2-times--tp16719990s177p16719990.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]
[ANN] Taglist Maven Plugin 2.2 Released
The Mojo team is pleased to announce the release of the Taglist Maven Plugin, version 2.2 http://mojo.codehaus.org/taglist-maven-plugin/ You can run mvn -up to get the latest version of the plugin, or specify the version in your project's plugin configuration: plugin groupIdorg.codehaus.mojo/groupId artifactIdtaglist-maven-plugin/artifactId version2.2/version /plugin Release Notes ** Bug * [MTAGLIST-24] - Add dedicated resource bundle for locale en * [MTAGLIST-26] - Clean up checkstyle results * [MTAGLIST-29] - Fix handling of output directory * [MTAGLIST-31] - Taglist plugin causes Test classes to be included in the JavaDoc and API xref ** Improvement * [MTAGLIST-25] - Add german translation * [MTAGLIST-28] - Clarify usage of outputDirectory parameter ** Wish * [MTAGLIST-20] - [taglist] Site report feature to not show details of tags with 0 occurrences Enjoy, -The Mojo team - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven 2.0.9 complains it can't download maven-surefire-plugin 2.4.2 -- NEED HELP
The url for the pluginRepository below should be urlhttp://repo1.maven.org/maven2//url Tonté Pouncil wrote: Ok I have fixed the malformed URL; but still no luck. In my pom I had a configuration for plugin repositories: pluginRepositories pluginRepository releases updatePolicydaily/updatePolicy checksumPolicywarn/checksumPolicy /releases snapshots updatePolicydaily/updatePolicy checksumPolicywarn/checksumPolicy /snapshots idmaven.org/id urlhttp://repo1.maven.org/maven2/org/apache/maven//url /pluginRepository /pluginRepositories See maven out put below: C:\dev\projects\aviall\aviall-edi\aviall-edi-projectmvn clean test [INFO] Scanning for projects... [INFO] Reactor build order: [INFO] aviall-edi [INFO] aviall-edi-site [INFO] aviall-edi-commons [INFO] aviall-edi-process-engine-module [INFO] aviall-edi-order-process-module [INFO] aviall-edi-processor-application-module [INFO] [INFO] Building aviall-edi [INFO]task-segment: [clean, test] [INFO] Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.4.2 /maven-surefire-plugin-2.4.2.pom Downloading: http://172.18.10.165 /svn-repos/org/apache/maven/plugins/maven-surefire-plugin/2.4.2 /maven-surefire-plugin-2.4.2.pom Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.4.2 /maven-surefire-plugin-2.4.2.pom [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error building POM (may not be this project's POM). Project ID: org.apache.maven.plugins:maven-surefire-plugin Reason: POM 'org.apache.maven.plugins:maven-surefire-plugin' not found in repository: Unable to download the artifact from any repository org.apache.maven.plugins:maven-surefire-plugin:pom:2.4.2 from the specified remote repositories: codehaus.org (http://snapshots.repository.codehaus.org), aviall-maven-repo (http://xxx.xxx.xxx.xxx/svn-repos), central (http://repo1.maven.org/maven2), apache.org (http://people.apache.org/repo/m2-snapshot-repository) for project org.apache.maven.plugins:maven-surefire-plugin [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 2 seconds [INFO] Finished at: Wed Apr 16 09:39:28 CDT 2008 [INFO] Final Memory: 2M/4M [INFO] Tonté Pouncil [EMAIL PROTECTED] iall.com To Maven Users List 04/16/2008 09:35 users@maven.apache.org AM cc Subject Please respond to Re: Maven 2.0.9 complains it can't Maven Usersdownload maven-surefire-plugin List 2.4.2 -- NEED HELP [EMAIL PROTECTED] he.org I see the url you are talking about, but I don't know how to fix it as the URL is being build by maven. The only URL I have defined are in show in the at the bottom of the maven out put below. What is weird is this same configuration works fine in Maven 2.0.8. Any suggestions? Thanks! org.apache.maven.plugins:maven-surefire-plugin:pom:2.4.2 from the specified remote repositories: codehaus.org (http://snapshots.repository.codehaus.org), maven.org (http://repo1.maven.org/maven2/org/apache/maven/), aviall-maven-repo (http://xxx.xxx.xxx.xxx/svn-repos), central (http://repo1.maven.org/maven2), apache.org (http://people.apache.org/repo/m2-snapshot-repository) for project org.apache.maven.plugins:maven-surefire-plugin Wayne Fay [EMAIL PROTECTED]
A problem with nested import on Maven 2.0.9
Has anyone tried the nested import on Maven 2.0.9? When I tried to use import scope to import one POM which in turns to import another POM, maven 2.0.9 seems to only can locate the 1st imported POM but could not locate the child import because it only looks it up in the maven central repository (http://repo1.maven.org/maven2) and ignores the additional repositories which I have in my settings.xml. Is it a bug in nested import on 2.0.9? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven 2.0.9 create-from-project
http://rafb.net/p/tWTPGe14.html pasted as requested Thanks Raphael Regards, ..kace -- View this message in context: http://www.nabble.com/maven-2.0.9-create-from-project-tp16724738s177p16729894.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]
Re: Maven 2.0.9 complains it can't download maven-surefire-plugin 2.4.2 -- NEED HELP
You should seriously think about installing a repo manager, then using mirrorOf * to point all repos there, and let it manage these things for you. Then you aren't dealing with proxies in settings.xml files on every dev's machine but rather only on the shared MRM box. It seems like you might already be using some kind of repo manager (for your aviall-maven-repo). If you're not, you probably should be. So try Nexus, Archiva, Artifactory etc and pick the one you like. Wayne On Wed, Apr 16, 2008 at 9:51 AM, Tonté Pouncil [EMAIL PROTECTED] wrote: Yup that was it! When migrating to Maven 2.0.9 I forgot to port over all of my setting.xml configurations. Thanks Guys for your help! Tonté Tonté Pouncil [EMAIL PROTECTED] iall.com To Maven Users List 04/16/2008 09:48 users@maven.apache.org AM cc Subject Please respond to Re: Maven 2.0.9 complains it can't Maven Usersdownload maven-surefire-plugin List 2.4.2 -- NEED HELP [EMAIL PROTECTED] he.org The reason you see this with 2.0.9 is probably because it bumped you up to surefire 2.4.2, but otherwise nothing in 2.0.9 changed that should affect this. It's a little hard to know why you can't get that jar. Are you able to load it from a browser without a proxy? Brian, yes I am able to load it from a browser without a proxy. Let me check my proxy settings I think for got to set these up for Maven 2.0.9! Tonté Pouncil [EMAIL PROTECTED] iall.com To Maven Users List 04/16/2008 09:44 users@maven.apache.org AM cc Subject Please respond to Re: Maven 2.0.9 complains it can't Maven Usersdownload maven-surefire-plugin List 2.4.2 -- NEED HELP [EMAIL PROTECTED] he.org Ok I have fixed the malformed URL; but still no luck. In my pom I had a configuration for plugin repositories: pluginRepositories pluginRepository releases updatePolicydaily/updatePolicy checksumPolicywarn/checksumPolicy /releases snapshots updatePolicydaily/updatePolicy checksumPolicywarn/checksumPolicy /snapshots idmaven.org/id urlhttp://repo1.maven.org/maven2/org/apache/maven//url /pluginRepository /pluginRepositories See maven out put below: C:\dev\projects\aviall\aviall-edi\aviall-edi-projectmvn clean test [INFO] Scanning for projects... [INFO] Reactor build order: [INFO] aviall-edi [INFO] aviall-edi-site [INFO] aviall-edi-commons [INFO] aviall-edi-process-engine-module [INFO] aviall-edi-order-process-module [INFO] aviall-edi-processor-application-module [INFO] [INFO] Building aviall-edi [INFO]task-segment: [clean, test] [INFO] Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.4.2 /maven-surefire-plugin-2.4.2.pom Downloading: http://172.18.10.165 /svn-repos/org/apache/maven/plugins/maven-surefire-plugin/2.4.2 /maven-surefire-plugin-2.4.2.pom Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.4.2 /maven-surefire-plugin-2.4.2.pom [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error building POM (may not be this project's POM). Project ID: org.apache.maven.plugins:maven-surefire-plugin Reason: POM 'org.apache.maven.plugins:maven-surefire-plugin' not found in repository: Unable to download the artifact from any repository org.apache.maven.plugins:maven-surefire-plugin:pom:2.4.2 from the specified remote repositories: codehaus.org (http://snapshots.repository.codehaus.org), aviall-maven-repo (http://xxx.xxx.xxx.xxx/svn-repos), central (http://repo1.maven.org/maven2), apache.org (http://people.apache.org/repo/m2-snapshot-repository) for project org.apache.maven.plugins:maven-surefire-plugin [INFO] [INFO] For more information, run Maven with the -e switch [INFO]
Pattern Question - Controlling dependencies for a project made up of many components
What's the common way to deal with the controlling dependencies for a maven2 project that is made up of 20+ sub projects? I have the following situation using home grown solution and ant: - the main project is comprised of about 20 components - each component has its own CVS module - some components depend on other components (either as source or as output -- e.g. cpp headers, jar lib) - there is a full build where all components are at the same version - there is a patch build where the not all components are included and each component may be using a different version - versions are transformed into CVS tags So, when I go to build I'd like to avoid having to modify 20 pom files because it is somewhat error prone. What are the common ways of dealing with this? The few I can think of are: 1. a centralized properties file that contains the version for each component. The file is fed into the top level pom and propagated downward via project inheritance. 2. consider each component as its own release and modify the tags/pom properties individually 3. have a central registry of versions and write a task which the makes each component build query the registry for its current version and dependencies. (sort of a buckminster styled solution). What solutions and patterns have worked for the large scale maven projects? --- I do have another wrinkle, many components need to be built on specific platforms, so I need to distribute the build. I figure I'll use something like hudson to accomplish this task, but it does mean that getting the information about versions to the individual builders will be somewhat tricky. The current solution that I'm using centralized module which contains the properties for the versions, the logic for the component build process (get/issue build command/store artifacts) and then a distribution system to get the builds to the necessary builder machines. It works reasonably well, but it is a little brittle and maintaining the system for a couple of different products on a bunch of branches is effort that I'd rather not expend if something like maven or buckminster can solve this problem for me. Thanks for the help -- Peter Kahn [EMAIL PROTECTED] [EMAIL PROTECTED] http://citizenkahn.myplaxo.com Awareness - Intention - Action
Re: A problem with nested import on Maven 2.0.9
On 16-Apr-08, at 11:35 AM, Ryan H. wrote: Has anyone tried the nested import on Maven 2.0.9? When I tried to use import scope to import one POM which in turns to import another POM, maven 2.0.9 seems to only can locate the 1st imported POM but could not locate the child import because it only looks it up in the maven central repository (http://repo1.maven.org/maven2) and ignores the additional repositories which I have in my settings.xml. Is it a bug in nested import on 2.0.9? Given that no one probably tested this feature during the 9 RCs we put out over two weeks it likely could be a bug. The only way to resolve the issue is to get a sample project that we can work against. Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Thanks, Jason -- Jason van Zyl Founder, Apache Maven jason at sonatype dot com -- What matters is not ideas, but the people who have them. Good people can fix bad ideas, but good ideas can't save bad people. -- Paul Graham - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Multiple artifact handlers being use at a reactor level
I have basically pasted this from the irc channel: In a reactor, is it possible that the first artifacthandler that gets used will be used for all subsequent modules that get run? Even if those modules provide their own artifacthandler? Because that is what's going on in my build. I have module foo that gets run using the default handler (nothing specified), then my next module bar, which is built using a plugin we provided which configures its own artifacthandler, doesnt seem to get that handler, hence it comes out in the incorrect packaging type (this is howI know it's not using the specific plugins handler.) But if i move module bar which uses the plugin with specific handler before module foo, then it gets the correct packaging type (in this case a zip file). Is this a known issue or what? Thanks Apaar Trivedi
Re: Multiple artifact handlers being use at a reactor level
If you're creating a new packaging/lifecycle for a specific type of component you really get into a mess when you try to do it in-situ. Just build it separately and then use it. What you're trying is not specifically supported, if it works it's not intentional. Any lifecycles or packaging you provide should be in place before starting a particular build that uses them. On 16-Apr-08, at 11:47 AM, Apaar Trivedi wrote: I have basically pasted this from the irc channel: In a reactor, is it possible that the first artifacthandler that gets used will be used for all subsequent modules that get run? Even if those modules provide their own artifacthandler? Because that is what's going on in my build. I have module foo that gets run using the default handler (nothing specified), then my next module bar, which is built using a plugin we provided which configures its own artifacthandler, doesnt seem to get that handler, hence it comes out in the incorrect packaging type (this is howI know it's not using the specific plugins handler.) But if i move module bar which uses the plugin with specific handler before module foo, then it gets the correct packaging type (in this case a zip file). Is this a known issue or what? Thanks Apaar Trivedi Thanks, Jason -- Jason van Zyl Founder, Apache Maven jason at sonatype dot com -- Simplex sigillum veri. (Simplicity is the seal of truth.) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: sql-maven-plugin and UTF-8
What is the repository location, plugin version and plugin source code svn connection? Thanks, Borut 2008/4/16, Dan Tran [EMAIL PROTECTED]: encodingUTF-8/encoding this is in latest snapshot, please give it a try -D On Wed, Apr 16, 2008 at 5:07 AM, Manos Batsis [EMAIL PROTECTED] wrote: Maybe you just need to append a couple of JDBC url params url jdbc:mysql://${db-host}:3306/portal?useUnicode=yesamp;characterEncoding=UTF-8 /url hth, Manos Borut Bolčina wrote: Hello, is anyone having problems with http://mojo.codehaus.org/sql-maven-plugin/when trying to insert data in utf8 encoding? It works when inserting with mysql -u backend -pmasterkey -h localhost portal insert.sql but it inserts garbage when using profile idcreate-initial-data/id build plugins plugin groupIdorg.codehaus.mojo/groupId artifactIdsql-maven-plugin/artifactId configuration !-- drivercom.mysql.jdbc.Driver/driver usernameroot/username passwordpassword/password urljdbc:mysql://${db-host}:3306/url -- !-- skipfalse/skip -- /configuration executions execution idcreate-schema-insert-data/id phasepackage/phase goals goalexecute/goal /goals configuration url jdbc:mysql://${db-host}:3306/portal /url autocommittrue/autocommit srcFiles srcFile src/test/resources/create.ddl /srcFile srcFile src/test/resources/insert.sql /srcFile /srcFiles /configuration /execution /executions /plugin /plugins /build /profile Regards, Borut - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Resources not filtering with eclipse/WTP 1.5 launching tomcat from WTP
I have resource filtering setup and working correctly (when I build a war or mvn jetty:run), but when I deploy to tomcat from Eclipse 3.3/ WTP 1.5, the ${} values are not parsed at that point. Does anyone have any suggestion to get that working? I saw this with WTP 2.0 (http://docs.codehaus.org/display/M2ECLIPSE/Integration+with+WTP ) but it doesn't address that issue specifically. It would be my guess that I would some how have to tell eclipse to publish from the / target/ directory rather then the /src/main/webapp/ and hook in a mvn war:war command before every launch. Anyone have any suggestions? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: sql-maven-plugin and UTF-8
the site is at http://mojo.codehaus.org -- here you can find out more snapshot repo is at http://snapshots.repository.codehaus.org/org/codehaus/mojo/ -D On Wed, Apr 16, 2008 at 1:17 PM, Borut Bolčina [EMAIL PROTECTED] wrote: What is the repository location, plugin version and plugin source code svn connection? Thanks, Borut 2008/4/16, Dan Tran [EMAIL PROTECTED]: encodingUTF-8/encoding this is in latest snapshot, please give it a try -D On Wed, Apr 16, 2008 at 5:07 AM, Manos Batsis [EMAIL PROTECTED] wrote: Maybe you just need to append a couple of JDBC url params url jdbc:mysql://${db-host}:3306/portal?useUnicode=yesamp;characterEncoding=UTF-8 /url hth, Manos Borut Bolčina wrote: Hello, is anyone having problems with http://mojo.codehaus.org/sql-maven-plugin/when trying to insert data in utf8 encoding? It works when inserting with mysql -u backend -pmasterkey -h localhost portal insert.sql but it inserts garbage when using profile idcreate-initial-data/id build plugins plugin groupIdorg.codehaus.mojo/groupId artifactIdsql-maven-plugin/artifactId configuration !-- drivercom.mysql.jdbc.Driver/driver usernameroot/username passwordpassword/password urljdbc:mysql://${db-host}:3306/url -- !-- skipfalse/skip -- /configuration executions execution idcreate-schema-insert-data/id phasepackage/phase goals goalexecute/goal /goals configuration url jdbc:mysql://${db-host}:3306/portal /url autocommittrue/autocommit srcFiles srcFile src/test/resources/create.ddl /srcFile srcFile src/test/resources/insert.sql /srcFile /srcFiles /configuration /execution /executions /plugin /plugins /build /profile Regards, Borut - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Order of executing plugins changed in 2.0.9 ?
Why would you declare the plugin twice in the same pom? Just put multiple executions in the same definition. -Original Message- From: Bernhard David [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 16, 2008 10:22 AM To: Maven Users List Subject: RE: Order of executing plugins changed in 2.0.9 ? Hello, after some long hours with the debugger, I discovered the following. If I define a plugin twice like this: plugin groupIdorg.codehaus.cargo/groupId artifactIdcargo-maven2-plugin/artifactId executions execution idstart-container/id phasepre-integration-test/phase goals goalstart/goal /goals /execution /executions /plugin plugin groupIdorg.codehaus.cargo/groupId artifactIdcargo-maven2-plugin/artifactId executions execution iddeploy/id phasepre-integration-test/phase goals goaldeploy/goal /goals /execution /executions /plugin Maven executes the plugins backwards. (Deploy first) However, this can be fixed with plugin groupIdorg.codehaus.cargo/groupId artifactIdcargo-maven2-plugin/artifactId executions execution idstart-container-and-deploy/id phasepre-integration-test/phase goals goalstart/goal goaldeploy/goal /goals /execution /executions /plugin which solves my problem. The backwards issue does seem odd to me - I've posted to the dev list too, asking about it. The point is that the merging is done with the new definition as parent and the old one as child, resulting in the parent coming first. Apart from this, you're right about the ordering. Yours, David Bernhard -Original Message- From: Max Bowsher [mailto:[EMAIL PROTECTED] Sent: 16 April 2008 16:10 To: Maven Users List Subject: Re: Order of executing plugins changed in 2.0.9 ? Bernhard David wrote: in maven 2.0.8 I can put the following in a pom to execute first cargo:start then cargo:deploy in the pre-integration-test phase. In 2.0.9, maven executes deploy first, which breaks the build. VUB Stefan Seidel wrote: AFAIK, the execution of plugins in the same phase is not consistent. I was under the impression that there was ordering of lifecycle bound executions first, then executions from each pom in a parent-child hierarchy in that order, and within each pom, in declaration order. Am I just imagining things? Max. - 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: Maven 2.0.9 complains it can't download maven-surefire-plugin 2.4.2 -- NEED HELP
Where is the maven.org repo defined? The url is wrong...it points to subfolder of central: maven.org (http://repo1.maven.org/maven2/org/apache/maven/), -Original Message- From: Tonté Pouncil [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 16, 2008 10:35 AM To: Maven Users List Subject: Re: Maven 2.0.9 complains it can't download maven-surefire-plugin 2.4.2 -- NEED HELP I see the url you are talking about, but I don't know how to fix it as the URL is being build by maven. The only URL I have defined are in show in the at the bottom of the maven out put below. What is weird is this same configuration works fine in Maven 2.0.8. Any suggestions? Thanks! org.apache.maven.plugins:maven-surefire-plugin:pom:2.4.2 from the specified remote repositories: codehaus.org (http://snapshots.repository.codehaus.org), maven.org (http://repo1.maven.org/maven2/org/apache/maven/), aviall-maven-repo (http://xxx.xxx.xxx.xxx/svn-repos), central (http://repo1.maven.org/maven2), apache.org (http://people.apache.org/repo/m2-snapshot-repository) for project org.apache.maven.plugins:maven-surefire-plugin Wayne Fay [EMAIL PROTECTED] omTo Maven Users List 04/15/2008 11:44 users@maven.apache.org PM cc Subject Please respond to Re: Maven 2.0.9 complains it can't Maven Usersdownload maven-surefire-plugin List 2.4.2 -- NEED HELP [EMAIL PROTECTED] he.org That first URL has an extra org/apache/maven/ in it, and an extra / too. I imagine this is the source of your troubles. Wayne On 4/15/08, Brian E. Fox [EMAIL PROTECTED] wrote: The reason you see this with 2.0.9 is probably because it bumped you up to surefire 2.4.2, but otherwise nothing in 2.0.9 changed that should affect this. It's a little hard to know why you can't get that jar. Are you able to load it from a browser without a proxy? Adding the ibiblio repo won't help if you aren't able to get to the main repo. -Original Message- From: Tonté Pouncil [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 15, 2008 12:16 PM To: users@maven.apache.org Subject: Maven 2.0.9 complains it can't download maven-surefire-plugin 2.4.2 -- NEED HELP I just downloaded Maven 2.0.9. I was using Maven 2.0.8. When I tried to run the clean install goal, Maven complains it can't download maven-surefire-plugin. (See below for maven output.) How do I fix this? How do I set up the ibiblio maven 2 repository in my setting.xml file as a profile. What is the URL to the ibiblio maven 2 repository? Thanks! Tonté Downloading: http://repo1.maven.org/maven2/org/apache/maven//org/apache/maven/plugins/maven-surefire-plugin/2.4.2 /maven-surefire-plugin-2.4.2.pom Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.4.2 /maven-surefire-plugin-2.4.2.pom Downloading: http://172.18.10.165 /svn-repos/org/apache/maven/plugins/maven-surefire-plugin/2.4.2 /maven-surefire-plugin-2.4.2.pom Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.4.2 /maven-surefire-plugin-2.4.2.pom [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error building POM (may not be this project's POM). Project ID: org.apache.maven.plugins:maven-surefire-plugin Reason: POM 'org.apache.maven.plugins:maven-surefire-plugin' not found in repository: Unable to download the artifact from any repository org.apache.maven.plugins:maven-surefire-plugin:pom:2.4.2 from the specified remote repositories: codehaus.org (http://snapshots.repository.codehaus.org), maven.org (http://repo1.maven.org/maven2/org/apache/maven/), aviall-maven-repo (http://xxx.xxx.xxx.xxx/svn-repos), central (http://repo1.maven.org/maven2), apache.org
Re: Order of executing plugins changed in 2.0.9 ?
One reason might be to run something else between the two? On Wed, Apr 16, 2008 at 4:43 PM, Brian E. Fox [EMAIL PROTECTED] wrote: Why would you declare the plugin twice in the same pom? Just put multiple executions in the same definition. -Original Message- From: Bernhard David [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 16, 2008 10:22 AM To: Maven Users List Subject: RE: Order of executing plugins changed in 2.0.9 ? Hello, after some long hours with the debugger, I discovered the following. If I define a plugin twice like this: plugin groupIdorg.codehaus.cargo/groupId artifactIdcargo-maven2-plugin/artifactId executions execution idstart-container/id phasepre-integration-test/phase goals goalstart/goal /goals /execution /executions /plugin plugin groupIdorg.codehaus.cargo/groupId artifactIdcargo-maven2-plugin/artifactId executions execution iddeploy/id phasepre-integration-test/phase goals goaldeploy/goal /goals /execution /executions /plugin Maven executes the plugins backwards. (Deploy first) However, this can be fixed with plugin groupIdorg.codehaus.cargo/groupId artifactIdcargo-maven2-plugin/artifactId executions execution idstart-container-and-deploy/id phasepre-integration-test/phase goals goalstart/goal goaldeploy/goal /goals /execution /executions /plugin which solves my problem. The backwards issue does seem odd to me - I've posted to the dev list too, asking about it. The point is that the merging is done with the new definition as parent and the old one as child, resulting in the parent coming first. Apart from this, you're right about the ordering. Yours, David Bernhard -Original Message- From: Max Bowsher [mailto:[EMAIL PROTECTED] Sent: 16 April 2008 16:10 To: Maven Users List Subject: Re: Order of executing plugins changed in 2.0.9 ? Bernhard David wrote: in maven 2.0.8 I can put the following in a pom to execute first cargo:start then cargo:deploy in the pre-integration-test phase. In 2.0.9, maven executes deploy first, which breaks the build. VUB Stefan Seidel wrote: AFAIK, the execution of plugins in the same phase is not consistent. I was under the impression that there was ordering of lifecycle bound executions first, then executions from each pom in a parent-child hierarchy in that order, and within each pom, in declaration order. Am I just imagining things? Max. - 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]
Using cppunit Unit Test Framework with Maven
It looks like there's been some progress made in this area since I last looked into it, specifically the jade-native plugin [from jfrog.org] and the NAR plugin [from freehep.org]. I'm returning to a dormant project originally set to use the maven native plugin, and am trying to decide on a direction, with Cppunit-based tests now part of the equation. Has anyone run down this road recently? Thanks. Brad - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Surefire-report without install?
Hello, I'm trying to run surefire-report from the top level of a multi-module project. The plugin runs successfully on the first module, but when the plugin gets to the second module (which depends on the first one), the plugin fails because it cannot locate the first module (which is not installed in the local repository). This strikes me as a bug in surefire-report, but Is there a way to work around this? Thanks, Josh -- Joshua ChaitinPollak | Software Engineer Kiva Systems, Inc., 225 Wildwood Ave, Woburn, MA 01970
RE: Using cppunit Unit Test Framework with Maven
I know we have used the NAR plugin, but it doesn't have native support for cppunit with maven and it appears to be a dormant project. We were looking into modifying the native plugin to change the test-compile and test lifescylce bindings to bind to the native plugin itself so as to allow it to compile/link the test classes during the test-compile and then run them during the test phase. -Original Message- From: Harper, Brad [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 16, 2008 2:14 PM To: Maven Users List Subject: Using cppunit Unit Test Framework with Maven It looks like there's been some progress made in this area since I last looked into it, specifically the jade-native plugin [from jfrog.org] and the NAR plugin [from freehep.org]. I'm returning to a dormant project originally set to use the maven native plugin, and am trying to decide on a direction, with Cppunit-based tests now part of the equation. Has anyone run down this road recently? Thanks. Brad - 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]
[ANN] Maven Changes Plugin 2.0 Released
The Maven team is pleased to announce the release of the Maven Changes Plugin, version 2.0 This plugin is used to inform your users of the changes that have occurred between different releases of your project. The plugin can extract these changes, either from a changes.xml file or from the JIRA issue management system, and present them as a report. You also have the option of creating a release announcement and even sending this via email to your users. http://maven.apache.org/plugins/maven-changes-plugin/ You can run mvn -up to get the latest version of the plugin, or specify the version in your project's plugin configuration: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-changes-plugin/artifactId version2.0/version /plugin Release Notes - Maven 2.x Changes Plugin - Version 2.0 ** Bug * [MCHANGES-66] - The changes plugin scatters white space over its Changes report * [MCHANGES-75] - Setting maxEntries too high causes a SAXParseException * [MCHANGES-88] - NoSuchMethodError with maven 2.0.8 when generating changes-report * [MCHANGES-89] - AbstractJiraDownloader throws an exception when jira returns a circular redirect * [MCHANGES-91] - Output a title for the reports * [MCHANGES-96] - Change type of path parameters to java.io.File * [MCHANGES-100] - Generating the jira-report causes error The system cannot find the path specified * [MCHANGES-102] - Fix case-insensitive string handling * [MCHANGES-105] - java.lang.NoSuchMethodError on changes:jira-report ** Improvement * [MCHANGES-92] - JIRA Report Improvements * [MCHANGES-93] - Add dedicated resource bundle for locale en * [MCHANGES-94] - Add option to configure the sort order of the JIRA report * [MCHANGES-95] - Add german translation * [MCHANGES-97] - Fix VTL errors * [MCHANGES-99] - Make it possible to show issues only for the current release * [MCHANGES-103] - Allow suffix ASC for sort columns ** Wish * [MCHANGES-101] - Consider changing log outputs to debug Enjoy, -The Maven team - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
What is the syntax to retrieve a system property value form a pom?
Hi, What is the syntax to use from inside a pom.xml file to retrieve the value of the system date on Windows XP? I need to update the following parameter with the Build-date value. I tried ${env.date} but it did not work? plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId configuration archive manifestEntries Built-Byxyz, Inc./Built-By Build-date?/Build-date /manifestEntries /archive /configuration /plugin Thanks, Sameh This email and any files transmitted with it are confidential, proprietary and intended solely for the individual or entity to whom they are addressed. If you have received this email in error please delete it immediately. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: What is the syntax to retrieve a system property value form a pom?
On Wed, Apr 16, 2008 at 2:49 PM, Tawfik, Sameh E [EMAIL PROTECTED] wrote: I need to update the following parameter with the Build-date value. I tried ${env.date} but it did not work? You can use the Build Number plugin to put the current date into a property that you can use in the build: http://mojo.codehaus.org/buildnumber-maven-plugin/usage.html -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Order of executing plugins changed in 2.0.9 ?
But when you define an execution, you define what stage of the lifecycle it would be edited. For example, I might use antrun to get something in generate-resources, and then compile, and then use another antrun to package. there's no issue doing this in one declaration of the plugin. Contrarily, there IS an issue with declaring plugins multiply: the dependencies required for the plugin (if any) might differ in the two declarations and get mixed up (maven only instantiates a plugin once per run: it will lose the dependency information from the second call if the first one has a different dependency list.) I know this first hand: I was using jakarta-regexp (ant task) with antrun to do something in an antrun declared in a profile, and using antrun separately in the pom. the dual declarations caused a huge headache trying to figure out why it didn't work! The moral of the story is: The maven way is One plugin declaration, multiple executions Dana Lacoste -Original Message- From: Thierry Lach [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 16, 2008 2:11 PM To: Maven Users List Subject: Re: Order of executing plugins changed in 2.0.9 ? One reason might be to run something else between the two? On Wed, Apr 16, 2008 at 4:43 PM, Brian E. Fox [EMAIL PROTECTED] wrote: Why would you declare the plugin twice in the same pom? Just put multiple executions in the same definition. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: What is the syntax to retrieve a system property value form a pom?
No such property exists, unless you've added the buildnumber plugin to your build: http://mojo.codehaus.org/buildnumber-maven-plugin/ Wayne On 4/16/08, Tawfik, Sameh E [EMAIL PROTECTED] wrote: Hi, What is the syntax to use from inside a pom.xml file to retrieve the value of the system date on Windows XP? I need to update the following parameter with the Build-date value. I tried ${env.date} but it did not work? plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId configuration archive manifestEntries Built-Byxyz, Inc./Built-By Build-date?/Build-date /manifestEntries /archive /configuration /plugin Thanks, Sameh This email and any files transmitted with it are confidential, proprietary and intended solely for the individual or entity to whom they are addressed. If you have received this email in error please delete it immediately. - 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: Using cppunit Unit Test Framework with Maven
Hello all, jfrog is a spin of my native-maven-plugin, and if it has active support, I would recommend to go with it. Other wise, we can bring some of their new functionality back to the mojo's one, however it also require more interests from community to make this happen. Would you like to become one? -D On Wed, Apr 16, 2008 at 2:19 PM, Jason Chaffee [EMAIL PROTECTED] wrote: I know we have used the NAR plugin, but it doesn't have native support for cppunit with maven and it appears to be a dormant project. We were looking into modifying the native plugin to change the test-compile and test lifescylce bindings to bind to the native plugin itself so as to allow it to compile/link the test classes during the test-compile and then run them during the test phase. -Original Message- From: Harper, Brad [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 16, 2008 2:14 PM To: Maven Users List Subject: Using cppunit Unit Test Framework with Maven It looks like there's been some progress made in this area since I last looked into it, specifically the jade-native plugin [from jfrog.org] and the NAR plugin [from freehep.org]. I'm returning to a dormant project originally set to use the maven native plugin, and am trying to decide on a direction, with Cppunit-based tests now part of the equation. Has anyone run down this road recently? Thanks. Brad - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Expanding ... into null
Can you write a jira for this? Just out of curiosity, why the file:/// in the first place? -Original Message- From: Selber, Heiko (NSN - DE/Berlin) [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 16, 2008 12:39 PM To: users@maven.apache.org Subject: AW: Expanding ... into null Hello, I had sent an email to this list a week ago (see below). I finally found out where the problem is (by running maven in debug mode: mvn -X). I think I'm going to file an issue against dependency:unpack-dependencies, because it treats a file URL badly. Expanding a dependency fails when I specify the local repository in settings.xml like this: localRepositoryfile:///C:/Documents and Settings/myuser/.m2/repository/localRepository The file URL is honored when artifacts are downloaded, but not when a dependency is expanded. This is a bug, or at least inconsistent. So artifacts go to C:/Documents and Settings/myuser/.m2/repository, which is as expected. But an artifact is expanded to the directory where mvn was executed, instead of .unpacked-modules in the repository. All goes well if I specify the local repository without the file:/// prefix: localRepositoryC:/Documents and Settings/myuser/.m2/repository/localRepository Heiko PS: Here is a bit of the debug output which shows what went wrong with outputDirectory: [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-dependency-plugin:2.0-alpha-4:unpack-dependencies' -- [DEBUG] (f) excludeTransitive = false [DEBUG] (s) failOnMissingClassifierArtifact = true [DEBUG] (f) includeTypes = zip [DEBUG] (s) local = [local] - file:///C:/Documents and Settings/myuser/.m2/repository [DEBUG] (s) markersDirectory = C:\src\myproject\trunk\core-cpp\subproject\target\dependency-maven-plugin-markers [DEBUG] (f) outputAbsoluteArtifactFilename = false [DEBUG] (s) outputDirectory = C:\src\myproject\trunk\core-cpp\subproject\file:\C:\Documents and Settings\myuser\.m2\repository\.unpacked-modules [DEBUG] (f) overWriteIfNewer = true [DEBUG] (f) overWriteReleases = false [DEBUG] (f) overWriteSnapshots = false [DEBUG] (f) project = MavenProject: com.company.project.core-cpp:ams-activemq:4.0.0-0-SNAPSHOT @ C:\src\myproject\trunk\core-cpp\subproject\pom.xml [DEBUG] (f) reactorProjects = [MavenProject: com.company.project.core-cpp:ams-activemq:4.0.0-0-SNAPSHOT @ C:\src\myproject\trunk\core-cpp\subproject\pom.xml] [DEBUG] (s) remoteRepos = [[central-snapshot] - http://localrepo.intra.net/maven-proxy/repository/snapshot, [central] - http://localrepo.intra.net/maven-proxy/repository/release] [DEBUG] (f) silent = false [DEBUG] (s) stripVersion = false [DEBUG] (f) type = java-source [DEBUG] (s) useRepositoryLayout = false [DEBUG] (s) useSubDirectoryPerArtifact = true [DEBUG] (s) useSubDirectoryPerType = false [DEBUG] -- end configuration -- [INFO] [dependency:unpack-dependencies {execution: unpack-dependencies}] [DEBUG] Including Transitive Dependencies. [DEBUG] Including only Types: zip [INFO] Expanding: C:\Documents and Settings\myuser\.m2\repository\com\company\project\activemq-cpp\2.1.3_02\activemq-cpp-2.1.3_02-win32.zip into null -Ursprüngliche Nachricht- Von: Selber, Heiko (NSN - DE/Berlin) Gesendet: Mittwoch, 9. April 2008 15:17 An: 'users@maven.apache.org' Betreff: Expanding ... into null Hello, I have a problem with an artifact that is downloaded from a local repository server, but is not expanded. So when its contents are accessed, they are not found. Apparently, there is a problem with a null pointer. The console says this: [INFO] Expanding: c:\.m2\repository\com\company\project\activemq-cpp\2.1.3_02\ac tivemq-cpp-2.1.3_02-win32.zip into null I would have expected something like expanding ... into c:\.m2\repository\.unpacked-modules\activemq-cpp-2.1.3_02-win32 There is more of the console output at the end. I am entirely unsure about the reason. What disturbs me is that the expansion works sporadically. I'd have preferred a reproducible error. I googled a similar problem reported on this list a while ago, which was solved by cleaning first. But it happens for me also when I execute 'mvn clean install'. Could the problem be related to the fact that the target in question is a Visual C++ compilation? But I'd assume that expanding a dependency is independent of the type of the target, right? Can anybody enlighten me? Thanks in advance, Heiko PS: I use Maven 2.0.8 on Windows XP. pom.xml extract dependency groupIdcom.company.project/groupId artifactIdactivemq-cpp/artifactId classifier${operating-system}/classifier version${activemq-version}/version typezip/type scopecompile/scope /dependency extract of console output [INFO]
Oracle drivers dependencies
Hi, I am trying to add: * dependency groupIdcom.oracle/groupId artifactIdojdbc14/artifactId version9.0.2.0.0/version /dependency* in my POM xml and i am getting : *Path to dependency: 1) PhoneBookJSFSpringHibernateTPOC:PhoneBookJSFSpringHibernateTPOC:war:0.0.1-SNAPSHOT 2) com.oracle:ojdbc14:jar:9.0.2.0.0 com.oracle:ojdbc14:jar:9.0.2.0.0 from the specified remote repositories: central (http://repo1.maven.org/maven2) org.apache.maven.artifact.resolver.ArtifactNotFoundException: Unable to download the artifact from any repository Try downloading the file manually from: http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/index.html Then, install it using the command: mvn install:install-file -DgroupId=com.oracle -DartifactId=ojdbc14 -Dversion=9.0.2.0.0 -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.oracle -DartifactId=ojdbc14 -Dversion=9.0.2.0.0 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] Path to dependency: 1) PhoneBookJSFSpringHibernateTPOC:PhoneBookJSFSpringHibernateTPOC:war:0.0.1-SNAPSHOT 2) com.oracle:ojdbc14:jar:9.0.2.0.0 com.oracle:ojdbc14:jar:9.0.2.0.0 from the specified remote repositories: central (http://repo1.maven.org/maven2)* *Am i doing something wrong ?* Regards Vyas, Anirudh || ॐ ||
Re: maven-buildnumber-plugin / revision number last changed rev number
DCVer wrote: Thanks, nice to know that, but I still cannot find any useful information, don't kow how to configure scm to receive Last Changed Rev number... It actually turns out to be quite easy: Although the buildnumber plugin uses Maven's SCM API (http://maven.apache.org/scm/), the parsing happens in the plugin itself. Look at https://svn.codehaus.org/mojo/tags/buildnumber-maven-plugin-1.0-beta-1/src/main/java/org/codehaus/mojo/build/InfoScmResult.java All you need to do is to patch the getRevision() to return the revision attribute of the commit element instead of the revision attribute of the entry element. -dirk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Oracle drivers dependencies
The repo has it [1], here the pom fragment: groupIdcom.oracle/groupId artifactIdojdbc14/artifactId version9.0.2.0.0/version [1] http://repo1.maven.org/maven2/com/oracle/ojdbc14/9.0.2.0.0/ No idea whats wrong :-/ Manos Ricky wrote: Hi, I am trying to add: * dependency groupIdcom.oracle/groupId artifactIdojdbc14/artifactId version9.0.2.0.0/version /dependency* in my POM xml and i am getting : *Path to dependency: 1) PhoneBookJSFSpringHibernateTPOC:PhoneBookJSFSpringHibernateTPOC:war:0.0.1-SNAPSHOT 2) com.oracle:ojdbc14:jar:9.0.2.0.0 com.oracle:ojdbc14:jar:9.0.2.0.0 from the specified remote repositories: central (http://repo1.maven.org/maven2) org.apache.maven.artifact.resolver.ArtifactNotFoundException: Unable to download the artifact from any repository Try downloading the file manually from: http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/index.html Then, install it using the command: mvn install:install-file -DgroupId=com.oracle -DartifactId=ojdbc14 -Dversion=9.0.2.0.0 -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.oracle -DartifactId=ojdbc14 -Dversion=9.0.2.0.0 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] Path to dependency: 1) PhoneBookJSFSpringHibernateTPOC:PhoneBookJSFSpringHibernateTPOC:war:0.0.1-SNAPSHOT 2) com.oracle:ojdbc14:jar:9.0.2.0.0 com.oracle:ojdbc14:jar:9.0.2.0.0 from the specified remote repositories: central (http://repo1.maven.org/maven2)* *Am i doing something wrong ?* Regards Vyas, Anirudh || ॐ || - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: What is the syntax to retrieve a system property value form a pom?
Thanks Wendy, this approach worked, but I'd to use the buildNumber property and not the timestamp as I thought I would? I must be using the wrong format, but I tried few choices and nothing worked. The time stamp always appears as follow: [INFO] Storing buildNumber: Apr 16, 2008 at timestamp: 1208394330099 Anyway, here is the code I'm using which is accomplishing what I need: plugin groupIdorg.codehaus.mojo/groupId artifactIdbuildnumber-maven-plugin/artifactId executions execution phasevalidate/phase goals goalcreate/goal /goals /execution /executions configuration doCheckfalse/doCheck doUpdatefalse/doUpdate format{0,date}/format items itemtimestamp/item /items /configuration /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId configuration archive manifestEntries Built-Byxyz, Inc./Built-By Build-date${buildNumber}/Build-date /manifestEntries /archive /configuration /plugin -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 16, 2008 3:29 PM To: Maven Users List Subject: Re: What is the syntax to retrieve a system property value form a pom? On Wed, Apr 16, 2008 at 2:49 PM, Tawfik, Sameh E [EMAIL PROTECTED] wrote: I need to update the following parameter with the Build-date value. I tried ${env.date} but it did not work? You can use the Build Number plugin to put the current date into a property that you can use in the build: http://mojo.codehaus.org/buildnumber-maven-plugin/usage.html -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This email and any files transmitted with it are confidential, proprietary and intended solely for the individual or entity to whom they are addressed. If you have received this email in error please delete it immediately. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] dbunit help with FOREIGN KEY please....
I have looked all over the net, but can NOT seem to find a solution for seeding my DBUnit as I keep getting this error: *Caused by: org.apache.maven.plugin.MojoExecutionException: Error executing database operation: CLEAN_INSERT at org.codehaus.mojo.dbunit.OperationMojo.execute(OperationMojo.java:110) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:447) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539) ... 16 more Caused by: org.dbunit.DatabaseUnitException: com.mysql.jdbc.exceptions.MySQLIntegrityConstraintViolationException: Cannot add or update a child r ow: a foreign key constraint fails (`testdb`.`user_role`, CONSTRAINT `FK143BF46AE8EA6EF6` FOREIGN KEY (`user_id`) REFERENCES `app_user` (`id`)) at org.dbunit.ant.Operation.execute(Operation.java:187) at org.codehaus.mojo.dbunit.OperationMojo.execute(OperationMojo.java:101) ... 18 more* Can someone please help me? -- Thanks, Mick Knutson http://www.baselogic.com http://www.blincmagazine.com http://www.linkedin.com/in/mickknutson http://www.djmick.com http://www.myspace.com/mickknutson http://www.myspace.com/BLiNCMagazine http://tahoe.baselogic.com ---
[ANN] Build Helper Maven Plugin 1.1 Released
The Mojo team is pleased to announce the release of the Build Helper Maven Plugin, version 1.1 http://mojo.codehaus.org/build-helper-maven-plugin/ This version adds ablility to remove previously install project's artifacts from local repository. Enjoy. -D - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: sql-maven-plugin and UTF-8
let me know if it works out for you and I will release it ( ie 1.1 ) -D 2008/4/16 Dan Tran [EMAIL PROTECTED]: the site is at http://mojo.codehaus.org -- here you can find out more snapshot repo is at http://snapshots.repository.codehaus.org/org/codehaus/mojo/ -D On Wed, Apr 16, 2008 at 1:17 PM, Borut Bolčina [EMAIL PROTECTED] wrote: What is the repository location, plugin version and plugin source code svn connection? Thanks, Borut 2008/4/16, Dan Tran [EMAIL PROTECTED]: encodingUTF-8/encoding this is in latest snapshot, please give it a try -D On Wed, Apr 16, 2008 at 5:07 AM, Manos Batsis [EMAIL PROTECTED] wrote: Maybe you just need to append a couple of JDBC url params url jdbc:mysql://${db-host}:3306/portal?useUnicode=yesamp;characterEncoding=UTF-8 /url hth, Manos Borut Bolčina wrote: Hello, is anyone having problems with http://mojo.codehaus.org/sql-maven-plugin/when trying to insert data in utf8 encoding? It works when inserting with mysql -u backend -pmasterkey -h localhost portal insert.sql but it inserts garbage when using profile idcreate-initial-data/id build plugins plugin groupIdorg.codehaus.mojo/groupId artifactIdsql-maven-plugin/artifactId configuration !-- drivercom.mysql.jdbc.Driver/driver usernameroot/username passwordpassword/password urljdbc:mysql://${db-host}:3306/url -- !-- skipfalse/skip -- /configuration executions execution idcreate-schema-insert-data/id phasepackage/phase goals goalexecute/goal /goals configuration url jdbc:mysql://${db-host}:3306/portal /url autocommittrue/autocommit srcFiles srcFile src/test/resources/create.ddl /srcFile srcFile src/test/resources/insert.sql /srcFile /srcFiles /configuration /execution /executions /plugin /plugins /build /profile Regards, Borut - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [ANN] Build Helper Maven Plugin 1.1 Released
Any plans to have it also remove artifacts from a remote repository? I know that sometimes we have have intermittent failures when doing a deploy for a project with modules and sometimes we need to delete the previous artifacts and start over again. This would be a nice a feature to be able to delete by version, which would include deleting by timestamp and build number. -Original Message- From: Dan Tran [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 16, 2008 8:05 PM To: Maven Users List Subject: [ANN] Build Helper Maven Plugin 1.1 Released The Mojo team is pleased to announce the release of the Build Helper Maven Plugin, version 1.1 http://mojo.codehaus.org/build-helper-maven-plugin/ This version adds ablility to remove previously install project's artifacts from local repository. Enjoy. -D - 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: [ANN] Build Helper Maven Plugin 1.1 Released
no, this is the job of repository manager. :-) -D On Wed, Apr 16, 2008 at 8:30 PM, Jason Chaffee [EMAIL PROTECTED] wrote: Any plans to have it also remove artifacts from a remote repository? I know that sometimes we have have intermittent failures when doing a deploy for a project with modules and sometimes we need to delete the previous artifacts and start over again. This would be a nice a feature to be able to delete by version, which would include deleting by timestamp and build number. -Original Message- From: Dan Tran [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 16, 2008 8:05 PM To: Maven Users List Subject: [ANN] Build Helper Maven Plugin 1.1 Released The Mojo team is pleased to announce the release of the Build Helper Maven Plugin, version 1.1 http://mojo.codehaus.org/build-helper-maven-plugin/ This version adds ablility to remove previously install project's artifacts from local repository. Enjoy. -D - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Oracle drivers dependencies
No, Central does not host this jar, only the pom and the md5/sha1 files. This jar must be downloaded and manually installed into your local repo cache due to Oracle's licensing requirements. Wayne On 4/16/08, Manos Batsis [EMAIL PROTECTED] wrote: The repo has it [1], here the pom fragment: groupIdcom.oracle/groupId artifactIdojdbc14/artifactId version9.0.2.0.0/version [1] http://repo1.maven.org/maven2/com/oracle/ojdbc14/9.0.2.0.0/ No idea whats wrong :-/ Manos Ricky wrote: Hi, I am trying to add: * dependency groupIdcom.oracle/groupId artifactIdojdbc14/artifactId version9.0.2.0.0/version /dependency* in my POM xml and i am getting : *Path to dependency: 1) PhoneBookJSFSpringHibernateTPOC:PhoneBookJSFSpringHibernateTPOC:war:0.0.1-SNAPSHOT 2) com.oracle:ojdbc14:jar:9.0.2.0.0 com.oracle:ojdbc14:jar:9.0.2.0.0 from the specified remote repositories: central (http://repo1.maven.org/maven2) org.apache.maven.artifact.resolver.ArtifactNotFoundException: Unable to download the artifact from any repository Try downloading the file manually from: http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/index.html Then, install it using the command: mvn install:install-file -DgroupId=com.oracle -DartifactId=ojdbc14 -Dversion=9.0.2.0.0 -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.oracle -DartifactId=ojdbc14 -Dversion=9.0.2.0.0 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] Path to dependency: 1) PhoneBookJSFSpringHibernateTPOC:PhoneBookJSFSpringHibernateTPOC:war:0.0.1-SNAPSHOT 2) com.oracle:ojdbc14:jar:9.0.2.0.0 com.oracle:ojdbc14:jar:9.0.2.0.0 from the specified remote repositories: central (http://repo1.maven.org/maven2)* *Am i doing something wrong ?* Regards Vyas, Anirudh || ॐ || - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]