Is there such a thing as a generic external report plugin out there?
I am thinking of a very simple plugin to add an external report (e.g. junit
html report) to the project reports. This is really trivial (if anyone
wants some code that does it just ask), but would be quite valuable to many
Hi.
I have a module on which I want to execute all Junit tests in the
integraton-test phase.
I want to do this because I need to first start Tomcat before the test
and stop it after the test.
Thererefore, I put the start into the pre-integration-test phase and the
stop into the
Hi,
I write a java program that gets a pom.xml file, read it, get from the
user the version to build and runs maven according to that.
What I need to do is to change the version of the built project
according to the user input.
Can you tell me how to do it?
Thanks!
Hi,
according to the documentation it should be possible to sign any jar you
like using the jarPath option. I wanted to use this to sign the jar that the
assembly plugin created, but this does not work, the jar plugin still tried
to sign the actual jar produced by the project, not the one
Also, I noticed a problem with the surefire report contents.
It seems to
create a report that lists test results grouped together by
package and
class, but when you look closer you find tests from other
classes and even
other packages in the same group.
How come I got a 404 error when I surf to the localhost:9091
the first time I used it.
--
Peter Pilgrim
UBS Investment Bank,
PTS Portal / IT FIRC OPS LDN,
100 Liverpool Street, London EC2M 2RH, United Kingdom
+44 (0) 20 75 75692
:: Java EE / E-Commerce / Enterprise Integration / Development ::
Hi Adam,
Sorry for the late reply but I was out of my office.
2006/11/3, Adam Hardy [EMAIL PROTECTED]:
It sounds you like what you are
saying is that your profiles become active by default just by virtue of
their
existence in profiles.xml.
Yes exactly.
But It's strange because i try it
Hi guys,
I'm using Spring, Struts and Hibernate, and have to deal with so many
configuration or resource files.
Then some troubles come out.
Assuming, there is two projects app and web.
Project app focuses on Simple Application; Project web focuses on Web
Application.
Generally, the
Thanks for the reference. Can anyone tell me how come there are so many good
projects out there using maven 2, when the support for unit test reporting
is so poor? I can't be the only one that is frustrated. What are other
people doing as a workaround? I guess no-one uses the default site
If all tests pass, there is no problem … ;-)
On 15 Nov 2006, at 12:21, Dave Syer wrote:
Thanks for the reference. Can anyone tell me how come there are so
many good
projects out there using maven 2, when the support for unit test
reporting
is so poor? I can't be the only one that is
I've not managed to get integration tests working myself, but
Where have you put your tests? I've noticed the surefire pluin itself has
it's tests in src/it/testX.
Do:
svn checkout
https://svn.apache.org/repos/asf/maven/plugins/trunk/maven-surefire-plugin
maven-surefire-plugin
and have a
I'm just guessing here, but since only string properties are passed you need
to define a string property which is based on the non-string property.
Perhaps you could define:
outDir=${project.build.outputDirectory}
Perhaps you could define this in a profile, or in project.properties or
How are you setting your property?
we use: mvn -DbuildVersion=MYAPP_01234 clean install
and the substitution ${buildVersion} works fine.
David
--
View this message in context:
zze-Amicom HUGONNET E ext RD-TECH a écrit :
zze-Amicom HUGONNET E ext RD-TECH a écrit :
Hi,
I have a quite simple plugin working correctly but when I try to test
it the expression is not evaluated. I am using :
dependency
groupIdorg.apache.maven.shared/groupId
Jan, did you find a solution to this? It looks to me that the exclude
feature doesn't work, which is why others seem to be using more elaborate
techniques to getting integration tests working (separate module, or using
profiles).
I found this comment in SurefirePlugin.java
On 11/15/06, Wendy Smoak [EMAIL PROTECTED] wrote:
Since you already have a separate module for the integration tests,
the easiest solution is to move your tests out of src/test/java.
Surefire will still run in the 'test' phase, but it won't find
anything to compile and run.
Sorry, that's not
do you wait the end of initialization?
Emmanuel
[EMAIL PROTECTED] a écrit :
How come I got a 404 error when I surf to the localhost:9091
the first time I used it.
--
Peter Pilgrim
UBS Investment Bank,
PTS Portal / IT FIRC OPS LDN,
100 Liverpool Street, London EC2M 2RH, United Kingdom
+44 (0)
You can create a new module that contains your shared config files and add it as a dependency for
your project, with test scope if your config files are used only for tests
Emmanuel
jiangshachina a écrit :
Hi guys,
I'm using Spring, Struts and Hibernate, and have to deal with so many
nope:
$ grep -io 'ehcache[^ ]\+' maven.log
ehcache:ehcache:1.2
ehcache:ehcache:1.2.
ehcache:ehcache:jar:1.2:compile
ehcache\ehcache\1.2\ehcache-1.2.jar,
ehcache\ehcache\1.2\ehcache-1.2.jar
ehcache:ehcache:1.2
ehcache:ehcache:1.2.
ehcache:ehcache:jar:1.2:compile
I need my plugin to make an arraylist out of the modules in the parent pom.
I'm creating a List out of them. I'm trying
[EMAIL PROTECTED] expression=${project.modules}
But i get an error saying I didnt specify
configuration
...
childrenVALUE/children
/configuration.
Is there a way to
I have problems specifying dependency versions using set notations.
Install goal fails with error:
[INFO]
[ERROR] BUILD ERROR
[INFO]
[INFO] Failed to
Dan,
Great! Thanks so much. I'll give it a whirl. :-)
Jim
On 11/14/06, Dan Tran [EMAIL PROTECTED] wrote:
Jim, A snapshot has been deployed to
http://snapshots.repository.codehaus.org
It is best to build from source
On 11/15/06, Deluigi Marcus [EMAIL PROTECTED] wrote:
The module itself works fine, but when I launch the life cycle from the
parent module, all tests get executed in the test phase.
Can anybody give me a hint how to solve this problem?
As you've discovered Maven does not yet support
Hello
today I rebuild archiva to check the current state,
after some testing of the webapp in tomcat I decide
to install this on our development environment.
just some hints about configuration of the repositories
in the settings.xml
- proxied repositories should be accessed using the 'proxy'
Hello,
I obtain an internal error when I try « mvn package » or « mvn install » for a
« jar » project. The trace is:
[INFO] Internal error in the plugin manager executing goal
'org.apache.maven.plugins:maven-jar-plugin:2.1:jar': Unable to find the mojo
Well I have some progress -- the tests are finally failing in eclipse so i
can do some debugging.
Also, i changed the hibernate config to use the cache provider provided with
the ehcache jar -- but the tests are still bombing out because it claims it
cannot find the one in the hibernate jar :/
Check your Manifest.MF files and web.xml and other configuration files to make
sure there's not a reference to the wrong version somewhere. (Don't just use
the files in target; you'll need to crack open the packaged JAR/WAR/EAR and all
its JAR contents and look at all the config files and
Its open source... When you have a problem, sometimes its best/easiest
to just jump in with both feet and try to find the problem, and solve
it yourself. Otherwise you're entirely dependent on someone else
fixing things for you on their schedule.
Wayne
On 11/15/06, Jeff Mutonho [EMAIL
Couldn't you also just add this directly in the site.xml instead?
Although it be nicer to just add it to the pom...
Sounds like it might be a useful contribution!
Wayne
On 11/15/06, Dave Syer [EMAIL PROTECTED] wrote:
Is there such a thing as a generic external report plugin out there?
I am
I want to use Hibernate 3.2 in a project that I am building with
maven. There is no artifact for Hibernate 3.2 in ibiblio. How can I
manually set it up in my local repository?
Mark Grand (404)925-8265
mvn install:install-file ... However the dependencies will not be set
up properly due to generated poms.
Wayne
On 11/15/06, Mark Grand [EMAIL PROTECTED] wrote:
I want to use Hibernate 3.2 in a project that I am building with
maven. There is no artifact for Hibernate 3.2 in ibiblio. How can I
Hi Mark,
Yes Hibernate 3.2 is there
http://www.ibiblio.org/maven2/org/hibernate/hibernate/3.2.0.ga/
it probably switched groupId to org.hibernate recently...
Hope this helps
Mirko
Mark Grand wrote:
I want to use Hibernate 3.2 in a project that I am building with
maven. There is no
Does this bring in all its dependencies?
-dh
-Original Message-
From: Mirko Nasato [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 15, 2006 11:17 AM
To: Maven Users List
Subject: Re: Hibernate 3.2
Hi Mark,
Yes Hibernate 3.2 is there
Dave Hoffer wrote:
Does this bring in all its dependencies?
It should, some of them being optional. Have a look at its POM
http://www.ibiblio.org/maven2/org/hibernate/hibernate/3.2.0.ga/hibernate-3.2.0.ga.pom
Hope this helps
Mirko
-Original Message-
From: Mirko Nasato
To search artifacts :
www.mvnrepository.com
www.mvnregistry.com
Very helpful
Damien
-Message d'origine-
De : Mark Grand [mailto:[EMAIL PROTECTED]
Envoyé : mercredi 15 novembre 2006 17:13
À : users@maven.apache.org
Objet : Hibernate 3.2
I want to use Hibernate 3.2 in a project
Hi
For Maven 2 working in offline mode where the project is behind a
firewall / proxy
and disconnected from the Internet.
I get this error
mvn clean
[INFO] Scanning for projects...
[INFO]
[INFO] Building PTSP
-Original Message-
From: Pilgrim, Peter
====
Hi
For Maven 2 working in offline mode where the project is
behind a firewall / proxy and disconnected from the Internet.
FORGET ABOUT IT.
http://maven.apache.org/guides/mini/guide-mirror-settings.html
--
Peter Pilgrim
UBS
Why not limit your plugin to generating the sources, and use the existing
plugins for compiling and packaging? This is likely to be more flexible,
plus it's a lot less work.
If you want different artifactIds for each bundle, you should use a separate
module for each. But you could also put them
Hi!
I have an ear which contains an war depdendency:
dependency
groupId${project.groupId}/groupId
artifactIdmyproject-war/artifactId
version${project.version}/version
typewar/type
Hi
How do you access the repository through the jetty:run?
I set up the guest as an observer role and I tried to access it like
this
http://localhost:9091/repository/aopalliance/aopalliance/1.0/
?
--
Peter Pilgrim
UBS Investment Bank,
PTS Portal / IT FIRC OPS LDN,
100 Liverpool Street,
On 11/15/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
How do you access the repository through the jetty:run?
I set up the guest as an observer role and I tried to access it like
this
http://localhost:9091/repository/aopalliance/aopalliance/1.0/
Unfortunately, browsing the repository with
I'm having trouble using deploy:deploy-file to upload sources and javadoc
too. I've set up an internal repository via SCP and have uploaded DWR
version 2.0m4 to it. When I use the mvn command below for either the javadoc
or sources jar, I get the NullPointerException.
Am I using the command
Thanks Wendy
It is the right path. I will transplant it to a Tomcat on the server
instead.
Thanks!
--
Peter Pilgrim
UBS Investment Bank,
PTS Portal / IT FIRC OPS LDN,
100 Liverpool Street, London EC2M 2RH, United Kingdom
+44 (0) 20 75 75692
:: Java EE / E-Commerce / Enterprise Integration /
Wayne Fay wrote:
Sounds like it might be a useful contribution!
See here: http://jira.codehaus.org/browse/MNG-2660.
--
View this message in context:
http://www.nabble.com/External-report-plugin-tf2634683s177.html#a7362495
Sent from the Maven - Users mailing list archive at Nabble.com.
I did it this way. The classpath gets generated with the jars for the war
but no jar files get added to the lib directory
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-war-plugin/artifactId
version2.0.1/version
On Wednesday November 15 2006 6:21 am, Dave Syer wrote:
Thanks for the reference. Can anyone tell me how come there are so
many good projects out there using maven 2, when the support for unit
test reporting is so poor? I can't be the only one that is frustrated.
What are other people doing
Oops! I discovered that there was an explicit entry for a
'maven-dependency-plugin' that was used by the mule project, that is not
released yet.
Sorry for the post.
Cheers,
-Lyndon-
On 11/14/06, Lyndon Washington [EMAIL PROTECTED] wrote:
Greetings,
I am attempting to use maven on a
Thanks all; I do appreciate the help. The root cause was (of all things) a
space after the class name in hibernate.properties :-/
Now I am back to why this was so hard to diagnose -- the tests, when run
from maven (on the command line), is not picking up changes to that file --
but when the
I don't know why the changed file wasn't detected.
Start running mvn clean {your phase here} ie mvn clean package or mvn
clean test rather than mvn test directly and Maven will delete
target/* before running, which should take care of these kinds of
problems.
Wayne
On 11/15/06, Trevor Torrez
I think you have the right approach, but there are two missing bits:
- make sure the assembly plugin doesn't attach its result.
- make sure the last step does attach its result.
An attached file is one that maven considers an artifact and will upload
when you run install/deploy/etc. By
I wiped it out and rechecked it out from source control; seems to be working
fine.
Thanks again.
On 11/15/06, Wayne Fay [EMAIL PROTECTED] wrote:
I don't know why the changed file wasn't detected.
Start running mvn clean {your phase here} ie mvn clean package or mvn
clean test rather than mvn
It seems to work if I set -DgeneratePom=true
On 11/15/06, Christofer Jennings [EMAIL PROTECTED] wrote:
I'm having trouble using deploy:deploy-file to upload sources and javadoc
too. I've set up an internal repository via SCP and have uploaded DWR
version 2.0m4 to it. When I use the mvn command
Thanks, but still its not clicking in my brain ;) I fail to see how my plugin
will be able to do the preverification and obfuscation if the assembly
plugin does not attach its result. Basically as far as I can see my biggest
issue is that my plugin does not know what the assembly plugin produced.
Looks like the version was hardcoded, but the repository isn't
configured correctly. It should be:
maven-snaps (http://people.apache.org/repo/m2-snapshot-repository),
-Original Message-
From: Lyndon Washington [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 15, 2006 1:22 PM
To:
WARN: Don't go to www.mvnregistry.com! It redirects to a place that
tries to install an exe for porn. (don't worry if you're on Mac OS X
or other un*x ;-)).
Damien Lecan: I'm not amused.
On 15 Nov 2006, at 17:27, LECAN Damien wrote:
To search artifacts :
www.mvnrepository.com
Hi,
I'd like to announce the availability of the following plugins:
axis2-aar-maven-plugin - Generates an Axis 2 service archive (aar file).
axis2-wsdl2code-maven-plugin - Generates code from an WSDL.
axis2-java2wsdl-maven-plugin - Creates an WSDL from a Java class
See
Hi Mikko,
The assembly plugin by default puts its result in target/ and names it
${finalName}-${version}-${classifier}.${type}, e.g. encc-1.0-bin.zip. I
would write your plugin so it accepts the input jar's filename as a
parameter, which defaults to the same naming scheme (or whatever is
snip
There is no way in the pom to attach an artifact; it requires plugin code.
An obfuscator plugin should know how to do this, unless you're just running
some command line tool or an ant task.
The build-helper-maven-plugin at mojo can attach an artifact.
I have this descriptor in my ear-module/DIR
assembly
formats
formattar/format
/formats
fileSets
fileSet
directory${basedir}/target/directory
outputDirectory/outputDirectory
includes
include*.ear/include
/includes
I have been using cargo to deploy my application and run integration tests
against the application in container. Now I would like to have cargo deploy
a war file that contains classes instrumented by cobertura. In addition, I
would like to be able to merge the results of the unit and
Why do you have an asterisk after @parameter? Shouldn't you have a quote mark
after =?
Paul
M Campbell wrote:
I need my plugin to make an arraylist out of the modules in the parent
pom.
I'm creating a List out of them. I'm trying
[EMAIL PROTECTED] expression=${project.modules}
But
Please post the jar plugin section from your pom.
Barbier-Accary Aurélien wrote:
Hello,
I obtain an internal error when I try « mvn package » or « mvn install »
for a « jar » project. The trace is:
[INFO] Internal error in the plugin manager executing goal
Thanks for the detailed example.
Enrique
Eric Helfrich [EMAIL PROTECTED] wrote on 11/15/2006 12:02:27 PM:
I did it this way. The classpath gets generated with the jars for the
war
but no jar files get added to the lib directory
plugin
Thanks for the info, that helped a lot.
Enrique
[EMAIL PROTECTED] wrote on 11/14/2006 03:17:07 PM:
What I do is put the utility jar in my dependency for the war as compile.
Then I put an exclude in the pom for the war that tells it to leave out
the
jar and not put it into the war. The
Hi,
This gets discussed fairly regularly and there's multiple ways to handle
it.
If you're not aware, there's a great search engine for this list at
http://www.nabble.com/Maven---Users-f178.html
I actually find Nabble to be close to useless as it doesn't seem to
get spidered by google
add it as a dependency for your project
How to get it?
Generally, I can add jar/war/ear/pom as dependency, but config file may be
various.
a cup of Java, cheers!
Sha Jiang
Emmanuel Venisse wrote:
You can create a new module that contains your shared config files and add
it as a dependency
Thanks Daniel,
Would you mind contributing by:
- putting the bugs found in jira
- adding your configuration tips to the wiki?
Much appreciated!
- Brett
On 16/11/2006, at 1:31 AM, Mohni, Daniel wrote:
Hello
today I rebuild archiva to check the current state,
after some testing of the webapp
You can also check out the Maven repository on java.net
https://maven-repository.dev.java.net/ is the webpage.
Add the following to your POM
repository
idjava.net/id
urlhttps://maven-repository.dev.java.net/nonav/repository/url
layoutlegacy/layout
/repository
Cheers,
Jim
On 11/14/06,
Dan,
I think I noticed why the plugin wasn't downloading when I used the
examples my POM -- the second plugin definition in your Java example
has codehaus spelled with an extra e on the end -- I've pasted the
source below with the error. I wish I'd caught it before! Progress
on my end is coming
Hello!
I'm tried many different things, but have not been able to add a M2
project to Continuum.
This is the error I get:
Could not download
http://www.company.com/my.pom:
/tmp/continuum/repo/temp/path/to/pom/0.1.0-SNAPSHOT/my-0.1.0-SNAPSHOT.pom (Not
a directory)
I have no idea why it's
I see the following exception in my logs when I try to add a project to
continuum 1.1. At the very end, the log continues by looking for
something on central but I'm not sure what's happening. Any ideas?
2006-11-14 13:26:17,313 [http-8080-Processor22] INFO
Interceptor:exceptionLogging -
Hi Jim,
Thanks for your reply.
What's the feature of the repository?
It seems that the repository isn't compatible with Maven specification.
Generally, artifact and pom file are in same directory, but the repository
is not.
a cup of Java, cheers!
Sha Jiang
Jim Bethancourt-2 wrote:
You can
On 11/15/06, jiangshachina [EMAIL PROTECTED] wrote:
What's the feature of the repository?
It seems that the repository isn't compatible with Maven specification.
Generally, artifact and pom file are in same directory, but the repository
is not.
The java.net repo is a Maven 1 repository.
It is best to build from source since I expect you will see problem and help
bug fix.
Other wise you need to configure your plugin repository in your pom
also set plugin version to 1.0-alpha-1-SNAPSHOT
-D
On 11/15/06, Jim Bethancourt [EMAIL PROTECTED] wrote:
Dan,
I think I noticed why the
Hi Brett
answers inline..
-Original Message-
From: Brett Porter [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 16, 2006 4:09 AM
To: archiva-users@maven.apache.org
Subject: Re: observations on daily build of 20061115
Would you mind contributing by:
- putting the bugs found
On 16/11/2006, at 5:54 PM, Mohni, Daniel wrote:
I opened 2 issues in jira MRM-222 and MRM-223 hope I did this
correctly
cool, thx. Didn't make the correlation.
- adding your configuration tips to the wiki?
what wiki do you mean ?
maybe this should also go to the getting started page
-Original Message-
From: Brett Porter [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 16, 2006 8:09 AM
To: archiva-users@maven.apache.org
Subject: Re: observations on daily build of 20061115
On 16/11/2006, at 5:54 PM, Mohni, Daniel wrote:
I opened 2 issues in jira MRM
On 11/15/06, Wayne Fay [EMAIL PROTECTED] wrote:
Its open source... When you have a problem, sometimes its best/easiest
to just jump in with both feet and try to find the problem, and solve
it yourself. Otherwise you're entirely dependent on someone else
fixing things for you on their schedule.
78 matches
Mail list logo