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)
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:
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
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
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
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
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
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
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
/**
* @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
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
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
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
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
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
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,
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
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,
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?)
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
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
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
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
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
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
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
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
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
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
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
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)
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
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.
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
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
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.
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,
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
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
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
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
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.
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
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
44 matches
Mail list logo