What are you trying to do?
It is unusual for a WAR to be a dependency.
Even more unusual for a WebService to be a dependency.
What are you testing?
Ron
On 01/05/2012 2:44 PM, Daivish Shah wrote:
Hi,
I have following dependency declared in my UNIT Testing module project.
dependency
I have some integration UNIT test cases.
Which require me to include those JAVA files in my integration unit test
module, And this module is designed to include all UNIT test case for that
parent project.
I hope you got it. But do you have any solution of my question ?
On Tue, May 1, 2012 at
Break the WAR project into 2 projects.
One with code that makes a JAR and one without code to make a WAR.
You could put your unit tests in the jar project which is what most
people do or make a third project that has some test routines that test
your code.
Ron
On 01/05/2012 3:12 PM, Daivish
Tue, 1 May 2012 11:44:27 -0700, /Daivish Shah/:
I have following dependency declared in my UNIT Testing module project.
dependency
groupIdsample-project-ws/groupId
artifactIdsample-project-ws/artifactId
version${project.version}/version
typewar/type
scopetest/scope
Thanks Stanimir,
I modified my code like this.
JUNIT Module POM.XML
dependency
groupIdsample-project-ws/groupId
artifactIdsample-project-ws/artifactId
version${project.version}/version
classifierclasses/classes
scopetest/scope
/dependency
My
Using maven 3.0.3 (as well as 2.2.1).
a
--
| |
b c
Pom for a lists b and c as modules.
b is packaging=war.
c is packaging=jar.
c's dependencies include:
dependency
artifactIdb/artifactId
version${project.version}/version
typewar/type
/dependency
C has an
This turned out to be a stupid error in the parent of a, which I had
fixed once and somehow got reverted. Sorry about the noise.
On Tue, Dec 6, 2011 at 9:13 AM, Benson Margulies bimargul...@gmail.com wrote:
Using maven 3.0.3 (as well as 2.2.1).
a
--
| |
b c
Pom for a lists
Hello,
I've got an EAR application for which I'm building a specific extension
as an additional WAR. My question is, what is the best way to do this
without the original EAR's POM knowing anything about the extra WAR? Any
examples would be appreciated.
Many thanks,
Manos
How would you solve this problem without Maven? What kind of EAR could load a
WAR it doesn't know about?
I don't doubt that this is possible with some magic, but that magic is separate
from Maven.
Once you have the magic well-defined, Maven can help you build it and package
it.
Brian
Sounds like you want to unpack the EAR, add the WAR and repack it again...
that would be a 2nd EAR module that depends on the first EAR and the
WAR... might need some massaging, or perhaps a
m-d-p:unpack-dependencies
On 18 October 2011 16:59, Brian Topping topp...@codehaus.org wrote:
How would
Hello Brian,
Thanks for the reply. I was thinking about using the unpack goal of
maven-dependency-plugin, then change the target dir for the WAR to place
it in there along with some enhanced EAR descriptors. Just looking for
better ideas and/or examples to save time.
Manos
On 10/18/2011
,
-sipungora
--
View this message in context:
http://maven.40175.n5.nabble.com/How-to-access-classes-from-war-dependency-tp4362127p4373647.html
Sent from the Maven - Users mailing list archive at Nabble.com.
-
To unsubscribe, e-mail
On May 5, 2011, at 2:44 PM, sipungora wrote:
I've done this, as you've explained me here. But I have one problem yet. If
I save data in jar object from 1-st war for the 2-nd war, the 2-nd war
cannot acces they. My object is the singleton.
1 protected static Controller controller;
2
If I debug 1-st war and then 2-nd one, I see that 2-nd war also goes into
row 5. So both wars works with different objects.
Can you explain me how can I solve this?
This is not the right place to ask such questions -- we are Maven
experts, not j2ee war classloader experts. You probably need to
.
--
Rick Genter
Thank you for explanation Rick, but what would be in this case a good
design?
Thank you in advance,
Best Regards,
-sipungora
--
View this message in context:
http://maven.40175.n5.nabble.com/How-to-access-classes-from-war-dependency-tp4362127p4373726.html
Sent from the Maven - Users
-h...@maven.apache.org
Thank you Wayne.
I don't simple known where I should ask this. Besides Anders has proposed me
this idea. I've thought that he can help me further.
--
View this message in context:
http://maven.40175.n5.nabble.com/How-to-access-classes-from-war-dependency
I don't simple known where I should ask this. Besides Anders has proposed me
this idea. I've thought that he can help me further.
stackoverflow.com
javaranch.com
forums.oracle.com
forums.terracotta.org
or try the User Forum for whatever j2ee container you are using
(glassfish, weblogic, jboss,
/configuration
/plugin
and this is the war-dependency:
dependency
groupId${groupId}/groupId
artifactIdtest/artifactId
version${version}/version
typewar
On 2011-05-01 03:48, sipungora wrote:
Hi,
I have a war-dependency. Its classes are arranged in war/WEB-INF/classes/.
How should I configure my pom, that I can access they?
I assume, they should be copied from war/WEB-INF/classes/ into
mywar/WEB-INF/classes/, but I don't know, how my pom
Thank you, Anders.
I'll try this to do. --
View this message in context:
http://maven.40175.n5.nabble.com/How-to-access-classes-from-war-dependency-tp4362127p4362573.html
Sent from the Maven - Users mailing list archive at Nabble.com
Thank you Dennis.
I will later write, if it works. --
View this message in context:
http://maven.40175.n5.nabble.com/How-to-access-classes-from-war-dependency-tp4362127p4362575.html
Sent from the Maven - Users mailing list archive at Nabble.com
:
http://maven.40175.n5.nabble.com/How-to-access-classes-from-war-dependency-tp4362127p4363706.html
Sent from the Maven - Users mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
done it. But how can I configure my pom, that this jar will after
building be in WEB-INF/lib of my war? Currently I do it manually.
Thank you in advance.
Best Regards,
-sipungora--
View this message in context:
http://maven.40175.n5.nabble.com/How-to-access-classes-from-war-dependency
Hi,
I have a war-dependency. Its classes are arranged in war/WEB-INF/classes/.
How should I configure my pom, that I can access they?
I assume, they should be copied from war/WEB-INF/classes/ into
mywar/WEB-INF/classes/, but I don't know, how my pom should correct be
configured
I'm having difficulty understanding why performing a dependency:tree on an ear,
will give me transitive dependencies for a dependent artifact with packaging
type jar, but not of type war. Here is the sample output from a project
(strictly for demo purposes):
emiles-macbook:myapp emiles$ mvn
Hi Eric,
Eric Miles wrote:
I'm having difficulty understanding why performing a dependency:tree on an
ear, will give me transitive dependencies for a dependent artifact with
packaging type jar, but not of type war.
Because a war does not require transitive dependencies, it has them normally
So it would appear that project war dependencies DO get deployed using
addContextWarDependencies property. However, the war dependency must have
scopetomcat/scope declared. Not only was I unable to find any
documentation on this feature but as you can guess, m3 issues a clear
warning about
-artifacts.html
2011/1/11 Ryan Connolly ryn...@gmail.com:
Hi:
Does anyone happen to know whether it is possible to configure
tomcat:run to deploy a defined war dependency as well as run the
current
project as a dynamic web app in the embedded container? I've tried
setting
:
Hi:
Does anyone happen to know whether it is possible to configure
tomcat:run to deploy a defined war dependency as well as run the
current
project as a dynamic web app in the embedded container? I've tried
setting
the addContextWarDependenciestrue/addContextWarDependencies
Anders: Being a contributor this had already occurred to me but I was
hoping for an embedded Tomcat 6 (which doesn't appear to be supported
currently) that would run a war dependency alongside the current war project
for rapid development. I may come back to Cargo for this yet but I thought
I
from actually deploying the war dependency.
- SetArtifact artifacts = project.getArtifacts();
- The war must be declared as a dependency in the project's
dependencies element and does not account for plugin dependencies.
- if ( war.equals( artifact.getType
Connolly ryn...@gmail.com:
Hi:
Does anyone happen to know whether it is possible to configure
tomcat:run to deploy a defined war dependency as well as run the
current
project as a dynamic web app in the embedded container? I've tried
setting
the addContextWarDependenciestrue
Hi:
Does anyone happen to know whether it is possible to configure
tomcat:run to deploy a defined war dependency as well as run the current
project as a dynamic web app in the embedded container? I've tried setting
the addContextWarDependenciestrue/addContextWarDependencies
configuration
...@gmail.com:
Hi:
Does anyone happen to know whether it is possible to configure
tomcat:run to deploy a defined war dependency as well as run the current
project as a dynamic web app in the embedded container? I've tried setting
the addContextWarDependenciestrue/addContextWarDependencies
happen to know whether it is possible to configure
tomcat:run to deploy a defined war dependency as well as run the current
project as a dynamic web app in the embedded container? I've tried
setting
the addContextWarDependenciestrue/addContextWarDependencies
configuration option and have
-artifacts.html
2011/1/11 Ryan Connolly ryn...@gmail.com:
Hi:
Does anyone happen to know whether it is possible to configure
tomcat:run to deploy a defined war dependency as well as run the current
project as a dynamic web app in the embedded container? I've tried
setting
dependency as well as run the current
project as a dynamic web app in the embedded container? I've tried setting
the addContextWarDependenciestrue/addContextWarDependencies
configuration option and have declared a war dependency in the tomcat-m-p
but the dependency does not appear to deploy
Hello,
I have a war project for some web services that is having
dependency issues. I am getting multiple versions of my XML apis and
XML parsers in the resulting war which results in my having to manually
remove the older versions to avoid server-side SAAJ exceptions when
attempting to
...@letu.edu]
Sent: Monday, April 20, 2009 11:39 AM
To: users@maven.apache.org
Subject: WAR Dependency Mediation Problem
Hello,
I have a war project for some web services that is having
dependency issues. I am getting multiple versions of my XML apis and
XML parsers in the resulting war which
So the question is: How are these duplicates ending up in my WAR file
if they aren't showing up in the dependency tree? I'm lost...
Try again with mvn clean package. It is possibly/likely that the
extra jars are from earlier builds and /target has not been cleaned
up.
Wayne
You're a life saver...that solved the issues.
Thanks!
Dave
-Original Message-
From: Wayne Fay [mailto:wayne...@gmail.com]
Sent: Monday, April 20, 2009 12:28 PM
To: Maven Users List
Subject: Re: WAR Dependency Mediation Problem
So the question is: How are these duplicates ending up
groupIdorg.blah.blah/groupId
artifactIdblahWar/artifactId
version1.0.1-Continuous/version
typewar/type
/dependency
/dependencies
--
View this message in context:
http://www.nabble.com/war-dependency-not-being-picked-up--tp21414576p21414576.html
Sent from
On Mon, Jan 12, 2009 at 6:37 AM, Ben Avery b...@youthnet.org wrote:
so I have created a functional-testing module, which contains the tests, but
the tests have dependencies on classes in the other modules. I have listed
the [war] modules as dependencies of the funtional test pom, but the
For additional commands, e-mail: users-h...@maven.apache.org
--
View this message in context:
http://www.nabble.com/war-dependency-not-being-picked-up--tp21414576p21419364.html
Sent from the Maven - Users mailing list archive at Nabble.com
of my customer war --
/configuration
/plugin
I hope this help you.
On the other hand, when i have a war dependency, the classes in this war are
not avaible for the project with the dependency. How can i import a war
dependency with this classes?
Sorry for my english.
zalym wrote:
I have
.
--
View this message in context:
http://www.nabble.com/Problem-compiling-project-with-WAR-dependency-tf4524072s177.html#a12907017
Sent from the Maven - Users mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: [EMAIL
cdesaint [EMAIL PROTECTED] writes:
Hi All,
I've got a couple of projects, 1 is a WAR project, another is a JAR project
which needs to depend on the java classes in the WAR. Normally, you
wouldn't do this, but in this case, the JAR project is for unit tests and
wants to be able to
, Dr.
\web http://www.oqube.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
View this message in context:
http://www.nabble.com/Problem-compiling-project-with-WAR
://www.nabble.com/War-dependency-tf3710334s177.html#a10378044
Sent from the Maven - Users mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi!
I have a pom that contains a dependency of type war (lets call it
dep:dep:war). The dep:dep:war contains classes that I need for
compilation in my project. When I run the goal compile the dep:dep:war
is downloaded but not included in the compiler plugin's classpath. Am I
missing something
No, JARs are the standard way to share code. You can't share code in a
WAR or EAR. Move the common code into a JAR module.
-Original Message-
From: Martin Goldhahn [mailto:[EMAIL PROTECTED]
Sent: Monday, July 31, 2006 10:43 AM
To: users@maven.apache.org
Subject: WAR dependency in a WAR
are the standard way to share code. You can't share code in a
WAR or EAR. Move the common code into a JAR module.
-Original Message-
From: Martin Goldhahn [mailto:[EMAIL PROTECTED]
Sent: Monday, July 31, 2006 10:43 AM
To: users@maven.apache.org
Subject: WAR dependency in a WAR project (M2
war are not recognized.
By the way, I suppose I can develop a plugin able to do that, but I'd like to
know how could I put my war dependency as a parameter to the plugin, so that I
can work with it.
Thanks in advance,
Andrés
Take a look at the dependency-maven-plugin at http://mojo.codehaus.org. I wrote
it initially for this use case.
-Original Message-
From: Akbarr [mailto:[EMAIL PROTECTED]
Sent: Sunday, February 26, 2006 5:14 AM
To: Maven Users List
Subject: WAR dependency
I'm trying to use war files
Hi,
we want to write httpunit tests for a deployed war file.
How should we proceed? Obviously we cannot put the tests into the project that
creates the war artifact since we cannot test without the war file, and with
failing tests the war cannot be created.
We came up with the idea to create
Hi,
I would like to create a war dependency in my project.xml.
This war is created by the war plugin and installed in the following repo
directory : my_war/wars/my_war-2.0.war
Unfortunately the dependency mechanism looks for a jar not a war and the
type tag is useless.
Meanwhile I
dependency
Hi,
I would like to create a war dependency in my project.xml.
This war is created by the war plugin and installed in the following repo
directory : my_war/wars/my_war-2.0.war
Unfortunately the dependency mechanism looks for a jar not a war and the
type tag is useless.
Meanwhile I
I think
dependency
idmy_war/id
version2.0/version
typewar/type
/dependency
is what you're after
James
-Original Message-
From: MIDON ALEXIS [mailto:[EMAIL PROTECTED]
Sent: 04 November 2004 10:57
To: Maven Users List
Subject: A war dependency
Hi,
I would like
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Thursday, November 04, 2004 12:01 PM
To: [EMAIL PROTECTED]
Subject: RE: A war dependency
I think
dependency
idmy_war/id
version2.0/version
typewar/type
/dependency
is what you're
59 matches
Mail list logo