Re: verify signatures of downloaded poms and jars

2011-07-14 Thread Wendy Smoak
On Thu, Jul 14, 2011 at 8:08 AM, Igory Lr 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 automatica

Re: uploading existing jar+pom as one artifact

2011-07-13 Thread Wendy Smoak
On Wed, Jul 13, 2011 at 8:14 AM, 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 ::jar: is > missing, no dependency information ava

Re: uploading existing jar+pom as one artifact

2011-07-11 Thread Wendy Smoak
On Mon, Jul 11, 2011 at 8:15 PM, Olaf Klischat wrote: > mvn deploy:deploy-file -Dfile=mylib.jar DpomFile=mypom.pom > -DgeneratePom=false -Durl= > > , it apparently just uploads the jar under the name mypom.pom>-.pom. You mentioned a timestamp, so... you're deploying a snapshot? And even though

Re: Mirrors and repositories

2011-07-08 Thread Wendy Smoak
On Fri, Jul 8, 2011 at 4:09 PM, Maven User 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 true somewhere. > What's extra confusi

Re: Mirrors and repositories

2011-07-08 Thread Wendy Smoak
On Fri, Jul 8, 2011 at 3:50 PM, Maven User wrote: > I thought I had a good handle on this, but can someone help me fully > understand the and 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

Re: Maven searching remote repo's for locally installed jars

2011-07-08 Thread Wendy Smoak
On Fri, Jul 8, 2011 at 8:53 AM, mschipperheyn 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 t

Re: question about mvn dir structure

2011-06-29 Thread Wendy Smoak
On Wed, Jun 29, 2011 at 9:12 PM, Joseph 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 t

Re: Windows/Maven and Role of "Archiva"

2011-06-27 Thread Wendy Smoak
On Fri, Jun 24, 2011 at 1:33 AM, wasi_shez 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 >            

Re: Windows/Maven and Role of "Archiva"

2011-06-23 Thread Wendy Smoak
On Thu, Jun 23, 2011 at 10:59 AM, wasi_shez 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

Re: Overriding distributionManagement Repositories

2011-06-23 Thread Wendy Smoak
On Thu, Jun 23, 2011 at 9:44 AM, Rick Mangi 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

Re: Release only updated modules

2011-06-22 Thread Wendy Smoak
On Wed, Jun 22, 2011 at 5:31 AM, Mattias Borgkvist 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:

Re: how to clean up all generated files under "target" directory

2011-06-21 Thread Wendy Smoak
On Tue, Jun 21, 2011 at 10:06 PM, samwun 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 "m

Re: Maven release:prepare and NOT creating SNAPSHOTs

2011-06-21 Thread Wendy Smoak
On Tue, Jun 21, 2011 at 9:19 AM, Neil Hart 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 > poi

Re: Maven release:prepare and NOT creating SNAPSHOTs

2011-06-20 Thread Wendy Smoak
On Mon, Jun 20, 2011 at 3:46 PM, Neil Hart 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 yo

Re: Why is this profile not being activated?

2011-06-10 Thread Wendy Smoak
On Fri, Jun 10, 2011 at 5:09 PM, Asmann, Roland 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

Re: Why is this profile not being activated?

2011-06-10 Thread Wendy Smoak
On Fri, Jun 10, 2011 at 10:40 AM, Asmann, Roland 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 th

Re: Question on poms

2011-06-08 Thread Wendy Smoak
On Wed, Jun 8, 2011 at 2:25 PM, Refr Bruhl 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.ap

Re: Question on poms

2011-06-08 Thread Wendy Smoak
On Wed, Jun 8, 2011 at 1:45 PM, Refr Bruhl 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 h

Re: Signed JAR in WAR

2011-06-06 Thread Wendy Smoak
On Mon, Jun 6, 2011 at 8:33 AM, Jesterson 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 i

Re: Looking for a pom property that stores the deploy URL

2011-05-20 Thread Wendy Smoak
On Fri, May 20, 2011 at 5:02 PM, Freeman, Brian 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 b

Re: Problem in delpoying an external jar to the local repo

2011-05-20 Thread Wendy Smoak
On Fri, May 20, 2011 at 1:00 AM, uday shankar 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

Re: Bootstraping a repository manager

2011-05-19 Thread Wendy Smoak
On Thu, May 19, 2011 at 12:48 PM, Heck, Gus (Patrick) 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 ---

Re: Bootstraping a repository manager

2011-05-19 Thread Wendy Smoak
On Thu, May 19, 2011 at 12:40 PM, Heck, Gus (Patrick) 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

Re: Multi-module Web project - test-jar not copied

2011-05-19 Thread Wendy Smoak
On Tue, May 17, 2011 at 11:51 AM, Kiren Pillay 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

Re: Bootstraping a repository manager

2011-05-18 Thread Wendy Smoak
On Wed, May 18, 2011 at 7:56 PM, Heck, Gus (Patrick) 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, >

Re: Bootstraping a repository manager

2011-05-18 Thread Wendy Smoak
On Wed, May 18, 2011 at 5:21 PM, Heck, Gus (Patrick) 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,

Re: How to apply Maven "-f" command line option to sub-projects

2011-05-14 Thread Wendy Smoak
On Sat, May 14, 2011 at 7:21 AM, labulle22 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 u

Re: Nested artifacts

2011-05-11 Thread Wendy Smoak
On Tue, May 10, 2011 at 3:19 PM, EJ Ciramella 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

Re: Maven Issue with javadoc

2011-05-11 Thread Wendy Smoak
On Wed, May 11, 2011 at 3:02 AM, Jagadeesh Naidu G 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 ac

Re: Getting compilation errors despite including the correct repo

2011-05-10 Thread Wendy Smoak
On Tue, May 10, 2011 at 9:23 AM, laredotornado-3 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] Compilin

Re: Run a multimodule build up to a certain module in maven 3

2011-05-09 Thread Wendy Smoak
On Thu, May 5, 2011 at 2:44 PM, Wim Deblauwe 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 th

Re: Maven release plugin question

2011-05-03 Thread Wendy Smoak
On Tue, May 3, 2011 at 2:45 PM, Yaakov Chaikin 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 filen

Re: Preventing an inherited plugin from running?

2011-05-03 Thread Wendy Smoak
On Tue, May 3, 2011 at 1:01 PM, Laird Nelson 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 kn

Re: How to use wagon-ssh-external instead of wagon-ssh?

2011-05-02 Thread Wendy Smoak
On Mon, May 2, 2011 at 6:11 AM, Andreas Sewe 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 a

Re: Logistic Regression

2011-04-29 Thread Wendy Smoak
On Fri, Apr 29, 2011 at 4:44 PM, Wayne Fay 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" > w

Re: Maven and Subversion.

2011-04-20 Thread Wendy Smoak
On Wed, Apr 20, 2011 at 6:59 AM, Marc Rohlfs 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 rele

Re: Maven and Subversion.

2011-04-19 Thread Wendy Smoak
On Tue, Apr 19, 2011 at 2:38 PM, 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

Re: archetype:generate as an authorized user?

2011-04-11 Thread Wendy Smoak
On Sun, Apr 10, 2011 at 11:08 PM, Brinker, Don-NONEMP 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 >

Re: The maven-assembly-plugin and a large complex project.

2011-04-07 Thread Wendy Smoak
On Thu, Apr 7, 2011 at 5:30 AM, Adam Gibbons 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 projec

Re: The maven-assembly-plugin and a large complex project.

2011-04-06 Thread Wendy Smoak
On Wed, Apr 6, 2011 at 11:07 AM, Wendy Smoak 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

Re: The maven-assembly-plugin and a large complex project.

2011-04-06 Thread Wendy Smoak
On Wed, Apr 6, 2011 at 11:06 AM, Adam Gibbons 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

Re: The maven-assembly-plugin and a large complex project.

2011-04-06 Thread Wendy Smoak
On Wed, Apr 6, 2011 at 10:56 AM, Adam Gibbons 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/

Re: The maven-assembly-plugin and a large complex project.

2011-04-06 Thread Wendy Smoak
On Wed, Apr 6, 2011 at 10:44 AM, Adam Gibbons 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 buildi

Re: The maven-assembly-plugin and a large complex project.

2011-04-06 Thread Wendy Smoak
On Wed, Apr 6, 2011 at 10:37 AM, Adam Gibbons 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 sub

Re: Custom tags in the pom

2011-03-30 Thread Wendy Smoak
On Wed, Mar 30, 2011 at 9:06 AM, Phillip Hellewell 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 . > It's ok if Maven ignores it; I will just look at it from my plugin > that will parse the p

Re: Mail for one subscriber bounces

2011-03-30 Thread Wendy Smoak
On Wed, Mar 30, 2011 at 3:47 AM, Anders Hammar 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 plac

Re: Procedure for updating Internal Repo with 3rd party

2011-03-29 Thread Wendy Smoak
On Tue, Mar 29, 2011 at 1:06 PM, Godschall, John 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? Th

Re: Compiling modules with different jdk versions

2011-03-29 Thread Wendy Smoak
On Tue, Mar 29, 2011 at 12:12 PM, Jenison, Mark A 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

Re: Versions in dependencyManagement vs dependency?

2011-03-29 Thread Wendy Smoak
On Tue, Mar 29, 2011 at 1:59 PM, Laird Nelson 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

Re: Is there a way to ignore profiles in settings.xml?

2011-03-25 Thread Wendy Smoak
On Fri, Mar 25, 2011 at 6:14 PM, Rafael Vanderlei 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.apach

Re: Is there a way to ignore profiles in settings.xml?

2011-03-25 Thread Wendy Smoak
On Fri, Mar 25, 2011 at 6:08 PM, Rafael Vanderlei wrote: > The profiles I need to be active by default are configure with > true . If one developer needs to do > something unusual, he simply runs ' mvn -Pprofile1,profile2 package ' . By > doing so, all the "activeByDefault" profiles will be autom

Re: Is there a way to ignore profiles in settings.xml?

2011-03-25 Thread Wendy Smoak
On Fri, Mar 25, 2011 at 12:18 PM, Rafael Vanderlei 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 f

Re: enforcer plugin rules to prevent circular dependencies

2011-03-25 Thread Wendy Smoak
On Fri, Mar 25, 2011 at 5:55 AM, Caoilte O'Connor 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 > a

Re: ZIP and UNZIP the code source in another project

2011-03-21 Thread Wendy Smoak
On Mon, Mar 21, 2011 at 4:26 AM, Nguyen Tien Luong 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

Re: Adding files to target before creating war

2011-03-21 Thread Wendy Smoak
On Mon, Mar 21, 2011 at 11:28 AM, Sam Adams 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 confi

Re: Adding files to target before creating war

2011-03-21 Thread Wendy Smoak
On Mon, Mar 21, 2011 at 10:55 AM, Sam Adams 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 a

Re: ZIP and UNZIP the code source in another project

2011-03-18 Thread Wendy Smoak
On Thu, Mar 17, 2011 at 10:08 AM, Nguyen Tien Luong 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 f

Re: variable for poms. SOS

2011-03-12 Thread Wendy Smoak
On Fri, Mar 11, 2011 at 10:56 PM, koxkorrita 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

Re: Ignore Parent Plugin Declaration

2011-03-10 Thread Wendy Smoak
On Thu, Mar 10, 2011 at 4:51 PM, Tim wrote: > I tried to use the combine.// syntax but that doesn't work: > >                 >                    org.codehaus.mojo >                    sql-maven-plugin >                     // also tried with > combine.children >                 Interesting. W

Re: How to include site into war file?

2011-03-09 Thread Wendy Smoak
On Wed, Mar 9, 2011 at 9:22 AM, Jochen Wiedmann 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

Re: Reindexing the local repository

2011-03-08 Thread Wendy Smoak
On Tue, Mar 8, 2011 at 3:03 PM, Refr Bruhl 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

Re: Retrieving all available versions of an artifact

2011-02-25 Thread Wendy Smoak
On Fri, Feb 25, 2011 at 10:30 AM, Asmann, Roland 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 loo

Re: Creating a repository

2011-02-24 Thread Wendy Smoak
On Thu, Feb 24, 2011 at 11:09 AM, Mark 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 Mav

Re: how can we replace properties values in the element .

2011-02-23 Thread Wendy Smoak
On Tue, Feb 22, 2011 at 3:11 AM, chandra.c49 wrote: >     And, if we build the parent and then the component without > , 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

Re: Creating a Local Repository for Intranet Access without Internet Connection

2011-02-21 Thread Wendy Smoak
2011/2/21 S. Gökce Çelik : > 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 r

Re: how can we replace properties values in the element .

2011-02-18 Thread Wendy Smoak
On Fri, Feb 18, 2011 at 1:39 PM, chandra.c49 wrote: >  My question was  -- The build fails to run if we run a maven Component > build with below element in place. The below element uses > the element to refer ,  as it is located at different > location with name customized . So, how can we pass

Re: how to NOT delete target dir?

2011-02-17 Thread Wendy Smoak
On Thu, Feb 17, 2011 at 11:26 AM, Martin Trummer 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.

Re: Generic location for servlet-api.jar

2011-02-04 Thread Wendy Smoak
On Fri, Feb 4, 2011 at 6:57 PM, Kenneth Litwak 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, > >        javax.servlet >        servlet-api >        ${servletApiVersion} >        provided >     > and Maven complained that it cou

Re: Generic location for servlet-api.jar

2011-02-04 Thread Wendy Smoak
On Fri, Feb 4, 2011 at 4:44 PM, Kenneth Litwak 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 t

Re: Imported JAR causes problems in suboptimal situation

2011-02-04 Thread Wendy Smoak
On Fri, Feb 4, 2011 at 9:32 AM, Steve Cohen 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

Re: Imported JAR causes problems in suboptimal situation

2011-02-04 Thread Wendy Smoak
On Fri, Feb 4, 2011 at 8:18 AM, Steve Cohen 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 Hi

Re: Releasing/Deploying multiple artefacts with maven-assembly-plugin : what is your opinion ?

2011-02-03 Thread Wendy Smoak
On Thu, Feb 3, 2011 at 6:48 PM, Frederic Camblor 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

Re: Brand new to Maven, first build, didn't go well.

2011-02-03 Thread Wendy Smoak
On Thu, Feb 3, 2011 at 10:28 AM, Amy 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

Re: Create artifacts library for downloaded IBM jar files.

2011-01-20 Thread Wendy Smoak
On Thu, Jan 20, 2011 at 6:51 AM, Jonathan Vila Lopez 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 t

Re: Oracle and IBM maven repos

2011-01-20 Thread Wendy Smoak
On Thu, Jan 20, 2011 at 5:52 AM, Jonathan Vila Lopez 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 can

Re: Distinguishing artifacts created on branches

2011-01-17 Thread Wendy Smoak
2011/1/17 Lóránt Pintér : > 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

Re: General exclusion of a dependency

2011-01-17 Thread Wendy Smoak
On Mon, Jan 17, 2011 at 7:59 AM, Jesse Farinacci 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 trans

Re: Problem with properties in Maven.

2011-01-14 Thread Wendy Smoak
On Fri, Jan 14, 2011 at 9:08 AM, Alexander Vaysberg 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 mav

Re: Deploy .war to shared hosting 'remote server'

2011-01-13 Thread Wendy Smoak
On Thu, Jan 13, 2011 at 11:19 AM, Nigel Weinronk 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 start

Re: Copying dependencies' binaries (dlls) for runtime

2011-01-06 Thread Wendy Smoak
On Thu, Jan 6, 2011 at 11:56 AM, Phillip Hellewell 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

Re: maven deploy module conditionally

2011-01-06 Thread Wendy Smoak
On Thu, Jan 6, 2011 at 9:18 AM, Steve Cohen 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

Re: maven deploy module conditionally

2011-01-06 Thread Wendy Smoak
On Thu, Jan 6, 2011 at 8:36 AM, Steve Cohen 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 wa

Re: Is there any way to stop the same version of pom file/build being built more than once?

2011-01-05 Thread Wendy Smoak
On Wed, Jan 5, 2011 at 12:54 PM, baz themail 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).

Re: Is there any way to stop the same version of pom file/build being built more than once?

2011-01-04 Thread Wendy Smoak
On Tue, Jan 4, 2011 at 12:28 PM, baz themail 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

Re: What is this BoxEE support?

2010-12-27 Thread Wendy Smoak
On Mon, Dec 27, 2010 at 5:37 PM, Steve Cohen 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 unt

Re: Merge local pom.xml with remote master pom.xml

2010-12-19 Thread Wendy Smoak
On Sun, Dec 19, 2010 at 5:38 AM, Ben Stover wrote: > Assume I use a local pom.xml which includes/access a remote master pom.xml Do you mean that your project has a pom that is available in a remote repository? > Now I want to take the full project and continue to  develop it on my home > comp

Re: no dependency information available

2010-12-16 Thread Wendy Smoak
On Thu, Dec 16, 2010 at 8:58 AM, Moser, Christian 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 dis

Re: What scope should source and javadoc dependencies be declared with?

2010-12-16 Thread Wendy Smoak
On Thu, Dec 16, 2010 at 8:46 AM, Steve Cohen 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 javad

Re: File profile activation

2010-12-12 Thread Wendy Smoak
On Sun, Dec 12, 2010 at 1:57 PM, Benson Margulies 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 b

Re: Reverse dependency tree

2010-12-10 Thread Wendy Smoak
On Fri, Dec 10, 2010 at 4:02 PM, Phillip Hellewell 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

Re: Limiting dependency resolution depth

2010-12-10 Thread Wendy Smoak
On Fri, Dec 10, 2010 at 7:22 AM, Mate Varga 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

Re: Get a list of POMs

2010-12-07 Thread Wendy Smoak
On Mon, Dec 6, 2010 at 9:45 PM, solo1970 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 i

Re: Problems uploading bundle to Sonatype

2010-12-07 Thread Wendy Smoak
On Tue, Dec 7, 2010 at 7:46 AM, Greg Brown 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

Re: Catch 22 with clean phase

2010-12-02 Thread Wendy Smoak
On Thu, Dec 2, 2010 at 3:08 PM, Phillip Hellewell 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 g

Re: Re[2]: use version of some dependency for another dependency

2010-11-25 Thread Wendy Smoak
On Thu, Nov 25, 2010 at 7:49 AM, Ilya Basin 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 t

Re: use version of some dependency for another dependency

2010-11-25 Thread Wendy Smoak
On Thu, Nov 25, 2010 at 6:59 AM, Ilya Basin 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

Re: Deploying properties files.

2010-11-17 Thread Wendy Smoak
On Wed, Nov 17, 2010 at 8:25 PM, asdas adasads 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

Re: Setting dependency with plugin generated jar

2010-11-12 Thread Wendy Smoak
On Fri, Nov 12, 2010 at 12:24 AM, banka.ravi 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 thi

Re: What is the right way to create a patch jar file?

2010-11-12 Thread Wendy Smoak
On Fri, Nov 12, 2010 at 12:18 PM, Chris Helck 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://ma

Re: Maven release:branch commiting things on tags

2010-11-09 Thread Wendy Smoak
On Tue, Nov 9, 2010 at 12:30 PM, Frederic Camblor wrote: > -DupdateWorkingCopyVersion=false doesn't solve the problem. > > Just filed a JIRA : http://jira.codehaus.org/browse/MRELEASE-612 I linked it to http://jira.codehaus.org/browse/MRELEASE-335 (and closed it as a duplicate). -- Wendy -

  1   2   3   4   5   6   7   8   9   10   >