Re: maven-gwt-plugin?

2011-05-26 Thread Justin Edelson
Is this the first time Martin has posted a new thread to the list? IIRC, "he" has just been posting replies. I fear this means that SkyNet is coming... Justin 2011/5/26 Martin Gainty : > > Hi Folks- > > attempting to get maven-gwt built and running into a raft of missing files > and libraries

documentation on encrypted password has wrong file path?

2011-05-17 Thread Justin Edelson
According to http://maven.apache.org/guides/mini/guide-encryption.html, the file settings-security.xml needs to go in ~/.m2. But it appears that in reality, it has to go in ~/, not ~/.m2. (see https://github.com/sonatype/plexus-sec-dispatcher/blob/master/src/main/java/org/sonatype/plexus/components

Re: Can you make an http server, the local repository ?

2011-04-21 Thread Justin Edelson
On Apr 21, 2011, at 3:20 PM, Sony Antony wrote: > Assuming this is an internal web server with write permission ( PUT > allowed ), is it possible to point to a web server for the local > repository ? No. > 2. Is there any scenario at all wherein something gets written to the > remote reposito

Re: Mojo: How do I write a plugin to interact with another?

2011-04-15 Thread Justin Edelson
I don't think that's what Anders is suggesting specifically. He's suggesting that you look at how a plugin which already does this works. That's the beauty of an ecosystem of open source plugins. On Fri, Apr 15, 2011 at 7:44 AM, laredotornado-3 wrote: > Ah, so I understand your idea, you're sayin

Re: can a plugin add dependencies to a project's dependency list

2011-04-12 Thread Justin Edelson
On Tue, Apr 12, 2011 at 2:50 PM, Jason van Zyl wrote: > > On Apr 12, 2011, at 5:38 PM, Justin Edelson wrote: > >> On Tue, Apr 12, 2011 at 2:25 PM, Jason van Zyl wrote: >>> >>> On Apr 12, 2011, at 3:49 PM, Carsten Ziegeler wrote: >>> >>>> We

Re: can a plugin add dependencies to a project's dependency list

2011-04-12 Thread Justin Edelson
;> > > List them in the dependencies of the POM and generate the configuration with > a template (Freemarker/Velocity) where the dependency information can be > injected. We need additional metadata per dependency which can't be done in the POM (until 3.1 or so I hear...) Justin >

Re: archetype:generate as an authorized user?

2011-04-11 Thread Justin Edelson
On Sun, Apr 10, 2011 at 11:08 PM, Brinker, Don-NONEMP wrote: > Hey all, > > 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 a plugin add dependencies to a project's dependency list

2011-04-11 Thread Justin Edelson
Is it possible to write a plugin which will add dependencies to a project's dependency list in such a way that those plugins are used as part of the reactor order *and* are checked for snapshots by the release plugin? Thanks, Justin

Re: passing objects between plugins

2011-04-08 Thread Justin Edelson
On Fri, Apr 8, 2011 at 3:48 PM, Wayne Fay wrote: >> phase). I've done similar things using execution properties in the >> MavenSession object, but this only support String values. Is there >> some other data structure which can be used to pass something other >> than a String? > > I was going to s

passing objects between plugins

2011-04-08 Thread Justin Edelson
I'm looking for a way to pass an object from a plugin (e.g. in the process-resources phase) to another plugin (e.g. in the package phase). I've done similar things using execution properties in the MavenSession object, but this only support String values. Is there some other data structure which ca

Re: Compile failure, package not found

2011-04-06 Thread Justin Edelson
On Wed, Apr 6, 2011 at 3:25 AM, Erwin Mueller wrote: > >        Yes, so true. I realized that but I already send the email. I think I > was just too tired, I hacked the project together in one day. > >        But I was confused, because maven could not find the package > com.google.common.base fro

Re: Understanding Lifecycles, Phases, and Goals.

2011-04-01 Thread Justin Edelson
Only addition I'd suggest is that new lifecycles and packaging types can be defined in plugins. Justin On Apr 1, 2011, at 6:37 PM, Chad La Joie wrote: > Can some one confirm that my understanding of lifecycles, phases, and > goals is correct? > > Maven has three lifecycles: clean, default (bu

Re: QJ-Pro can't inspect

2011-02-15 Thread Justin Edelson
And this has what exactly to do with Maven? On Feb 15, 2011, at 12:16 AM, jy hu wrote: > Hi There, > > I meet a problem in using QJ-Pro which has been installed refer to > guide.(qj-pro v2.2.0 gui). > when click inspect in a qj-pro project, a error always: > > when analyzing ' *.java' the

Re: Supporting branches in Maven

2011-01-30 Thread Justin Edelson
Different branches = different versions. Read the list archives for more information. Justin On Sun, Jan 30, 2011 at 11:27 AM, Evgeny Goldin wrote: > > Hi everybody, > > We have a number of branches built with Maven. If we do nothing then > artifacts from different branches will override each o

Re: reactor, plugin dependency, m3

2011-01-23 Thread Justin Edelson
On Jan 23, 2011, at 5:09 PM, Benson Margulies wrote: > I have a multi-module build. The first module packages up some some > checkstyle rules, and the parent POM at the top calls out that > artifact as a dependency of the checkstyle plugin. > > Would it surprise anyone to hear that this won't

Re: Problem with properties in Maven.

2011-01-14 Thread Justin Edelson
How is this a problem? You're telling surefire to execute a test which doesn't exist and this causes a failure. This seems like the expected behavior. On Jan 14, 2011, at 9:08 AM, Alexander Vaysberg wrote: > Hi, > > I think, that I a one problem with properties in maven found. The > problem in

Re: Maven IDE

2011-01-11 Thread Justin Edelson
Are you going to hire Ron Wheeler to do sales? (Sorry Ron, couldn't resist) On Jan 11, 2011, at 8:58 AM, Jason van Zyl wrote: > For those of you interested in Maven integration in Eclipse: > > http://www.sonatype.com/people/2011/01/maven-ide-the-year-of-maven-eclipse-2/ > > Thanks, > > Jason

Re: can i change the name of the uploaded/installed artifact?

2011-01-06 Thread Justin Edelson
On 1/6/11 12:05 PM, Leon Rosenberg wrote: > On Thu, Jan 6, 2011 at 5:45 PM, Wayne Fay wrote: >>> if you mean context.xml in META-INF -> than nope. >>> Tomcat only allows you to change the context path from outside, for >>> example from localhost/Catalina/distributeme.xml >> >> The documentation su

Re: can i change the name of the uploaded/installed artifact?

2011-01-06 Thread Justin Edelson
On 1/6/11 8:16 AM, Leon Rosenberg wrote: > On Wed, Jan 5, 2011 at 10:21 PM, Wayne Fay wrote: >>> The webapp have to be accessed by a specific context-path, e.g. >>> http://host:port/distributeme/registry/list >>> >>> The easiest way to achieve it, is to name the war distributeme.war. >> >> Each ap

Re: can i change the name of the uploaded/installed artifact?

2011-01-04 Thread Justin Edelson
On Jan 4, 2011, at 5:26 PM, Leon Rosenberg wrote: > Hi, > > next day, next problem ;-)) > > I'm right now fighting with the name that comes out of the war packaging. > My artifact is a webapp, called distributeme-registry and is a module > of a larger project. However, > the automatically gen

Re: Cleaning a POM file

2011-01-03 Thread Justin Edelson
You can use dependency:analyze to identify unused dependencies: http://maven.apache.org/plugins/maven-dependency-plugin/analyze-mojo.html On Mon, Jan 3, 2011 at 6:39 PM, ping.sumit wrote: > > hi, > I am new to the Maven and trying to clean a POM file. Please let me know > how > can I make sure i

Re: Profile and dependencies not activated

2010-12-30 Thread Justin Edelson
This is the expected behavior. Profiles are a build-time concern and are not taken into account when in a dependency's pom. There's got to be a lot of discussion in the list archives about this. Justin 2010/12/30 Pazmiño Mazón, Iván Andrés > Hello, > > I've this multimodule project which inheri

Re: Changing Project Version During Build

2010-12-15 Thread Justin Edelson
Yes, this is considered bad form. It might be possible to change some POJO properties, but that won't really do it, as you're finding. You can do something along these lines with multiple executions of Maven. I think there are some examples of this with the versions plugin. Something like: mvn ver

Re: Maven dependency resolution failure?

2010-12-09 Thread Justin Edelson
According to http://maven.apache.org/plugins/maven-shade-plugin/, the current version of the stage plugin is 1.4, i.e. 1.4.3 hasn't been released. On Thu, Dec 9, 2010 at 4:03 PM, Elliot Huntington < elliot.hunting...@gmail.com> wrote: > Hi, > > Maven is having problems downloading dependencies. A

Re: Dumb question about mirrors and repositories

2010-12-06 Thread Justin Edelson
On Mon, Dec 6, 2010 at 3:15 PM, Phillip Hellewell wrote: > On Mon, Dec 6, 2010 at 12:55 PM, Hilco Wijbenga > wrote: > > > > You need to add something like the following to your settings.xml to > > "enable" snapshots. > > > > ... > > Thanks, but if you look closely at my email you'll see I alread

Re: Scanning for projects... hangs

2010-12-06 Thread Justin Edelson
Why are you using a snapshot when Maven 3 has been released? On Dec 6, 2010, at 1:32 PM, Mahdi Yusuf wrote: > Hi Everyone, > > Its Monday. I would like some help figuring out an issue with my build. No > only on particular job causes a hang after Scanning for projects... > This issue just poppe

Re: maven: How to include third party library to existing maven project

2010-12-01 Thread Justin Edelson
You need to use install:install-file On Dec 1, 2010, at 9:23 AM, Komal Agrawal wrote: > Hello there, > > I want to include external jar to my existing maven project. I used > following command to install it to local maven repository: > > mvn -e install:install > -Dfile="D:\test\com.project.MyA

Re: Why is it complaining about ${WL_HOME}

2010-12-01 Thread Justin Edelson
Use ${env.WL_HOME} On Dec 1, 2010, at 8:48 AM, mickeys wrote: > > I get this error message: > > [INFO] > > [ERROR] BUILD ERROR > [INFO] > > [INFO] O

Re: How to store svn username and password in configuration file?

2010-11-30 Thread Justin Edelson
it with maven? > > > Thanks > > Ilya Mayzel > Distributed Change Management > UBS Financial Services Inc. > 1000 Harbor Boulevard, 4th Floor > Weehawken, NJ-07086 > Phone: 201-352-7976 > Email : ilya.may...@ubs.com > > -Original Message- > From:

Re: How to store svn username and password in configuration file?

2010-11-30 Thread Justin Edelson
Subversion has its own password store which AFAIK is now encrypted on all major platforms. Why not use that? On 11/30/10 9:55 AM, ilya.may...@ubs.com wrote: > Hi, > > I am trying to avoid using -Dusername= -Dpassword= in a command > line. > I would like to store this information (and pass

Re: How to verify a jar in Maven after it is packaged?

2010-11-17 Thread Justin Edelson
Ideally, you would write a plugin goal and bind it to the verify phase. But if you don't want to do that, you can use the exec plugin to execute some arbitrary Java class (again, in the verify phase). See http://mojo.codehaus.org/exec-maven-plugin/ for details on the exec plugin. Justin On Wed, N

Re: Is this possible in Maven dependencies downloads to resume a download which stopped?

2010-11-16 Thread Justin Edelson
On Tue, Nov 16, 2010 at 10:46 AM, tiagorg wrote: > It there a way to have such a "download manager" feature which will enable > maven to resume downloads, just that. You can do this if you write your own Wagon implementation. -

Re: Maven-dependency-plugin: type and classifier for *-test-sources.jar?

2010-11-12 Thread Justin Edelson
type = jar classifier = test-sources HTH, Justin On Nov 12, 2010, at 9:42 AM, Andreas Sewe wrote: > Hi all, > > I need to use the maven-dependency-plugin to copy a *-test-sources.jar > artifact. Alas, I am unable to find the proper values for the artifactItem's > and . I either end up copyin

Re: Using maven with ant.

2010-11-08 Thread Justin Edelson
r\artificate_name.jar. How Maven Ant Tasks is going > to help with that ? > http://maven.apache.org/ant-tasks/examples/install-deploy.html > john > > > On Mon, Nov 8, 2010 at 5:50 PM, Justin Edelson > wrote: > >> >> >> On 11/8/10 8:33 PM, "asdas

Re: Using maven with ant.

2010-11-08 Thread Justin Edelson
On 11/8/10 8:33 PM, "asdas adasads" wrote: >> >>Why are you even trying to use Maven if you end up using Ant for >>everything? > > >To be honest only to be able to automatically push software to the remote >repository. Then use the Maven Ant Tasks. -

Re: Continuous Delivery and Maven

2010-11-08 Thread Justin Edelson
I've been following this thread with some confusion... if you want to use CD with Maven, why can't you just use the release plugin and cut a release on every commit? In other words, if your CI configuration currently runs 'mvn clean install', instead have it run 'mvn -B clean release:prepare releas

Re: run a bash script after creating war file

2010-11-08 Thread Justin Edelson
On 11/7/10 2:52 PM, "paladine" wrote: >Basically, i want to send my war file to a remote server that doesn't >contain a maven repo so i think deploy phase is not good method to do this >job because deploy phase requires a maven repo. You're conflating the deploy *phase* with the deploy *plugin

Re: unable to get the net.sf.json-lib

2010-11-05 Thread Justin Edelson
Did you ask json-lib? What does the error say? In the first case, you're specifying type=pom, so only the pom is being downloaded. In the second case, the error is likely because there is no JAR artifact. And... Looking at what's on central, it seems you need to specify a classifier of either jdk1

Re: Best Practice for using maven for web sites

2010-11-05 Thread Justin Edelson
On 11/5/10 12:22 PM, "Ron Wheeler" wrote: >On 05/11/2010 8:07 AM, Antonio Petrelli wrote: >> 2010/11/5 Ron Wheeler: >>> Does anyone have any comments on using Maven to build static web sites. >>> >>> The graphic artists building our web sites have created massive >>>projects >>> full of lots of

Re: how to start

2010-11-05 Thread Justin Edelson
I'm not sure what kind of response you are expecting, but here's a tip... Don't think about what libraries you need. Think about what business problems you're trying to solve and then derive the right libraries from those requirements. Also, search the mailing list archives. On 11/5/10 7:44 AM, "

Re: how can i have two compile phases?

2010-10-29 Thread Justin Edelson
The code generator should be broken into a separate project. Justin On Oct 29, 2010, at 5:03 PM, Leon Rosenberg wrote: > Hi, > > I have following requirement. I have a project, in which I have one > source folder which contains a code generator (run with apt), another > source folder > which c

Re: Help! Mojo development Issue

2010-10-28 Thread Justin Edelson
t; poms don't need this stub for the plugin to function, I hope. > > Do you know of anymore documentation around that project? For example, my > jUnit tests are runnable, but do not execute as part of the build cycle, > which I'd love to know how to fix. > > best wishes

Re: Help! Mojo development Issue

2010-10-28 Thread Justin Edelson
IIRC, you need to declare the project field and provide an implementation class. See, for example, http://github.com/justinedelson/maven-hudson-plugin/blob/master/src/test/resources/unit/pom-with-local-ci.xml That code worked at some point... HTH, Justin On Oct 28, 2010, at 11:19 AM, Andrew W

Re: [Repetitive]: Maven does not live up to its promises

2010-10-26 Thread Justin Edelson
On Oct 26, 2010, at 4:48 PM, Wayne Fay wrote: > > I don't understand the opposition to the format either. Most config > files I deal with these days are in XML, and yet I haven't seen anyone > ranting like this on the Weblogic forums complaining about config.xml, > nor people complaining about

Re: Maven server is down ?

2010-10-26 Thread Justin Edelson
Dunno, but it isn't just you: http://downforeveryoneorjustme.com/maven.apache.org You can use a mirror to download Maven. For example: http://www.gtlib.gatech.edu/pub/apache//maven/binaries/ HTH, Justin On 10/26/10 9:41 AM, Carpentier Xavier wrote: > Hey all, > What happening on maven server ? >

Re: avoiding dependency version number duplication

2010-10-25 Thread Justin Edelson
Use a property and/or dependency management in a shared parent POM. Spring has multiple modules, so it is frequently useful to store the common version for all modules in a single property and then specify each relevant module in a dependencyManagement element. Justin On 10/25/10 2:45 PM, Babak F

Re: [Repetitive]: Maven does not live up to its promises

2010-10-24 Thread Justin Edelson
Jason- I'm sure there's a lot here to respond to, but if I could make one suggestion, it would be to clarify what you/we mean when we say that Maven is 'declarative'. This seems, at least for Mr. McDonald, to be the source of some confusion. Just my 2 cents... Justin On Oct 24, 2010, at 9:03

Re: [Repetitive]: Maven does not live up to its promises

2010-10-24 Thread Justin Edelson
s/Wayne/Kenneth/ On Oct 23, 2010, at 8:10 PM, Néstor Boscán wrote: > Wayne > > XML is one of the most widespread and flexible languages out there, accept > it, move on. We could all be investing 5 years in this discussion and we > wouldn't be writing code that pays our salaries. I have been us

Re: Possible bug in Subversion SCM or release plugin

2010-10-20 Thread Justin Edelson
On Oct 20, 2010, at 12:57 PM, Phillip Hellewell wrote: > On Wed, Oct 20, 2010 at 12:29 AM, Stephen Connolly > wrote: >> On 19 October 2010 23:43, Phillip Hellewell wrote: >>> >>> Also, what about my idea that the release plugin ought to just use the >>> working copy URL when an scm connectio

Re: how is the archetype-catalog.xml file on central updated?

2010-10-19 Thread Justin Edelson
Thanks for clarifying. On Oct 19, 2010, at 11:10 AM, Juven Xu wrote: > the archetype-catalog.xml is updated every Sunday: > > https://docs.sonatype.org/display/Repository/Central+Repository+FAQ > > On Tue, Oct 19, 2010 at 11:00 PM, Justin Edelson > wrote: > >> T

Re: how is the archetype-catalog.xml file on central updated?

2010-10-19 Thread Justin Edelson
revision=HEAD&bypassEmpty=true > <https://sventon.sonatype.org/repos/spice/list/trunk/nexus-archetype-common/?revision=HEAD&bypassEmpty=true> > > So, currently on Central, after reindex, this CLI runs too and generates > the catalog from just updated index. > > &

how is the archetype-catalog.xml file on central updated?

2010-10-19 Thread Justin Edelson
I saw in ARCHETYPE-242 that Juven "fixed" the archetype catalog on Central back in April. How is that catalog updated? Thanks, Justin - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: u

Re: How to push doc pages to github via maven?

2010-10-17 Thread Justin Edelson
Did you look at the list archives? And did you try http://khuxtable.github.com/wagon-gitsite/ On Sun, Oct 17, 2010 at 12:50 PM, Kenneth McDonald wrote: > Many of you will know me from the "Maven is a swamp" thread :-) I don't > disagree with that, but I am willing to concede that maven can be u

Re: Accessing dependency tree from a plugin

2010-10-15 Thread Justin Edelson
#3 On 10/15/10 5:28 AM, Phillip Hellewell wrote: > Hi all, > > Which of the following is the best way to access the dependency tree > from a plugin? > > 1. Have the plugin launch "mvn dependency:tree" and parse the stdout? > 2. Have the plugin execute > org.apache.maven.plugin.dependency.execut

Re: multimodul and parent pom question

2010-10-13 Thread Justin Edelson
Separating aggregation from inheritance is definitely a good idea if your modules are versioned and/or released independently from one another which sounds like is the case here. Justin On 10/13/10 10:40 AM, mremerson...@aim.com wrote: > Hi, > > we have a multimodul project with a lot of modules

Re: Maven generated MANIFEST.MF: Commit or ignore?

2010-10-07 Thread Justin Edelson
In general, you shouldn't commit any generated file to SCM. On Oct 7, 2010, at 8:31 PM, Paul Benedict wrote: > Can anyone recommend whether to SCM commit the generated MANIFEST.MF > files? Or should they just be ignored? > > -

Re: Running tests with dynamic file sets

2010-10-05 Thread Justin Edelson
On 10/5/10 10:10 AM, Chris Audley wrote: > I'm writing a POM for a project that needs to run unit tests in two > groups, one with forkMode "once" and the other with forkMode "always". > I understand how to configure two separate executions of the surefire > plugin in the section with separate b

Re: first plugin

2010-10-04 Thread Justin Edelson
Hard to tell from this code. Check the plugin.xml file which is being generated. Also mvn help:describe (which uses the plugin.xml descriptor IIRC). Also, my guess is that you don't actually want to include this line: * @execute phase="generate-sources" But I doubt that's the source of the error

Re: Company-wide settings

2010-10-04 Thread Justin Edelson
On 10/4/10 2:34 PM, Phillip Hellewell wrote: > On Mon, Oct 4, 2010 at 12:30 PM, Anders Hammar wrote: >> Philip, with all due respect, but reading your posts I get the impression >> you're doing your best not to follow Maven best practice. Maven is all about >> convention and best practice patterns

Re: Problem unpacking dependencies

2010-10-04 Thread Justin Edelson
On 10/4/10 12:00 PM, Phillip Hellewell wrote: > On Mon, Oct 4, 2010 at 9:30 AM, Haszlakiewicz, Eric > wrote: >> >> Looking at it from another point of view, what *should* it do with a pom >> artifact? Simply copying it seems wrong, since there's an explicit >> copy-dependencies goal for doing tha

Re: Multiple projects -> one artifact

2010-10-03 Thread Justin Edelson
In general, yes, using the assembly plugin. On Oct 3, 2010, at 11:09 AM, Dirk Reske wrote: > Hello, > > this was, what I'm looking for. > Is something like this also possible for my api (normal jar files) and ejb > projects? > > thanks > Dirk > > Am 03.10

Re: Multiple projects -> one artifact

2010-10-03 Thread Justin Edelson
Yes, you can do this with war overlays (see the docs for maven-war-plugin) and/or the assembly plugin. On Oct 3, 2010, at 10:27 AM, Dirk Reske wrote: > Hello, > > so I will get a separation by project type (web, ejb, ear). > But want I want, is a separation by functionality. > > Lets take a w

Re: Dependencies, modules, and dependency plugin

2010-10-01 Thread Justin Edelson
On 10/1/10 2:25 PM, Phillip Hellewell wrote: > On Fri, Oct 1, 2010 at 12:02 PM, David Jencks wrote: >>> Cool, that's what I was hoping to hear. Even if I just had a plugin >>> that would scan all the dependencies and print out their versions, >>> that would suffice and I could do the checking out

Re: Which goal fetches dependencies?

2010-10-01 Thread Justin Edelson
On 10/1/10 2:32 PM, Phillip Hellewell wrote: > On Fri, Oct 1, 2010 at 12:11 PM, Justin Edelson > wrote: >> Dependencies are resolved by Maven whenever a Mojo's metadata indicates that >> dependency resolution is a prerequisite to Mojo execution. This can happen >>

Re: Which goal fetches dependencies?

2010-10-01 Thread Justin Edelson
Dependencies are resolved by Maven whenever a Mojo's metadata indicates that dependency resolution is a prerequisite to Mojo execution. This can happen in any phase. Justin On Oct 1, 2010, at 2:04 PM, Phillip Hellewell wrote: > It appears that dependencies get downloaded from a remote reposit

Re: Dependencies, modules, and dependency plugin

2010-10-01 Thread Justin Edelson
On 10/1/10 11:03 AM, Phillip Hellewell wrote: > On Fri, Oct 1, 2010 at 8:29 AM, Antonio Petrelli > wrote: >> If you control B this is not necessary. Simply add a dependency to a >> snapshot of B and, when you build B and, after it, build A, the latter >> will get the latest build of B. >> Or am I

Re: Maven release plugin: Should scm pom element track version?

2010-09-28 Thread Justin Edelson
On Sep 28, 2010, at 11:15 AM, Laird Nelson wrote: > On Tue, Sep 28, 2010 at 11:08 AM, Justin Edelson > wrote: > >> NOO. If you use the release plugin, you should never modify the >> section manually (after initial configuration). >> > > Got it. :-)

Re: Maven release plugin: Should scm pom element track version?

2010-09-28 Thread Justin Edelson
On Tue, Sep 28, 2010 at 11:05 AM, Laird Nelson wrote: > On Tue, Sep 28, 2010 at 10:46 AM, Justin Edelson > wrote: > >> After running release:perform, in your working >> copy should end in trunk[1]. Running svn info should show that your >> working copy is a checkout

Re: Maven release plugin: Should scm pom element track version?

2010-09-28 Thread Justin Edelson
After running release:perform, in your working copy should end in trunk[1]. Running svn info should show that your working copy is a checkout of trunk. If you look in your Maven repository at the released pom, the scm URLs there should end in your tag name. HTH, Justin [1] assuming that you fol

Re: Problems with Scala unit testing

2010-09-27 Thread Justin Edelson
As described here: http://maven.apache.org/plugins/maven-surefire-plugin/examples/class-loading.html, try setting useManifestOnlyJar to false. That will probably fail on Windows, but you're on OS X, so that's probably OK for now. Also, I would suggest posting this to a Scala mailing list. Justin

Re: PomStrap v2?

2010-09-24 Thread Justin Edelson
On 9/24/10 3:10 PM, Jason van Zyl wrote: > > On Sep 24, 2010, at 2:44 PM, Justin Edelson wrote: > >> Not sure I see the use case in a standalone application. Seems far more >> failure-prone than just sucking it up and creating an uberjar. >> > > On-the-fly adap

Re: PomStrap v2?

2010-09-24 Thread Justin Edelson
Not sure I see the use case in a standalone application. Seems far more failure-prone than just sucking it up and creating an uberjar. For webapps, the Tomcat loader looks really compelling. AFAICT, you should be able to deploy/undeploy these contexts at runtime via JMX, which means you could use

Re: Can i re-deploy the contents from local repository from a build machine to release repository?

2010-09-23 Thread Justin Edelson
The fact that the artifacts are in your local repository is irrelevant. Put that out of your mind. All that matters is that you have an artifact and a pom and you want to deploy them to a remote repository. That's what deploy-file does. All you have to do is: mvn deploy:deploy-file -Durl= -Drepos

Re: mvn execution from browser

2010-09-18 Thread Justin Edelson
This error looks pretty straight forward. What exactly are you looking for help with? Justin On 9/18/10 10:29 AM, Sridhar Laxmipuram Srinivasan wrote: > Hi, > I am trying to execute java maven command thru a php script from browser > > Php script: > print " > > "; > system("/home/y/bin/mvn -o

Re: run command remotely on Unix using Maven

2010-09-14 Thread Justin Edelson
On 9/14/10 4:18 AM, Stephen Connolly wrote: > I think you'd want to write a maven plugin (not that difficult) that uses > either apache mina's ssh support, or jsch's ssh support or one of the other > ssh java libraries to login to the remote host and run the commands you are > after. Better yet IMH

Re: Mavin Dependency Management on Dynamic Web Project

2010-09-08 Thread Justin Edelson
It's spelled Maven :) This question would probably be better posed to the m2eclipse mailing list. But yes, you will either need to change change the warSourceDirectory parameter of the maven-war-plugin or adopt the Maven directory structure (src/main/webapp instead of WebContent). The latter woul

Re: Deploy with SFTP tries to cd to parent too many times

2010-09-06 Thread Justin Edelson
On 9/6/10 1:36 PM, Trevor Harmon wrote: > On Sep 6, 2010, at 7:22 AM, Justin Edelson wrote: > >> Can you use SCP instead of SFTP? > > I tried that, but it fails with "Remote connection terminated unexpectedly". > I suspect this is because shell access to the

Re: Deploy with SFTP tries to cd to parent too many times

2010-09-06 Thread Justin Edelson
On 9/6/10 2:24 PM, Trevor Harmon wrote: > On Sep 6, 2010, at 4:35 AM, Stephen Connolly wrote: > >> not without wagon, just not with the webdav wagon > > Sorry, I'm still confused. The Wagon docs [1] list the following providers: > > * File > * HTTP > * HTTP lightweight > * FTP > * SSH/SCP > * We

Re: Deploy with SFTP tries to cd to parent too many times

2010-09-06 Thread Justin Edelson
Can you use SCP instead of SFTP? On Mon, Sep 6, 2010 at 4:15 AM, Trevor Harmon wrote: > Hi, > > I'm running into a build failure when doing "mvn deploy" via SFTP. This > appears to be a bug that affects any repository whose SFTP host disallows > access to the root directory. > > Here's what I k

Re: [maven-release-plugin] Is it possible to configure maven-release-plugin to NOT pull in META-INF/LICENSE and NOTICE

2010-08-27 Thread Justin Edelson
Nothing in the release plugin will do this automatically; it must be configured somewhere, either in your POM or (more likely from the sound of it) in a parent POM. Justin On 8/27/10 5:27 AM, han hongfang wrote: > Hi, > > Our project uses maven-release-plugin in the release process. We maintain

Re: Which dependency scope is most appropriate for dependencies of the build script itself?

2010-08-25 Thread Justin Edelson
Jake > > On 10-08-25 09:04 PM, Justin Edelson wrote: >> The latter. See >> http://maven.apache.org/plugins/maven-antrun-plugin/examples/customTasks.html >> for the syntax. >> >> On Aug 25, 2010, at 8:35 PM, Jacob Beard wrote: >> >> >>>

Re: Which dependency scope is most appropriate for dependencies of the build script itself?

2010-08-25 Thread Justin Edelson
re > you saying that the antrun plugin itself should include these libraries as > dependencies; or is it possible, in my project, to inject new dependencies > for specific plugins, beyond what they specify on their own? > > Please let me know. Thanks, > > Jake &

Re: Which dependency scope is most appropriate for dependencies of the build script itself?

2010-08-25 Thread Justin Edelson
Shouldn't these just be dependencies of the antrun plugin instead of your project? On 8/25/10 7:23 PM, Jacob Beard wrote: > Hi, > > I've just read the Introduction to the Dependency Mechanism document: > http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html > > >

Re: Maven build for compiling JavaScript project

2010-08-25 Thread Justin Edelson
Assuming that you want to continue to use your build.xml for 1-3, then you just need to bind the antrun plugin's run goal to the compile phase. Maven doesn't have tasks. It has goals and phases. Justin On 8/25/10 11:05 AM, Jacob Beard wrote: > Hi, > > I'm working on a Commons sandbox component

Re: deploying WAR files to Tomcat

2010-08-23 Thread Justin Edelson
On 8/23/10 2:42 PM, Ron Wheeler wrote: > This is a bit on the edge of Tomcat and Maven but I am hoping that > there is a Maven solution or some little trick that makes the problem go > away. > > Our LMS portal consists of 60 separate modules that we build using > Maven. About 45 are webapps that

Re: An alternate lifecycle

2010-08-20 Thread Justin Edelson
Frank- It sounds to me like you're describing a new packaging type, not necessarily a new lifecycle. What do you see below that isn't mappable to a phase in the default lifecycle. Justin On 8/20/10 4:17 PM, Gorham-Engard, Frank wrote: > I see several other people are also doing projects that are

Re: Getting a useful Manifest

2010-08-20 Thread Justin Edelson
by a bad deployment is to find out what exactly is deployed. > > Ron > > On 20/08/2010 9:17 AM, Justin Edelson wrote: >> What does this have to do with "webapps"? It seems to be about >> uberjars... >> >> I usually use >> >> unzip -p M

Re: Getting a useful Manifest

2010-08-20 Thread Justin Edelson
What does this have to do with "webapps"? It seems to be about uberjars... I usually use unzip -p META-INF/MANIFEST.MF to output the manifest to the console. Combined with find, this should do what you're looking for. On 8/20/10 8:29 AM, Ron Wheeler wrote: > I wrote this up in my blog > > h

Re: Different settings for compile/deploy?

2010-08-19 Thread Justin Edelson
look at profiles, but I did not find how to activate them on > different kind of goals. > The documentation covers how to activate on jdk, os, properties and present > files. > > -----Original Message- > From: Justin Edelson [mailto:justinedel...@gmail.com] > Sent: den

Re: Different settings for compile/deploy?

2010-08-19 Thread Justin Edelson
Use a profile and activate that profile when doing releases. On Aug 19, 2010, at 9:12 AM, "Ludwig Magnusson" wrote: > Hi! > > When our application is being built sources are generated during the > generate-sources phase. The torque generator that generates our code has a > maven plugin that we

Re: Attaching platform-specific executables as secondary artifacts

2010-08-16 Thread Justin Edelson
On 8/16/10 8:19 PM, Trevor Harmon wrote: > On Aug 16, 2010, at 5:04 PM, Justin Edelson wrote: > >> http://mojo.codehaus.org/build-helper-maven-plugin/attach-artifact-mojo.html >> > > Thanks, that looks like just what I need. > > The only problem is that it binds b

Re: Attaching platform-specific executables as secondary artifacts

2010-08-16 Thread Justin Edelson
http://mojo.codehaus.org/build-helper-maven-plugin/attach-artifact-mojo.html On 8/16/10 8:03 PM, Trevor Harmon wrote: > Hi, > > My project is a Java GUI app, and when I deploy it, its JAR artifact is > uploaded to the repository. I also use a couple of plugins to generate > platform-specific exec

Re: External repository always requires a repository manager?

2010-08-16 Thread Justin Edelson
On Mon, Aug 16, 2010 at 5:53 PM, Trevor Harmon wrote: > On Aug 16, 2010, at 12:29 PM, Justin Edelson wrote: > >>> Okay, let me make sure I understand this. Say I've got a main artifact >>> and a customized plugin that it depends on. I can configure the plugin &

Re: External repository always requires a repository manager?

2010-08-16 Thread Justin Edelson
On 8/16/10 3:04 PM, Trevor Harmon wrote: > On Aug 16, 2010, at 10:18 AM, Justin Edelson wrote: > >> One "in and out" to learn is that your distinction of "internal" and >> "external" repositories isn't found in Maven. > > I found it

Re: External repository always requires a repository manager?

2010-08-16 Thread Justin Edelson
On 8/16/10 12:23 PM, Trevor Harmon wrote: > On Aug 16, 2010, at 7:20 AM, Justin Edelson wrote: > >> But if you are a single developer, I'm not sure what value you are >> looking to get out of this. Your local Maven repository acts as a local >> cache, so unless yo

Re: External repository always requires a repository manager?

2010-08-16 Thread Justin Edelson
What you are referring to as a "external" repository is essentially a caching proxy. If the only repository you are proxying is central, then theoretically you could use any caching proxy server (including Apache). But if you are a single developer, I'm not sure what value you are looking to get

Re: multiple assemblies in a pom

2010-08-16 Thread Justin Edelson
You should use two executions within the same plugin, each with their own configuration. Never specify a plugin twice in the same pom. Always use executions for that. Justin On Aug 13, 2010, at 12:45 PM, Frank Maritato wrote: > Hi, > > I'd like to have 2 assemblies for my project. One that

Re: Request for variable-name-substitution goal (shaded-plugin?)

2010-08-09 Thread Justin Edelson
On Aug 9, 2010, at 5:27 PM, Wayne Fay wrote: >> Is there a plugin e.g. shaded-plugin which has the capability to substitute >> a correct-variable-name for an incorrect-variable-name? >> e.g. enum1 instead of enum >> >> I have about 500 of these warnings in as many files and dont want to have

Re: force maven to redownload/refresh "released" dependencies

2010-08-08 Thread Justin Edelson
On Aug 8, 2010, at 5:32 AM, Baptiste MATHUS wrote: > Hi, > > I rapidly browsed the thread, please excuse me if I missed something. > Isn't mvn dependency:purge-local-repository the solution? The issue identified by the OP is that there's no way to (pro-actively) detect that a release has cha

Re: Maven variables

2010-08-04 Thread Justin Edelson
; the maven site. > > However, for the source and target params my memory tells be that there was > defaults of 1.3. Hmm... > See this jira: > http://jira.codehaus.org/browse/MCOMPILER-80 > > /Anders > > On Wed, Aug 4, 2010 at 17:26, Justin Edelson wrote: > >>

  1   2   3   >