Re: [ANNOUNCEMENT] - Maven License Verifier Plugin 0.2-SNAPSHOT

2010-03-04 Thread Laurent Perez
Hello My first question: Which release of Maven do you use ? Apache Maven 2.2.1 (r801777; 2009-08-06 21:16:01+0200) Java version: 1.6.0_14 Would you try to bind the plugin to a particular phase and just do a mvn test (and take a look if some output has been produced).  executions(snip)

offline mode with in plugin

2010-03-04 Thread kristian
I have a plugin which does some networking and I would like to obey the maven commandline flag --offline but did not see any way to retrieve that information. how I can I find this ? thanx Kristian - To unsubscribe, e-mail:

Re: [ANNOUNCEMENT] - Maven License Verifier Plugin 0.2-SNAPSHOT

2010-03-04 Thread Karl Heinz Marbaise
Hi Laurent, laurent.perez wrote: I'm sorry, I don't have much time right now to look at the plugin source code :/ You don't need to apologize, cause i say thank you for your time...I'm working on it to see what's going wrong... laurent.perez wrote: So *maybe* my licenses.xml file is

starting jetty during tests and stopping afterwards

2010-03-04 Thread Douglas Ferguson
Is there a clean way to start up jetty for the testing and then stopping git afterwards? I'd like to include my integration tests for my code coverage. I'd like to set my code coverage profile to only start up jetty after cobertura has instrumented the classes then shut it down after the

Re: Always download dependencies with classifier

2010-03-04 Thread Thunder Farmer
Thanks for all of your responses. I tried with version 2.2.1. Still the same issue. Is it my luck? find a bug for Maven,:)~ D:\temp\my-appmvn -version Apache Maven 2.2.1 (r801777; 2009-08-07 03:16:01+0800) Java version: 1.6.0_10-rc Thanks, Thunder On Thu, Mar 4, 2010 at 3:22 PM, Anders Hammar

Re: starting jetty during tests and stopping afterwards

2010-03-04 Thread Brett Porter
On 04/03/2010, at 8:49 PM, Douglas Ferguson wrote: Is there a clean way to start up jetty for the testing and then stopping git afterwards? I'd like to include my integration tests for my code coverage. I'd like to set my code coverage profile to only start up jetty after cobertura has

getting specification version without SNAPSHOT

2010-03-04 Thread Maruf Aytekin
Hi All, How can I chop off -SNAPSHOT string from Specification-Version:1.5.2-SNAPSHOT or Implementation-Version when I build a war file with Maven2? I would like to use the version info as Specification-Version:1.5.2 in manifest.mf. Many thanks, Maruf

Re: starting jetty during tests and stopping afterwards

2010-03-04 Thread Stephen Connolly
Brett, you could always rebind failsafe:integration-test to the test phase so that the server will be torn down in the event of failing tests -Stephen On 4 March 2010 10:05, Brett Porter br...@apache.org wrote: On 04/03/2010, at 8:49 PM, Douglas Ferguson wrote: Is there a clean way to

Re: starting jetty during tests and stopping afterwards

2010-03-04 Thread Douglas Ferguson
I've been experimenting with this and have come to find out that the mvn jetty plugin is not compatible with projects that include jetty in their pom dependencies. Now I need to figure out a different way to start up jetty. I have a Start.java class that could start up jetty but i would need

Re: offline mode with in plugin

2010-03-04 Thread Stephen Connolly
/** * @param expression=${settings.offline} */ private boolean offline; if I recall correctly On 4 March 2010 09:37, kristian m.krist...@web.de wrote: I have a plugin which does some networking and I would like to obey the maven commandline flag --offline but did not see any way to

Re: starting jetty during tests and stopping afterwards

2010-03-04 Thread Stephen Connolly
public final class JettyHelper { private JettyHelper() { throw new IllegalAccessError(Utility class); } public static Server createServer(int port, File warFile, String contextRoot) throws Exception { Server server = new Server(); Connector connector = new

Re: offline mode with in plugin

2010-03-04 Thread kristian
On Thu, Mar 4, 2010 at 5:34 PM, Stephen Connolly stephen.alan.conno...@gmail.com wrote: /**  * @param expression=${settings.offline}  */ private boolean offline; that gives me already access to the settings, great :-)) but it still does not give the the value of the command line switch

Re: getting specification version without SNAPSHOT

2010-03-04 Thread Anders Hammar
That should happen automatically if you build/release a version, i.e. you don't have -SNAPSHOT in you project version element. /Anders On Thu, Mar 4, 2010 at 12:51, Maruf Aytekin aayte...@gmail.com wrote: Hi All, How can I chop off -SNAPSHOT string from Specification-Version:1.5.2-SNAPSHOT

4-Digit (plus qualifier) Versioning Scheme

2010-03-04 Thread Steppan, Bernhard
Since our product management has introduced a product prefix we're searching for a solution for a 4-digit (plus qualifier) versioning scheme (product.major.minor.patch-qualifier). Unfortunately we recognized that Maven does not support this enhanced scheme very well: -When comparing a 4-digit

Re: Always download dependencies with classifier

2010-03-04 Thread Brendan Sibre
We see that message when we have a jar in the repository that doesn't actually have a POM file. It realizes the JAR is in your local repository, so it doesn't try to download that. But it always tries to download the POM to find out if the artifact has any dependencies (and POMs don't have

Re: getting specification version without SNAPSHOT

2010-03-04 Thread Maruf Aytekin
Hi Andres, Yes I am aware of the release plugin. We don't want to make a release. We need to make deployments from SNAPSHOT version. The application reads the version info from manifest.mf and we want to show version info without SNAPSHOT string. Thanks, Maruf On Thu, Mar 4, 2010 at 3:43 PM,

Re: getting specification version without SNAPSHOT

2010-03-04 Thread Anders Hammar
The Maven way is to change the version of your project to a proper release version. That's how you do it. Don't fight Maven! /Anders On Thu, Mar 4, 2010 at 15:22, Maruf Aytekin aayte...@gmail.com wrote: Hi Andres, Yes I am aware of the release plugin. We don't want to make a release. We

Re: Always download dependencies with classifier

2010-03-04 Thread Thunder Farmer
No. That's not it. I think you didn't get me clearly. I do have pom file for that jar file in my local repo. Maven should NOT connect to remote repo because everything is there in local repo. And I have specified the version and classifier. Can anyone help me on this? Thanks, Thunder. On Thu,

Re: Always download dependencies with classifier

2010-03-04 Thread Wendy Smoak
On Thu, Mar 4, 2010 at 1:03 AM, Thunder Farmer thunder.far...@gmail.com wrote: The informix JDBC jar and it's pom file are already in our local repo, and I have local repo in my setting.xml What is our local repo? (Local repos are not meant to be shared. Are you running a repository manager?)

Including sibling module attachment inside another module artifact

2010-03-04 Thread Thomas Harris
Maven Users: I have been searching for examples of how to make this work, but I must be missing something. We have a multimodule project, along these lines: proj-parent |- modules |- module1 |- target |- module1-1.0.0-classifiername.jar |- module2

Re: getting specification version without SNAPSHOT

2010-03-04 Thread Jörg Schaible
Maruf Aytekin wrote at Donnerstag, 4. März 2010 15:22: Hi Andres, Yes I am aware of the release plugin. We don't want to make a release. We need to make deployments from SNAPSHOT version. The application reads the version info from manifest.mf and we want to show version info without

m2eclipse, surefire and systepPropertyVariables

2010-03-04 Thread WujekS
Hi. I have a configuration to set certain properties in the pom file to be used during my TestNG tests. It doesn't work. Here is what I do: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-surefire-plugin/artifactId

changes:announcement-mail and jira-report

2010-03-04 Thread Ryan Connolly
Hello again, We have recently moved to JIRA and in doing so are very excited that we have been able to enable the jira-report provided by the maven-changes-plugin. We were using the changes.xml method of tracking changes before this migration and using the announcement-mail goal at deploy

Re: changes:announcement-mail and jira-report

2010-03-04 Thread Ryan Connolly
Ughhh... Never mind, all. I found it: mvn changes:announcement-generate -DgenerateJiraAnnouncement=true On Thu, Mar 4, 2010 at 11:02 AM, Ryan Connolly ryn...@gmail.com wrote: Hello again, We have recently moved to JIRA and in doing so are very excited that we have been able to

Unable to exclude .class files

2010-03-04 Thread WriteJava
Hi, I am trying to generate a sar file using 'jboss-packaging-maven-plugin' plugin and I can't exclude .class files from my sar. It is including all classes to sar. Can you please help? Here is my code snippet: plugin groupIdorg.codehaus.mojo/groupId

RE: m2eclipse, surefire and systepPropertyVariables

2010-03-04 Thread David Shapiro
Is ECLIPSE_HOME set? David -Original Message- From: WujekS [mailto:wujek.sru...@googlemail.com] Sent: Thursday, March 04, 2010 10:58 AM To: users@maven.apache.org Subject: m2eclipse, surefire and systepPropertyVariables Hi. I have a configuration to set certain properties in the pom

Re: Always download dependencies with classifier

2010-03-04 Thread Wayne Fay
Might be interesting if Maven provided a way to indicate in your dependency declaration that you just want the JAR w/o looking at the POM. No, that wouldn't be interesting, and it would be a really bad idea long-term since it would encourage people to NOT create pom files for artifacts thus

Re: 4-Digit (plus qualifier) Versioning Scheme

2010-03-04 Thread Stephen Connolly
Take a look at versions-maven-plugin http://mojo.codehaus.org/versions-maven-plugin/version-rules.html Might help you out (our product management requires 5 digit version numbers) ;-) -Stephen On 4 March 2010 13:41, Steppan, Bernhard bernhard.step...@navteq.comwrote: Since our product

Re: offline mode with in plugin

2010-03-04 Thread Stephen Connolly
Hmmm might be burried in MavenSession On 4 March 2010 12:36, kristian m.krist...@web.de wrote: On Thu, Mar 4, 2010 at 5:34 PM, Stephen Connolly stephen.alan.conno...@gmail.com wrote: /** * @param expression=${settings.offline} */ private boolean offline; that gives me already

Re: getting specification version without SNAPSHOT

2010-03-04 Thread Wayne Fay
Yes I am aware of the release plugin. We don't want to make a release. We need to make deployments from SNAPSHOT version. The application reads the version info from manifest.mf and we want to show version info without SNAPSHOT string. Build your war. Unzip the contents. Change values in the

Re: getting specification version without SNAPSHOT

2010-03-04 Thread Stephen Connolly
change your application so that if it sees a version number with - SNAPSHOT at the end it removes the snapshot and replaces it with (development build) you will want to flag to everyone that a non-released version is not a released version (or at least if you are sensible you will want to)

Re: starting jetty during tests and stopping afterwards

2010-03-04 Thread Douglas Ferguson
Hmm.. But how would I start that and stop it with mvn? Looks like you'd need to have a reference to the instantiated JettyHelp in order to stop it. D/ On Mar 4, 2010, at 6:07 AM, Stephen Connolly wrote: public final class JettyHelper { private JettyHelper() { throw new

Re: Including sibling module attachment inside another module artifact

2010-03-04 Thread Wayne Fay
module1's output is two jar files, one the standard output, and the other the extra one defined with includes/excludes using the maven-jar-plugin and a classifier. The extra one needs to be attached to your project with build-helper-m-p and installed and deployed alongside the standard output.

Re: starting jetty during tests and stopping afterwards

2010-03-04 Thread Kalle Korhonen
Why would you insist on starting it with mvn? How do you run the the same test in your IDE? Wouldn't it be easier to just use JettyHelper in your test? For another example of the same concept, perhaps a bit more evolved, see

Re: starting jetty during tests and stopping afterwards

2010-03-04 Thread Douglas Ferguson
I have 20 tests and the number is growing. I don't want to start and stop jetty for every test, because hibernate and guice intialize actually take a little bit of time. Which would slow down the entire suite.. D/ On Mar 4, 2010, at 12:17 PM, Kalle Korhonen wrote: Why would you insist on

Re: starting jetty during tests and stopping afterwards

2010-03-04 Thread Kalle Korhonen
If it takes a long time, why would you restart for each test? If you look at the link I sent, you'll see the instance is started only once per jvm by default. Kalle On Thu, Mar 4, 2010 at 10:35 AM, Douglas Ferguson doug...@douglasferguson.us wrote: I have 20 tests and the number is growing.

Re: starting jetty during tests and stopping afterwards

2010-03-04 Thread Douglas Ferguson
So how does the server get stopped? On Mar 4, 2010, at 12:46 PM, Kalle Korhonen wrote: If it takes a long time, why would you restart for each test? If you look at the link I sent, you'll see the instance is started only once per jvm by default. Kalle On Thu, Mar 4, 2010 at 10:35 AM,

Re: starting jetty during tests and stopping afterwards

2010-03-04 Thread Kalle Korhonen
On Thu, Mar 4, 2010 at 11:03 AM, Douglas Ferguson doug...@douglasferguson.us wrote: So how does the server get stopped? Up to you, but typically when the JVM exits. Kalle On Mar 4, 2010, at 12:46 PM, Kalle Korhonen wrote: If it takes a long time, why would you restart for each test? If you

RE: m2eclipse, surefire and systepPropertyVariables

2010-03-04 Thread wujek.srujek
Hi. I have just found out what the problem was. It all works on the command line, it also works when I invoke the maven test phase in eclipse. What didn't work is when I invoke tests via a TestNG runtime configuration from eclipse. It is crystal clear why this happens (it has nothing to do with

Re: starting jetty during tests and stopping afterwards

2010-03-04 Thread Douglas Ferguson
Wierd.. I was not seing that happen. Could it be that we have thread pools running? But i was testing it with eclipse. I wrapped the call to start with a main() and ran that from eclipse and it kept running.. D// On Mar 4, 2010, at 1:17 PM, Kalle Korhonen wrote: On Thu, Mar 4, 2010 at

Re: Unable to exclude .class files

2010-03-04 Thread Anders Hammar
The exclude tag is for specifying artifactId:groupId as stated in the docs. I don't understand why you don't want to include the classes? If you have a sar project but don't want to include some classes, why do you have them in that project? Or could it be that you're trying to do a jar AND a sar

cobertura jetty

2010-03-04 Thread Douglas Ferguson
So I finally got jetty starting from my test case, but it doesn't impact the code coverage. My BasePage class is at 0% which is confusing. The server is started from the test class which would make you think would be using the instrumented classes and jetty would inherit the same classpath.

Re: cobertura jetty

2010-03-04 Thread hanasaki
most of what I have found points to using emma to get code coverage in the integration phase using the failsafe plugin and embedded Jetty. Original Message Subject: cobertura jetty From: Douglas Ferguson doug...@douglasferguson.us To: Maven Users List users@maven.apache.org

Re: offline mode with in plugin

2010-03-04 Thread kristian
I saw this MavenSession object before but it is not a component /** @component */ MavenSession session does not work. is it possible to get access to the MavenSession from with in a plugin ? On Thu, Mar 4, 2010 at 9:47 PM, Stephen Connolly stephen.alan.conno...@gmail.com wrote: Hmmm might be