Re: verify signatures of downloaded poms and jars
On Thu, Jul 14, 2011 at 8:08 AM, Igory Lr igory...@gmail.com wrote: I was trying to find if there are some SSL enabled central repositories but didn't find one. I noticed that there are signatures for (mostly) every jar and pom file in maven central repository. I would like to force maven (2/3) to automatically verify signatures of downloaded files. Is it possible yet? It comes up occasionally, but I don't think anyone has implemented it yet. (Or if they have, it hasn't been contributed back.) I guess these are the public keys for maven central https://svn.apache.org/repos/asf/maven/project/KEYS. Am I right? Those are only the keys for people who have done releases of Maven itself (or a plugin.) You'd need to get the keys for whichever project you're interested in. -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: uploading existing jar+pom as one artifact
On Wed, Jul 13, 2011 at 8:14 AM, olaf.klisc...@sofd.de wrote: Hm, no, the differing timestamps resulting from the two seperate uploads are a problem. A build that references this library in its dependencies fails -- the POM isn't found: [WARNING] The POM for groupId:artifactId:jar:timestamp of the jar is missing, no dependency information available. So my original issue remains: How do I upload these two things (snapshot jar + pom) correctly? Thanks for reporting it. I moved the issue to the Deploy plugin: https://jira.codehaus.org/browse/MDEPLOY-138 . -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: uploading existing jar+pom as one artifact
On Mon, Jul 11, 2011 at 8:15 PM, Olaf Klischat olaf.klisc...@sofd.de wrote: mvn deploy:deploy-file -Dfile=mylib.jar DpomFile=mypom.pom -DgeneratePom=false -Durl=repourl , it apparently just uploads the jar under the name groupid-artifactid from mypom.pom-timestamp.pom. You mentioned a timestamp, so... you're deploying a snapshot? And even though you specify -DpomFile in the command, only the jar gets deployed? Does it work if you use a non-snapshot version number? (Use something like 1.0-test or 1.0-deleteme to avoid 'using up' a version number you might need in the future.) Check JIRA and see if it's a known issue for the version of the deploy plugin you're using. I've never tried to deploy-file a snapshot. -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Maven searching remote repo's for locally installed jars
On Fri, Jul 8, 2011 at 8:53 AM, mschipperheyn m.schipperh...@gmail.com wrote: When I build a project. Maven tries to find the jars that I installed locally, because they don't have repositories through all the repo's I have set up. It takes ages. How can I prevent this from happening? There isn't enough info here to be sure, but my guess is that it's not searching for the jar at all... it's looking for the pom that is not in your local repo. How did you install it locally, exactly? And what is the build log message that's making you think this? -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Mirrors and repositories
On Fri, Jul 8, 2011 at 3:50 PM, Maven User maven.2.u...@gmail.com wrote: I thought I had a good handle on this, but can someone help me fully understand the mirrors and repositories settings in settings.xml? When one has a repository server running, and there are several urls grouped up, why isn't it enough to tell maven where to look via a single mirrors stanza? Why do I then also have to define an additional repository? What happens when you don't? Knowing why you think you need to do it would help someone explain it. One reason you might do it is to enable a repository to be searched for snapshots. By default, Maven's built-in definition of 'central' only has releases enabled. Unless you define another repository somewhere that has snapshots enabled, Maven will never retrieve any snapshots. -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Mirrors and repositories
On Fri, Jul 8, 2011 at 4:09 PM, Maven User maven.2.u...@gmail.com wrote: When I was building without the additional repository defined, maven (maven 3.0.3) was unable to find the parent pom. Once I added this extra repository, boom - it all works. It worked because you had snapshotsenabledtrue somewhere. What's extra confusing is I have mirrorOf*/mirrorOf - shouldn't that say this url is a mirror of EVERYTHING? That means it'll be a mirror for any repository defined in settings.xml or pom.xml. If none of those repos have snapshots enabled, Maven won't download any snapshots. But I'm not saying I'm mirroring JUST central, I thought I was saying I'm mirroring every repository you could possibly need. See my comment about the mirrorOf*/mirrorOf. No, it just means, When you go through your list of known repositories, substitute this url instead of the original one defined. -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: question about mvn dir structure
On Wed, Jun 29, 2011 at 9:12 PM, Joseph wutong...@gmail.com wrote: I am a newbie for mvn and have a simple question about dir structure.I know the basic dirs were created automaticlly by mvn after initialization setup of a web apps.Then what I do is just code and create some packages under src/main/java,but the resource and test directories did not updated .Do I have to create dir(package) under resource/test manually to align against src/main/java structure? or do we have some tricks that could accomplish that? How did you set up your webapp? Did you use the archetype plugin at the command line, or are you using an IDE? (Yes, you'd need to match the package structure for resources and tests so things end up where they belong.) -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Windows/Maven and Role of Archiva
On Fri, Jun 24, 2011 at 1:33 AM, wasi_shez wasi_s...@hotmail.com wrote: *First of all Thank you very much for your acknowledgement.* Suppose: Maven Downloaded Folder Structure-- A --- B C and My Project's Source Code Structure is:- A --- B and Z C and Y -D and F Does Maven Answers this? If by B and Z you mean you are building two artifacts (jars, wars, ears) out of one directory, then no. You should restructure your code if you want to use Maven, or you will be fighting an endless battle. -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Overriding distributionManagement Repositories
On Thu, Jun 23, 2011 at 9:44 AM, Rick Mangi rick.ma...@mtvn.com wrote: I'm trying to migrate my users to a new nexus repository on a different domain. I'm trying to avoid having to tell all of the developers to change their distributionManagement/repository and /snapshotRepository values in their pom files or to upgrade to new parent poms all at once. They can do it over time, but we support hundreds of developers on many projects. Consider introducing an organization level parent pom and set distributionManagement there, rather than having developers set it in all the projects. It's still a pain to get them to update to the latest parent, but it's less typing. :) -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Windows/Maven and Role of Archiva
On Thu, Jun 23, 2011 at 10:59 AM, wasi_shez wasi_s...@hotmail.com wrote: Is it possible that we can adjust Maven according to Our Code line and let MAVEN to understand our Code line for generating Builds or performing rest of the functions accordingly? Can you explain what you want to do? Maven doesn't need to understand your code, it just compiles it. Or are you saying you've developed your own build tool and you somehow want Maven to use it? If you need to do other things during the build, chances are there is a plugin that you can add to the pom to do it. 2) We are working on Windows Environment and Want o initiate our Code Build generation through Maven. Does Windows is a Good Platform for this? Maven works fine on Windows. 3)How does the 'Archiva' can work best for us in Windows Environment or is there any alternative you guys will suggest against this? Archiva is a remote repository manager, and you definitely want one of those if you're using Maven. It's where you will deploy the artifacts created during the build, so that other team members can use them during development or when they're ready to be put on your test or production servers. -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Release only updated modules
On Wed, Jun 22, 2011 at 5:31 AM, Mattias Borgkvist nightz...@hotmail.com wrote: We have a large multi module project. In the development branch all modules have SNAPSHOT versions. When we release the project we would only like to release the modules that is updated (in the SCM system). Do we manually need to: 1) Make a diff with the SCM tool 2) Revert back the unmodified modules to the previous release version 3) Execute Maven release Or is there a better soultion? Maybe multi module projects are ment to be released all together? Generally, yes, it's a decision you make when you set up your project structure. There are tradeoffs. One one hand it's easier to press a few buttons and release the entire thing, even if only parts of it have changed. You know that it's all been built and tested together. One option might be to drop into the sub-module that needs releasing and just do that one, perhaps as a 2.3.4.1 'patch release' then put the version back to 2.3.4-SNAPSHOT to match the rest of the project. (You'll have to set the parent to a released version before doing this, as well as any dependencies where you're using ${project.version}.) -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Maven release:prepare and NOT creating SNAPSHOTs
On Tue, Jun 21, 2011 at 9:19 AM, Neil Hart neilah...@gmail.com wrote: I was hoping to just cut the release and not create the snapshot for a couple of reasons. I have version 1.0-SNAPSHOT. I'm done developing so I want to create version 1.0, Get that into our mvn repo and update our hg repo. At this point, I do know that I am done with version 10., but I don't know if my next release will be version 2.0, 1.1, or 1.0.1. I'd like to stop the process after it updates the hg repo with the 1.0 version. Well.. you don't want to leave 'trunk' sitting there with a non-snapshot version number. Anyone who checks it out and builds it (CI server perhaps?) will re-create that version in their local repo, (and maybe even try to deploy it) which might not match the real released version, causing all sorts of havoc. If you're not sure what the next version is... set it to TBD-SNAPSHOT or something. -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: how to clean up all generated files under target directory
On Tue, Jun 21, 2011 at 10:06 PM, samwun leiwun2...@gmail.com wrote: Every time when I build a maven project, I need to manually remove all generated files under the target directory. How can I use maven remove all these files before starting the build? maven command I used is: mvn compile war:war mvn clean will remove the target directory and everything in it. Try just mvn clean install -- not sure why you're having to run the war plugin separately. Is this a webapp project? -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Maven release:prepare and NOT creating SNAPSHOTs
On Mon, Jun 20, 2011 at 3:46 PM, Neil Hart neilah...@gmail.com wrote: I would like to run release:prepare without creating a new development version. I don't always know the next version number when versioning the current build. Later I could run release:branch (perhaps). This is using Maven 2.2.1. Did you try setting developmentVersion? That seems to control the 'next snapshot'. http://maven.apache.org/plugins/maven-release-plugin/prepare-mojo.html FWIW I think it's a valid request. Sometimes I have 1.0-SNAPSHOT and I release 1.0-test then go back to 1.0-SNAPSHOT. I can test the release process without disrupting the developers. -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Why is this profile not being activated?
On Fri, Jun 10, 2011 at 10:40 AM, Asmann, Roland roland.asm...@adesso.at wrote: I also don't want the plugin in there (cobertura) to run everytime, because on some of my modules (which have only no sources, that's why I wanted to activate this way) it kills the performance with the alternative life-cycle! Is this the problem you're actually trying to solve? The Cobertura plugin has a 'skip' parameter. In the modules where you *don't* want it to run, configure it to skip execution. -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Why is this profile not being activated?
On Fri, Jun 10, 2011 at 5:09 PM, Asmann, Roland roland.asm...@adesso.at wrote: From what I've seen, the 'skip' parameter only exists on the instrument-plugin, not on the report. I don't want it to trigger the 'cobertura'-lifecycle, because this will trigger some other plugins that are *very* slow. The reason I want this configured in the parent, is that I can't influence all child-projects and I don't want to force all developers to change much in their POMs. They are already chagrined that they have to extend my POM, although they are starting to see the use of a common parent... Still... it seems like whatever problem you're having, it's not about profile activation, it's more about getting something fixed in the Cobertura plugin, so that it does not 'kill the performance' of your build. -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Question on poms
On Wed, Jun 8, 2011 at 1:45 PM, Refr Bruhl refr_br...@yahoo.com wrote: I get the following warnings in my builds. I've had to add jars manually to my local repository. How did you do that? What steps do I need to to do to create these poms sine they didn't arrive with the original vendor? Depending on how they got there... the install:install-file goal has an option to generate a minimal pom. However, looking at the list of things it's complaining about, are you sure there's no pom in central for commons-io ? It's best to run a repository manager and put the artifacts there, so you don't have to re-do this if you blow away your local repo for any reason. -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Question on poms
On Wed, Jun 8, 2011 at 2:25 PM, Refr Bruhl refr_br...@yahoo.com wrote: I used the instructions at http://maven.apache.org/guides/MavenQuickReferenceCard.pdf for adding 3rd party libraries to my repository. Interesting... haven't seen that before! So you used mvn install:install-file? Odd.. http://maven.apache.org/plugins/maven-install-plugin/install-file-mojo.html says generatePom defaults to true. Try re-doing mvn install:install-file and adding -DgeneratePom=true . -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Signed JAR in WAR
On Mon, Jun 6, 2011 at 8:33 AM, Jesterson jesterov...@gmail.com wrote: Hi, what is the best way to put signed jar (applet) to war? I have two projects - child (jar with applet) and parent (war), i'm signing jar in parent project, but how to put signed jar to applet dir in war? Apache Archiva includes an applet in its webapp. You can look at http://svn.apache.org/repos/asf/archiva/trunk/archiva-modules/archiva-web/archiva-webapp/pom.xml to see how it's done there. -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Problem in delpoying an external jar to the local repo
On Fri, May 20, 2011 at 1:00 AM, uday shankar adonis.u...@gmail.com wrote: Hi Rafael, This is the command i used : mvn install:install-file -Dfile=D:\Ota_Sonata.jar -DgroupId=org.mule.modules -DartifactId=Ota_Sonata -Dversion=1.0 -Dpackaging=jar -DgeneratePom=true after deploying with this command I had the problem which I mentioned.Please suggest a way forward Paste the dependency element from your pom and double check the spelling. If you installed it successfully and now can't retrieve it, something doesn't match. Separately, installing it under the org.mule group is questionable. Unless you work at (I think) Mulesoft you should pick your own groupId. -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Looking for a pom property that stores the deploy URL
On Fri, May 20, 2011 at 5:02 PM, Freeman, Brian brian.free...@libertymutual.com wrote: Here is my issue: I am currently using Maven with Nexus to save our build artifacts. After we create the artifact and it has been deployed out to Nexus I would like to run an Ant script that we use to publish the URL as part of a build result. Establish a property in the pom, and use it in both distributionManagement and the snippet where you need to publish it. You'll have to construct the download url by stringing together the groupId (with slashes instead of dots) the artifact Id and version. Most of that can be done with the available properties. -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Multi-module Web project - test-jar not copied
On Tue, May 17, 2011 at 11:51 AM, Kiren Pillay kirenpill...@gmail.com wrote: Hi I have a multi-module maven web project which builds a war file. Withing the WAR module I have some unit tests as well. I noticed now that when I build the application from the root directory, the test-jar is built, but does not get copied to the local repository. Another test-jar is being placed in there for some reason. If you have enough code in your war module that you're interested in the unit tests, then the code should probably be moved out to its own jar module. (The webapp would then depend on that jar.) Most likely the jar plugin will start behaving the way you want at that point. I'm not certain what configuring the jar plugin is going to do when the packaging is war. -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Bootstraping a repository manager
On Thu, May 19, 2011 at 12:40 PM, Heck, Gus (Patrick) gus.h...@aspentech.com wrote: Hmm, how would I go about convincing maven-plugins such as clean to only use the latest versions (in some cases it just seems to be a dep on the pom file, not any actual jars). Don't know where I would find the handle for this in maven, unless one does it by editing the poms that are wandering off into past versions I suppose. No, don't mess with the released poms for the plugins. Ron was talking about controlling what dependencies are used in your own projects. There are two separate things here: - the plugins and other libraries Maven uses to build your code - the actual artifacts the build produces that contain your compiled code, config files, etc. Are you really that concerned about how many parent poms Maven needs to download to do its job? For Maven plugins with an internal (disconnected) repository, you will go mad trying to download-and-upload each thing individually. There will be hundreds of Maven/Plexus/Commons/Etc jars to find. Just let Maven gather it all up, give it a once over, and put it in your repo. Or is the real issue that you want to make sure you know exactly what your code depends on and what you are putting in production or delivering to customers? In my experience, that's the bigger issue. -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Bootstraping a repository manager
On Thu, May 19, 2011 at 12:48 PM, Heck, Gus (Patrick) gus.h...@aspentech.com wrote: Interesting however that nobody has yet mentioned the apache home grown archiva... Most open source projects don't do a lot of advertising. You know where to find us if you want to give it a try. ;) -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Bootstraping a repository manager
On Wed, May 18, 2011 at 5:21 PM, Heck, Gus (Patrick) gus.h...@aspentech.com wrote: I can't seem to find a place to download something that I can upload directly to artifactory, so I tried to start with the first plugin that was failing, and build that and see if mvn deploy would deploy it to artifactory. (First, question... is that a reasonable idea?) That would be: http://repo1.maven.org/maven2 However it is not going to be fun to find each thing you need and upload it to your internal repository manager. (I work with a company that does it this way.) Especially for plugins. Is there any middle ground? Let the repository manager proxy into a segregated directory, vet everything in there and then move it to the pristine internal repo? Unfortunately, as soon as I did svn checkout http://svn.apache.org/repos/asf/maven/plugins/tags/maven-clean-plugin-2. 4.1 maven-clean-plugin cd maven-clean-plugin mvn deploy Hmm... first, do you *really* have a requirement to build everything from source? -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Bootstraping a repository manager
On Wed, May 18, 2011 at 7:56 PM, Heck, Gus (Patrick) gus.h...@aspentech.com wrote: As I explained in another response, I want the software to tell me when I've got enough stuff to build (much like test driven development), rather than trusting I covered everything post-hoc. As for doing it with ant projects, I've certainly been there. At one job I wrote a custom ant task that looked at /lib, a properties file and a directory called /licenses. If the jar in lib didn't have an entry in the properties file, or the value for that jar in the properties file didn't match the name of a file in /licenses, the build failed. Not really that hard to implement. As you say, the big time sink is in hunting down the licenses, but in the current job I have to do that anyway to include a copy of the license with the approval form for the lawyers... nothing maven can do about that. The only irritation is that some basic artifacts seem to be hard to find and instead of an answer such as the artifacts you need can be found here I get a chorus of don't do that Hm? I already told you where the things are. In the central repository. (And you need both the jar and the pom for it to work.) Typically the only organizations that can afford to be this paranoid are really big ones. I work with one of those. The internal Maven repo does not talk to the internet. Instead, developers fill out a web form to request a new artifact to be uploaded, someone approves it if it's in the standards, or sends them off to the reference architecture team to explain why they need it, and then someone else presses the buttons in Archiva to upload it. Plugins are a special case. Those we handle within the build team, as they typically want all kinds of dependencies. So for those we connect to the internet and use the Maven Assembly plugin to create a repository bundle by listing the plugin as a dependency. Maven goes off and gets everything that plugin needs, and the whole bundle is uploaded. Those artifacts generally aren't going to get into your end product, they are just used during the build. By the way, I am a bit irritated that maven put's the repository information out on the developer's settings.xml. I'd much rather be able to manage that centrally, and not leave it as something that they could screw up, or forget to do after their hard drive fails and the set things up a second time. Is there a way to lock things into a single repository without settings.xml? That's where it's done, with a mirror in settings.xml. You can create your own Maven distribution with the settings.xml you want them to use packaged inside it (in the /conf directory.) I assume if you're this strict about dependencies, developers are not downloading random software from the internet and installing it on their machines, so provide the Maven distro you want them to use. -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: How to apply Maven -f command line option to sub-projects
On Sat, May 14, 2011 at 7:21 AM, labulle22 labull...@gmail.com wrote: How to configure Maven in order to be able to not use the default pom file name (pom.xml) for the sub-projects of a main project? AFAIU the -f option only applies on main project. Why are your poms named differently? (This usually comes up when you're trying to do something for which there's a better solution, so explaining the underlying problem you're trying to solve will get you better answers.) -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Maven Issue with javadoc
On Wed, May 11, 2011 at 3:02 AM, Jagadeesh Naidu G jagadeesh...@hcl.com wrote: Embedded error: Error rendering Maven report: Exit code: 1 - /u/wc/work/local/mediabus/mediabus-rel/trunk/target/checkout/mediabus-transcoder/src/test/java/com/mtvi/mediabus/anystream/AnystreamResponseHandlerTest.java:11: cannot access com.mtvi.mediabus.anystream.AnystreamResponseHandler bad class file: /u/wc/work/local/mediabus/mediabus-rel/trunk/target/checkout/mediabus-transcoder/target/generated-classes/cobertura/com/mtvi/mediabus/anystream/AnystreamResponseHandler.class class file contains wrong class: org.junit.Test The location of the bad class file is ...generated-classes/cobertura... . Try disabling the Coberura plugin and see if the problem goes away. Then look at your configuration for both Cobertura and Javadoc. Do you even *want* Javadoc for generated classes? -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Nested artifacts
On Tue, May 10, 2011 at 3:19 PM, EJ Ciramella ecirame...@casenetinc.com wrote: Is there a simple way to unpack a dependency then unpack an artifact that lives inside that dependency? We have several third party utilities stored in Nexus and referenced as dependencies, but I'd like to unpack a rar that is nested within a zip. Is there a maven 2 way or do I just rely on an ant task? I would probably unpack the zip myself and deploy the rar artifacts to the repository once, rather than trying to do it every time you build. How frequently do the third party utilities change? -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Getting compilation errors despite including the correct repo
On Tue, May 10, 2011 at 9:23 AM, laredotornado-3 laredotorn...@gmail.com wrote: The test is in my src/main/test directory. Where else should it be? I have nothing in my src/main/java directory. Below is the output of running the above command. - Dave I can see that it compiles the test class [INFO] Compiling 1 source file to /Users/davea/Documents/workspace-sts-2.6.0.SR1/infinitiusa_leads_testing/target/test-classes then... There are no tests to run. So... what's in that test source code file? Does the name follow one of the default pattern? See: http://maven.apache.org/plugins/maven-surefire-plugin/examples/inclusion-exclusion.html -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Run a multimodule build up to a certain module in maven 3
On Thu, May 5, 2011 at 2:44 PM, Wim Deblauwe wim.debla...@gmail.com wrote: I want to run the build up to the 'server' module, but not run the installer and installer-gui modules. What would be the easiest way to do this in Maven 3? In Maven 2, i used the reactor plugin for it. Is this still the best way or is there a better/easier way in Maven 3? You could put the modules you build less often in a profile, and activate the profile only when you need it. -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Preventing an inherited plugin from running?
On Tue, May 3, 2011 at 1:01 PM, Laird Nelson ljnel...@gmail.com wrote: I have a parent pom that has a plugin specified in its build section. The plugin is bound to the package phase. In my child POM, I would like to somehow configure the child project so that this plugin does NOT run. It would help to know which plugin. Check to see if it has a skip parameter that you can configure in the child. Otherwise, you can't really un-inherit things. -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Maven release plugin question
On Tue, May 3, 2011 at 2:45 PM, Yaakov Chaikin yaakov.chai...@gmail.com wrote: Did I configure scm wrong? How does that compare to the output of 'svn info' at the top of your project? Usually a svn url has 'trunk' or 'branches' somewhere in it... The scm url should match the location of your pom.xml (minus the filename). -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: How to use wagon-ssh-external instead of wagon-ssh?
On Mon, May 2, 2011 at 6:11 AM, Andreas Sewe s...@st.informatik.tu-darmstadt.de wrote: thanks for your suggestion. I am afraid, it didn't help: When declaring a plugin dependency, the maven-site-plugin now has both org.apache.maven.wagon:wagon-ssh-external:jar:1.0-beta-7 and org.apache.maven.wagon:wagon-ssh:jar:1.0-beta-6 as a dependency, but it still insists on using the latter for sftp URIs. :-( Perhaps you need to exclude the one you don't want? Maven doesn't recognize one as a replacement for the other, it just sees two separate artifacts. -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Logistic Regression
On Fri, Apr 29, 2011 at 4:44 PM, Wayne Fay wayne...@gmail.com wrote: I did send a message along afterwards apologizing. Did that not get through? I got it and assume everyone else did too. Too many apache projects start with 'm'. Simply to satisfy my curiousity, which project that starts with m were you talking about in your original email? ;-) I'm going to guess... Mahout. :) -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Maven and Subversion.
On Wed, Apr 20, 2011 at 6:59 AM, Marc Rohlfs pomar...@googlemail.com wrote: I was just thinking a bit about this. You're facing different problems You won't be able all at once: 1. You could create the releases of the sub modules independently (first You'd have to create a release of the parent, using 'mvn release:prepare release:perform -N'). Not necessarily. If that parent (in the directory with the svn externals) is only there as an aggregator for convenience, it never needs to be released. The projects themselves could have some other parent, like a corporate level parent pom that controls versions, etc. A project can only declare one parent but it's not 1:1. -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Maven and Subversion.
On Tue, Apr 19, 2011 at 2:38 PM, tpa...@loftware.com wrote: I have a multi module maven configuration ( a pom that runs multiple poms underneath it.). I made it a multi module project because the sub projects are very similar and it is convenient to run them all from one pom. However, I need each of these sub projects to be versioned independently. In subversion, you need to make trunk, tags, and branches folders for each project to do this. This breaks the multi module directory structure for Maven as it requires the pom to be in the top level folder for each of the sub projects. Does anyone have a solution as to the best way to make this work, or am I stuck with not using the multi module project in Maven? If the grouping is *solely* for convenience and you are never going to release from that top level pom, then you can use svn externals to pull it all together. You'll have a directory that contains the top level pom, and has the svn:externals properties set. When you check out the directory, you'll get all the subdirectories. Several open source projects I've worked on have used this, there might be a trunks or all directory that pulls in all the interesting bits. For CI or when you're ready to release, go back to the 'real' trunk and do it from there. -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: archetype:generate as an authorized user?
On Sun, Apr 10, 2011 at 11:08 PM, Brinker, Don-NONEMP dbrin...@collegeboard.org wrote: We've got a server in place at my company serving up local artifacts. To secure the server (and not expose our stuff anymore than we have to) we have users defined and anonymous access disabled. So far so good - we can query and deploy artifacts just fine. Now here's where things get interesting: archetype:generate doesn't seem to pay any attention to my settings.xml. The server logs that it received an unauthenticated user request for the catalog. I was HOPING generate would match the archetypeCatalog URL to the URL of a repository in my settings, but no luck. It doesn't match by url, it matches by repository id. Is there a way to send a repo id in addition to the url? -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: The maven-assembly-plugin and a large complex project.
On Thu, Apr 7, 2011 at 5:30 AM, Adam Gibbons adam.s.gibb...@gmail.com wrote: Alex, that's perfect! Exactly the kind of thing I'm trying to do myself. Would you mind posting your reactor, war, jar and parent poms please? I'd really like to see a working example of this in action. There are lots of open source projects out there where you can see the whole thing. Have a look at the Apache Archiva (repository manager) build: http://svn.apache.org/repos/asf/archiva/trunk/ The hierarchy is much deeper here, but if you start at http://svn.apache.org/repos/asf/archiva/trunk/archiva-modules/archiva-base/ you will see the pom.xml in that directory has typepom/type and a list of modules that match the subdirectories. If you list *all* the subdirectories as modules Maven will figure out the build order based on how they depend on each other. -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: The maven-assembly-plugin and a large complex project.
On Wed, Apr 6, 2011 at 10:37 AM, Adam Gibbons adam.s.gibb...@gmail.com wrote: At the moment I don't think the jar modules get compiled/deployed when i build the war. What makes you say that? What exactly are you doing and what happens vs. what you expected to happen? Guessing, I'd say you are in one of the war subdirectories typing mvn install. In that case, no, the Maven command line is not going to go build anything else. (If you need that to happen, I think some IDEs can handle it for you.) Instead, move up a level to the top-level pom shown in Karl's example structure, and build from there. Maven will then figure out the correct order and build everything for you. -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: The maven-assembly-plugin and a large complex project.
On Wed, Apr 6, 2011 at 10:44 AM, Adam Gibbons adam.s.gibb...@gmail.com wrote: Also I refer you to: http://maven.apache.org/plugins/maven-assembly-plugin/which states that it can create distributions in the war format. It *can* but you generally only need it if the war plugin is not doing what you need. When building a war, the war plugin is the logical choice _until_ you run into some complication that the war plugin can't solve. -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: The maven-assembly-plugin and a large complex project.
On Wed, Apr 6, 2011 at 10:56 AM, Adam Gibbons adam.s.gibb...@gmail.com wrote: for example let's say i build my pdf-creation.war file. this depends on a tree-like structure of sub modules and some in-house jar files. It seems that when I build the war the sub module tree is pulled in and the in-house dependencies/jars, but i think the jars are coming from the local repo. Correct. Maven will first look in your local repo then in remote ones. Unless it's looking for snapshot updates,which by default it does once a day. Are you using version numbers that end in -SNAPSHOT? (You should be.) what i would like to happen is that it sees there are new compilation changes in the jar modules, it compiles and deploys those and then will go on to pull in the rest of the sub modules to build the war. That's out of scope for Maven command line if you are *just* building the war from its subdirectory. As I mentioned, it's something your IDE might handle for you. or have i got that wrong and it is actually doing as i though? is there an easy way to call the deploy plugin every time you do a package? If you want it to deploy, use mvn deploy instead of (I assume) mvn package. That will also put it in your local repo since install is just before deploy in the lifecycle. Note that you still haven't told us exactly what you're doing and what output you're getting vs. what you expect, so we're still guessing. :) -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: The maven-assembly-plugin and a large complex project.
On Wed, Apr 6, 2011 at 11:06 AM, Adam Gibbons adam.s.gibb...@gmail.com wrote: Yes, +-- pom.xml +-- m1 (j1, j2) +-- m2 (j3) +-- m3 (j1, j3) +-- m4 +-- m5 +-- j1 +-- j2 +-- j3 +-- war1 (m1,m2,m3) +-- war2 (m4) +-- war3 (m5) This setup is effectively what I have so far. However I am unable to use parent on a number of modules (as some have more than 1). On reading the doco I don't believe this actually matters. Each pom should have a parent pointing to the pom in the directory above it. That pom should have modules pointing down to its subdirectories. Whatever you're doing that makes you think a module has more than one parent is likely the cause of the confusion. Am I right in thinking that the root pom only need include the war modules and everything else should be taken care of? No, the root pom needs to include a module element for each subdirectory. Including the jars. I guess the main issue I'm having trouble wrapping my head around is if doing a package from the top level pom, how and when to jars get compiled/deployed and what do you need to do to achieve this? List them all as modules. (Assuming they are subdirectories. The hierarchy can actually be more complex with levels of parents, but for now I'd get it working as a flatter structure with a single parent that lists all of your modules. Then refactor later if you find duplication.) -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: The maven-assembly-plugin and a large complex project.
On Wed, Apr 6, 2011 at 11:07 AM, Wendy Smoak wsm...@gmail.com wrote: That's out of scope for Maven command line if you are *just* building the war from its subdirectory. As I mentioned, it's something your IDE might handle for you. Hmm, well... maybe not. The output of mvn --help includes: -amd,--also-make-dependentsIf project list is specified, also build projects that depend on projects on the list However, I can't find much documentation on it. It's mentioned here... http://maven.apache.org/guides/mini/guide-multiple-modules.html ... which refers to a Maven command line interface reference which doesn't seem to exist. You might want to start a separate thread to ask about that feature and see if it might be what you need. -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Mail for one subscriber bounces
On Wed, Mar 30, 2011 at 3:47 AM, Anders Hammar and...@hammar.net wrote: When posting to this list the mail to one of the subscribers bounces and I get a notification about this. Very annoying! Not sure who I should contact about this, but someone more Apache involved on this list maybe know? The right place to ask is users-owner@ instead of the users@ list itself, which is mostly composed of people who can't do anything about it. :) I'm working with the infra guys to get the address unsubscribed, it should stop happening soon. -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Custom tags in the pom
On Wed, Mar 30, 2011 at 9:06 AM, Phillip Hellewell ssh...@gmail.com wrote: Is there any way short of recompiling Maven to allow custom tags in the pom.xml? Specifically, I would like to have a special tag inside dependency. It's ok if Maven ignores it; I will just look at it from my plugin that will parse the pom manually if it has to. So... what problem are you trying to solve? There may be another way short of recompiling Maven... -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Versions in dependencyManagement vs dependency?
On Tue, Mar 29, 2011 at 1:59 PM, Laird Nelson ljnel...@gmail.com wrote: Just out of curiosity, where is it written down that one can depend on an artifact of type pom? I've always been curious about this. Are you asking about import scope? http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html#Importing_Dependencies -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Compiling modules with different jdk versions
On Tue, Mar 29, 2011 at 12:12 PM, Jenison, Mark A mark.a.jeni...@jpmchase.com wrote: I have a multi-project configuration with a parent pom specifying a compiler plugin with a default of jdk1.5 specified in the parent pom's dependency management section. However, I have two submodules with packaging as jars that need to be compiled with jdk1.4. Does it really need to be compiled _with_ 1.4, or just _for_ 1.4? You can set the -source and -target arguments for javac by configuring the compiler plugin, and then you'll get a 1.4 compatible jar. http://maven.apache.org/plugins/maven-compiler-plugin/examples/set-compiler-source-and-target.html Otherwise, this might help... http://maven.apache.org/plugins/maven-compiler-plugin/examples/compile-using-different-jdk.html If you're still having trouble, paste the relevant snippets of your pom into your email so we can see what you're doing, or construct a sample project that someone can try. -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Procedure for updating Internal Repo with 3rd party
On Tue, Mar 29, 2011 at 1:06 PM, Godschall, John jgodsch...@firstmarblehead.com wrote: I have used the depoy:deploy-file plugin but this does not seem to include the pom, the md5 and sha1 files. In addition, some projects have a parent pom structure as well. Can you paste the command you used, and what happened? There is an option to generate the pom, or to provide it if you have one for the artifact already. http://maven.apache.org/plugins/maven-deploy-plugin/deploy-file-mojo.html I currently do not use a Repository Manager Well, there's the real solution. ;) Why not? You can run it locally and point to http://localhost instead of (I assume) file:///internal_repo1 . -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: enforcer plugin rules to prevent circular dependencies
On Fri, Mar 25, 2011 at 5:55 AM, Caoilte O'Connor caoi...@gmail.com wrote: Hi, I've just discovered the enforcer plugin and would like to use it to reduce our dependency conflicts but a bigger problem for us when it does turn up are circular dependencies. The Dependency Tree plugin spots these, but does anyone have any rules for the enforcer plugin to fail the build if it occurs? In what situation does the build get far enough to use a plugin to detect this? I thought Maven would just stop with an error if it encountered a cycle. -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Is there a way to ignore profiles in settings.xml?
On Fri, Mar 25, 2011 at 12:18 PM, Rafael Vanderlei rafaelvander...@gmail.com wrote: If I configure my .m2/settings.xml to activate some profiles, is there a way to deactivate all of them on the command line in one go, so I can use only explicitly typed profiles? Why are there so many profiles and what are they for? (If you explain what problem you're trying to solve, someone can probably help you come up with a better solution. Clearly, having a bunch of profiles that are active by default and then wanting them to NOT be active indicates something is wrong.) -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Is there a way to ignore profiles in settings.xml?
On Fri, Mar 25, 2011 at 6:08 PM, Rafael Vanderlei rafaelvander...@gmail.com wrote: The profiles I need to be active by default are configure with activeByDefaulttrue/activeByDefault . If one developer needs to do something unusual, he simply runs ' mvn -Pprofile1,profile2 package ' . By doing so, all the activeByDefault profiles will be automatically deactivated and only the profiles explicitly defined will be activated. What version of Maven are you using? I thought that behavior (which was awfully non-intuitive) had changed... -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Is there a way to ignore profiles in settings.xml?
On Fri, Mar 25, 2011 at 6:14 PM, Rafael Vanderlei rafaelvander...@gmail.com wrote: I'm using Maven 2.2.0, although I'm planning to migrate to Maven 3.. I hope this behavior hasn't changed in Maven 3, since I'm quite depending on it right now. Maybe it was just discussed but not changed. At least, http://maven.apache.org/guides/introduction/introduction-to-profiles.html still says All profiles that are active by default are automatically deactivated when a profile in the POM is activated on the command line or through its activation config. -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Adding files to target before creating war
On Mon, Mar 21, 2011 at 10:55 AM, Sam Adams sbad...@gmail.com wrote: I'm now in a situation where I want to overwrite some standard files (properties, etc) for certain profiles. What problem are you trying to solve? It sounds like you're using profiles to produce *different* war files depending on what gets activated, which is generally not a good idea. -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Adding files to target before creating war
On Mon, Mar 21, 2011 at 11:28 AM, Sam Adams sbad...@gmail.com wrote: This is exactly what I'm trying to do. Why is this not a good idea and what are the alternatives? Depends on *why* you're trying to do that, which is why I asked what problem you're trying to solve. In general... either externalize the configuration or pack it all inside and use something that can select the right file so that you move the exact same war through the (I assume) different environments. If you build a war for QA, test it, and then build a war for production and deploy it... what have you *really* tested? -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: ZIP and UNZIP the code source in another project
On Mon, Mar 21, 2011 at 4:26 AM, Nguyen Tien Luong tienluon...@yahoo.com wrote: But does Overlay work in dev mode? It means when I modify some JSP in PROJECT-A, the PROJECT-B will be updated automatically at its deployment ( right click on PROJECT-B/ Run on server ) ? Maven doesn't have any right-click, it's a command line tool. :) You'd have to ask the developers of the IDE integration for whatever it is you're using. (And possibly open a bug, since you say it doesn't work.) -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: ZIP and UNZIP the code source in another project
On Thu, Mar 17, 2011 at 10:08 AM, Nguyen Tien Luong tienluon...@yahoo.com wrote: Hi maven's users, Maybe the title is not understandable enough, here is my example: I have PROJECT-A which contains only JSP files. For each PROJECT-B which depends on PROJECT-A, I want that maven go and get the JSP files in PROJECT-A and put in PROJECT-B with same folder's structure. Given that these are JSP files I assume this is a webapp. If you - make A a war file, which will be mostly empty, with the JSP files in the right layout - in B, declare a dependency on A with typewar/type Maven will treat the war type dependency as an overlay and automatically copy in the JSP files from A. http://maven.apache.org/plugins/maven-war-plugin/overlays.html -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: variable for poms. SOS
On Fri, Mar 11, 2011 at 10:56 PM, koxkorrita koxkorr...@laudio.info wrote: yes, i use snapshots but how can i use one variable for change it only into one place? If you're going to use a property to control a version number, it should go in a pom towards the top of the project hierarchy, not in settings.xml. (The settings.xml file is for developer-specific things like repository credentials.) Lots of people are already doing this, for example see the properties section in the Archiva parent pom: http://svn.apache.org/repos/asf/archiva/trunk/pom.xml Try moving it to the top level pom for your project, and if that still doesn't work, provide some snippets from your poms so we can see exactly what you're doing. (There are places where you cannot use properties, like inside parent.) -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Ignore Parent Plugin Declaration
On Thu, Mar 10, 2011 at 4:51 PM, Tim che...@gmail.com wrote: I tried to use the combine.// syntax but that doesn't work: plugin groupIdorg.codehaus.mojo/groupId artifactIdsql-maven-plugin/artifactId executions combine.self=override/ // also tried with combine.children /plugin Interesting. Where did you hear of that? I can't find anything on the Maven site: http://www.google.com/search?q=combine.self+site:maven.apache.org -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: How to include site into war file?
On Wed, Mar 9, 2011 at 9:22 AM, Jochen Wiedmann jochen.wiedm...@gmail.com wrote: No chance? I would probably package the site up as a zip and put it in the repository, then dependency:unpack it where you want it in the webapp. That assumes the documentation is in a separate module. Otherwise, I'd probably just expect to run mvn site install in order to build it (not trying to bind an execution of the site plugin in the project pom, as you've noted it has side effects.) If that doesn't help, try posting a simple example project that demonstrates the problem so people can play with it. -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Reindexing the local repository
On Tue, Mar 8, 2011 at 3:03 PM, Refr Bruhl refr_br...@yahoo.com wrote: The restart eclipse and let it update the indexes. I would think there would be an mvn command to force a regen of the indexes. Possibly, but you'd need to ask on the mailing list for your Eclipse plugin. AFAIK, Maven itself does not index its local repository. -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Retrieving all available versions of an artifact
On Fri, Feb 25, 2011 at 10:30 AM, Asmann, Roland roland.asm...@adesso.at wrote: I'm writing a plug-in and currently need a list of all available versions for a specific artifact. I've found this method: The Codehaus mojo dev list might be a better place to find plugin developers to ask... And you might want to look at the Versions Maven Plugin over there, I think it does something similar: http://mojo.codehaus.org/versions-maven-plugin/ . -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Creating a repository
On Thu, Feb 24, 2011 at 11:09 AM, Mark static.void@gmail.com wrote: I'm looking at Archiva and I was wondering where do I configure access to download/publish maven artifacts. I would prefer the user of SSH keys over username/passwords. Would this configuration be at the Archiva level, or would it be at the Maven level? Archiva has its own mailing lists, you can find info here: http://archiva.apache.org/mail-lists.html Downloading and publishing are two separate questions though. If you want to use scp for publishing, then you'd configure that in Maven settings.xml and Archiva wouldn't be involved with access control, it would just discover the artifacts the next time it scans. Not familiar with using scp for retrieving artifacts, that's always http/https afaik. -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: how can we replace properties values in the parent element .
On Tue, Feb 22, 2011 at 3:11 AM, chandra.c49 chandramohan@gmail.com wrote: And, if we build the parent and then the component without relativePath , it builds fine.But,not everytime we build from the component , and as the parent project name changes and is maintianed in the settings.xml profile; hence it requires a way where the relativePath can be dynamically loaded from settings.xml profiles. At the risk of sounding like a three-year-old... But, WHY? Why do you need to switch parents every time you build? This is not a standard/conventional Maven project structure. Most likely you need to consolidate the stuff in the 'different' parents into a single pom, possibly controlled by profiles. But until we hear why you're trying to do it in the first place, that's just a guess. -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Creating a Local Repository for Intranet Access without Internet Connection
2011/2/21 S. Gökce Çelik dgce...@yahoo.com: I am working in a company which has separate networks for internet and intranet, and a connection between those are strictly prohibited. I have to create a development environment at the intranet side. As far as I looked around there is no way to maintain the repository without a live connection to the central repository. Sure there is. You populate your internal repository manually, preferably vetting the artifacts somehow based on corporate policies, checking the signatures, etc. If there are no strict rules about the artifacts themselves and it's really only about the network separation, then I'd just do a build while connected to the outside world, zip up my local repo, transfer it to the internal repo server, and let my repository manager (Apache Archiva) fix the metadata and then merge it all into the appropriate permanent repositories. Maven is happiest when there is a remote repository to connect to, but there is no requirement that you have access to central. Any repo that contains the artifacts you need will do. -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: how can we replace properties values in the parent element .
On Fri, Feb 18, 2011 at 1:39 PM, chandra.c49 chandramohan@gmail.com wrote: My question was -- The build fails to run if we run a maven Component build with below parent element in place. The below parent element uses the relativePath element to refer , as it is located at different location with name customized . So, how can we pass this ${Comp1.Path} value at runtime . That's still not the right question. Why do you think you need to do this? What underlying problem are you trying to solve by using (I assume) different parents for different builds? If you go to the location of the parent and do mvn install then remove the relativePath in your project pom and try to build that, what happens? -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: how to NOT delete target dir?
On Thu, Feb 17, 2011 at 11:26 AM, Martin Trummer martin.trum...@dewesoft.org wrote: It would be good if it were possible to tell the maven-clean-plugin NOT delete the target dir, but only all of it's contents. Reconfigure the clean plugin to only delete what you want it to using excludeDefaultDirectories and filesets. http://maven.apache.org/plugins/maven-clean-plugin/clean-mojo.html -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Imported JAR causes problems in suboptimal situation
On Fri, Feb 4, 2011 at 8:18 AM, Steve Cohen sco...@javactivity.org wrote: Let's say one of my modules (Module A) depends on Hibernate v, X.Y.Z. If I change some code in one of my own modules (Module B) that depends on Module A, the system does not go out to the Internet or other non-local repository to see if Hibernate v. X.Y.Z has changed. Why is my third party imported dependency (which is versioned at 1.1.3, not a snapshot) treated any differently? Why does Maven want to check the non-local repos in this situation to see if it has changed? If it's a released version, Maven is not checking to see if it has changed. How did your third-party imported dependency get into your local repo? My guess is that the jar is there, but not the pom. So every time you build, Maven goes looking for the missing pom. Install the jar *with* a pom: mvn install:install-file with either -DpomFile=... if you have it or -DgeneratePom=true (which I thought was the default...) and this should stop. Another way to make this situation easier is to run a repository manager locally and configure a mirror in settings.xml to go to the repo on localhost. That way you can delete your local repo if needed and Maven will download everything again from the local machine. -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Imported JAR causes problems in suboptimal situation
On Fri, Feb 4, 2011 at 9:32 AM, Steve Cohen sco...@javactivity.org wrote: No, there is a POM. I believe I ran mvn:install:install-file and I would guess that you're right that -DgeneratePom=true is the default because I know I didn't create a POM myself. This POM is quite simple. Is it too simple? Or is this what -Dgenerate=true should generate? Should it's type be jar? dependency groupIdbiz.what.ever/groupId artifactIdever/artifactId version1.1.3/version typepom/type /dependency That does not look like the minimal pom that should be sitting beside the jar in your local repo. It shouldn't have a dependency, it should just list the groupId/artifactId/version, and yes, the type should be jar. Maybe remove it from your local repo and try installing it again? -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Generic location for servlet-api.jar
On Fri, Feb 4, 2011 at 4:44 PM, Kenneth Litwak klit...@apu.edu wrote: The POM reference only says this of provided: provided - this is much like compile, but indicates you expect the JDK or a container to provide it at runtime. It is only available on the compilation and test classpath, and is not transitive. If this is supposed to tell me that Maven downloads it automatically, it's a rather cryptic way of saying that. In fact, I'd never guess that from this. I don't like magic code. I'd rather put my jars in some location and make their existence explicitly known. That page isn't trying to explain where the jar comes from, it's explaining how it is used during the build. Try this: http://maven.apache.org/guides/introduction/introduction-to-repositories.html Echoing Manfred... if you want to be in total control, Maven is probably not the right tool. It's very opinionated software. -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Generic location for servlet-api.jar
On Fri, Feb 4, 2011 at 6:57 PM, Kenneth Litwak klit...@apu.edu wrote: My team leader has said we use Maven, so I have to become good at it. That said, I put this in my POM, dependency groupIdjavax.servlet/groupId artifactIdservlet-api/artifactId version${servletApiVersion}/version scopeprovided/scope /dependency and Maven complained that it could not find the javax.servlet artifact. I then read a page at the Maven site about downloading dependencies and then installing them in the local repository. What page? It might need to be changed, since that's not something you normally have to do. So I would like to know where I am supposed to download the dependency to? This apparently isn't an automatic download. Thanks. You aren't, Maven should download it automatically. I looked back through the thread and I don't see the actual error message you're getting. Can you post that? The dependency you posted looks okay, assuming you're defining that property for the version somewhere. I'm betting this is a connectivity problem. Are you behind a http proxy at work? -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Brand new to Maven, first build, didn't go well.
On Thu, Feb 3, 2011 at 10:28 AM, Amy o627m...@yahoo.com wrote: I will add that I'm at work and behind a firewall. I believe there is also a proxy through which all of my HTTP requests go. Here is some information about configuring Maven to go through your http proxy: http://maven.apache.org/guides/mini/guide-proxies.html Are the developers in your organization already using Maven? If so, they should have an internal Maven repository that you can build against -- ask them for advice on what to put in your settings.xml file. -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Releasing/Deploying multiple artefacts with maven-assembly-plugin : what is your opinion ?
On Thu, Feb 3, 2011 at 6:48 PM, Frederic Camblor fcamb...@gmail.com wrote: Nobody has any piece of advice against these options ? :( When you tell us you can't change anything, there's not much to say. Either move the configuration out of the war, or put it *all* in there and use something (like Spring) that can sense which environment it is running in and select the right config file. In any case, you want *one* artifact that can be used in the different environments. -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Oracle and IBM maven repos
On Thu, Jan 20, 2011 at 5:52 AM, Jonathan Vila Lopez jonathan.v...@gmail.com wrote: Hello Does anybody know the URL for the maven2 repos for Oracle and IBM ? There is some info on an Oracle Maven repo here: http://www.oracle.com/technetwork/database/berkeleydb/downloads/maven-087630.html (I found that you cannot browse the repo -- it will show 404 instead of a directory listing -- but the artifacts are there.) -- Wenduy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Create artifacts library for downloaded IBM jar files.
On Thu, Jan 20, 2011 at 6:51 AM, Jonathan Vila Lopez jonathan.v...@gmail.com wrote: As the IBM MQSeries jars are not in the apache maven repositories, I have downloaded the jars but now I would like to add to my Artifactory repository. but I have to do that one jar by one. That would be something to ask the Artifactory folks. Maybe they have a way to upload a bundle of jars at once. It's probably just as easy to write a shell script to mvn deploy:deploy-file ... the list of jars though. Is there any other better way to do that ? We are 4 developers and I would like to avoid that all of us have to download the jars and put them in our local repository. Adding them to your internal repo manager will solve that. -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: General exclusion of a dependency
On Mon, Jan 17, 2011 at 7:59 AM, Jesse Farinacci jie...@gmail.com wrote: The scope=provided instructs Maven to not actually bring that dependency into the classpath, thus, it behaves as a global exclude. My understanding of 'provided' is that it *does* go on the classpath for compilation, but it is not transitive (and does not get packaged). The typical use is for the Servlet API in your .war file -- you need it to compile, but you don't want it in WEB-INF/lib because the container will provide it. http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Distinguishing artifacts created on branches
2011/1/17 Lóránt Pintér lorant.pin...@gmail.com: Now, I'd like to create a branch of this one where I add a new feature. And this early adopter developer here wants to already build on my new feature, even before I merge it back to trunk, so I deploy my artifacts to Nexus. Now, I obviously can't deploy them under the same GAV coordinates, otherwise they'd overwrite the ones generated from trunk. I can think of two different options: Option 1, change the version number. When you merge, specify a range of revision numbers. That way you merge only the changes, not the state of the branch which includes the different version number. (Is this Subversion or something else?) Don't change the groupId, to Maven that makes it a totally different artifact. -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Problem with properties in Maven.
On Fri, Jan 14, 2011 at 9:08 AM, Alexander Vaysberg w...@vaisberg.de wrote: I think, that I a one problem with properties in maven found. The problem in pom with properties. If any know any other properties, which worked same. Please say. Thank you. The Problem can you reproduce with maven 2.2.1 and maven 3.0.1 in plug-in surefire. I create the property test: ... properties jmockit-ver0.998/jmockit-ver junit-ver4.8.2/junit-ver testbla/test /properties Can you post more of the pom? Where in the pom are the properties defined, and how are you using the properties elsewhere in the pom? If you can create a simple example project that demonstrates the problem, that's probably the quickest way to get someone to take a look. -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Deploy .war to shared hosting 'remote server'
On Thu, Jan 13, 2011 at 11:19 AM, Nigel Weinronk nweinr...@btinternet.com wrote: Thanks for your time much appreciated. I am looking a Cargo but in the simple case I have the 'shared hosting' remote server does not give me access to 'tomcat/manager' so I think this will not work either but I have only just started looking. If you just want to upload a file to an arbitrary place on some remote server, see if the wagon plugin will help. http://mojo.codehaus.org/wagon-maven-plugin/usage.html -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: maven deploy module conditionally
On Thu, Jan 6, 2011 at 8:36 AM, Steve Cohen sco...@javactivity.org wrote: But I would rather not, if possible, redesign my entire build process. I'd like to be able to modify it to call mvn deploy instead of mvn install. Of course this won't work with the nexus repository. So my question is, is there a way to tell maven, when building an assembly of modules, a) to only build release modules if their POM version number is not already in the repository, or b) alternatively, to simply not try to deploy release modules that already are in the repository or c) not to fail the whole build when an attempted deployment of a module fails for this reason? Set all your versions to end in -SNAPSHOT, that way you can leave them in the aggregated build without the repository manager complaining on deploy. If one of the modules is stable, do a release of it and have the other modules depend on that released version (but you can still build the next snapshot in your aggregator build.) -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: maven deploy module conditionally
On Thu, Jan 6, 2011 at 9:18 AM, Steve Cohen sco...@javactivity.org wrote: Set all your versions to end in -SNAPSHOT, that way you can leave them in the aggregated build without the repository manager complaining on deploy. Yes, I suppose I could do that (which is pretty much what I did before), but it sort of defeats the whole purpose of what I'm trying to accomplish here, which is, be a little more organized about what is release and what is in development. If one of the modules is stable, do a release of it and have the other modules depend on that released version (but you can still build the next snapshot in your aggregator build.) Is what you are saying, then, that I need to comment out the stable modules as modules in the aggregator project? That would pull them from the repo (they are then just dependencies, like third party jars)? It would be nice not to have to mess with the POMs in this way. That's what I'm looking for. No commenting out. I was trying to make the fewest changes to your current setup as possible, since you said you didn't want to redesign the build. Following the Maven conventions, you never have a non-SNAPSHOT version number checked in on a trunk or branch -- only on a tag. (Or briefly while a release is happening.) It sounds like right now you are building an artifact with a non-snapshot version number over and over. That goes against the idea that 'releases never change' -- releases should be built once, put in the repository, and pulled from there when needed. The version numbers make it clear what's under development and what's not. If module A depends on B-1.1-SNAPSHOT (being built in the aggregated build,) then B is under development. If A depends on B-1.0, then you are using a stable version of B. Maven does not currently have the concept of 'skip deployment if my version number does not end in -SNAPSHOT'. You'd probably have to put the deploy plugin configured to with 'skip=true' in a profile, and patch the profile activation code to understand that concept. -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Copying dependencies' binaries (dlls) for runtime
On Thu, Jan 6, 2011 at 11:56 AM, Phillip Hellewell ssh...@gmail.com wrote: You might also be interested in NPanday (http://incubator.apache.org/npanday/) which provides several .NET specific plugins if that's the flavour of DLL you are dealing with. Thanks,but at a quick glance it looks like NPanday is more to help with the build process, and to plug-in to the Visual Studio IDE, so it doesn't look like it will help me copy DLLs with special logic. With NPanday, you can treat DLLs like normal dependencies. NPanday copies them 'where you need them' automatically. (Though I'm a bit unsure about what you mean by 'runtime' in your original question.) -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Is there any way to stop the same version of pom file/build being built more than once?
On Wed, Jan 5, 2011 at 12:54 PM, baz themail bazthem...@gmail.com wrote: 1. Someone need to fix a bug in production. 2. Create a new branch for bug fix based on a label. 3. The newly created branch will contain older pom files with older version that already released in Nexus (or any Maven based repository). How is the branch being created? Either the release plugin or the scm plugin has a branch goal that will change the version number, though iirc it modifies the tag to do it, which I don't like. Or, you can use the versions plugin to easily set the new version. 4. Logically, once the branch is created from an older label, in order to avoid redeploying the old version numbers, the version number should be changed. 5. Say, if #4 is skipped, then the same version number that exist in Nexus will be overwritten after performing a release build. It shouldn't -- isn't there a setting to make it disallow this? 6. This is to assume that we should keep the old release version even if it is buggy. Released artifacts should never change, so yes, you should keep the old buggy version separate from the new fixed version. -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Is there any way to stop the same version of pom file/build being built more than once?
On Tue, Jan 4, 2011 at 12:28 PM, baz themail bazthem...@gmail.com wrote: Hi, Is there any way to stop the same version of pom file/build being built more than once? Being _built_? Probably not... anyone can check out a tag and re-build that version locally, nothing to prevent that from happening. (Nor should there be.) What's the real underlying problem? My guess is that it's about not overwriting released versions. In which case... are you using -SNAPSHOT version numbers and going through a release process? A repository manager to store your artifacts? Tell us more about your situation and most likely someone will have some advice for you. -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: What is this BoxEE support?
On Mon, Dec 27, 2010 at 5:37 PM, Steve Cohen sco...@javactivity.org wrote: Who are they and who gave them the right to create tickets from posts to this list? I had no idea I was working with such an organization. If they are abusing this list, their rights to post here should be revoked. I never saw them until today. It's most likely not them (Boxee) but someone (or some bot) who thought it would be cute to subscribe their support autoresponder to the list. I asked on the infra irc channel and got it removed. -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Merge local pom.xml with remote master pom.xml
On Sun, Dec 19, 2010 at 5:38 AM, Ben Stover bxsto...@yahoo.co.uk wrote: Assume I use a local pom.xml which includes/access a remote master pom.xml Do you mean that your project has a parent pom that is available in a remote repository? Now I want to take the full project and continue to develop it on my home computer. unfortuantely I have to access at home onto the remote computer with the master pom.xml. I assume you mean have _no_ access. If you try to build at home, do you get an error about it not being able to find the parent/master pom? So I must at first merge the local pom.xml with the master pom.xml at the university. Then I can take it with me and have the full pom.xml available at home. No... just take the master pom home with you along with your own project. If you're able to build at school, the pom will be in your local repository and you can copy it from there. At home, put the master pom in your local repository with mvn install:install-file ... and then your project build should work as usual. Merging poms is not something that's usually done. -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: What scope should source and javadoc dependencies be declared with?
On Thu, Dec 16, 2010 at 8:46 AM, Steve Cohen sco...@javactivity.org wrote: I wish to update a project to use the later version of a dependency. There are some incompatibilities and I'd like to try to come up to speed quickly. In the past I've simply gone to the project's web site and browsed or downloaded javadoc and/or source. But what's the right maven way to handle this? None of the scopes' definitions seem to fit this case? Generally the Maven integration in your IDE will handle retrieving the source and javadoc. You don't declare dependencies on them in your project. Tell us more about your workflow and someone might have a suggestion... -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: no dependency information available
On Thu, Dec 16, 2010 at 8:58 AM, Moser, Christian c...@metrohm.com wrote: Hello I'm using maven 3.0.1 I got following ouput everytime I've built a child project. The missing dependencies are declared in the parent project. The curious thing is that the build never fails and the [WARNING] messages are displayed at the end of the build. Futhermore are all of those missing dependencies found in my local repository.. It's not saying the dependencies are missing, it's saying the poms are missing. If I delete those dependencies from my local repo, Maven will download those deps from artifactory but with following error: Checksum validation failed, no checksums available from the repository for http://sp1:8081/artifactory/libs-releases/com/interactive/jcarnacpro/int _icons/2.6.0/int_icons-2.6.0.jar Is there anything else in that directory in Artifactory? It sounds like only the jar is in the remote repo. No checksums, no pom file. -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: File profile activation
On Sun, Dec 12, 2010 at 1:57 PM, Benson Margulies bimargul...@gmail.com wrote: In a parent profile, I have a profile that is supposed to activate based on the presence of a file in the tree of the child that uses the parent. It does not, and -X is not helping me ... since it seems to contradict itself. I must be missing something simple here, no? What version of Maven? Sounds like: http://jira.codehaus.org/browse/MNG-2363 -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Limiting dependency resolution depth
On Fri, Dec 10, 2010 at 7:22 AM, Mate Varga mate.va...@gmail.com wrote: However, I have all of the first level (direct) dependencies resolved. As far as my knowledge goes, it's enough to have the first level dependencies to compile a Java project, Not necessarily... it depends on whether the project developers are relying on transitive dependencies to bring in other stuff they need. For example, I can declare a dependency on Struts and then use BeanUtils classes in my code, because I know the Struts dependency will give me BeanUtils transitively. In any case, you can't just 'turn off' transitive dependency resolution in Maven. You mentioned you have an internal repo already, so if the maintainers of the remote repos you're trying to pull from won't cooperate, put the needed artifacts in your own repo and you'll be good to go. -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Reverse dependency tree
On Fri, Dec 10, 2010 at 4:02 PM, Phillip Hellewell ssh...@gmail.com wrote: What is the best tool out for generating a reverse dependency tree? Also, can anyone give some hints on where to look to set up Hudson or something else to trigger automatic builds of reverse dependencies Apache Archiva (repository manager) has a Used By tab that shows who has a dependency on the artifact you're viewing. If you want to build the latest of everything against the latest of everything else, you might have a look at Apache Gump. (I haven't looked but I imagine it has Maven support by now...) -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Problems uploading bundle to Sonatype
On Tue, Dec 7, 2010 at 7:46 AM, Greg Brown gk_br...@verizon.net wrote: The Pivot team is getting ready to release Apache Pivot 2.0, and we are (again) having trouble uploading our generated Maven bundles to the repository manager at https://repository.apache.org. The bundles are located here: It's unlikely anyone on the Maven users list can help. You probably need reposit...@a.o -- see http://www.apache.org/dev/repository-faq.html . -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Get a list of POMs
On Mon, Dec 6, 2010 at 9:45 PM, solo1970 sonia.lodoviche...@ericsson.com wrote: My question is if there is a way to get a list of POM files from the TOP POM in a multimodule project? You'll get more help if you describe the problem you're trying to solve rather than asking about a piece of the solution you've arrived at in isolation. What are you planning to do with this list? (And what are you looking for, a list of the full paths to the pom files? A list of module names? Artifact ids?) -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Catch 22 with clean phase
On Thu, Dec 2, 2010 at 3:08 PM, Phillip Hellewell ssh...@gmail.com wrote: There's a batch file I want to run during the clean phase. Problem is, the batch file lives below target/dependency, and the clean phase wipes target first, so then my batch file can't be found. What does the batch file do? Just guessing since you're trying to do it during clean, perhaps you could configure the clean plugin to delete some additional files? -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: use version of some dependency for another dependency
On Thu, Nov 25, 2010 at 6:59 AM, Ilya Basin basini...@gmail.com wrote: Now I need to add the foo-impl.jar to my dependencies, and it must be the same version as foo-api.jar. How? Set a property elsewhere in the pom (or further up the hierarchy) and use that for both versions: ${foo.version} You'll see this in various open source projects for things like Spring which have a lot of pieces. As an example, search for 'properties' in this pom: http://svn.apache.org/repos/asf/archiva/trunk/pom.xml -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Re[2]: use version of some dependency for another dependency
On Thu, Nov 25, 2010 at 7:49 AM, Ilya Basin basini...@gmail.com wrote: WS Set a property elsewhere in the pom (or further up the hierarchy) and WS use that for both versions: ${foo.version} I don't know the version of foo-api and foo-impl. If your project code depends on it, you need to know. If it's a transitive dependency, then it should be in the pom for the project you depend on, and you won't need to worry about it -- complain to the developers of *that* project until they fix their pom. (How are they compiling if it's not in there? Is it an optional dependency?) -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Deploying properties files.
On Wed, Nov 17, 2010 at 8:25 PM, asdas adasads zestriddle123...@gmail.com wrote: In my project I have a lot of *.properties files as well as some third party *.exe files. I know that using resources plugin I'm able to copy all this stuff to my target directory. What about deploying this things from target dir to remote repository ? I couldn't find any function that allows that. Any idea ? I would package the .properties files in a jar and deploy the jar. Use the dependency plugin to retrieve it and unpack it where you need it. The .exe files are binary artifacts of their own and could be deployed separately. But it really depends on what you're doing / how you're using them. What are you doing now and why isn't it working? -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: What is the right way to create a patch jar file?
On Fri, Nov 12, 2010 at 12:18 PM, Chris Helck chris.he...@us.icap.com wrote: I need to support patching: creating a jar file that has just those classes modified since a base line. Is Maven the right tool to do this? If so how? There is a patch plugin for Maven1, but nothing for Maven2. There is this... https://maven.apache.org/plugins/maven-patch-plugin/ (not sure if that has the same functionality as the Maven 1 plugin though.) Is this your code? If so I'd branch just that module, say from the 2.5.6 release, make the change, and release version 2.5.6.1 of that jar. -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Setting dependency with plugin generated jar
On Fri, Nov 12, 2010 at 12:24 AM, banka.ravi banka.r...@gmail.com wrote: I am finding a way to generate jar also in the war project and setting fer other projects depend on that. (Aside from all the advice you're getting to move the classes to a separate module...) Use the war plugin configuration that (I think) someone already pointed out, not a separate execution of the jar plugin. http://maven.apache.org/plugins/maven-war-plugin/faq.html#attached -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: release:perform deploy goal fails with duplicate deployment
On Tue, Nov 9, 2010 at 11:53 AM, Trevor Paterson trevor.pater...@roslin.ed.ac.uk wrote: the main .jar deploys ok, then the -sources.jar deploys ok, but then an attempt is made to deploy the -sources.jar a second time: causing a build failure That's not normal. What version of Maven are you using? Is there anything in the pom that could be causing it to think there are two -sources jars? From here it looks like the classified source jar has gotten attached twice, though I'm unsure if that's really possible. (Meanwhile if you need to get this release out, you can disable the Archiva feature that prevents overwriting released artifacts temporarily for that repository. Ask on the Archiva users list if you need more help.) -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org