Re: Building from subversion source

2006-09-20 Thread Rahul Akolkar

On 9/20/06, Wendy Smoak [EMAIL PROTECTED] wrote:

On 9/19/06, Irv Salisbury [EMAIL PROTECTED] wrote:
 You know, the change James reccomended works!  I try building without the
 settings.xml file and it doesn't work.  I try building with the
 settings.xmlfile and it all works fine!  I went back and forth to make
 sure and it was
 the key.  So, can someone tell me exactly what this does?

The cargo.container.home property is used during integration tests.
Now that you've set it, try:
   cd shale-apps
   mvn install -Pitest

I have no idea why adding that profile makes the problem with
commons-validator go away. I have that same Cargo config, and the
build still fails.

What fixes it for me is adding version1.3.0/version to the
commons-validator dependency in the shale-core module.


snip/

With vanilla m204 (no plugins built from source etc.), I have to
remove validator (just like digester) from the myfaces-api exclusions
in shale-parent to get the core to compile, but some validator tests
fail with renderer not found warnings. We should have a JIRA ticket
for this -- even though its m2 quirks we're hitting.

-Rahul



That should not be necessary, because the version is set in
dependencyManagement in the shale-parent pom.  However, we've had
other problems with Maven's dependency management.  In this case,
commons-validator is excluded from the myfaces dependency.

When I run mvn clean install -X from 'framework' and look at the
dependencies of the failing build, commons-validator doesn't show up
at all.  That explains the package oas.commons.validtor does not
exist errors.

--
Wendy



Re: Building from subversion source

2006-09-19 Thread Irv Salisbury

I got it from:

http://svn.apache.org/viewvc/shale/framework/trunk

I am not sure the -e output is going to help, but I'll send it here:

irving-salisbury-iiis-computer-2:~/work/apache/shale-src irving$ mvn -e
install
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO]   Apache Shale Framework Parent POM
[INFO]   Shale Test Framework
[INFO]   Shale Core Library
[INFO]   Shale Clay Plugin
[INFO]   Shale Remoting Support
[INFO]   Shale-Spring Integration
[INFO]   Shale Tiger Extensions
[INFO]   Shale Tiles Integration
[INFO]

[INFO] Building Apache Shale Framework Parent POM
[INFO]task-segment: [install]
[INFO]

[INFO] Skipping missing optional mojo:
org.apache.maven.plugins:maven-site-plugin:attach-descriptor
[INFO] [install:install]
[INFO] Installing /Users/irving/work/apache/shale-src/pom.xml to
/Users/irving/.m2/repository/org/apache/shale/shale-parent/1.0.4-SNAPSHOT/shale-
parent-1.0.4-SNAPSHOT.pom
[INFO]

[INFO] Building Shale Test Framework
[INFO]task-segment: [install]
[INFO]

[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [surefire:test]
[INFO] Surefire report directory:
/Users/irving/work/apache/shale-src/shale-test/target/surefire-reports

---
T E S T S
---
Running org.apache.shale.test.mock.MockObjectsTestCase
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.141 sec
Running org.apache.shale.test.mock.ValueBindingTest
descriptor(class=org.apache.shale.test.mock.data.Bean, name=name
 Found BeanInfo [EMAIL PROTECTED]
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.021 sec
Running org.apache.shale.test.mock.TestMockBean
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.014 sec

Results :
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0

 Found PropertyDescriptor [EMAIL PROTECTED]
[INFO] [jar:jar]
[INFO] Building jar:
/Users/irving/work/apache/shale-src/shale-test/target/shale-
test-1.0.4-SNAPSHOT.jar
[INFO] [install:install]
[INFO] Installing
/Users/irving/work/apache/shale-src/shale-test/target/shale-
test-1.0.4-SNAPSHOT.jar to
/Users/irving/.m2/repository/org/apache/shale/shale-test/1.0.4-SNAPSHOT/shale-
test-1.0.4-SNAPSHOT.jar
[INFO]

[INFO] Building Shale Core Library
[INFO]task-segment: [install]
[INFO]

[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
Compiling 81 source files to
/Users/irving/work/apache/shale-src/shale-core/target/classes
[INFO]

[ERROR] BUILD FAILURE
[INFO]

[INFO] Compilation failure

/Users/irving/work/apache/shale-src/shale-core/src/main/java/org/apache/shale/component/ValidatorScript.java:[37,36]
package org.apache.commons.validator does not exist

/Users/irving/work/apache/shale-src/shale-core/src/main/java/org/apache/shale/component/ValidatorScript.java:[38,36]
package org.apache.commons.validator does not exist

/Users/irving/work/apache/shale-src/shale-core/src/main/java/org/apache/shale/validator/CommonsValidator.java:[47,36]
package org.apache.commons.validator does not exist

/Users/irving/work/apache/shale-src/shale-core/src/main/java/org/apache/shale/validator/CommonsValidator.java:[48,36]
package org.apache.commons.validator does not exist

/Users/irving/work/apache/shale-src/shale-core/src/main/java/org/apache/shale/validator/CommonsValidator.java:[49,36]
package org.apache.commons.validator does not exist

/Users/irving/work/apache/shale-src/shale-core/src/main/java/org/apache/shale/validator/CommonsValidator.java:[50,36]
package org.apache.commons.validator does not exist

/Users/irving/work/apache/shale-src/shale-core/src/main/java/org/apache/shale/validator/CommonsValidator.java:[51,36]
package org.apache.commons.validator does not exist

/Users/irving/work/apache/shale-src/shale-core/src/main/java/org/apache/shale/validator/CommonsValidator.java:[52,36]
package org.apache.commons.validator does not exist


Re: Building from subversion source

2006-09-19 Thread Irv Salisbury

Sorry, I actually meant:

http://svn.apache.org/repos/asf/shale/framework/trunk

Irv



On 9/19/06, Irv Salisbury [EMAIL PROTECTED] wrote:


I got it from:

http://svn.apache.org/viewvc/shale/framework/trunk

I am not sure the -e output is going to help, but I'll send it here:

irving-salisbury-iiis-computer-2:~/work/apache/shale-src irving$ mvn -e
install
+ Error stacktraces are turned on.

[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO]   Apache Shale Framework Parent POM
[INFO]   Shale Test Framework
[INFO]   Shale Core Library
[INFO]   Shale Clay Plugin
[INFO]   Shale Remoting Support
[INFO]   Shale-Spring Integration
[INFO]   Shale Tiger Extensions
[INFO]   Shale Tiles Integration
[INFO]


[INFO] Building Apache Shale Framework Parent POM
[INFO]task-segment: [install]
[INFO]

[INFO] Skipping missing optional mojo:
org.apache.maven.plugins:maven-site-plugin:attach-descriptor
[INFO] [install:install]
[INFO] Installing /Users/irving/work/apache/shale-src/pom.xml to
/Users/irving/.m2/repository/org/apache/shale/shale-parent/1.0.4-SNAPSHOT/shale-
parent-1.0.4-SNAPSHOT.pom
[INFO]


[INFO] Building Shale Test Framework
[INFO]task-segment: [install]
[INFO]

[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [surefire:test]
[INFO] Surefire report directory:
/Users/irving/work/apache/shale-src/shale-test/target/surefire-reports

---
 T E S T S
---
Running org.apache.shale.test.mock.MockObjectsTestCase
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.141 sec
Running org.apache.shale.test.mock.ValueBindingTest
descriptor(class=org.apache.shale.test.mock.data.Bean, name=name
  Found BeanInfo [EMAIL PROTECTED]
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.021 sec
Running org.apache.shale.test.mock.TestMockBean
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.014 sec

Results :
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0

  Found PropertyDescriptor [EMAIL PROTECTED]

[INFO] [jar:jar]
[INFO] Building jar:
/Users/irving/work/apache/shale-src/shale-test/target/shale-
test-1.0.4-SNAPSHOT.jar
[INFO] [install:install]
[INFO] Installing
/Users/irving/work/apache/shale-src/shale-test/target/shale-
test-1.0.4-SNAPSHOT.jar to
/Users/irving/.m2/repository/org/apache/shale/shale-test/1.0.4-SNAPSHOT/shale-
test-1.0.4-SNAPSHOT.jar
[INFO]

[INFO] Building Shale Core Library
[INFO]task-segment: [install]
[INFO]

[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
Compiling 81 source files to
/Users/irving/work/apache/shale-src/shale-core/target/classes
[INFO]

[ERROR] BUILD FAILURE
[INFO]

[INFO] Compilation failure

/Users/irving/work/apache/shale-src/shale-core/src/main/java/org/apache/shale/component/ValidatorScript.java:[37,36]
package org.apache.commons.validator does not exist

/Users/irving/work/apache/shale-src/shale-core/src/main/java/org/apache/shale/component/ValidatorScript.java:[38,36]
package org.apache.commons.validator does not exist

/Users/irving/work/apache/shale-src/shale-core/src/main/java/org/apache/shale/validator/CommonsValidator.java:[47,36]
package org.apache.commons.validator does not exist

/Users/irving/work/apache/shale-src/shale-core/src/main/java/org/apache/shale/validator/CommonsValidator.java:[48,36]
package org.apache.commons.validator does not exist

/Users/irving/work/apache/shale-src/shale-core/src/main/java/org/apache/shale/validator/CommonsValidator.java:[49,36]
package org.apache.commons.validator does not exist

/Users/irving/work/apache/shale-src/shale-core/src/main/java/org/apache/shale/validator/CommonsValidator.java:[50,36]
package org.apache.commons.validator does not exist

/Users/irving/work/apache/shale-src/shale-core/src/main/java/org/apache/shale/validator/CommonsValidator.java:[51,36]
package org.apache.commons.validator does not exist


Re: Building from subversion source

2006-09-19 Thread James Mitchell
Ok, I found the problem.  It wasn't failing for me because of two  
things.

1) I already have a copy of commons-validator in my local repository
and
2) I have settings.xml file configured with the *magical incarnation*  
of config settings ;)


Ok, just kidding about the magical stuff, however, it's still a  
puzzle.  I can't explain to you why this is happening, I mean, I have  
a few suspicions, but without further investigation, it's merely a  
guess at this point.


If you have a settings.xml file in ~/m2/ directory, then add this to  
it (keeping the xml well-formed of course)else create a new file  
with that name and put this in it:


settings
  profiles
profile
  idcargo-config/id
 properties
   cargo.container.home
  /path/to/apache-tomcat-5.5.17/  --- change me
   /cargo.container.home
 /properties
/profile
  /profiles

  activeProfiles
   activeProfilecargo-config/activeProfile
  /activeProfiles
/settings


Either something deep down in our (Shale's) configuration, or some  
whacked out plugin is relying on that profile in order to download  
and use the commons-validator jar in the build.


Make the above changes and you should be good.  Sorry for the hassle,  
this kind of stuff just gives some people ammunition to blast Maven  
with...oh well.



--
James Mitchell
678.910.8017




On Sep 19, 2006, at 3:39 PM, Irv Salisbury wrote:


Sorry, I actually meant:

http://svn.apache.org/repos/asf/shale/framework/trunk

Irv



On 9/19/06, Irv Salisbury [EMAIL PROTECTED] wrote:


I got it from:

http://svn.apache.org/viewvc/shale/framework/trunk

I am not sure the -e output is going to help, but I'll send it here:

irving-salisbury-iiis-computer-2:~/work/apache/shale-src irving$  
mvn -e

install
+ Error stacktraces are turned on.

[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO]   Apache Shale Framework Parent POM
[INFO]   Shale Test Framework
[INFO]   Shale Core Library
[INFO]   Shale Clay Plugin
[INFO]   Shale Remoting Support
[INFO]   Shale-Spring Integration
[INFO]   Shale Tiger Extensions
[INFO]   Shale Tiles Integration
[INFO]
- 
---


[INFO] Building Apache Shale Framework Parent POM
[INFO]task-segment: [install]
[INFO]
- 
---

[INFO] Skipping missing optional mojo:
org.apache.maven.plugins:maven-site-plugin:attach-descriptor
[INFO] [install:install]
[INFO] Installing /Users/irving/work/apache/shale-src/pom.xml to
/Users/irving/.m2/repository/org/apache/shale/shale-parent/1.0.4- 
SNAPSHOT/shale-

parent-1.0.4-SNAPSHOT.pom
[INFO]
- 
---


[INFO] Building Shale Test Framework
[INFO]task-segment: [install]
[INFO]
- 
---

[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [surefire:test]
[INFO] Surefire report directory:
/Users/irving/work/apache/shale-src/shale-test/target/surefire- 
reports


---
 T E S T S
---
Running org.apache.shale.test.mock.MockObjectsTestCase
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:  
0.141 sec

Running org.apache.shale.test.mock.ValueBindingTest
descriptor(class=org.apache.shale.test.mock.data.Bean, name=name
  Found BeanInfo [EMAIL PROTECTED]
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:  
0.021 sec

Running org.apache.shale.test.mock.TestMockBean
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:  
0.014 sec


Results :
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0

  Found PropertyDescriptor [EMAIL PROTECTED]

[INFO] [jar:jar]
[INFO] Building jar:
/Users/irving/work/apache/shale-src/shale-test/target/shale-
test-1.0.4-SNAPSHOT.jar
[INFO] [install:install]
[INFO] Installing
/Users/irving/work/apache/shale-src/shale-test/target/shale-
test-1.0.4-SNAPSHOT.jar to
/Users/irving/.m2/repository/org/apache/shale/shale-test/1.0.4- 
SNAPSHOT/shale-

test-1.0.4-SNAPSHOT.jar
[INFO]
- 
---

[INFO] Building Shale Core Library
[INFO]task-segment: [install]
[INFO]
- 
---

[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
Compiling 81 source files to
/Users/irving/work/apache/shale-src/shale-core/target/classes
[INFO]

Re: Building from subversion source

2006-09-19 Thread Irv Salisbury

By the way, if I build from the downloaded sources from

http://people.apache.org/dist/shale/v1.0.3/

instead of the subversion repository, it all builds fine.  For now, I am
fine using those for my exploration.  Still curious why it didn't build the
other way.  I am also downloading the repository onto my windows box to see
if I have the same problem there.

thanks,

Irv

On 9/19/06, Irv Salisbury [EMAIL PROTECTED] wrote:


Sorry, I actually meant:

http://svn.apache.org/repos/asf/shale/framework/trunk


Irv


On 9/19/06, Irv Salisbury [EMAIL PROTECTED] wrote:

 I got it from:

 http://svn.apache.org/viewvc/shale/framework/trunk

 I am not sure the -e output is going to help, but I'll send it here:

 irving-salisbury-iiis-computer-2:~/work/apache/shale-src irving$ mvn -e
 install
 + Error stacktraces are turned on.

 [INFO] Scanning for projects...
 [INFO] Reactor build order:
 [INFO]   Apache Shale Framework Parent POM
 [INFO]   Shale Test Framework
 [INFO]   Shale Core Library
 [INFO]   Shale Clay Plugin
 [INFO]   Shale Remoting Support
 [INFO]   Shale-Spring Integration
 [INFO]   Shale Tiger Extensions
 [INFO]   Shale Tiles Integration
 [INFO]
 

 [INFO] Building Apache Shale Framework Parent POM
 [INFO]task-segment: [install]
 [INFO]
 
 [INFO] Skipping missing optional mojo:
 org.apache.maven.plugins:maven-site-plugin:attach-descriptor
 [INFO] [install:install]
 [INFO] Installing /Users/irving/work/apache/shale-src/pom.xml to
 
/Users/irving/.m2/repository/org/apache/shale/shale-parent/1.0.4-SNAPSHOT/shale-
 parent-1.0.4-SNAPSHOT.pom
 [INFO]
 

 [INFO] Building Shale Test Framework
 [INFO]task-segment: [install]
 [INFO]
 
 [INFO] [resources:resources]
 [INFO] Using default encoding to copy filtered resources.
 [INFO] [compiler:compile]
 [INFO] Nothing to compile - all classes are up to date
 [INFO] [resources:testResources]
 [INFO] Using default encoding to copy filtered resources.
 [INFO] [compiler:testCompile]
 [INFO] Nothing to compile - all classes are up to date
 [INFO] [surefire:test]
 [INFO] Surefire report directory:
 /Users/irving/work/apache/shale-src/shale-test/target/surefire-reports

 ---
  T E S T S
 ---
 Running org.apache.shale.test.mock.MockObjectsTestCase
 Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.141sec
 Running org.apache.shale.test.mock.ValueBindingTest
 descriptor(class=org.apache.shale.test.mock.data.Bean, name=name
   Found BeanInfo [EMAIL PROTECTED]
 Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.021sec
 Running org.apache.shale.test.mock.TestMockBean
 Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.014sec

 Results :
 Tests run: 5, Failures: 0, Errors: 0, Skipped: 0

   Found PropertyDescriptor [EMAIL PROTECTED]

 [INFO] [jar:jar]
 [INFO] Building jar:
 /Users/irving/work/apache/shale-src/shale-test/target/shale-
 test-1.0.4-SNAPSHOT.jar
 [INFO] [install:install]
 [INFO] Installing
 /Users/irving/work/apache/shale-src/shale-test/target/shale-
 test-1.0.4-SNAPSHOT.jar to
 /Users/irving/.m2/repository/org/apache/shale/shale-test/1.0.4-SNAPSHOT/shale-
 test-1.0.4-SNAPSHOT.jar
 [INFO]
 
 [INFO] Building Shale Core Library
 [INFO]task-segment: [install]
 [INFO]
 
 [INFO] [resources:resources]
 [INFO] Using default encoding to copy filtered resources.
 [INFO] [compiler:compile]
 Compiling 81 source files to
 /Users/irving/work/apache/shale-src/shale-core/target/classes
 [INFO]
 
 [ERROR] BUILD FAILURE
 [INFO]
 
 [INFO] Compilation failure

 
/Users/irving/work/apache/shale-src/shale-core/src/main/java/org/apache/shale/component/ValidatorScript.java:[37,36]
 package org.apache.commons.validator does not exist

 
/Users/irving/work/apache/shale-src/shale-core/src/main/java/org/apache/shale/component/ValidatorScript.java:[38,36]
 package org.apache.commons.validator does not exist

 
/Users/irving/work/apache/shale-src/shale-core/src/main/java/org/apache/shale/validator/CommonsValidator.java:[47,36]
 package org.apache.commons.validator does not exist

 
/Users/irving/work/apache/shale-src/shale-core/src/main/java/org/apache/shale/validator/CommonsValidator.java:[48,36]
 package org.apache.commons.validator does not exist

 

Re: Building from subversion source

2006-09-19 Thread Wendy Smoak

On 9/18/06, Irv Salisbury [EMAIL PROTECTED] wrote:

I am following the instructions for building from source.  However, I get
this error:
/Users/irving/work/apache/shale-src/shale-core/src/main/java/org/apache/shale/component/ValidatorScript.java:[37,36]
package org.apache.commons.validator does not exist


I saw this last week, and can still reproduce it.  (Delete
org/apache/shale from your local repo and try 'mvn clean install' from
framework.)

It fails even with the Cargo plugin config in settings.xml, but that
really shouldn't have anything to do with commons-validator.

My bet is on dependencyManagement not working correctly again.  I
haven't looked at the changes Craig made recently, I'd start there.

--
Wendy