I wasn't quite sure what you were asking, but I got my logging working
properly with Maven test by adding following configuration to pom.xml.
maven-surefire-plugin
2.2
false
true
pertest
Thanks very much, Andrew, I'll try it. Amazing this isn't easier.
-Adam
On Jan 3, 2008 11:09 AM, Andrew Robinson <[EMAIL PROTECTED]> wrote:
> http://wiki.apache.org/logging-log4j/UsefulCode
>
> Look for "Configuring Log4J For Testing With Maven"
>
> Good luck getting the logs into the test xml
H.. I am sorry you are having these troubles. Have you verified that
you can find the plugin in the repo in a web browser? This would verify
that you aren't having any network issues.
A non-ideal workaround would be to download the artifacts manually, and
install them into your local repo us
On Jan 3, 2008 5:58 PM, Dhruva Reddy <[EMAIL PROTECTED]> wrote:
> However, when I run the "package" goal, which runs the unit tests before
> creating the WAR file, I can see that both versions of the file make it
> into the "target" directory, one under "classes" and one under
> "test-classes". T
I am working on a web application with JUnit 3 tests. We have resources
which are different for running within the application (within the
container) and within JUnit tests (outside the container). An example
is persistence.xml (the configuration file for Hibernate Entity
Manager). The productio
Is your plugin actually modifying the poms?
-Original Message-
From: Bohtvaroh [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 03, 2008 4:07 PM
To: users@maven.apache.org
Subject: RE: How to disable scan for projects
At this stage my pom.xml contains some parameters that must be repla
Hi there,
Sometimes I need to use maven project properties, e.g. ${project.version} etc
in some configuration files (not pom.xml or settings.xml). For example, when I
build an ear file with the name "EAR-${project.version}.ear", I need to use
this ear name in some configuration file for JNDI-loo
this looks bad
file:///Y:/sienabuild/m2.builds/snapshots
should it be
file://Y:/sienabuild/m2.builds/snapshots
??
On Jan 3, 2008 1:02 PM, Ruchir Talwar <[EMAIL PROTECTED]> wrote:
> Caused by:
> org.apache.maven.artifact.deployer.ArtifactDeploymentException: Error
> deploying artifact:
I'm able to generate similar packages without the /target/../ something
included using assembly 2.2-beta-1. I don't use tag at all
and inside fileset, I use for example:
${basedir}/target/dependency
lib/
That works for me.
Kalle
On 1/3/08, Pankaj Tandon <[EMAIL PROTECTE
Heinrich Nirschl <[EMAIL PROTECTED]> schrieb:
> On Jan 2, 2008 12:06 PM, Thomas Chang <[EMAIL PROTECTED]> wrote:
> > Now I do as follow in the "settings.xml":
> >
> >
> >
> >
> > 3.8.1
> >
> >
> >
> >
> > And it runs successful when I run "mvn clean". But as I run "´mvn
I have. It didn't seem to help.
On Jan 3, 2008 10:06 AM, Evan Worley <[EMAIL PROTECTED]> wrote:
> Hi Dmitry,
>
> You are right, sorry for confusing the result of the effective-pom with your
> actual POM. Can you try running "mvn -cpu install" ?
--
At this stage my pom.xml contains some parameters that must be replaced with
my plug-in, so pom tree is still invalid.
Brian E Fox wrote:
>
> Maven will always do this when it finds poms in the execution folder.
> Why do you care if it scans the tree?
>
> -Original Message-
> From: Boh
Caused by:
org.apache.maven.artifact.deployer.ArtifactDeploymentException: Error
deploying artifact: Z:\jcoleman\projects\eTraderII\trunk\target\classes
(Access is denied)
at
org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(Defaul
tArtifactDeployer.java:95)
at
org.apa
I agree completely with Nick. Pankaj, please do file a bug with the
Weblogic plugin.
Wayne
On 1/3/08, Nick Stolwijk <[EMAIL PROTECTED]> wrote:
> IMHO, it is not a feature enhancement, but a bug of the plugin. Why
> would you generate sources and not want them to be added to the compile
> paths? Y
Cool, look like you are a happy user
Could you test against the latest 1.0-beta-1-SNAPSHOT? I will find my
way to release this plugin
Thanks for the feedbacks and the trick how to overwrite the
jasperreports' version.
-D
On Jan 3, 2008 11:55 AM, Wouter Hermeling <[EMAIL PROTECTED]> wrote:
>
>
How does the dashboard report plugin know whether to include the various
summarized reports? My PMD and/or CPD report isn't showing up at all in the
dashboard and the Cobertura columns show nothing next to the JDepend column
in that dashboard section.
I'm thinking it must look for certain xml file
It would be very nice if this plugin would be release finally. I had to
create a release myself because releasing with plugin snapshots is
prohibited.
Also i've used the following configuration to compile against an other
jasperreports version (in my case 1.3.0). This works like a charm and has
b
IMHO, it is not a feature enhancement, but a bug of the plugin. Why
would you generate sources and not want them to be added to the compile
paths? You don't want to configure it twice. Even not once. ;) So yes,
the build-helper-plugin is necessary unfortunately, but it should not be
added to th
Thanks Jeff and Nick.
The use of build-helper did the trick.
Altho it seems that if this plugin is used ONLY for adding sources, there
should be a config parameter added to the maven-compiler-plugin. Don't see
why a whole new plugin is needed for something that seems to be a feature
enhancement to
Upgrade to 2.0.2. This bug is fixed for over a year.
Stéphane
On Jan 1, 2008 1:59 PM, amit kumar <[EMAIL PROTECTED]> wrote:
> Hi,
> I am facing this problem of getting CVS files packaged in the WAR build from
> maven. I am overriding the maven's default directory layout. Below is the
> part of my
Read the bug. Maven incorrectly reports that it is downloading from
Central, when it is in fact downloading from your mirror.
To confirm this, you can run a network sniffer to see where the
traffic is actually coming from.
Wayne
On 1/3/08, Thomas Chang <[EMAIL PROTECTED]> wrote:
> In my "setting
In my "settings.xml" there is just one as follow:
...
MyRepo
*
My repository on remote server
file:sap-dev/CVSREPOS/CvsMaven
...
. But I can see that it downloads from central as follow:
Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexu
On Jan 3, 2008 11:07 AM, Thomas Chang <[EMAIL PROTECTED]> wrote:
> I set in my "settings.xml" my mirrors as follow:
> ...
>
> But as I run maven command such as mvn clean, it download the dependencies
> not from my mirror but from central. The connection to
> "file:sap-dev/CVSREPOS/CvsMave"
Hi all,
I set in my "settings.xml" my mirrors as follow:
...
MyRepo
*
My repository on remote server
file:sap-dev/CVSREPOS/CvsMaven
...
But as I run maven command such as mvn clean, it download the dependencies not
from my mirror but from central. The
Hi Dmitry,
You are right, sorry for confusing the result of the effective-pom with your
actual POM. Can you try running "mvn -cpu install" ?
-Evan
On Jan 3, 2008 9:33 AM, Dmitry Beransky <[EMAIL PROTECTED]> wrote:
> On Jan 2, 2008 3:07 PM, Evan Worley <[EMAIL PROTECTED]> wrote:
> > Try changin
It's a bad idea to release it yourself as 1.0-alpha-4. Whenever there will be
an official alpha 4 yours won't get updated. Better call it an
alpha-3--, so you can even update your own version with a
new numbered one.
Hth,
Nick Stolwijk
Van: Hilco Wijbenga [
On Jan 3, 2008 2:13 AM, Martin Höller <[EMAIL PROTECTED]> wrote:
> Any news on this one? m-enforcer-p 1.0-alpha-3 apparently doesn't support
> and I can't find a newer version anywhere.
If you check out the sources for the enforcer plugin you can build a
1.0-alpha-4 or something like that. It's v
Hello Thomas,
you can read this thread
http://www.mail-archive.com/users@maven.apache.org/msg76455.html
I made a patch which generates stubs automatically for all needed classes,
but unfortunately the original author still did not include it.
I can send you the plugin for maven 2 if you wish.
C
dont know if it is at a working state
http://mojo.codehaus.org/rmic-maven-plugin
-D
On Jan 3, 2008 9:20 AM, Thomas Tardy <[EMAIL PROTECTED]> wrote:
>
> Hi all,
>
> I'm looking for a way to generate stubs and skeletons for RMI during the
> maven build. I have found two possible solutions right no
On Jan 2, 2008 3:07 PM, Evan Worley <[EMAIL PROTECTED]> wrote:
> Try changing the update policy in your pluginRepository to "always". I am
> not positive how this policy works with respect to resolving new plugins (as
> opposed to updating an existing), but might be worth a try.
Evan,
It's my un
Maven will always do this when it finds poms in the execution folder.
Why do you care if it scans the tree?
-Original Message-
From: Bohtvaroh [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 03, 2008 12:07 PM
To: users@maven.apache.org
Subject: How to disable scan for projects
Hello.
Hi all,
I'm looking for a way to generate stubs and skeletons for RMI during the
maven build. I have found two possible solutions right now. As I have seen,
there are some RMI plugins around, but none is an official apache maven
plugin. And as far as I have seen most of them are for maven 1. Anoth
I forgot unpack mojo
Great idea. Thanks for the help.
VELO
On Jan 3, 2008 2:19 PM, Wayne Fay <[EMAIL PROTECTED]> wrote:
> As I said before, you can probably make it work with dependency:unpack
> or the assembly plugin, or something along those lines. Or you can
> modify the EAR plugin and
Hello. I need to discover how to disable "Scanning for projects..." when I
invoke my custom plugin. I have @requiresProject false in it source but it
is not sufficient.
--
View this message in context:
http://www.nabble.com/How-to-disable-scan-for-projects-tp14601036s177p14601036.html
Sent from
As I said before, you can probably make it work with dependency:unpack
or the assembly plugin, or something along those lines. Or you can
modify the EAR plugin and submit your modifications via JIRA. Or you
can submit a bug in JIRA and wait for someone else to write the code
to support this use cas
AFAIK, the compiler plugin won't take the classes from target/generated-sources
itself, but only when the generating plugin add that folder to the compile
directories of a project.
project.addCompileSourceRoot(sourceDirectoryPath);
The weblogic plugin doesn't do this. I guess, the weblogic pl
http://wiki.apache.org/logging-log4j/UsefulCode
Look for "Configuring Log4J For Testing With Maven"
Good luck getting the logs into the test xml files though, that is
what doesn't work for me
-Andrew
On Jan 3, 2008 8:32 AM, Adam Fisk <[EMAIL PROTECTED]> wrote:
> OK, anyone know what the deal is
On Jan 3, 2008 5:01 PM, Pankaj Tandon <[EMAIL PROTECTED]> wrote:
>
> OK, if I were to use the maven-build-helper plugin, the only configuration
> I
> see there is the add-source goal with the sources folder specifying where
> the source folder is.
> I don't see where I can specify the target folde
OK, if I were to use the maven-build-helper plugin, the only configuration I
see there is the add-source goal with the sources folder specifying where
the source folder is.
I don't see where I can specify the target folder so that the compiled
classes go into target/classes to be bundled in the ar
Jux wrote:
>
> Hello
>
> I use http://www.unitils.org/cookbook.html Unitils for my unit-testing
> and I got it working in my IDE, but it fails when maven executes the test
> phase (surefire plugin).
>
> I get the following exeption:
>
On Jan 3, 2008 7:34 AM, Ritz, Martin <[EMAIL PROTECTED]> wrote:
> i have a multimodule project and i search for a way to make the whole project
> portable.
> I have many third party dependencies in my locale repository which arent
> available in the remote repository.
> So i need a way to identi
Well... I have a generic EAR...
Where other developer can plug new jars / swf (Flex application)
Swf are attached using war overlaying, and I wanna do the same to jar.
VELO
On Jan 3, 2008 1:28 PM, Wayne Fay <[EMAIL PROTECTED]> wrote:
> What's your use case? EARs are generally just a couple co
I want to bundle only the third party dependencies. All other available
dependencies via maven remote repository shouldn't go into these bundle.
Martin
>
> You can use dependency:go-offline and then zip up your ~/.m2
> directory along with the source directory. Other than this, I
> do not kn
OK, anyone know what the deal is with surefire, logs, and forking? I
have my log4j.properties files in src/test/resources and
src/main/resources. For tests, my changes to log files do nothing
unless I set "never" in my surefire plugin
config. Even then, the file in src/main/resources overrides m
You can use dependency:go-offline and then zip up your ~/.m2 directory
along with the source directory. Other than this, I do not know of any
built-in way to bundle Maven projects with dependencies etc.
Wayne
On 1/3/08, Ritz, Martin <[EMAIL PROTECTED]> wrote:
> Hello,
>
> i have a multimodule pro
What's your use case? EARs are generally just a couple config files
plus a bunch of Jars -- there's not much to overlay, as in the WAR
plugin.
You could probably make something work with dependency:unpack, but I'm
not aware of any built-in EAR overlay functionality at this time.
Wayne
On 1/3/08,
Based entirely on your description of the problem (I know nothing of
Unitils), it sounds like you are going to need to use JUnit pre-4.4 to
make this work (eg change your JUnit dependency to 4.3.1). If that
doesn't work, I'd ask your question on the JUnit list and see what
they recommend.
Wayne
O
I don't see why Maven will compile these files in this directory. Maybe the
compilation is done by the clientgen task. So I persist adding the target
directory with the maven-build-helper plugin.
Jeff
On Jan 3, 2008 4:19 PM, Pankaj Tandon <[EMAIL PROTECTED]> wrote:
>
> If I remove the outputDir
Just to provide a workaround.. I punted and ended up using the ant zip task.
That works fine.
If in the meanwhile someone finds out how to solve this using the assembly
plugin please reply to this thread.
Thanks
Pankaj
Pankaj Tandon wrote:
>
> Hi,
> I was away for 10 days so I couldn't partici
If I remove the outputDir parameter to the weblogic-maven-plugin, the sources
will go into ${basedir}/src/main/java.
That immediately presents a problem because of:
1/ source control constantly detects these files as modified and
2/ the inability to do a mvn clean. (mvn clean will not remove the
Still not released. I ran into some issues when running site since the
reporting plugins get injected into the project as regular plugins and this
confuses the rule.
-Original Message-
From: Martin Höller [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 03, 2008 5:14 AM
To: Maven Users
Yeah, just replied saying sorry for the noise.
Hate when I strangle my maven with ant..
-Original Message-
From: Ian Springer [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 03, 2008 9:33 AM
To: Maven Users List
Subject: Re: Support of ant 1.6+ conditions
According to the Ant docs
(
Hmm - ok, nvm - istrue tests "value" not "property"
Sorry about the noise!
-Original Message-
From: EJ Ciramella [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 03, 2008 9:27 AM
To: Maven Users List
Subject: RE: Support of ant 1.6+ conditions
I wish it was that easy, I have this
Hello,
i have a multimodule project and i search for a way to make the whole project
portable.
I have many third party dependencies in my locale repository which arent
available in the remote repository.
So i need a way to identify all dependencies in a project and bundle them in an
archive or
According to the Ant docs
(http://ant.apache.org/manual/CoreTasks/conditions.html), the syntax is:
EJ Ciramella wrote:
Is there a newer version of the maven-antrun-plugin?
We would like to pass long a true/false property. If I have:
I get this error:
Class org.
I wish it was that easy, I have this in my pom:
maven-antrun-plugin
ant
ant
1.6.5
.
And still get the message:
Class org.apache.tools.ant.taskdefs.condition.IsTrue doesn't support the
"property" attribute
For me, you generated sources are not compiled. Remove the outputDir
parameter and they will be compiled as the default is to generate in the
standard Java source directory.
Jeff
On Jan 3, 2008 3:09 PM, Pankaj Tandon <[EMAIL PROTECTED]> wrote:
>
> Here is the pom:
>
> http://maven.apache.org/PO
On Jan 3, 2008 2:48 PM, Marshall Schor <[EMAIL PROTECTED]> wrote:
> We have our project constructed using multiple sub-components, each with
> their own POM, all of which inherit from a common POM.
>
> When we want to update to the next version, we change the parent POM,
> and inherit common info
Hi
in a multi-module project it´s sometimes necessary to call Maven and pass
the goals sequentially instead of passing all goals at once.
for site generation in a multi-module project
1.) mvn clean install
2.) mvn site-deploy
is recommended, just
1.) mvn clean install site deploy
doesn´t w
Here is the pom:
http://maven.apache.org/POM/4.0.0";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd";>
4.0.0
com.crowncastle
bpm-common
jar
1.0-SNAPSHOT
bpm-common
http://www.crown
Maybe specifying a upgraded on ant for the antrun plugin in
your POM would help too ?
On Jan 3, 2008 2:57 PM, EJ Ciramella <[EMAIL PROTECTED]> wrote:
> Is there a newer version of the maven-antrun-plugin?
>
> We would like to pass long a true/false property. If I have:
>
>
>
>
>
>
Is there a newer version of the maven-antrun-plugin?
We would like to pass long a true/false property. If I have:
I get this error:
Class org.apache.tools.ant.taskdefs.condition.IsTrue doesn't support the
"property" attribute
Any suggestions?
We have our project constructed using multiple sub-components, each with
their own POM, all of which inherit from a common POM.
When we want to update to the next version, we change the parent POM,
and inherit common info into the children. However, we seem to have to
update all of the children,
Can you send us the pom or the output of Maven ?
Jeff
On Jan 3, 2008 2:05 PM, Pankaj Tandon <[EMAIL PROTECTED]> wrote:
>
> Hi,
> Thanks for that suggestion. I did try that but it did not help for two
> reasons.
> 1/ generated-sources is automatically picked up by the compiler with or
> without
Hi,
Thanks for that suggestion. I did try that but it did not help for two
reasons.
1/ generated-sources is automatically picked up by the compiler with or
without the build:helper plugin
2/It is the location of the compiled classes that I need to be changed to
target/classes. Rightnow, the compil
Anyone have any ideas why this deployment is failing please?
I have no idea why the classes directory is even part of the deployment
which should simply involve copying a jar and zip file to a directory on
a remote windows server via a drive map.
Happy new year!
John
[DEBUG]Configuring mojo
'or
Hello
I use http://www.unitils.org/cookbook.html Unitils for my unit-testing and
I got it working in my IDE, but it fails when maven executes the test phase
(surefire plugin).
I get the following exeption:
Hi all,
I'm looking for a way to generate stubs and skeletons for RMI during the
maven build. I have found two possible solutions right now. As I have seen,
there are some RMI plugins around, but none is an official apache maven
plugin. And as far as I have seen most of them are for maven 1. Anoth
What is your setup? Have you recently changed your proxy settings? Has this
problem only just started appearing or have you had it for a long time? Do the
other mvn build phases work (install, etc)?
Have you got your repositories set up ok?
Should be something like the following... (if you are
Hi.
We have a maven2 project, with several sub projects. I installed
Continuum 1.1 on a Debian Etch machine (cvs v1.12.13, mvn v2.0.8, java
v1.5.0_10).
I added the Maven our projects using "Add Maven 2.x project" with a
file:/// URL. All the projects are listed as they should. As Continuum
s
Sorry, I find the mvn command:
mvn deploy
But I got error as I run it:
E:\Projekte\TestMavenConfig>mvn deploy
[INFO] Scanning for projects...
[INFO] -
---
[INFO] Building Test Maven COnfig using Injecting POM Prop
mvn deploy
:)
-Original Message-
From: Thomas Chang [mailto:[EMAIL PROTECTED]
Sent: 03 January 2008 10:57
To: Maven Users List
Subject: How do I deploy my jar in my remote repository?
Hi all,
I try to deploy my jar in remote server according to
http://maven.apache.org/guides/get
Hi all,
I try to deploy my jar in remote server according to
http://maven.apache.org/guides/getting-started/index.html#How_do_I_deploy_my_jar_in_my_remote_repository.
But I couldn't find the mvn command to do this.
Someone knows?
Thomas
-
Hi!
On Wednesday 05 December 2007 wrote Brian E. Fox:
> The enforcer will tell you the current version of plugins not locked
> down. I've been working towards a release very soon...
Any news on this one? m-enforcer-p 1.0-alpha-3 apparently doesn't support
and I can't find a newer version anywhe
You can use maven-build-helper-plugin to add generated-sources to the list
of source directories. See
http://mojo.codehaus.org/build-helper-maven-plugin
Jeff
On Jan 3, 2008 2:49 AM, Pankaj Tandon <[EMAIL PROTECTED]> wrote:
>
> Hi,
> I'm using weblogic-maven-plugin to generate client stubs (using
It should be:
*wei.junit.groupId*
Jeff
On Jan 3, 2008 9:06 AM, Thomas Chang <[EMAIL PROTECTED]> wrote:
>
> I do as follow:
>
> in POM.XML
> ==
> ...
>
> ${my.junit.groupId}
> ${my.junit.artifactId}
> ${my.junit.version}
>
> ...
>
> in "settings.xml"
>
> ...
>
I do as follow:
in POM.XML
==
...
${my.junit.groupId}
${my.junit.artifactId}
${my.junit.version}
...
in "settings.xml"
...
profiles.xml
...
in "profiles.xml"
wei.junit.groupId
true
junit
wei.jun
77 matches
Mail list logo