wtp projects -- dependencies don't show up in embedded tomcat WEB-INF/lib directory

classic Classic list List threaded Threaded
14 messages Options
Reply | Threaded
Open this post in threaded view
|

wtp projects -- dependencies don't show up in embedded tomcat WEB-INF/lib directory

David Durham, Jr.
Hi all,

I've seen this problem crop up from time to time .. and I'm not really
sure what causes it or how to reliably fix it.  The issue is that I
don't see maven dependencies in the directory

myworkspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapp/myproject/WEB-INF/lib

so I see noclassdef errors when I try to start the server.

I'll peek at the org.eclipse.wst.common.component settings file.
Looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<project-modules id="moduleCoreId" project-version="1.5.0">
   <wb-module deploy-name="management-console-service-0.1-SNAPSHOT">
       <wb-resource deploy-path="/WEB-INF/classes"
source-path="/src/main/java"/>
       <wb-resource deploy-path="/WEB-INF/classes"
source-path="/src/main/resources"/>
       <wb-resource deploy-path="/" source-path="/src/main/webapp"/>
       <dependent-module deploy-path="/WEB-INF/lib"
handle="module:/resource/service-events/service-events">
           <dependency-type>uses</dependency-type>
       </dependent-module>
       <dependent-module deploy-path="/WEB-INF/lib"
handle="module:/resource/management-console-client/management-console-client">
           <dependency-type>uses</dependency-type>
       </dependent-module>
       <dependent-module deploy-path="/WEB-INF/lib"
handle="module:/resource/ws-support/ws-support">
           <dependency-type>uses</dependency-type>
       </dependent-module>
       <property name="context-root" value="management-console-service"/>
       <property name="java-output-path"/>
   </wb-module>
</project-modules>


So it's picking up dependences that are projects in my workspace and
adding those -- I see them in WEB-INF/lib.  But dependences like
spring, etc. don't make it into WEB-INF/lib.

Any ideas?

Thanks,
Dave

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|

Re: wtp projects -- dependencies don't show up in embedded tomcat WEB-INF/lib directory

Timothy Mcginnis

One way I've attacked this is by using the following.

<plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-dependency-plugin</artifactId>
        <version>2.0</version>
        <executions>
                <execution>
                        <id>copy-dependencies</id>
                        <phase>process-resources</phase>
                        <goals>
                                <goal>copy-dependencies</goal>
                        </goals>
                        <configuration>
                                <outputDirectory>
                                        src/main/webapp/WEB-INF/lib
                                </outputDirectory>
                                <excludeArtifactIds>
                                        your-project-core,db2jcc,db2jcc_license_cisuz,db2jcc_license_cu
                                </excludeArtifactIds>
                        </configuration>
                </execution>
        </executions>
</plugin>

Tim McGinnis
717 720-1962
Web Development
AES/PHEAA



From: "David Durham" <[hidden email]>
To: user <[hidden email]>
Date: 02/03/2010 02:46 PM
Subject: [m2eclipse-user] wtp projects -- dependencies don't show up in embedded tomcat WEB-INF/lib directory





Hi all,

I've seen this problem crop up from time to time .. and I'm not really
sure what causes it or how to reliably fix it.  The issue is that I
don't see maven dependencies in the directory

myworkspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapp/myproject/WEB-INF/lib

so I see noclassdef errors when I try to start the server.

I'll peek at the org.eclipse.wst.common.component settings file.
Looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<project-modules id="moduleCoreId" project-version="1.5.0">
  <wb-module deploy-name="management-console-service-0.1-SNAPSHOT">
      <wb-resource deploy-path="/WEB-INF/classes"
source-path="/src/main/java"/>
      <wb-resource deploy-path="/WEB-INF/classes"
source-path="/src/main/resources"/>
      <wb-resource deploy-path="/" source-path="/src/main/webapp"/>
      <dependent-module deploy-path="/WEB-INF/lib"
handle="module:/resource/service-events/service-events">
          <dependency-type>uses</dependency-type>
      </dependent-module>
      <dependent-module deploy-path="/WEB-INF/lib"
handle="module:/resource/management-console-client/management-console-client">
          <dependency-type>uses</dependency-type>
      </dependent-module>
      <dependent-module deploy-path="/WEB-INF/lib"
handle="module:/resource/ws-support/ws-support">
          <dependency-type>uses</dependency-type>
      </dependent-module>
      <property name="context-root" value="management-console-service"/>
      <property name="java-output-path"/>
  </wb-module>
</project-modules>


So it's picking up dependences that are projects in my workspace and
adding those -- I see them in WEB-INF/lib.  But dependences like
spring, etc. don't make it into WEB-INF/lib.

Any ideas?

Thanks,
Dave

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   
http://xircles.codehaus.org/manage_email





==============================================================================
This message contains privileged and confidential information intended for the above addressees only.  If you
receive this message in error please delete or destroy this message and/or attachments.  

The sender of this message will fully cooperate in the civil and criminal prosecution of any individual engaging
in the unauthorized use of this message.
==============================================================================

Reply | Threaded
Open this post in threaded view
|

Re: wtp projects -- dependencies don't show up in embedded tomcat WEB-INF/lib directory

David Durham, Jr.
That's interesting.  I'm wondering why my setup (minus your suggestion
below) is all of the sudden not working, when it was previously
working.  I just updated to the latest dev version of m2eclipse.
Still no luck.


-Dave


On Wed, Feb 3, 2010 at 1:50 PM, <[hidden email]> wrote:

>
> One way I've attacked this is by using the following.
>
> <plugin>
>         <groupId>org.apache.maven.plugins</groupId>
>         <artifactId>maven-dependency-plugin</artifactId>
>         <version>2.0</version>
>         <executions>
>                 <execution>
>                         <id>copy-dependencies</id>
>                         <phase>process-resources</phase>
>                         <goals>
>                                 <goal>copy-dependencies</goal>
>                         </goals>
>                         <configuration>
>                                 <outputDirectory>
>                                         src/main/webapp/WEB-INF/lib
>                                 </outputDirectory>
>                                 <excludeArtifactIds>
>                                         your-project-core,db2jcc,db2jcc_license_cisuz,db2jcc_license_cu
>                                 </excludeArtifactIds>
>                         </configuration>
>                 </execution>
>         </executions>
> </plugin>
>
> Tim McGinnis
> 717 720-1962
> Web Development
> AES/PHEAA
>
>
> From: "David Durham" <[hidden email]>
> To: user <[hidden email]>
> Date: 02/03/2010 02:46 PM
> Subject: [m2eclipse-user] wtp projects -- dependencies don't show up in embedded tomcat WEB-INF/lib directory
> ________________________________
>
>
> Hi all,
>
> I've seen this problem crop up from time to time .. and I'm not really
> sure what causes it or how to reliably fix it.  The issue is that I
> don't see maven dependencies in the directory
>
> myworkspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapp/myproject/WEB-INF/lib
>
> so I see noclassdef errors when I try to start the server.
>
> I'll peek at the org.eclipse.wst.common.component settings file.
> Looks like this:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <project-modules id="moduleCoreId" project-version="1.5.0">
>   <wb-module deploy-name="management-console-service-0.1-SNAPSHOT">
>       <wb-resource deploy-path="/WEB-INF/classes"
> source-path="/src/main/java"/>
>       <wb-resource deploy-path="/WEB-INF/classes"
> source-path="/src/main/resources"/>
>       <wb-resource deploy-path="/" source-path="/src/main/webapp"/>
>       <dependent-module deploy-path="/WEB-INF/lib"
> handle="module:/resource/service-events/service-events">
>           <dependency-type>uses</dependency-type>
>       </dependent-module>
>       <dependent-module deploy-path="/WEB-INF/lib"
> handle="module:/resource/management-console-client/management-console-client">
>           <dependency-type>uses</dependency-type>
>       </dependent-module>
>       <dependent-module deploy-path="/WEB-INF/lib"
> handle="module:/resource/ws-support/ws-support">
>           <dependency-type>uses</dependency-type>
>       </dependent-module>
>       <property name="context-root" value="management-console-service"/>
>       <property name="java-output-path"/>
>   </wb-module>
> </project-modules>
>
>
> So it's picking up dependences that are projects in my workspace and
> adding those -- I see them in WEB-INF/lib.  But dependences like
> spring, etc. don't make it into WEB-INF/lib.
>
> Any ideas?
>
> Thanks,
> Dave
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>
>
>
>
> ==============================================================================
> This message contains privileged and confidential information intended for the above addressees only.  If you
> receive this message in error please delete or destroy this message and/or attachments.
>
> The sender of this message will fully cooperate in the civil and criminal prosecution of any individual engaging
> in the unauthorized use of this message.
> ==============================================================================

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|

Re: wtp projects -- dependencies don't show up in embedded tomcat WEB-INF/lib directory

Fred Bricon
Do you have any errors in your workspace/.metadata/.log?
Using m2eclipse's WTP integration module, there's absolutely no need to use the maven-dependency-plugin.
If you can reproduce the bug using a simple project, you should open a ticket in JIRA : https://issues.sonatype.org/browse/MNGECLIPSE

regards,

Fred Bricon

On Wed, Feb 3, 2010 at 9:08 PM, David Durham <[hidden email]> wrote:
That's interesting.  I'm wondering why my setup (minus your suggestion
below) is all of the sudden not working, when it was previously
working.  I just updated to the latest dev version of m2eclipse.
Still no luck.


-Dave


On Wed, Feb 3, 2010 at 1:50 PM, <[hidden email]> wrote:
>
> One way I've attacked this is by using the following.
>
> <plugin>
>         <groupId>org.apache.maven.plugins</groupId>
>         <artifactId>maven-dependency-plugin</artifactId>
>         <version>2.0</version>
>         <executions>
>                 <execution>
>                         <id>copy-dependencies</id>
>                         <phase>process-resources</phase>
>                         <goals>
>                                 <goal>copy-dependencies</goal>
>                         </goals>
>                         <configuration>
>                                 <outputDirectory>
>                                         src/main/webapp/WEB-INF/lib
>                                 </outputDirectory>
>                                 <excludeArtifactIds>
>                                         your-project-core,db2jcc,db2jcc_license_cisuz,db2jcc_license_cu
>                                 </excludeArtifactIds>
>                         </configuration>
>                 </execution>
>         </executions>
> </plugin>
>
> Tim McGinnis
> 717 720-1962
> Web Development
> AES/PHEAA
>
>
> From: "David Durham" <[hidden email]>
> To: user <[hidden email]>
> Date: 02/03/2010 02:46 PM
> Subject: [m2eclipse-user] wtp projects -- dependencies don't show up in embedded tomcat WEB-INF/lib directory
> ________________________________
>
>
> Hi all,
>
> I've seen this problem crop up from time to time .. and I'm not really
> sure what causes it or how to reliably fix it.  The issue is that I
> don't see maven dependencies in the directory
>
> myworkspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapp/myproject/WEB-INF/lib
>
> so I see noclassdef errors when I try to start the server.
>
> I'll peek at the org.eclipse.wst.common.component settings file.
> Looks like this:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <project-modules id="moduleCoreId" project-version="1.5.0">
>   <wb-module deploy-name="management-console-service-0.1-SNAPSHOT">
>       <wb-resource deploy-path="/WEB-INF/classes"
> source-path="/src/main/java"/>
>       <wb-resource deploy-path="/WEB-INF/classes"
> source-path="/src/main/resources"/>
>       <wb-resource deploy-path="/" source-path="/src/main/webapp"/>
>       <dependent-module deploy-path="/WEB-INF/lib"
> handle="module:/resource/service-events/service-events">
>           <dependency-type>uses</dependency-type>
>       </dependent-module>
>       <dependent-module deploy-path="/WEB-INF/lib"
> handle="module:/resource/management-console-client/management-console-client">
>           <dependency-type>uses</dependency-type>
>       </dependent-module>
>       <dependent-module deploy-path="/WEB-INF/lib"
> handle="module:/resource/ws-support/ws-support">
>           <dependency-type>uses</dependency-type>
>       </dependent-module>
>       <property name="context-root" value="management-console-service"/>
>       <property name="java-output-path"/>
>   </wb-module>
> </project-modules>
>
>
> So it's picking up dependences that are projects in my workspace and
> adding those -- I see them in WEB-INF/lib.  But dependences like
> spring, etc. don't make it into WEB-INF/lib.
>
> Any ideas?
>
> Thanks,
> Dave
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>
>
>
>
> ==============================================================================
> This message contains privileged and confidential information intended for the above addressees only.  If you
> receive this message in error please delete or destroy this message and/or attachments.
>
> The sender of this message will fully cooperate in the civil and criminal prosecution of any individual engaging
> in the unauthorized use of this message.
> ==============================================================================

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email



Reply | Threaded
Open this post in threaded view
|

Re: wtp projects -- dependencies don't show up in embedded tomcat WEB-INF/lib directory

David Durham, Jr.
On Wed, Feb 3, 2010 at 2:20 PM, Fred Bricon <[hidden email]> wrote:
> Do you have any errors in your workspace/.metadata/.log?
> Using m2eclipse's WTP integration module, there's absolutely no need to use
> the maven-dependency-plugin.
> If you can reproduce the bug using a simple project, you should open a
> ticket in JIRA : https://issues.sonatype.org/browse/MNGECLIPSE


Actually there are some errors in the log file, but they don't look
like m2eclipse or wtp ones.  Let me look into those when I get a
chance.    For now, I just copied the libs into the web-inf/lib
manually.

Thanks.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|

Re: wtp projects -- dependencies don't show up in embedded tomcat WEB-INF/lib directory

David Durham, Jr.
On Wed, Feb 3, 2010 at 2:48 PM, David Durham <[hidden email]> wrote:

> On Wed, Feb 3, 2010 at 2:20 PM, Fred Bricon <[hidden email]> wrote:
>> Do you have any errors in your workspace/.metadata/.log?
>> Using m2eclipse's WTP integration module, there's absolutely no need to use
>> the maven-dependency-plugin.
>> If you can reproduce the bug using a simple project, you should open a
>> ticket in JIRA : https://issues.sonatype.org/browse/MNGECLIPSE
>
>
> Actually there are some errors in the log file, but they don't look
> like m2eclipse or wtp ones.  Let me look into those when I get a
> chance.    For now, I just copied the libs into the web-inf/lib
> manually.


I looked into this more.  Here's the only maven related error in the
log.  But I always had this error before when dependencies were being
copied to web-inf lib.  I still have the issue and have to copy jars
manually.

!MESSAGE Failed to decrypt password for server nexus:
org.sonatype.plexus.components.sec.dispatcher.SecDispatcherException:
java.io.FileNotFoundException: /home/ddurham/.m2/settings-security.xml
(No such file or directory)
!STACK 0
org.sonatype.plexus.components.sec.dispatcher.SecDispatcherException:
org.sonatype.plexus.components.sec.dispatcher.SecDispatcherException:
java.io.FileNotFoundException: /home/ddurham/.m2/settings-security.xml
(No such file or directory)
        at org.sonatype.plexus.components.sec.dispatcher.DefaultSecDispatcher.decrypt(DefaultSecDispatcher.java:121)
        at org.apache.maven.settings.crypto.DefaultSettingsDecrypter.decrypt(DefaultSettingsDecrypter.java:106)
        at org.apache.maven.settings.crypto.DefaultSettingsDecrypter.decrypt(DefaultSettingsDecrypter.java:62)
        at org.maven.ide.eclipse.internal.embedder.MavenImpl.decryptPassword(MavenImpl.java:332)
        at org.maven.ide.eclipse.internal.repository.RepositoryRegistry.getAuthenticationInfo(RepositoryRegistry.java:194)
        at org.maven.ide.eclipse.internal.repository.RepositoryRegistry.updateRegistry(RepositoryRegistry.java:223)
        at org.maven.ide.eclipse.internal.repository.RepositoryRegistryUpdateJob.run(RepositoryRegistryUpdateJob.java:42)
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Caused by: org.sonatype.plexus.components.sec.dispatcher.SecDispatcherException:
java.io.FileNotFoundException: /home/ddurham/.m2/settings-security.xml
(No such file or directory)
        at org.sonatype.plexus.components.sec.dispatcher.SecUtil.read(SecUtil.java:69)
        at org.sonatype.plexus.components.sec.dispatcher.DefaultSecDispatcher.getSec(DefaultSecDispatcher.java:206)
        at org.sonatype.plexus.components.sec.dispatcher.DefaultSecDispatcher.decrypt(DefaultSecDispatcher.java:90)
        ... 7 more
Caused by: java.io.FileNotFoundException:
/home/ddurham/.m2/settings-security.xml (No such file or directory)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(FileInputStream.java:106)
        at org.sonatype.plexus.components.sec.dispatcher.SecUtil.toStream(SecUtil.java:100)
        at org.sonatype.plexus.components.sec.dispatcher.SecUtil.read(SecUtil.java:56)
        ... 9 more

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|

Re: wtp projects -- dependencies don't show up in embedded tomcat WEB-INF/lib directory

tames
In reply to this post by David Durham, Jr.
This has been happening to me also.  

In Eclipse 3.4.1 - m2eclipse 0.9.9 - When this would happen, I would Configure Build Path then uncheck Maven dependencies under Order and Export.  This would cause project rebuild and Tomcat republish.  The dependencies would then show up.

Now I have upgraded to Eclipse 3.5.1 - m2eclipse 0.10.0.  All maven dependencies are missing in the WEB-INF/lib directory.  I have tried my workaround above checking/unchecking Maven dependencies and it will not copy the dependencies.  The rebuild happens, but the Tomcat does not republish.

I have tried Server -> Clean, updating the pom.xml, updating a class, Server -> Publish, removing the project, adding it back in,  deleting the Tomcat server and reconfig it, closing Eclipse and reopening.  No errors to speak of in .log file.  It will not copy the Maven dependencies in now no matter what I do. - Completely stuck.

One other thing.  With the older Eclipse config, when I opened a related project, Maven dependencies would remove the .jar dependency and put in the open project. All well and good.  I get a rebuild and Tomcat would republish.  With the new Eclipse config, it does the same thing, rebuild and republish, but no Maven dependencies are copied.

I am using a workspace from previous releases, and yes I did remove the .metadata workspaceState.ser file.  Could there be incompatible configuration files?

--Tim


David Durham, Jr. wrote
Hi all,

I've seen this problem crop up from time to time .. and I'm not really
sure what causes it or how to reliably fix it.  The issue is that I
don't see maven dependencies in the directory

myworkspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapp/myproject/WEB-INF/lib

so I see noclassdef errors when I try to start the server.

I'll peek at the org.eclipse.wst.common.component settings file.
Looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<project-modules id="moduleCoreId" project-version="1.5.0">
   <wb-module deploy-name="management-console-service-0.1-SNAPSHOT">
       <wb-resource deploy-path="/WEB-INF/classes"
source-path="/src/main/java"/>
       <wb-resource deploy-path="/WEB-INF/classes"
source-path="/src/main/resources"/>
       <wb-resource deploy-path="/" source-path="/src/main/webapp"/>
       <dependent-module deploy-path="/WEB-INF/lib"
handle="module:/resource/service-events/service-events">
           <dependency-type>uses</dependency-type>
       </dependent-module>
       <dependent-module deploy-path="/WEB-INF/lib"
handle="module:/resource/management-console-client/management-console-client">
           <dependency-type>uses</dependency-type>
       </dependent-module>
       <dependent-module deploy-path="/WEB-INF/lib"
handle="module:/resource/ws-support/ws-support">
           <dependency-type>uses</dependency-type>
       </dependent-module>
       <property name="context-root" value="management-console-service"/>
       <property name="java-output-path"/>
   </wb-module>
</project-modules>


So it's picking up dependences that are projects in my workspace and
adding those -- I see them in WEB-INF/lib.  But dependences like
spring, etc. don't make it into WEB-INF/lib.

Any ideas?

Thanks,
Dave

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email

Reply | Threaded
Open this post in threaded view
|

Re: wtp projects -- dependencies don't show up in embedded tomcat WEB-INF/lib directory

tames
I noticed in my new Eclipse config, I am now getting this warning in the "Markers"

Classpath entry org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER will not be exported or published. Runtime ClassNotFoundExceptions may result.  

Classpath Dependency Validator Message



trames wrote
This has been happening to me also.  

In Eclipse 3.4.1 - m2eclipse 0.9.9 - When this would happen, I would Configure Build Path then uncheck Maven dependencies under Order and Export.  This would cause project rebuild and Tomcat republish.  The dependencies would then show up.

Now I have upgraded to Eclipse 3.5.1 - m2eclipse 0.10.0.  All maven dependencies are missing in the WEB-INF/lib directory.  I have tried my workaround above checking/unchecking Maven dependencies and it will not copy the dependencies.  The rebuild happens, but the Tomcat does not republish.

I have tried Server -> Clean, updating the pom.xml, updating a class, Server -> Publish, removing the project, adding it back in,  deleting the Tomcat server and reconfig it, closing Eclipse and reopening.  No errors to speak of in .log file.  It will not copy the Maven dependencies in now no matter what I do. - Completely stuck.

One other thing.  With the older Eclipse config, when I opened a related project, Maven dependencies would remove the .jar dependency and put in the open project. All well and good.  I get a rebuild and Tomcat would republish.  With the new Eclipse config, it does the same thing, rebuild and republish, but no Maven dependencies are copied.

I am using a workspace from previous releases, and yes I did remove the .metadata workspaceState.ser file.  Could there be incompatible configuration files?

--Tim


David Durham, Jr. wrote
Hi all,

I've seen this problem crop up from time to time .. and I'm not really
sure what causes it or how to reliably fix it.  The issue is that I
don't see maven dependencies in the directory

myworkspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapp/myproject/WEB-INF/lib

so I see noclassdef errors when I try to start the server.

I'll peek at the org.eclipse.wst.common.component settings file.
Looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<project-modules id="moduleCoreId" project-version="1.5.0">
   <wb-module deploy-name="management-console-service-0.1-SNAPSHOT">
       <wb-resource deploy-path="/WEB-INF/classes"
source-path="/src/main/java"/>
       <wb-resource deploy-path="/WEB-INF/classes"
source-path="/src/main/resources"/>
       <wb-resource deploy-path="/" source-path="/src/main/webapp"/>
       <dependent-module deploy-path="/WEB-INF/lib"
handle="module:/resource/service-events/service-events">
           <dependency-type>uses</dependency-type>
       </dependent-module>
       <dependent-module deploy-path="/WEB-INF/lib"
handle="module:/resource/management-console-client/management-console-client">
           <dependency-type>uses</dependency-type>
       </dependent-module>
       <dependent-module deploy-path="/WEB-INF/lib"
handle="module:/resource/ws-support/ws-support">
           <dependency-type>uses</dependency-type>
       </dependent-module>
       <property name="context-root" value="management-console-service"/>
       <property name="java-output-path"/>
   </wb-module>
</project-modules>


So it's picking up dependences that are projects in my workspace and
adding those -- I see them in WEB-INF/lib.  But dependences like
spring, etc. don't make it into WEB-INF/lib.

Any ideas?

Thanks,
Dave

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email

Reply | Threaded
Open this post in threaded view
|

Re: wtp projects -- dependencies don't show up in embedded tomcat WEB-INF/lib directory

tames

OK, got the dependencies into WEB-INF/lib.  Still does not work quite as expected, but I have a new workaround.  Eclipse 3.5.1, m2eclipse 0.10.0

1.  I did not have the Maven Integration for WTP installed.  The web site is not very clear about this. I did not scroll down far enough after the "Core" instructions to see the "Extras"  I have no idea why these would be separate.  At least put a paragraph above the Core instructions that you must have the WTP Integration located in the Extras if you want things to work.

2.  When from time to time the WEB-INF/lib is empty, go into Configure Build Path --> Maven --> uncheck the Resolve dependencies from workspace projects.  Click Apply.  You should see Tomcat republishing.  Then recheck and Apply again.
Reply | Threaded
Open this post in threaded view
|

Re: wtp projects -- dependencies don't show up in embedded tomcat WEB-INF/lib directory

Jason van Zyl-2

On Feb 18, 2010, at 2:04 PM, trames wrote:



OK, got the dependencies into WEB-INF/lib.  Still does not work quite as
expected, but I have a new workaround.  Eclipse 3.5.1, m2eclipse 0.10.0

1.  I did not have the Maven Integration for WTP installed.  The web site is
not very clear about this. I did not scroll down far enough after the "Core"
instructions to see the "Extras"  I have no idea why these would be
separate.  

Because we do not officially support WTP. It's at least 500 man hours to make the support something we would call production quality. The reasoning behind separating it is that Maven is our core competency. We spent that last year, and 6000 man hours fixing Maven, Tycho, Nexus and getting this all to work with M2Eclipse. We are focusing on the core. Separating it makes a clear distinction between what we are willing to stand behind with tests, ITs, support on the build grid, documentation and help on the mailing list. WTP is out of scope, it's just too varied, too buggy and for an OSS project we will have to rely on the community. If someone steps up to bring the quality of the WTP integration up to the same level we have brought everything else up to, then we'll include it in the standard distribution. Until then, it's an unsupported extra.

At least put a paragraph above the Core instructions that you
must have the WTP Integration located in the Extras if you want things to
work.


Lots of things work without WTP. At Sonatype we don't actually use WTP for anything which is a big reason why we don't work on it. It is a __lot__ of work. But we are happy to provide the assistance, build grid support, issue tracking and wikis to any folks who want to work to make the WTP support better.

Fred is really the only person to step up and do a significant amount of work but that's not enough to get it into the default distribution. I had really hoped the community would have participated more in the last year building up the 1.0 release but that has not happened which is why WTP will be placed in the extras site and be officially unsupported. 

2.  When from time to time the WEB-INF/lib is empty, go into Configure Build
Path --> Maven --> uncheck the Resolve dependencies from workspace projects.
Click Apply.  You should see Tomcat republishing.  Then recheck and Apply
again.

--
View this message in context: http://old.nabble.com/wtp-projects----dependencies-don%27t-show-up-in-embedded-tomcat--WEB-INF-lib-directory-tp27442276p27643970.html
Sent from the Maven Eclipse - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email



Thanks,

Jason

----------------------------------------------------------
Jason van Zyl
Founder,  Apache Maven
http://twitter.com/jvanzyl
----------------------------------------------------------

Reply | Threaded
Open this post in threaded view
|

Re: wtp projects -- dependencies don't show up in embedded tomcat WEB-INF/lib directory

tames
Thanks Jason that helps explain things.  I would still suggest a paragraph above the Core on the website with a little explanation like you just did.  Since I am just a typical "user", I don't necessarily get into all the details of each of the projects like WTP that make Eclipse itself work until something doesn't :)

We use Tomcat as our production server, so I just naturally use this in development too.

It would be interesting to see how those of you who do not use WTP have your web development set up. Perhaps there is a better or faster way to do this without it!


jvanzyl wrote


Because we do not officially support WTP. It's at least 500 man hours to make the support something we would call production quality. The reasoning behind separating it is that Maven is our core competency.
Reply | Threaded
Open this post in threaded view
|

Re: wtp projects -- dependencies don't show up in embedded tomcat WEB-INF/lib directory

David Durham, Jr.
On Mon, Feb 22, 2010 at 8:36 AM, trames <[hidden email]> wrote:

>
> Thanks Jason that helps explain things.  I would still suggest a paragraph
> above the Core on the website with a little explanation like you just did.
> Since I am just a typical "user", I don't necessarily get into all the
> details of each of the projects like WTP that make Eclipse itself work until
> something doesn't :)
>
> We use Tomcat as our production server, so I just naturally use this in
> development too.
>
> It would be interesting to see how those of you who do not use WTP have your
> web development set up. Perhaps there is a better or faster way to do this
> without it!


Well, for not being officially supported, it works pretty well, IMO.
The only issue I know is the resources processing problem.  With that
said, you could always use something outside of eclipse, like mvn
cargo or the mvn jetty plugin.

-Dave

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|

Re: wtp projects -- dependencies don't show up in embedded tomcat WEB-INF/lib directory

Jason van Zyl-2

On Feb 23, 2010, at 3:14 PM, David Durham wrote:

On Mon, Feb 22, 2010 at 8:36 AM, trames <[hidden email]> wrote:

Thanks Jason that helps explain things.  I would still suggest a paragraph
above the Core on the website with a little explanation like you just did.
Since I am just a typical "user", I don't necessarily get into all the
details of each of the projects like WTP that make Eclipse itself work until
something doesn't :)

We use Tomcat as our production server, so I just naturally use this in
development too.

It would be interesting to see how those of you who do not use WTP have your
web development set up. Perhaps there is a better or faster way to do this
without it!


Well, for not being officially supported, it works pretty well, IMO.

You can thank Fred :-)

The only issue I know is the resources processing problem.  With that
said, you could always use something outside of eclipse, like mvn
cargo or the mvn jetty plugin.

-Dave

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email



Thanks,

Jason

----------------------------------------------------------
Jason van Zyl
Founder,  Apache Maven
http://twitter.com/jvanzyl
----------------------------------------------------------

Reply | Threaded
Open this post in threaded view
|

Re: wtp projects -- dependencies don't show up in embedded tomcat WEB-INF/lib directory

srinir
This post has NOT been accepted by the mailing list yet.
In reply to this post by David Durham, Jr.
Not sure if you have solved this yet.

I had the same problem, running

mvn -Dwtpversion=R7 eclipse:eclipse

solved it for me. This added all the dependencies to .classpath file.

Looks like I now have to do this every time I add a new dependency.

I got it from http://maven.apache.org/plugins/maven-eclipse-plugin/wtp.html

Hope this helps.