You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by James Mitchell <jm...@apache.org> on 2005/08/29 18:51:58 UTC

Re: Maven...

On Aug 29, 2005, at 2:46 AM, Wendy Smoak wrote:

> If you have time, will you take a look at the Shale build files?
Sure.

>
> I have to think up another way to switch JSF implementations, looks  
> like the "tell me which two jars you want to use" approach isn't  
> going to work since MyFaces already wants a third .jar file.
>
Can you describe this further?  Seems like you could just add that  
extra dependency in the project descriptor dependencies.  Is it not  
that simple?

That's the "hands off" part about the Ant vs. Maven debate that makes  
Maven worth the effort.  With Ant, even in the case where the nightly  
is built on apache hardware, someone still has to go in and touch the  
build.  With Maven, just add a <dependency> to project.xml and check  
it in.

> And do you have any thoughts on the issue with the tests in core- 
> library depending on test-framework, which of course depends on  
> core-library?  You can't declare circular dependencies in Maven  
> build files, it detects the cycle and just stops.
>
I don't know enough (yet) about the layout of Shale and it's build  
structure to give advice on this.  But hopefully I'll get some time  
today and see what I can do.

>
> -- 
> Wendy


Below is the console output when I run 'maven' from current/shale/

Even though it says 'successful', I don't think the build actually  
happened, given the failed downloads.

When doing



james-mitchells-powerbook-g4-17:~/svn/struts/shale jmitchell$ maven
__  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0.2

Attempting to download servlet-api-2.4.jar.
95K downloaded
Starting the reactor...
Our processing order:
Shale Core Library
Shale Test Framework
Shale Clay Plugin
Shale Use Cases
+----------------------------------------
| Building Shale Framework... Shale Core Library
| Memory: 3M/4M
+----------------------------------------
Attempting to download spring-web-1.1.5.jar.
115K downloaded
Attempting to download tiles-core-0.2-dev.jar.
WARNING: Failed to download tiles-core-0.2-dev.jar.
Attempting to download jstl-1.1.2.jar.
20K downloaded
Attempting to download standard-1.1.2.jar.
384K downloaded
Attempting to download spring-1.2.2.jar.
1769K downloaded
Attempting to download spring-aop-1.2.2.jar.
150K downloaded
Attempting to download spring-beans-1.2.2.jar.
213K downloaded
Attempting to download spring-context-1.2.2.jar.
101K downloaded
Attempting to download spring-core-1.2.2.jar.
106K downloaded
Attempting to download spring-dao-1.2.2.jar.
90K downloaded
Attempting to download spring-hibernate-1.2.2.jar.
176K downloaded
Attempting to download spring-jdbc-1.2.2.jar.
176K downloaded
Attempting to download spring-mock-1.2.2.jar.
41K downloaded
Attempting to download spring-orm-1.2.2.jar.
167K downloaded
Attempting to download spring-remoting-1.2.2.jar.
126K downloaded
Attempting to download spring-support-1.2.2.jar.
149K downloaded
Attempting to download spring-webmvc-1.2.2.jar.
193K downloaded
Attempting to download spring-webflow-PR4.jar.
WARNING: Failed to download spring-webflow-PR4.jar.
+----------------------------------------
| Building Shale Framework... Shale Test Framework
| Memory: 3M/5M
+----------------------------------------
Attempting to download shale-core-1.0.0-dev.jar.
WARNING: Failed to download shale-core-1.0.0-dev.jar.
+----------------------------------------
| Building Shale Framework... Shale Clay Plugin
| Memory: 3M/5M
+----------------------------------------
Attempting to download shale-core-1.0.0-dev.jar.
WARNING: Failed to download shale-core-1.0.0-dev.jar.
Attempting to download shale-test-1.0.0-dev.jar.
WARNING: Failed to download shale-test-1.0.0-dev.jar.
+----------------------------------------
| Building Shale Framework... Shale Use Cases
| Memory: 4M/5M
+----------------------------------------
Attempting to download shale-core-1.0.0-dev.jar.
WARNING: Failed to download shale-core-1.0.0-dev.jar.
Attempting to download shale-clay-1.0.0-dev.jar.
WARNING: Failed to download shale-clay-1.0.0-dev.jar.
Attempting to download shale-test-1.0.0-dev.jar.
WARNING: Failed to download shale-test-1.0.0-dev.jar.
Attempting to download spring-web-1.2.2.jar.
124K downloaded
BUILD SUCCESSFUL
Total time: 3 minutes 10 seconds
Finished at: Mon Aug 29 11:24:52 EDT 2005






--
James Mitchell
Software Engineer / Open Source Evangelist
Consulting / Mentoring / Freelance
EdgeTech, Inc.
http://www.edgetechservices.net/
678.910.8017
AIM:   jmitchtx
Yahoo: jmitchtx
MSN:   jmitchell@apache.org
Skype: callto://jmitchtx



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Re: Maven...

Posted by Wendy Smoak <ja...@wendysmoak.com>.
From: "James Mitchell" <jm...@apache.org>

> Can you describe this further?  Seems like you could just add that  extra 
> dependency in the project descriptor dependencies.  Is it not  that 
> simple?

It is not, unfortunately. :)  Shale has to build against either the JSF 
Reference Implementation (which is not available on ibiblio) or MyFaces 
(which is).  This has to be user-selectable at build time.  Currently it 
works by specifying the two .jar files, (see build.properties.sample) which 
I then manually add to the relevant classpath before compilation, then copy 
them into the usecases app.  But that's already broken since MyFaces wants a 
third .jar file.

Since the build "knows" what dependencies it has, if you just tell me you 
want myfaces, maybe with
   maven.shale.jsf.myfaces=true
then I don't see a problem with the build knowing what version and using 
${maven.repo.local} to go find the files it wants.   (There is 'maven -p 
myfaces-project.xml' to do the download if necessary.)

The RI is more complicated... it could be anywhere.  A Maven user would 
typically go ahead and install it into their local repository, but under 
what groupId?  Still, this should be solvable with some combination of 
user-specified properties and scripting.

> Below is the console output when I run 'maven' from current/shale/
>
> Even though it says 'successful', I don't think the build actually 
> happened, given the failed downloads.

> Attempting to download tiles-core-0.2-dev.jar.
> WARNING: Failed to download tiles-core-0.2-dev.jar.

The easiest thing to do is to build it locally and jar:install -- I think 
the Maven "fix" for this is to publish a SNAPSHOT for Tiles and have Shale 
depend on that.

> Attempting to download spring-webflow-PR4.jar.
> WARNING: Failed to download spring-webflow-PR4.jar.

... doesn't seem to be on ibiblio, maybe it's in a different repository? 
Otherwise it needs a <url> and will have to be downloaded manually.  I'll 
find it and add that info.

And from there, core-library didn't build, so nothing else is going to work.

Thanks for taking a look at it!
-- 
Wendy 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org