You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hivemind.apache.org by "Leonardo Quijano Vincenzi (JIRA)" <hi...@jakarta.apache.org> on 2006/03/21 17:48:05 UTC

[jira] Created: (HIVEMIND-173) "Provided" pom.xml dependencies are not being configured to download anywhere

"Provided" pom.xml dependencies are not being configured to download anywhere
-----------------------------------------------------------------------------

         Key: HIVEMIND-173
         URL: http://issues.apache.org/jira/browse/HIVEMIND-173
     Project: HiveMind
        Type: Bug
  Components: framework  
    Versions: 1.2    
 Environment: trunk of 2006-03-21
    Reporter: Leonardo Quijano Vincenzi


In framework/pom.xml we have this:


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


[jira] Commented: (HIVEMIND-173) "Provided" pom.xml dependencies are not being configured to download anywhere

Posted by "Leonardo Quijano Vincenzi (JIRA)" <hi...@jakarta.apache.org>.
    [ http://issues.apache.org/jira/browse/HIVEMIND-173?page=comments#action_12372047 ] 

Leonardo Quijano Vincenzi commented on HIVEMIND-173:
----------------------------------------------------

No no, this problem is while building Hivemind. Specially the framework. Try renaming your $HOME/.m2 to another thing and rebuilding Hivemind.

One would assume that the framework per-se would include easymock and other direct libraries as "compile" references, because they're needed to compile the apps. If a JAR is needed to just *run* the framework tests, then that JAR should be included as a "runtime" dependency.

It's just a guess, but maybe the Maven Eclipse Plugin is causing you some problems (but I don't recall you using it). But if you specify a "runtime" reference in a project, then it shouldn't be included on webapps or WEB-INF/lib directories, AFAIK.


> "Provided" pom.xml dependencies are not being configured to download anywhere
> -----------------------------------------------------------------------------
>
>          Key: HIVEMIND-173
>          URL: http://issues.apache.org/jira/browse/HIVEMIND-173
>      Project: HiveMind
>         Type: Bug
>   Components: framework
>     Versions: 1.2
>  Environment: trunk of 2006-03-21
>     Reporter: Leonardo Quijano Vincenzi

>
> In framework/pom.xml we have this:

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


[jira] Commented: (HIVEMIND-173) "Provided" pom.xml dependencies are not being configured to download anywhere

Posted by "James Carman (JIRA)" <hi...@jakarta.apache.org>.
    [ https://issues.apache.org/jira/browse/HIVEMIND-173?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12597412#action_12597412 ] 

James Carman commented on HIVEMIND-173:
---------------------------------------

Johan,

What if we have Maven generate a "test jar"?  That may be what you're suggesting anyway:

http://maven.apache.org/guides/mini/guide-attached-tests.html


> "Provided" pom.xml dependencies are not being configured to download anywhere
> -----------------------------------------------------------------------------
>
>                 Key: HIVEMIND-173
>                 URL: https://issues.apache.org/jira/browse/HIVEMIND-173
>             Project: HiveMind
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: 1.2
>         Environment: trunk of 2006-03-21
>            Reporter: Leonardo Quijano Vincenzi
>
> In framework/pom.xml we have this:

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HIVEMIND-173) "Provided" pom.xml dependencies are not being configured to download anywhere

Posted by "James Carman (JIRA)" <hi...@jakarta.apache.org>.
    [ https://issues.apache.org/jira/browse/HIVEMIND-173?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12597474#action_12597474 ] 

James Carman commented on HIVEMIND-173:
---------------------------------------

Well, not exactly.  I would move all unit test related stuff into src/test.  Come to think of it, the way JUnit is set up, it may not be so easy to extract a superclass from it, because it would have to extend TestCase itself (no multiple inheritance).  Perhaps we could have a HiveMindTestCaseFixture (or helper or whatever) class or something that takes the test case class so that it knows how to locate all the registry files?  Although, I believe TestNG can run JUnit tests also.  

I never did like the fact that HiveMindTestCase was in the main jar.  It doesn't cause that much overhead; I just didn't like it. :)


> "Provided" pom.xml dependencies are not being configured to download anywhere
> -----------------------------------------------------------------------------
>
>                 Key: HIVEMIND-173
>                 URL: https://issues.apache.org/jira/browse/HIVEMIND-173
>             Project: HiveMind
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: 1.2
>         Environment: trunk of 2006-03-21
>            Reporter: Leonardo Quijano Vincenzi
>
> In framework/pom.xml we have this:

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HIVEMIND-173) "Provided" pom.xml dependencies are not being configured to download anywhere

Posted by "James Carman (JIRA)" <hi...@jakarta.apache.org>.
    [ https://issues.apache.org/jira/browse/HIVEMIND-173?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12597418#action_12597418 ] 

James Carman commented on HIVEMIND-173:
---------------------------------------

I'm suggesting we move HiveMindTestCase and perhaps we should create a better superclass, one that doesn't depend on JUnit, something above HiveMindTestCase.

> "Provided" pom.xml dependencies are not being configured to download anywhere
> -----------------------------------------------------------------------------
>
>                 Key: HIVEMIND-173
>                 URL: https://issues.apache.org/jira/browse/HIVEMIND-173
>             Project: HiveMind
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: 1.2
>         Environment: trunk of 2006-03-21
>            Reporter: Leonardo Quijano Vincenzi
>
> In framework/pom.xml we have this:

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HIVEMIND-173) "Provided" pom.xml dependencies are not being configured to download anywhere

Posted by "James Carman (JIRA)" <hi...@jakarta.apache.org>.
    [ http://issues.apache.org/jira/browse/HIVEMIND-173?page=comments#action_12416316 ] 

James Carman commented on HIVEMIND-173:
---------------------------------------

That doesn't sound too bad.  We can mark them as optional pretty easily.  Any objections?

> "Provided" pom.xml dependencies are not being configured to download anywhere
> -----------------------------------------------------------------------------
>
>          Key: HIVEMIND-173
>          URL: http://issues.apache.org/jira/browse/HIVEMIND-173
>      Project: HiveMind
>         Type: Bug

>   Components: framework
>     Versions: 1.2
>  Environment: trunk of 2006-03-21
>     Reporter: Leonardo Quijano Vincenzi

>
> In framework/pom.xml we have this:

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


[jira] Commented: (HIVEMIND-173) "Provided" pom.xml dependencies are not being configured to download anywhere

Posted by "James Carman (JIRA)" <hi...@jakarta.apache.org>.
    [ http://issues.apache.org/jira/browse/HIVEMIND-173?page=comments#action_12416213 ] 

James Carman commented on HIVEMIND-173:
---------------------------------------

HiveMindTestCase would not be used in an "application."  It's a useful superclass for unit tests which need to construct HiveMind registries or use EasyMock mock objects (maybe we should extract superclass somewhere there).  Anyway, EasyMock should be an optional dependency.

> "Provided" pom.xml dependencies are not being configured to download anywhere
> -----------------------------------------------------------------------------
>
>          Key: HIVEMIND-173
>          URL: http://issues.apache.org/jira/browse/HIVEMIND-173
>      Project: HiveMind
>         Type: Bug

>   Components: framework
>     Versions: 1.2
>  Environment: trunk of 2006-03-21
>     Reporter: Leonardo Quijano Vincenzi

>
> In framework/pom.xml we have this:

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


[jira] Commented: (HIVEMIND-173) "Provided" pom.xml dependencies are not being configured to download anywhere

Posted by "Johan Lindquist (JIRA)" <hi...@jakarta.apache.org>.
    [ https://issues.apache.org/jira/browse/HIVEMIND-173?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12597427#action_12597427 ] 

Johan Lindquist commented on HIVEMIND-173:
------------------------------------------

By the you mean that HiveMindTestCase still expose all test related method but is moved into src/test and the super-class (located in src/java) has the few methods dealing with instantiating the registry?  Sounds like a plan.

> "Provided" pom.xml dependencies are not being configured to download anywhere
> -----------------------------------------------------------------------------
>
>                 Key: HIVEMIND-173
>                 URL: https://issues.apache.org/jira/browse/HIVEMIND-173
>             Project: HiveMind
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: 1.2
>         Environment: trunk of 2006-03-21
>            Reporter: Leonardo Quijano Vincenzi
>
> In framework/pom.xml we have this:

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HIVEMIND-173) "Provided" pom.xml dependencies are not being configured to download anywhere

Posted by "Johan Lindquist (JIRA)" <hi...@jakarta.apache.org>.
    [ https://issues.apache.org/jira/browse/HIVEMIND-173?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12597389#action_12597389 ] 

Johan Lindquist commented on HIVEMIND-173:
------------------------------------------

Could another solution here be to extract a hivemind test library?  Including this in other modules/project with scope test would allow tests to run, while not exposing any of the "test" code to the application.

> "Provided" pom.xml dependencies are not being configured to download anywhere
> -----------------------------------------------------------------------------
>
>                 Key: HIVEMIND-173
>                 URL: https://issues.apache.org/jira/browse/HIVEMIND-173
>             Project: HiveMind
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: 1.2
>         Environment: trunk of 2006-03-21
>            Reporter: Leonardo Quijano Vincenzi
>
> In framework/pom.xml we have this:

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HIVEMIND-173) "Provided" pom.xml dependencies are not being configured to download anywhere

Posted by "Leonardo Quijano Vincenzi (JIRA)" <hi...@jakarta.apache.org>.
    [ http://issues.apache.org/jira/browse/HIVEMIND-173?page=comments#action_12371255 ] 

Leonardo Quijano Vincenzi commented on HIVEMIND-173:
----------------------------------------------------

In framework/pom.xml we have this:

        <!-- Because the core framework includes some JUnit base classes that
             use easymock (and easymockclassextension), those dependencies
             are marked as "provided". Normally, that means "provided by the container",
             meaning a runtime dependency provided by a servlet container or
             application server, but we're retrocanonicalizing :-) that to
             mean "provided by the using project, if needed" -->
        <dependency>
            <groupId>easymock</groupId>
            <artifactId>easymock</artifactId>
            <version>1.1</version>
            <scope>provided</scope>
        </dependency>

And several other "provided" dependencies. There doesn't seem to be any place where this dependencies are downloaded by Maven. This breaks the classpath of the project when using it with a blank Maven repository.


> "Provided" pom.xml dependencies are not being configured to download anywhere
> -----------------------------------------------------------------------------
>
>          Key: HIVEMIND-173
>          URL: http://issues.apache.org/jira/browse/HIVEMIND-173
>      Project: HiveMind
>         Type: Bug
>   Components: framework
>     Versions: 1.2
>  Environment: trunk of 2006-03-21
>     Reporter: Leonardo Quijano Vincenzi

>
> In framework/pom.xml we have this:

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


[jira] Commented: (HIVEMIND-173) "Provided" pom.xml dependencies are not being configured to download anywhere

Posted by "Paul Russell (JIRA)" <hi...@jakarta.apache.org>.
    [ http://issues.apache.org/jira/browse/HIVEMIND-173?page=comments#action_12416303 ] 

Paul Russell commented on HIVEMIND-173:
---------------------------------------

I suspect this dependency should be marked as 'optional' with the default scope, rather than as 'provided'. The provided scope is for dependencies such as the J2EE apis which are provided by the runtime environment, which isn't really the case here. Optional dependencies are exactly what they say on the tin: They don't exhibit tranisivity, but are included in a compile. Anyone who /wishes/ to use the optional dependency simple includes it in their own POM.

More information available on the Maven site: http://maven.apache.org/guides/introduction/introduction-to-optional-and-excludes-dependencies.html

Paul

> "Provided" pom.xml dependencies are not being configured to download anywhere
> -----------------------------------------------------------------------------
>
>          Key: HIVEMIND-173
>          URL: http://issues.apache.org/jira/browse/HIVEMIND-173
>      Project: HiveMind
>         Type: Bug

>   Components: framework
>     Versions: 1.2
>  Environment: trunk of 2006-03-21
>     Reporter: Leonardo Quijano Vincenzi

>
> In framework/pom.xml we have this:

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


[jira] Commented: (HIVEMIND-173) "Provided" pom.xml dependencies are not being configured to download anywhere

Posted by "Howard M. Lewis Ship (JIRA)" <hi...@jakarta.apache.org>.
    [ http://issues.apache.org/jira/browse/HIVEMIND-173?page=comments#action_12371299 ] 

Howard M. Lewis Ship commented on HIVEMIND-173:
-----------------------------------------------

Yes, I am new at Maven 2.

I'll have to find another approach for this.  Maven must have downloaded these for me before I marked them as <scope>provided</scope>.

I'll need to find another scope, or approach, that allows them to be on the compile classpath when building the framework (or library), but not dragged in automatically for modules that depend on the hivemind jars themselves. I believe there's another option in <dependency> for this purpose.

> "Provided" pom.xml dependencies are not being configured to download anywhere
> -----------------------------------------------------------------------------
>
>          Key: HIVEMIND-173
>          URL: http://issues.apache.org/jira/browse/HIVEMIND-173
>      Project: HiveMind
>         Type: Bug
>   Components: framework
>     Versions: 1.2
>  Environment: trunk of 2006-03-21
>     Reporter: Leonardo Quijano Vincenzi

>
> In framework/pom.xml we have this:

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


[jira] Commented: (HIVEMIND-173) "Provided" pom.xml dependencies are not being configured to download anywhere

Posted by "Howard M. Lewis Ship (JIRA)" <hi...@jakarta.apache.org>.
    [ http://issues.apache.org/jira/browse/HIVEMIND-173?page=comments#action_12372020 ] 

Howard M. Lewis Ship commented on HIVEMIND-173:
-----------------------------------------------

For clarification, are you getting failures building HiveMind, or with a project that depends on HiveMind?

The provided scope is not too different from making the dependency optional.

HiveMind requires easymock to compile (because HiveMindTestCase is part of the JAR).  However, if I make easymock a normal dependency, then anything that uses HiveMind ends up dragging in easymock.  Eventually, you see easymock inside the WEB-INF/lib folder of your web applications.

So if you are using HiveMindTestCase in your project's tests, then you have to add easymock 1.1 as a test scope dependency, even though its already a dependency of hivemind.  Sorry.

> "Provided" pom.xml dependencies are not being configured to download anywhere
> -----------------------------------------------------------------------------
>
>          Key: HIVEMIND-173
>          URL: http://issues.apache.org/jira/browse/HIVEMIND-173
>      Project: HiveMind
>         Type: Bug
>   Components: framework
>     Versions: 1.2
>  Environment: trunk of 2006-03-21
>     Reporter: Leonardo Quijano Vincenzi

>
> In framework/pom.xml we have this:

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


[jira] Commented: (HIVEMIND-173) "Provided" pom.xml dependencies are not being configured to download anywhere

Posted by "Leonardo Quijano Vincenzi (JIRA)" <hi...@jakarta.apache.org>.
    [ http://issues.apache.org/jira/browse/HIVEMIND-173?page=comments#action_12372049 ] 

Leonardo Quijano Vincenzi commented on HIVEMIND-173:
----------------------------------------------------

Reading your post again, I see that Easymock is actually a compile-time reference for Hivemind.

Now, the Maven philosophy is that, if something is needed to compile an app, then it should be present at runtime. What happens if I want to use "HiveMindTestCase" in my web-app. In that case I would end up with an inconsistent classpath, or even worse, with the wrong version of easymock in my path (because someone else uses it). So, I think the basics are, if it's needed at compile, then it must be present at runtime.


> "Provided" pom.xml dependencies are not being configured to download anywhere
> -----------------------------------------------------------------------------
>
>          Key: HIVEMIND-173
>          URL: http://issues.apache.org/jira/browse/HIVEMIND-173
>      Project: HiveMind
>         Type: Bug
>   Components: framework
>     Versions: 1.2
>  Environment: trunk of 2006-03-21
>     Reporter: Leonardo Quijano Vincenzi

>
> In framework/pom.xml we have this:

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


[jira] Commented: (HIVEMIND-173) "Provided" pom.xml dependencies are not being configured to download anywhere

Posted by "Johan Lindquist (JIRA)" <hi...@jakarta.apache.org>.
    [ https://issues.apache.org/jira/browse/HIVEMIND-173?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12597416#action_12597416 ] 

Johan Lindquist commented on HIVEMIND-173:
------------------------------------------

Hi James,

Since the HivemindTestCase "lives" in the framework's source tree and not in the test source tree, I am not sure this is possible, the test jar generates a deployable jar from the test source tree.

And to clarify, I was suggesting making the test utils a completely separate module (like hivemind-lib) but looking at the HivemindTestCase in more detail, I think we may get ourselves into a cyclic dependency if we move it into a stand-alone module in any case (since it would have to depend on framework (for the Registy class).  

So back to "optional" I guess ... But it does feel a little strange having test utility classes inside the framework jar though ... :)

> "Provided" pom.xml dependencies are not being configured to download anywhere
> -----------------------------------------------------------------------------
>
>                 Key: HIVEMIND-173
>                 URL: https://issues.apache.org/jira/browse/HIVEMIND-173
>             Project: HiveMind
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: 1.2
>         Environment: trunk of 2006-03-21
>            Reporter: Leonardo Quijano Vincenzi
>
> In framework/pom.xml we have this:

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.