Re: Preventing an inherited plugin from running?

2011-05-03 Thread Anders Hammar
Seems to be working with Maven 3 as well, which kind of surprises me. I was expecting at least a warning that the phase doesn't exist... However, I'd say that if the plugin has a skip param it is better to use that because it is easier to understand. Specifying an incorrect phase is not obvious to

Re: collecting dependent artifacts

2011-05-03 Thread Eric Kolotyluk
Below... On 2011-05-03 9:28 PM, Barrie Treloar wrote: On Wed, May 4, 2011 at 1:20 PM, Eric Kolotyluk wrote: I am not a fan of "flat" multimodule projects and don't use them. I know that things generally work OK with them but I would not be surprised if you run into issues. I'm not a fan eith

Re: collecting dependent artifacts

2011-05-03 Thread Barrie Treloar
On Wed, May 4, 2011 at 1:20 PM, Eric Kolotyluk wrote: >> I am not a fan of "flat" multimodule projects and don't use them. I >> know that things generally work OK with them but I would not be >> surprised if you run into issues. >> > I'm not a fan either, but it was the only way to get things to w

Re: collecting dependent artifacts

2011-05-03 Thread Eric Kolotyluk
OK, I solved my problem as you'll see from my previous post. More comments below... On 2011-05-03 7:12 PM, Wayne Fay wrote: Except that then Maven complains it cannot find the repository that it is in. If you haven't run "mvn install" from the common-module, then the jar does not exist (as far

Re: collecting dependent artifacts

2011-05-03 Thread Eric Kolotyluk
Thanks for point out the problem with the Kodak-Intersystem repository, I was too focused on intersystem-common to notice. I did a maven install on Kodak-Intersystem, the top level POM and now the uber-jar has both the service and common classes included. Thanks for the advice about the repos

Re: Searching Dependencies and Licenses

2011-05-03 Thread Wayne Fay
> After using shade to build an uber-jar I was looking through the uber-jar > with 7zip and found a GLP2 license file. Presumably I have picked up GPL'd > artifact somewhere. How would I be able to find out which artifact contains > the GPL license so I can remove it? "mvn site" has a dependency r

Re: collecting dependent artifacts

2011-05-03 Thread Wayne Fay
> Except that then Maven complains it cannot find the repository that it is > in. If you haven't run "mvn install" from the common-module, then the jar does not exist (as far as Maven is concerned) when you build in the service-module. > So, I had to flatten my Eclipse projects because I am using

Re: collecting dependent artifacts

2011-05-03 Thread Barrie Treloar
On Wed, May 4, 2011 at 10:33 AM, Eric Kolotyluk wrote: > Well, still no luck. > > I added my common-module as a dependency in the service-module, but when I > build the package I get > > [ERROR] Failed to execute goal on project intersystem-service: Could not > resolve dependencies for project > c

Re: maven-remote-resources-plugin with Eclipse feature builds

2011-05-03 Thread Barrie Treloar
On Wed, May 4, 2011 at 12:31 AM, Greg Babcock wrote: > I use Tycho to build an Eclipse RCP project and use the remote resources > plugin to insert license file into all of the jar files produced.  This > works correctly for plugins, but does not work for features.  The > license file is getting pl

Re: collecting dependent artifacts

2011-05-03 Thread Eric Kolotyluk
Well, still no luck. I added my common-module as a dependency in the service-module, but when I build the package I get [ERROR] Failed to execute goal on project intersystem-service: Could not resolve dependencies for project com.kodak.intersystem:intersystem-service:jar:0.0.1-SNAPSHOT: Fail

Re: Reference archive from another module

2011-05-03 Thread CassUser CassUser
Yeah I suppose the spring files can go in the deployment package, but it makes sense for the spring module to run in isolation as well. I'd like to just copy those files from src/main/resources if possible. On Sun, May 1, 2011 at 5:05 PM, Ron Wheeler wrote: > On 01/05/2011 6:14 PM, CassUser Cass

Re: Preventing an inherited plugin from running?

2011-05-03 Thread Laird Nelson
On Tue, May 3, 2011 at 7:56 PM, Srinath C wrote: > Hi Laird, > > I guess this is what you are looking for - > > http://thomaswabner.wordpress.com/2010/02/16/howto-disable-inherited-maven-plugin/ > > < > http://thomaswabner.wordpress.com/2010/02/16/howto-disable-inherited-maven-plugin/ > > > Regar

Re: Preventing an inherited plugin from running?

2011-05-03 Thread Srinath C
Hi Laird, I guess this is what you are looking for - http://thomaswabner.wordpress.com/2010/02/16/howto-disable-inherited-maven-plugin/ Regards, Srinath. On Tue, May 3, 2011 at 10:54 PM, Laird Nelson wrote: >

Re: multiple project builds

2011-05-03 Thread Tommy Chheng
Check out https://github.com/apache/mahout by etc, i meant any other sub-project. On Tue, May 3, 2011 at 2:53 PM, offbyone wrote: > I am curious about the use of "etc" in your example. What is that all > about? > > Do you perchance know the location of any examples like this that I could > l

Re: multiple project builds

2011-05-03 Thread offbyone
I am curious about the use of "etc" in your example. What is that all about? Do you perchance know the location of any examples like this that I could look at? -- View this message in context: http://maven.40175.n5.nabble.com/multiple-project-builds-tp4368244p4368529.html Sent from the Maven -

Re: multiple project builds

2011-05-03 Thread Tommy Chheng
Yes, you can still have a flat structure. In app-server/etc, you can specify base-utillites/app-common as a dependency xml block. On Tue, May 3, 2011 at 2:21 PM, offbyone wrote: > Thanks for the reply. > > I am looking at something like this: > base-utilities > app-common > app-client > app-se

Re: multiple project builds

2011-05-03 Thread offbyone
Thanks for the reply. I am looking at something like this: base-utilities app-common app-client app-server With these modules the dependencies look something like this: base-utilities -> app-common -> app-client, app-server Based on this representation could I still have a flat directory structu

Re: multiple project builds

2011-05-03 Thread Tommy Chheng
I assume your client and server projects build separate JAR files? If there are intertwined code, you can have: project-core project-server project-client Both project-server/project-client can have a dependency on project-core You can use parent POM or module poms to build http://stackoverfl

multiple project builds

2011-05-03 Thread offbyone
I am developing an extremely large project that has a separate build procedure for the client and the server. Currently, the project is one large project. I am currently using Ant, but would like to embrace maven. I understand that the "maven way" is to have a separate project per build, but I a

Searching Dependencies and Licenses

2011-05-03 Thread Eric Kolotyluk
After using shade to build an uber-jar I was looking through the uber-jar with 7zip and found a GLP2 license file. Presumably I have picked up GPL'd artifact somewhere. How would I be able to find out which artifact contains the GPL license so I can remove it? Cheers, Eric ---

Re: collecting dependent artifacts

2011-05-03 Thread Eric Kolotyluk
More below... On 2011-05-03 9:14 AM, Wayne Fay wrote: Anyway, shade is doing mostly what I want, except I cannot seem to configure it to include classes from a sibling module in Maven. If you have it set up as a dependency, it should "just work." Except that then Maven complains it cannot find

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: Maven release plugin question

2011-05-03 Thread Yaakov Chaikin
Did I configure scm wrong? scm:svn:https://dev.envieta.com:8443/svn/dlm scm:svn:https://dev.envieta.com:8443/svn/dlm} https://dev.envieta.com:8443/svn/dlm ?? -Yaakov. On Tue, May 3, 2011 at 2:42 PM, Yaakov Chaikin wrote: > Hmm...

Re: Maven release plugin question

2011-05-03 Thread Yaakov Chaikin
Hmm... Perhaps, I spoke too soon. Everything goes well during dry run, but committing doesn't work. Any ideas? * [INFO] Executing: cmd.exe /X /C "svn --non-interactive commit --file C:\Users\yaakov\AppData\Local\Temp\maven-scm-778463861.commit --targets C:\Users\yaakov\App

Re: Preventing an inherited plugin from running?

2011-05-03 Thread Laird Nelson
Rats; thanks. I have to inherit from this parent, but the parent was badly designed (and is out of my control). It wants to run the maven-antrun-plugin, but I don't need a build.xml file. I suppose I'll just eliminate the build.xml file and let it fly and see if it handles such a case gracefully

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

Preventing an inherited plugin from running?

2011-05-03 Thread Laird Nelson
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 smells to me like this is (oddly) impossible. Is there a way to unbind a plug

Re: Maven release plugin question

2011-05-03 Thread Yaakov Chaikin
Thanks! That put me on the right path and I think it's working now. Just for the sake of others reading this later... If you have dependencies that have to specify a version in the reactor or child modules, just use ${project.version} instead of ${parent.version}. Also, you have to make sure to li

Re: collecting dependent artifacts

2011-05-03 Thread Wayne Fay
> Anyway, shade is doing mostly what I want, except I cannot seem to configure > it to include classes from a sibling module in Maven. If you have it set up as a dependency, it should "just work." > My structure is something like > > parent/pom.xml > service-module/pom.xml > common-module/pom.xml

Re: is there a way to remove or truncate the newly-introduced failure messages from the test results summary?

2011-05-03 Thread Kristian Rosenvold
I know. Especially the spring messages can be a PITA. Just file an issue under http://jira.codehaus.org/browse/SUREFIRE and we'll try to get another improvement for 2.8.2. The following comes to mind: A) Special handling of the spring messages, truncate from the END of the first line, which is us

Re: Maven/Eclipse - Failed to read artifact descriptor

2011-05-03 Thread Olivier Lamy
Hello, Regarding m2e, you should probably ask in m2e ml (see http://eclipse.org/m2e/support/ ) 2011/5/3 Cuong Luu : > Hi, > I'm am trying to use Eclipse M2 plugin to manage my project dependencies. > This is what I have done thus far. > > 1) Used mvn deploy:deploy file to deploy third-party jars t

Maven/Eclipse - Failed to read artifact descriptor

2011-05-03 Thread Cuong Luu
Hi, I'm am trying to use Eclipse M2 plugin to manage my project dependencies. This is what I have done thus far. 1) Used mvn deploy:deploy file to deploy third-party jars to a specific repository, e.g. third-party 2) Used mvn deploy to deploy my project (with POM) to a specific repository, e.g re

is there a way to remove or truncate the newly-introduced failure messages from the test results summary?

2011-05-03 Thread Pieper, Aaron
The 2.8 version of the maven-surefire-plugin has changed the way test summaries are formatted at the command line. The summaries now include the failure message for each failing test. In some cases, this failure message corresponds to an exception message from a framework like Spring, which can be

Dependency Inheritance from parent POM and assembly plugin problem

2011-05-03 Thread Dmitriy Neretin
Hello everybody, I have a problem with inheritance of dependencies from the parent pom. I have a multi-module project. The situation is that I need 2 jdbc drivers: an older version (9.xxx) and a newer version (10.xxx). I declared these dependencies in the parent pom like this: com.or

maven-remote-resources-plugin with Eclipse feature builds

2011-05-03 Thread Greg Babcock
I use Tycho to build an Eclipse RCP project and use the remote resources plugin to insert license file into all of the jar files produced. This works correctly for plugins, but does not work for features. The license file is getting placed into the \target\maven-shared-archive-resources of the fe

Re: collecting dependent artifacts

2011-05-03 Thread Eric Kolotyluk
Sorry for the newbie comment - but shade is way too cool! Don't you just love serendipity :-) How have I lasted so long without discovering maven sooner? Anyway, shade is doing mostly what I want, except I cannot seem to configure it to include classes from a sibling module in Maven. My stru

Problem resolving snapshot version of plugin thru a Mirror

2011-05-03 Thread Mario Matias Urbieta
Hi, i have been facing a problem when resolving snaphot version of plugin thru a mirror. It works well when there is no mirror. I have configured in my setting.xml repositories pointing out our Artifactory server and also a mirror pointing out to the same server to capture any request. In my

Re: shade plugin doesn't create dependency reduced pom

2011-05-03 Thread Willem van Engen
After more investigation it appears that the dependency-reduced pom is only created when shadedArtifactAttached is false. This can also be seen in its sourcecode: http://mojo.codehaus.org/shade-maven-plugin/xref/org/codehaus/mojo/shade/mojo/ShadeMojo.html#186 Why I don't really understand but this

Re: Maven EJB Plugin

2011-05-03 Thread Bob Santos
Hi again, Please ignore my first message. I saw that there is an ejb-jar.xml in the resources directory. Regards, Bob On Tue, May 3, 2011 at 4:15 PM, Bob Santos wrote: > Hi everyone, > > I don't know if this is the right venue to ask my question so I apologize > for the inconvenience. > > I am

Maven EJB Plugin

2011-05-03 Thread Bob Santos
Hi everyone, I don't know if this is the right venue to ask my question so I apologize for the inconvenience. I am new to using the EJB plugin and right now I am having trouble with it generating an empty ejb-jar.xml even if I stated that the ejbVersion is 3.0. This causes a parse exception when

Re: Surefire is very slow on old JUnit3 tests with suite() methods

2011-05-03 Thread Kristian Rosenvold
Make sure you're using a recent version of surefire (2.8+), since newer versions have become far less eager at loading tests inside each fork and scanning the classpath than older versions. The behaviour you describe is consitent with running an older version of surefire. For instance, it shou