You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by db...@apache.org on 2008/01/08 21:17:34 UTC

svn commit: r610126 - /openejb/trunk/openejb3/pom.xml

Author: dblevins
Date: Tue Jan  8 12:17:31 2008
New Revision: 610126

URL: http://svn.apache.org/viewvc?rev=610126&view=rev
Log:
Added plugin that can spit a list of the dependencies into the META-INF/ directory of the jar

Modified:
    openejb/trunk/openejb3/pom.xml

Modified: openejb/trunk/openejb3/pom.xml
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb3/pom.xml?rev=610126&r1=610125&r2=610126&view=diff
==============================================================================
--- openejb/trunk/openejb3/pom.xml (original)
+++ openejb/trunk/openejb3/pom.xml Tue Jan  8 12:17:31 2008
@@ -132,6 +132,25 @@
         </configuration>
       </plugin>
       <plugin>
+        <groupId>org.codehaus.swizzle</groupId>
+        <artifactId>dependency-report-plugin</artifactId>
+        <version>1.0.1</version>
+        <executions>
+          <execution>
+            <phase>process-resources</phase>
+            <goals>
+              <goal>report</goal>
+            </goals>
+          </execution>
+        </executions>
+        <configuration>
+          <formats>
+            <format>txt</format>
+            <format>xml</format>
+          </formats>
+        </configuration>
+      </plugin>
+      <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-clover-plugin</artifactId>
         <configuration>



Re: svn commit: r610126 - /openejb/trunk/openejb3/pom.xml

Posted by David Blevins <da...@visi.com>.
No need to appologize.  Been wanting to do this for quite a while, you  
were just the straw that broke the camel's back.  Or better put, the  
real world usecase that proved to me my idea was worth the time  
(relative to all the other things that is).

-David

On Jan 9, 2008, at 2:22 PM, Alexander Saint Croix wrote:

> Thanks for doing this, David -- sorry I was the cause of said PITA,  
> but
> always glad to battle the bloat when possible.
>
> As a side note, things are moving again on my CRUD and persistent
> integration / cascading tests.
>
> Cheers,
> --
> Alex
>
>
> On Jan 8, 2008 4:02 PM, David Blevins <da...@visi.com> wrote:
>
>>
>> On Jan 8, 2008, at 12:52 PM, Jacek Laskowski wrote:
>>
>>> On Jan 8, 2008 9:17 PM,  <db...@apache.org> wrote:
>>>> Author: dblevins
>>>> Date: Tue Jan  8 12:17:31 2008
>>>> New Revision: 610126
>>>>
>>>> URL: http://svn.apache.org/viewvc?rev=610126&view=rev
>>>> Log:
>>>> Added plugin that can spit a list of the dependencies into the  
>>>> META-
>>>> INF/ directory of the jar
>>>
>>> What do we need it for? I mean we get the report generated and...
>>
>> Motivated by Alex who sent me like five emails one day.  He threw the
>> openejb-core jar in his classpath and expcted that to work then sent
>> me the four subsequent emails saying "i've added foo.jar now i'm
>> getting NoClassDefFoundError on foo.class".  I'd like to find a way  
>> to
>> check for our deps then print the txt version in an error message
>> including the list of jars we require.
>>
>> The other thing I've wanted for quite a while is to print something
>> into the lib/ directory of our standalone distro so if people aren't
>> using JMS, for example, they know what jars they can delete.  Or on
>> the flip side, if they want to add webservices we can put a list on
>> the website of the jars they have to add.
>>
>> But in general it's really useful for figuring out where deps are
>> coming from.  When I trimmed the deps in standalone from 30 meg to 14
>> meg I literally had to trial and error-style delete jars from my repo
>> i didn't think should be in the assembly, build the assembly offline,
>> and see the dependency trail in the "can't download" error message,
>> then add the exclude to the dep that the trail showed as asking for
>> the dep.  Was a real PITA.
>>
>> -David
>>
>>


Re: svn commit: r610126 - /openejb/trunk/openejb3/pom.xml

Posted by Alexander Saint Croix <sa...@gmail.com>.
Thanks for doing this, David -- sorry I was the cause of said PITA, but
always glad to battle the bloat when possible.

As a side note, things are moving again on my CRUD and persistent
integration / cascading tests.

Cheers,
--
Alex


On Jan 8, 2008 4:02 PM, David Blevins <da...@visi.com> wrote:

>
> On Jan 8, 2008, at 12:52 PM, Jacek Laskowski wrote:
>
> > On Jan 8, 2008 9:17 PM,  <db...@apache.org> wrote:
> >> Author: dblevins
> >> Date: Tue Jan  8 12:17:31 2008
> >> New Revision: 610126
> >>
> >> URL: http://svn.apache.org/viewvc?rev=610126&view=rev
> >> Log:
> >> Added plugin that can spit a list of the dependencies into the META-
> >> INF/ directory of the jar
> >
> > What do we need it for? I mean we get the report generated and...
>
> Motivated by Alex who sent me like five emails one day.  He threw the
> openejb-core jar in his classpath and expcted that to work then sent
> me the four subsequent emails saying "i've added foo.jar now i'm
> getting NoClassDefFoundError on foo.class".  I'd like to find a way to
> check for our deps then print the txt version in an error message
> including the list of jars we require.
>
> The other thing I've wanted for quite a while is to print something
> into the lib/ directory of our standalone distro so if people aren't
> using JMS, for example, they know what jars they can delete.  Or on
> the flip side, if they want to add webservices we can put a list on
> the website of the jars they have to add.
>
> But in general it's really useful for figuring out where deps are
> coming from.  When I trimmed the deps in standalone from 30 meg to 14
> meg I literally had to trial and error-style delete jars from my repo
> i didn't think should be in the assembly, build the assembly offline,
> and see the dependency trail in the "can't download" error message,
> then add the exclude to the dep that the trail showed as asking for
> the dep.  Was a real PITA.
>
> -David
>
>

Re: svn commit: r610126 - /openejb/trunk/openejb3/pom.xml

Posted by David Blevins <da...@visi.com>.
On Jan 8, 2008, at 2:02 PM, David Blevins wrote:

>
> On Jan 8, 2008, at 12:52 PM, Jacek Laskowski wrote:
>
>> On Jan 8, 2008 9:17 PM,  <db...@apache.org> wrote:
>>> Author: dblevins
>>> Date: Tue Jan  8 12:17:31 2008
>>> New Revision: 610126
>>>
>>> URL: http://svn.apache.org/viewvc?rev=610126&view=rev
>>> Log:
>>> Added plugin that can spit a list of the dependencies into the  
>>> META-INF/ directory of the jar
>>
>> What do we need it for? I mean we get the report generated and...
>
[...]
> The other thing I've wanted for quite a while is to print something  
> into the lib/ directory of our standalone distro so if people aren't  
> using JMS, for example, they know what jars they can delete.  Or on  
> the flip side, if they want to add webservices we can put a list on  
> the website of the jars they have to add.

I found an issue with the generated report not being entirely correct  
due to the fact that the maven artifact library doesn't really tell  
the whole truth (a known issue being fixed in maven 2.1 apparently)  
and doesn't accurately represent the dependency graph -- thus the  
resulting report is nearly worthless if you did in fact want to use it  
to delete things that you didn't need.

I've fixed it up to use another source of data for the artifact tree  
and after some fiddling it seems to be working correctly.  Going to  
get things cleaned up then roll out a new version and update our poms  
accordingly.

-David


Re: svn commit: r610126 - /openejb/trunk/openejb3/pom.xml

Posted by David Blevins <da...@visi.com>.
On Jan 8, 2008, at 12:52 PM, Jacek Laskowski wrote:

> On Jan 8, 2008 9:17 PM,  <db...@apache.org> wrote:
>> Author: dblevins
>> Date: Tue Jan  8 12:17:31 2008
>> New Revision: 610126
>>
>> URL: http://svn.apache.org/viewvc?rev=610126&view=rev
>> Log:
>> Added plugin that can spit a list of the dependencies into the META- 
>> INF/ directory of the jar
>
> What do we need it for? I mean we get the report generated and...

Motivated by Alex who sent me like five emails one day.  He threw the  
openejb-core jar in his classpath and expcted that to work then sent  
me the four subsequent emails saying "i've added foo.jar now i'm  
getting NoClassDefFoundError on foo.class".  I'd like to find a way to  
check for our deps then print the txt version in an error message  
including the list of jars we require.

The other thing I've wanted for quite a while is to print something  
into the lib/ directory of our standalone distro so if people aren't  
using JMS, for example, they know what jars they can delete.  Or on  
the flip side, if they want to add webservices we can put a list on  
the website of the jars they have to add.

But in general it's really useful for figuring out where deps are  
coming from.  When I trimmed the deps in standalone from 30 meg to 14  
meg I literally had to trial and error-style delete jars from my repo  
i didn't think should be in the assembly, build the assembly offline,  
and see the dependency trail in the "can't download" error message,  
then add the exclude to the dep that the trail showed as asking for  
the dep.  Was a real PITA.

-David


Re: svn commit: r610126 - /openejb/trunk/openejb3/pom.xml

Posted by Jacek Laskowski <ja...@laskowski.net.pl>.
On Jan 8, 2008 9:17 PM,  <db...@apache.org> wrote:
> Author: dblevins
> Date: Tue Jan  8 12:17:31 2008
> New Revision: 610126
>
> URL: http://svn.apache.org/viewvc?rev=610126&view=rev
> Log:
> Added plugin that can spit a list of the dependencies into the META-INF/ directory of the jar

What do we need it for? I mean we get the report generated and...

Jacek

-- 
Jacek Laskowski
http://www.JacekLaskowski.pl