You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by alexsun <al...@gmail.com> on 2006/08/22 17:43:05 UTC
Maven cannot find dependencies classes from WEB-INF/classes
I use this configuration in my pom file
...
<dependency>
<groupId><!-- groupId of the war --></groupId>
<artifactId><!-- artifactId of the war --></artifactId>
<version><! -- version of the war --></version>
<type>war</type>
</dependency>
...
but during build process get error that classes from war-package not found.
Why?
--
View this message in context: http://www.nabble.com/Maven-cannot-find-dependencies-classes-from-WEB-INF-classes-tf2147059.html#a5928069
Sent from the Maven - Users forum at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Maven cannot find dependencies classes from WEB-INF/classes
Posted by Matt Raible <mr...@gmail.com>.
AppFuse is basically a kickstart web application. When I used Ant, it
basically just created a project, and put all the files in it to
implement various features. With Maven 2, I'd like to change things
to create a shell/archetype.
For the end user, their pom will something like the following:
<dependency>
<groupId>org.appfuse</groupId>
<artifactId>appfuse-hibernate</artifactId>
<version>2.0</version>
</dependency>
<dependency>
<groupId>org.appfuse</groupId>
<artifactId>appfuse-struts</artifactId>
<version>2.0</version>
<type>war</type>
</dependency>
However, since <type>war</type> doesn't bring in that WAR's
dependencies (it only overlays static artifacts or classes that you
don't refer to in your project), it seems I'll have to do something
like this instead:
<dependency>
<groupId>org.appfuse</groupId>
<artifactId>appfuse-hibernate</artifactId>
<version>2.0</version>
</dependency>
<dependency>
<groupId>org.appfuse</groupId>
<artifactId>appfuse-struts</artifactId>
<version>2.0</version>
<dependency>
<groupId>org.appfuse</groupId>
<artifactId>appfuse-struts-war</artifactId>
<version>2.0</version>
<type>war</type>
</dependency>
In appfuse-struts will be things like base classes, etc. (hopefully I
can include a base test class w/o too much trouble too), whereas
appfuse-struts-war will contain JSPs and XML artifacts (i.e. web.xml,
struts.xml). Make sense?
Sure, we could continue doing things the way we used to do it with Ant
and create an archetype with all the XML, .java and JSP files in the
project - but that makes it difficult to upgrade from one version to
the next.
I'm definitely open to suggestions - I want to make AppFuse as easy to
use/upgrade as possible - and I'm still hopeful that Maven 2 will be
the main facilitator of that.
Matt
On 8/24/06, Eric Redmond <er...@gmail.com> wrote:
> I'm not sure what you're getting at. Is that one single project? Why do
> projects like "common" or "struts" need their own wars? Perhaps its my
> unfamiliarity with AppFuse.
>
> Eric
>
>
> On 8/24/06, Matt Raible <mr...@gmail.com> wrote:
> > On 8/24/06, Matt Raible <mr...@gmail.com> wrote:
> > > So based on this feedback, where I have a webapp like AppFuse (that
> > > implements the same thing with 4 webapps, but also wants to be a
> > > library for users), would you suggest doing something like the
> > > following?
> > >
> > > web (JARs)
> > > - common (common filters, listeners, etc. between impls below)
> > > - jsf
> > > - spring
> > > - struts
> > > - tapestry
> > > war (WARs)
> > > - common (common jsps, images, stylesheets, etc between wars below)
> > > - jsf
> > > - spring
> > > - struts
> > > - tapestry
> > >
> > > I suppose this seems reasonable; I just never expected AppFuse to turn
> > > into 9 JARs and 5 WARs!
> > >
> > > Matt
> >
> > Thinking about this a bit more, the following seems like it might be a
> > little easier to understand and work with (from an AppFuse developer
> > perspective, not a users).
> >
> > web
> > - common
> > - war
> > - jsf
> > - war
> > - spring
> > - war
> > - struts
> > - war
> > - tapestry
> > - war
> >
> > Thoughts?
> >
> > Thanks,
> >
> > Matt
> >
> > >
> > > On 8/23/06, Eric Redmond <er...@gmail.com> wrote:
> > > > This isn't really a shortcomming of Maven as much as a Java thing.
> Imagine
> > > > that your WAR was a JAR that contained a class in:
> > > > somejar.jar:WEB-INF/classes/com.MyClass.class
> > > > the classloader isn't going to find it anyway. The only reason that
> classes
> > > > existing in WEB-IN/classes are found in a WAR is because the loading
> > > > container knows where to look for them. So, yes, if you want to share
> > > > classes between projects you will have to create a seperate JAR
> project, and
> > > > that JAR will be a dependency of the WAR. This is not a bad thing.
> > > >
> > > > Eric
> > > >
> > > > On 8/22/06, Denis Cabasson <denis.cabasson@insee.fr > wrote:
> > > > >
> > > > >
> > > > > I guess this "functionality" isn't present in Maven, as it goes
> against
> > > > > the
> > > > > "best practice" Maven is trying to enforce.
> > > > > If an artifact is supposed to be used as both an external dependency
> and a
> > > > > webapp, it should be bundled in its own jar, and user as a normal
> > > > > dependency
> > > > > in both project. To be more precise, the buisness logic (which is to
> be
> > > > > re-used as a dependency in another project) should be in another
> project,
> > > > > well the user interface, and all the webapp related stuff should
> stay in
> > > > > the
> > > > > war project.
> > > > >
> > > > > Well, at least, that's my point of view on the matter.
> > > > >
> > > > > Denis.
> > > > >
> > > > >
> > > > > Matt Raible-3 wrote:
> > > > > >
> > > > > > I discovered this same thing last week.
> > > > > >
> > > > > >
> > > > >
> http://www.nabble.com/Re%3A-Converting-AppFuse-to-a-Maven-2-Project-p5870757.html
> > > > > >
> > > > > > Seems like a bug to me, but it's probably more of a missing
> feature.
> > > > > > What would it take to add this functionality?
> > > > > >
> > > > > > Thanks,
> > > > > >
> > > > > > Matt
> > > > > >
> > > > > > On 8/22/06, alexsun <al...@gmail.com> wrote:
> > > > > >>
> > > > > >> I use this configuration in my pom file
> > > > > >> ...
> > > > > >> <dependency>
> > > > > >> <groupId><!-- groupId of the war --></groupId>
> > > > > >> <artifactId><!-- artifactId of the war --></artifactId>
> > > > > >> <version><! -- version of the war --></version>
> > > > > >> <type>war</type>
> > > > > >> </dependency>
> > > > > >> ...
> > > > > >>
> > > > > >> but during build process get error that classes from war-package
> not
> > > > > >> found.
> > > > > >>
> > > > > >> Why?
> > > > > >> --
> > > > > >> View this message in context:
> > > > > >>
> > > > >
> http://www.nabble.com/Maven-cannot-find-dependencies-classes-from-WEB-INF-classes-tf2147059.html#a5928069
> > > > > >> Sent from the Maven - Users forum at Nabble.com.
> > > > > >>
> > > > > >>
> > > > > >>
> ---------------------------------------------------------------------
> > > > > >> To unsubscribe, e-mail:
> users-unsubscribe@maven.apache.org
> > > > > >> For additional commands, e-mail: users-help@maven.apache.org
> > > > > >>
> > > > > >>
> > > > > >
> > > > > >
> ---------------------------------------------------------------------
> > > > > > To unsubscribe, e-mail:
> users-unsubscribe@maven.apache.org
> > > > > > For additional commands, e-mail: users-help@maven.apache.org
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > > --
> > > > > View this message in context:
> > > > >
> http://www.nabble.com/Maven-cannot-find-dependencies-classes-from-WEB-INF-classes-tf2147059.html#a5930280
> > > > > Sent from the Maven - Users forum at Nabble.com.
> > > > >
> > > > >
> > > > >
> ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail:
> users-unsubscribe@maven.apache.org
> > > > > For additional commands, e-mail: users-help@maven.apache.org
> > > > >
> > > > >
> > > >
> > > >
> > > > --
> > > > Eric Redmond
> > > > http://codehaus.org/~eredmond
> > > >
> > > >
> > >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
>
>
> --
> Eric Redmond
> http://codehaus.org/~eredmond
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Maven cannot find dependencies classes from WEB-INF/classes
Posted by Eric Redmond <er...@gmail.com>.
I'm not sure what you're getting at. Is that one single project? Why do
projects like "common" or "struts" need their own wars? Perhaps its my
unfamiliarity with AppFuse.
Eric
On 8/24/06, Matt Raible <mr...@gmail.com> wrote:
>
> On 8/24/06, Matt Raible <mr...@gmail.com> wrote:
> > So based on this feedback, where I have a webapp like AppFuse (that
> > implements the same thing with 4 webapps, but also wants to be a
> > library for users), would you suggest doing something like the
> > following?
> >
> > web (JARs)
> > - common (common filters, listeners, etc. between impls below)
> > - jsf
> > - spring
> > - struts
> > - tapestry
> > war (WARs)
> > - common (common jsps, images, stylesheets, etc between wars below)
> > - jsf
> > - spring
> > - struts
> > - tapestry
> >
> > I suppose this seems reasonable; I just never expected AppFuse to turn
> > into 9 JARs and 5 WARs!
> >
> > Matt
>
> Thinking about this a bit more, the following seems like it might be a
> little easier to understand and work with (from an AppFuse developer
> perspective, not a users).
>
> web
> - common
> - war
> - jsf
> - war
> - spring
> - war
> - struts
> - war
> - tapestry
> - war
>
> Thoughts?
>
> Thanks,
>
> Matt
>
> >
> > On 8/23/06, Eric Redmond <er...@gmail.com> wrote:
> > > This isn't really a shortcomming of Maven as much as a Java thing.
> Imagine
> > > that your WAR was a JAR that contained a class in:
> > > somejar.jar:WEB-INF/classes/com.MyClass.class
> > > the classloader isn't going to find it anyway. The only reason that
> classes
> > > existing in WEB-IN/classes are found in a WAR is because the loading
> > > container knows where to look for them. So, yes, if you want to share
> > > classes between projects you will have to create a seperate JAR
> project, and
> > > that JAR will be a dependency of the WAR. This is not a bad thing.
> > >
> > > Eric
> > >
> > > On 8/22/06, Denis Cabasson <de...@insee.fr> wrote:
> > > >
> > > >
> > > > I guess this "functionality" isn't present in Maven, as it goes
> against
> > > > the
> > > > "best practice" Maven is trying to enforce.
> > > > If an artifact is supposed to be used as both an external dependency
> and a
> > > > webapp, it should be bundled in its own jar, and user as a normal
> > > > dependency
> > > > in both project. To be more precise, the buisness logic (which is to
> be
> > > > re-used as a dependency in another project) should be in another
> project,
> > > > well the user interface, and all the webapp related stuff should
> stay in
> > > > the
> > > > war project.
> > > >
> > > > Well, at least, that's my point of view on the matter.
> > > >
> > > > Denis.
> > > >
> > > >
> > > > Matt Raible-3 wrote:
> > > > >
> > > > > I discovered this same thing last week.
> > > > >
> > > > >
> > > >
> http://www.nabble.com/Re%3A-Converting-AppFuse-to-a-Maven-2-Project-p5870757.html
> > > > >
> > > > > Seems like a bug to me, but it's probably more of a missing
> feature.
> > > > > What would it take to add this functionality?
> > > > >
> > > > > Thanks,
> > > > >
> > > > > Matt
> > > > >
> > > > > On 8/22/06, alexsun <al...@gmail.com> wrote:
> > > > >>
> > > > >> I use this configuration in my pom file
> > > > >> ...
> > > > >> <dependency>
> > > > >> <groupId><!-- groupId of the war --></groupId>
> > > > >> <artifactId><!-- artifactId of the war --></artifactId>
> > > > >> <version><! -- version of the war --></version>
> > > > >> <type>war</type>
> > > > >> </dependency>
> > > > >> ...
> > > > >>
> > > > >> but during build process get error that classes from war-package
> not
> > > > >> found.
> > > > >>
> > > > >> Why?
> > > > >> --
> > > > >> View this message in context:
> > > > >>
> > > >
> http://www.nabble.com/Maven-cannot-find-dependencies-classes-from-WEB-INF-classes-tf2147059.html#a5928069
> > > > >> Sent from the Maven - Users forum at Nabble.com.
> > > > >>
> > > > >>
> > > > >>
> ---------------------------------------------------------------------
> > > > >> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > > >> For additional commands, e-mail: users-help@maven.apache.org
> > > > >>
> > > > >>
> > > > >
> > > > >
> ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > > > For additional commands, e-mail: users-help@maven.apache.org
> > > > >
> > > > >
> > > > >
> > > >
> > > > --
> > > > View this message in context:
> > > >
> http://www.nabble.com/Maven-cannot-find-dependencies-classes-from-WEB-INF-classes-tf2147059.html#a5930280
> > > > Sent from the Maven - Users forum at Nabble.com.
> > > >
> > > >
> > > >
> ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > > For additional commands, e-mail: users-help@maven.apache.org
> > > >
> > > >
> > >
> > >
> > > --
> > > Eric Redmond
> > > http://codehaus.org/~eredmond
> > >
> > >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
--
Eric Redmond
http://codehaus.org/~eredmond
Re: Maven cannot find dependencies classes from WEB-INF/classes
Posted by Matt Raible <mr...@gmail.com>.
On 8/24/06, Matt Raible <mr...@gmail.com> wrote:
> So based on this feedback, where I have a webapp like AppFuse (that
> implements the same thing with 4 webapps, but also wants to be a
> library for users), would you suggest doing something like the
> following?
>
> web (JARs)
> - common (common filters, listeners, etc. between impls below)
> - jsf
> - spring
> - struts
> - tapestry
> war (WARs)
> - common (common jsps, images, stylesheets, etc between wars below)
> - jsf
> - spring
> - struts
> - tapestry
>
> I suppose this seems reasonable; I just never expected AppFuse to turn
> into 9 JARs and 5 WARs!
>
> Matt
Thinking about this a bit more, the following seems like it might be a
little easier to understand and work with (from an AppFuse developer
perspective, not a users).
web
- common
- war
- jsf
- war
- spring
- war
- struts
- war
- tapestry
- war
Thoughts?
Thanks,
Matt
>
> On 8/23/06, Eric Redmond <er...@gmail.com> wrote:
> > This isn't really a shortcomming of Maven as much as a Java thing. Imagine
> > that your WAR was a JAR that contained a class in:
> > somejar.jar:WEB-INF/classes/com.MyClass.class
> > the classloader isn't going to find it anyway. The only reason that classes
> > existing in WEB-IN/classes are found in a WAR is because the loading
> > container knows where to look for them. So, yes, if you want to share
> > classes between projects you will have to create a seperate JAR project, and
> > that JAR will be a dependency of the WAR. This is not a bad thing.
> >
> > Eric
> >
> > On 8/22/06, Denis Cabasson <de...@insee.fr> wrote:
> > >
> > >
> > > I guess this "functionality" isn't present in Maven, as it goes against
> > > the
> > > "best practice" Maven is trying to enforce.
> > > If an artifact is supposed to be used as both an external dependency and a
> > > webapp, it should be bundled in its own jar, and user as a normal
> > > dependency
> > > in both project. To be more precise, the buisness logic (which is to be
> > > re-used as a dependency in another project) should be in another project,
> > > well the user interface, and all the webapp related stuff should stay in
> > > the
> > > war project.
> > >
> > > Well, at least, that's my point of view on the matter.
> > >
> > > Denis.
> > >
> > >
> > > Matt Raible-3 wrote:
> > > >
> > > > I discovered this same thing last week.
> > > >
> > > >
> > > http://www.nabble.com/Re%3A-Converting-AppFuse-to-a-Maven-2-Project-p5870757.html
> > > >
> > > > Seems like a bug to me, but it's probably more of a missing feature.
> > > > What would it take to add this functionality?
> > > >
> > > > Thanks,
> > > >
> > > > Matt
> > > >
> > > > On 8/22/06, alexsun <al...@gmail.com> wrote:
> > > >>
> > > >> I use this configuration in my pom file
> > > >> ...
> > > >> <dependency>
> > > >> <groupId><!-- groupId of the war --></groupId>
> > > >> <artifactId><!-- artifactId of the war --></artifactId>
> > > >> <version><! -- version of the war --></version>
> > > >> <type>war</type>
> > > >> </dependency>
> > > >> ...
> > > >>
> > > >> but during build process get error that classes from war-package not
> > > >> found.
> > > >>
> > > >> Why?
> > > >> --
> > > >> View this message in context:
> > > >>
> > > http://www.nabble.com/Maven-cannot-find-dependencies-classes-from-WEB-INF-classes-tf2147059.html#a5928069
> > > >> Sent from the Maven - Users forum at Nabble.com.
> > > >>
> > > >>
> > > >> ---------------------------------------------------------------------
> > > >> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > >> For additional commands, e-mail: users-help@maven.apache.org
> > > >>
> > > >>
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > > For additional commands, e-mail: users-help@maven.apache.org
> > > >
> > > >
> > > >
> > >
> > > --
> > > View this message in context:
> > > http://www.nabble.com/Maven-cannot-find-dependencies-classes-from-WEB-INF-classes-tf2147059.html#a5930280
> > > Sent from the Maven - Users forum at Nabble.com.
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > For additional commands, e-mail: users-help@maven.apache.org
> > >
> > >
> >
> >
> > --
> > Eric Redmond
> > http://codehaus.org/~eredmond
> >
> >
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Maven cannot find dependencies classes from WEB-INF/classes
Posted by Matt Raible <mr...@gmail.com>.
So based on this feedback, where I have a webapp like AppFuse (that
implements the same thing with 4 webapps, but also wants to be a
library for users), would you suggest doing something like the
following?
web (JARs)
- common (common filters, listeners, etc. between impls below)
- jsf
- spring
- struts
- tapestry
war (WARs)
- common (common jsps, images, stylesheets, etc between wars below)
- jsf
- spring
- struts
- tapestry
I suppose this seems reasonable; I just never expected AppFuse to turn
into 9 JARs and 5 WARs!
Matt
On 8/23/06, Eric Redmond <er...@gmail.com> wrote:
> This isn't really a shortcomming of Maven as much as a Java thing. Imagine
> that your WAR was a JAR that contained a class in:
> somejar.jar:WEB-INF/classes/com.MyClass.class
> the classloader isn't going to find it anyway. The only reason that classes
> existing in WEB-IN/classes are found in a WAR is because the loading
> container knows where to look for them. So, yes, if you want to share
> classes between projects you will have to create a seperate JAR project, and
> that JAR will be a dependency of the WAR. This is not a bad thing.
>
> Eric
>
> On 8/22/06, Denis Cabasson <de...@insee.fr> wrote:
> >
> >
> > I guess this "functionality" isn't present in Maven, as it goes against
> > the
> > "best practice" Maven is trying to enforce.
> > If an artifact is supposed to be used as both an external dependency and a
> > webapp, it should be bundled in its own jar, and user as a normal
> > dependency
> > in both project. To be more precise, the buisness logic (which is to be
> > re-used as a dependency in another project) should be in another project,
> > well the user interface, and all the webapp related stuff should stay in
> > the
> > war project.
> >
> > Well, at least, that's my point of view on the matter.
> >
> > Denis.
> >
> >
> > Matt Raible-3 wrote:
> > >
> > > I discovered this same thing last week.
> > >
> > >
> > http://www.nabble.com/Re%3A-Converting-AppFuse-to-a-Maven-2-Project-p5870757.html
> > >
> > > Seems like a bug to me, but it's probably more of a missing feature.
> > > What would it take to add this functionality?
> > >
> > > Thanks,
> > >
> > > Matt
> > >
> > > On 8/22/06, alexsun <al...@gmail.com> wrote:
> > >>
> > >> I use this configuration in my pom file
> > >> ...
> > >> <dependency>
> > >> <groupId><!-- groupId of the war --></groupId>
> > >> <artifactId><!-- artifactId of the war --></artifactId>
> > >> <version><! -- version of the war --></version>
> > >> <type>war</type>
> > >> </dependency>
> > >> ...
> > >>
> > >> but during build process get error that classes from war-package not
> > >> found.
> > >>
> > >> Why?
> > >> --
> > >> View this message in context:
> > >>
> > http://www.nabble.com/Maven-cannot-find-dependencies-classes-from-WEB-INF-classes-tf2147059.html#a5928069
> > >> Sent from the Maven - Users forum at Nabble.com.
> > >>
> > >>
> > >> ---------------------------------------------------------------------
> > >> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > >> For additional commands, e-mail: users-help@maven.apache.org
> > >>
> > >>
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > For additional commands, e-mail: users-help@maven.apache.org
> > >
> > >
> > >
> >
> > --
> > View this message in context:
> > http://www.nabble.com/Maven-cannot-find-dependencies-classes-from-WEB-INF-classes-tf2147059.html#a5930280
> > Sent from the Maven - Users forum at Nabble.com.
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
>
> --
> Eric Redmond
> http://codehaus.org/~eredmond
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Maven cannot find dependencies classes from WEB-INF/classes
Posted by Eric Redmond <er...@gmail.com>.
This isn't really a shortcomming of Maven as much as a Java thing. Imagine
that your WAR was a JAR that contained a class in:
somejar.jar:WEB-INF/classes/com.MyClass.class
the classloader isn't going to find it anyway. The only reason that classes
existing in WEB-IN/classes are found in a WAR is because the loading
container knows where to look for them. So, yes, if you want to share
classes between projects you will have to create a seperate JAR project, and
that JAR will be a dependency of the WAR. This is not a bad thing.
Eric
On 8/22/06, Denis Cabasson <de...@insee.fr> wrote:
>
>
> I guess this "functionality" isn't present in Maven, as it goes against
> the
> "best practice" Maven is trying to enforce.
> If an artifact is supposed to be used as both an external dependency and a
> webapp, it should be bundled in its own jar, and user as a normal
> dependency
> in both project. To be more precise, the buisness logic (which is to be
> re-used as a dependency in another project) should be in another project,
> well the user interface, and all the webapp related stuff should stay in
> the
> war project.
>
> Well, at least, that's my point of view on the matter.
>
> Denis.
>
>
> Matt Raible-3 wrote:
> >
> > I discovered this same thing last week.
> >
> >
> http://www.nabble.com/Re%3A-Converting-AppFuse-to-a-Maven-2-Project-p5870757.html
> >
> > Seems like a bug to me, but it's probably more of a missing feature.
> > What would it take to add this functionality?
> >
> > Thanks,
> >
> > Matt
> >
> > On 8/22/06, alexsun <al...@gmail.com> wrote:
> >>
> >> I use this configuration in my pom file
> >> ...
> >> <dependency>
> >> <groupId><!-- groupId of the war --></groupId>
> >> <artifactId><!-- artifactId of the war --></artifactId>
> >> <version><! -- version of the war --></version>
> >> <type>war</type>
> >> </dependency>
> >> ...
> >>
> >> but during build process get error that classes from war-package not
> >> found.
> >>
> >> Why?
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/Maven-cannot-find-dependencies-classes-from-WEB-INF-classes-tf2147059.html#a5928069
> >> Sent from the Maven - Users forum at Nabble.com.
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >> For additional commands, e-mail: users-help@maven.apache.org
> >>
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Maven-cannot-find-dependencies-classes-from-WEB-INF-classes-tf2147059.html#a5930280
> Sent from the Maven - Users forum at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
--
Eric Redmond
http://codehaus.org/~eredmond
Re: Maven cannot find dependencies classes from WEB-INF/classes
Posted by Denis Cabasson <de...@insee.fr>.
I guess this "functionality" isn't present in Maven, as it goes against the
"best practice" Maven is trying to enforce.
If an artifact is supposed to be used as both an external dependency and a
webapp, it should be bundled in its own jar, and user as a normal dependency
in both project. To be more precise, the buisness logic (which is to be
re-used as a dependency in another project) should be in another project,
well the user interface, and all the webapp related stuff should stay in the
war project.
Well, at least, that's my point of view on the matter.
Denis.
Matt Raible-3 wrote:
>
> I discovered this same thing last week.
>
> http://www.nabble.com/Re%3A-Converting-AppFuse-to-a-Maven-2-Project-p5870757.html
>
> Seems like a bug to me, but it's probably more of a missing feature.
> What would it take to add this functionality?
>
> Thanks,
>
> Matt
>
> On 8/22/06, alexsun <al...@gmail.com> wrote:
>>
>> I use this configuration in my pom file
>> ...
>> <dependency>
>> <groupId><!-- groupId of the war --></groupId>
>> <artifactId><!-- artifactId of the war --></artifactId>
>> <version><! -- version of the war --></version>
>> <type>war</type>
>> </dependency>
>> ...
>>
>> but during build process get error that classes from war-package not
>> found.
>>
>> Why?
>> --
>> View this message in context:
>> http://www.nabble.com/Maven-cannot-find-dependencies-classes-from-WEB-INF-classes-tf2147059.html#a5928069
>> Sent from the Maven - Users forum at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/Maven-cannot-find-dependencies-classes-from-WEB-INF-classes-tf2147059.html#a5930280
Sent from the Maven - Users forum at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Maven cannot find dependencies classes from WEB-INF/classes
Posted by Matt Raible <mr...@gmail.com>.
I discovered this same thing last week.
http://www.nabble.com/Re%3A-Converting-AppFuse-to-a-Maven-2-Project-p5870757.html
Seems like a bug to me, but it's probably more of a missing feature.
What would it take to add this functionality?
Thanks,
Matt
On 8/22/06, alexsun <al...@gmail.com> wrote:
>
> I use this configuration in my pom file
> ...
> <dependency>
> <groupId><!-- groupId of the war --></groupId>
> <artifactId><!-- artifactId of the war --></artifactId>
> <version><! -- version of the war --></version>
> <type>war</type>
> </dependency>
> ...
>
> but during build process get error that classes from war-package not found.
>
> Why?
> --
> View this message in context: http://www.nabble.com/Maven-cannot-find-dependencies-classes-from-WEB-INF-classes-tf2147059.html#a5928069
> Sent from the Maven - Users forum at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org