Maven dependency problem for activequant-dao-hibernate?

View: New views
12 Messages — Rating Filter:   Alert me  

Maven dependency problem for activequant-dao-hibernate?

by Mark Breman-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
Hello everyone,

Last night I checked out the maven tree (all projects) for the first time.

Now I solved a few dependency problems with maven, mainly due to my inexperience with maven, but there are two dependecy problems that remain (both are in the activequant-dao-hibernate pom.xml):

"Multiple annotations found at this line:
    - Missing indirectly referenced artifact org.hibernate:hibernate:jar:
     3.3.0.CR2:compile
    - Missing indirectly referenced artifact mysql:mysql-connector-java:jar:5.1.6:test"

Anyone any idea?

-Mark-


_______________________________________________
ccapi mailing list
ccapi@...
http://activestocks.de/cgi-bin/mailman/listinfo/ccapi

Re: Maven dependency problem for activequant-dao-hibernate?

by Wessel de Roode :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Mark,

Are you using eclipse? Or are you using it directly from the command line. And make sure that the heap size of the Java vm is set large enough. Often the compilation breaks because java runs out of its heap size. You can find some hints in my blog and also on the website of AQ.

Wessel
 
Mark Breman-2 wrote:
Hello everyone,

Last night I checked out the maven tree (all projects) for the first time.

Now I solved a few dependency problems with maven, mainly due to my inexperience with maven, but there are two dependecy problems that remain (both are in the activequant-dao-hibernate pom.xml):

"Multiple annotations found at this line:
    - Missing indirectly referenced artifact org.hibernate:hibernate:jar:
     3.3.0.CR2:compile
    - Missing indirectly referenced artifact mysql:mysql-connector-java:jar:5.1.6:test"

Anyone any idea?

-Mark-



     
_______________________________________________
ccapi mailing list
ccapi@activestocks.de
http://activestocks.de/cgi-bin/mailman/listinfo/ccapi

Parent Message unknown Re: Maven dependency problem for activequant-dao-hibernate?

by Mark Breman-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
Hello Wessel,

Yes i'm using eclipse (ganymede) and the maven plugin.

I don't think the problem is with the heap size, as i get red markers in the editor indicating that the dependencies are not resolved (i'm not compiling).
Were do you get the org.hibernate jar file from? Do I need to add a maven repository for this so this jar file can be found?

Thanx,

-Mark-

----- Original Message ----
From: Wessel de Roode <jwderoode2@...>
To: ccapi@...
Sent: Saturday, August 9, 2008 5:49:15 PM
Subject: Re: [ccapi] Maven dependency problem for activequant-dao-hibernate?


Hi Mark,

Are you using eclipse? Or are you using it directly from the command line.
And make sure that the heap size of the Java vm is set large enough. Often
the compilation breaks because java runs out of its heap size. You can find
some hints in my blog and also on the website of AQ.

Wessel


Mark Breman-2 wrote:

>
> Hello everyone,
>
> Last night I checked out the maven tree (all projects) for the first time.
>
> Now I solved a few dependency problems with maven, mainly due to my
> inexperience with maven, but there are two dependecy problems that remain
> (both are in the activequant-dao-hibernate pom.xml):
>
> "Multiple annotations found at this line:
>    - Missing indirectly referenced artifact org.hibernate:hibernate:jar:
>      3.3.0.CR2:compile
>    - Missing indirectly referenced artifact
> mysql:mysql-connector-java:jar:5.1.6:test"
>
> Anyone any idea?
>
> -Mark-
>
>
>
>     
> _______________________________________________
> ccapi mailing list
> ccapi@...
> http://activestocks.de/cgi-bin/mailman/listinfo/ccapi
>
>

--
View this message in context: http://www.nabble.com/Maven-dependency-problem-for-activequant-dao-hibernate--tp18905184p18905988.html
Sent from the ccapi2 and activeQuant mailing list archive at Nabble.com.

_______________________________________________
ccapi mailing list
ccapi@...
http://activestocks.de/cgi-bin/mailman/listinfo/ccapi


_______________________________________________
ccapi mailing list
ccapi@...
http://activestocks.de/cgi-bin/mailman/listinfo/ccapi

Parent Message unknown Re: Maven dependency problem for activequant-dao-hibernate?

by Mark Breman-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
Does anyone know what this strange version number of the hibernate dependency in the pom.xml file from the activequant-dao-hibernate project means:

        <dependency>
            <groupId>org.hibernate</groupId>
            <artifactId>hibernate</artifactId>
            <version>[3.2.6.ga,)</version>
        </dependency>

Version 3.2.6.ga of the hibernate jar is available in the maven central repository (i see that in my Maven Indexes), but it can't find it. Could the strange version number have anything to do with this?

-Mark-

----- Original Message ----
From: Mark Breman <m.breman@...>
To: ccapi2 and activeQuant discussion list <ccapi@...>
Sent: Saturday, August 9, 2008 6:31:34 PM
Subject: Re: [ccapi] Maven dependency problem for activequant-dao-hibernate?

Hello Wessel,

Yes i'm using eclipse (ganymede) and the maven plugin.

I don't think the problem is with the heap size, as i get red markers in the editor indicating that the dependencies are not resolved (i'm not compiling).
Were do you get the org.hibernate jar file from? Do I need to add a maven repository for this so this jar file can be found?

Thanx,

-Mark-

----- Original Message ----
From: Wessel de Roode <jwderoode2@...>
To: ccapi@...
Sent: Saturday, August 9, 2008 5:49:15 PM
Subject: Re: [ccapi] Maven dependency problem for activequant-dao-hibernate?


Hi Mark,

Are you using eclipse? Or are you using it directly from the command line.
And make sure that the heap size of the Java vm is set large enough. Often
the compilation breaks because java runs out of its heap size. You can find
some hints in my blog and also on the website of AQ.

Wessel


Mark Breman-2 wrote:

>
> Hello everyone,
>
> Last night I checked out the maven tree (all projects) for the first time.
>
> Now I solved a few dependency problems with maven, mainly due to my
> inexperience with maven, but there are two dependecy problems that remain
> (both are in the activequant-dao-hibernate pom.xml):
>
> "Multiple annotations found at this line:
>    - Missing indirectly referenced artifact org.hibernate:hibernate:jar:
>      3.3.0.CR2:compile
>    - Missing indirectly referenced artifact
> mysql:mysql-connector-java:jar:5.1.6:test"
>
> Anyone any idea?
>
> -Mark-
>
>
>
>     
> _______________________________________________
> ccapi mailing list
> ccapi@...
> http://activestocks.de/cgi-bin/mailman/listinfo/ccapi
>
>

--
View this message in context: http://www.nabble.com/Maven-dependency-problem-for-activequant-dao-hibernate--tp18905184p18905988.html
Sent from the ccapi2 and activeQuant mailing list archive at Nabble.com.

_______________________________________________
ccapi mailing list
ccapi@...
http://activestocks.de/cgi-bin/mailman/listinfo/ccapi



_______________________________________________
ccapi mailing list
ccapi@...
http://activestocks.de/cgi-bin/mailman/listinfo/ccapi

Re: Maven dependency problem for activequant-dao-hibernate?

by Mike Kroutikov-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Mark, try removing ranges: [3.2.6.ga) => 3.2.5.ga .

Let me know it it helps
-Mike

On Sat, Aug 9, 2008 at 2:17 PM, Mark Breman <m.breman@...> wrote:
Does anyone know what this strange version number of the hibernate dependency in the pom.xml file from the activequant-dao-hibernate project means:

        <dependency>
            <groupId>org.hibernate</groupId>
            <artifactId>hibernate</artifactId>
            <version>[3.2.6.ga,)</version>
        </dependency>

Version 3.2.6.ga of the hibernate jar is available in the maven central repository (i see that in my Maven Indexes), but it can't find it. Could the strange version number have anything to do with this?

-Mark-


----- Original Message ----
From: Mark Breman <m.breman@...>
To: ccapi2 and activeQuant discussion list <ccapi@...>
Sent: Saturday, August 9, 2008 6:31:34 PM
Subject: Re: [ccapi] Maven dependency problem for activequant-dao-hibernate?

Hello Wessel,

Yes i'm using eclipse (ganymede) and the maven plugin.

I don't think the problem is with the heap size, as i get red markers in the editor indicating that the dependencies are not resolved (i'm not compiling).
Were do you get the org.hibernate jar file from? Do I need to add a maven repository for this so this jar file can be found?

Thanx,

-Mark-

----- Original Message ----
From: Wessel de Roode <jwderoode2@...>
To: ccapi@...
Sent: Saturday, August 9, 2008 5:49:15 PM
Subject: Re: [ccapi] Maven dependency problem for activequant-dao-hibernate?


Hi Mark,

Are you using eclipse? Or are you using it directly from the command line.
And make sure that the heap size of the Java vm is set large enough. Often
the compilation breaks because java runs out of its heap size. You can find
some hints in my blog and also on the website of AQ.

Wessel


Mark Breman-2 wrote:
>
> Hello everyone,
>
> Last night I checked out the maven tree (all projects) for the first time.
>
> Now I solved a few dependency problems with maven, mainly due to my
> inexperience with maven, but there are two dependecy problems that remain
> (both are in the activequant-dao-hibernate pom.xml):
>

> "Multiple annotations found at this line:
>    - Missing indirectly referenced artifact org.hibernate:hibernate:jar:
>      3.3.0.CR2:compile
>    - Missing indirectly referenced artifact
> mysql:mysql-connector-java:jar:5.1.6:test"
>
> Anyone any idea?
>
> -Mark-
>
>
>
>     
> _______________________________________________
> ccapi mailing list
> ccapi@...
> http://activestocks.de/cgi-bin/mailman/listinfo/ccapi
>
>

--
View this message in context: http://www.nabble.com/Maven-dependency-problem-for-activequant-dao-hibernate--tp18905184p18905988.html
Sent from the ccapi2 and activeQuant mailing list archive at Nabble.com.

_______________________________________________
ccapi mailing list
ccapi@...
http://activestocks.de/cgi-bin/mailman/listinfo/ccapi



_______________________________________________
ccapi mailing list
ccapi@...
http://activestocks.de/cgi-bin/mailman/listinfo/ccapi



_______________________________________________
ccapi mailing list
ccapi@...
http://activestocks.de/cgi-bin/mailman/listinfo/ccapi

Re: Maven dependency problem for activequant-dao-hibernate?

by Wessel de Roode :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

No not at all you don't need anything it should work straight out of the box.
However you need to change the heap size when using the eclipse plugin

This might help:
http://www.activequant.org/?q=blog/[user]/comparing_maven_integration_plugins_for_eclipse

about the dependency, check out this article and the part about maven. You need to enable dependency in MAven:
http://activequant.org/?q=node/287

Using Eclipse to Checkout Everything
When doing a refactoring, its desirable to load all activequant sources to leverage the Eclipse's refactoring machinery across all modules. Technically, the goal is to checkout the root of the Maven's build together with all modules.

    * From CVS perspective, navigate to activequant-maven/activequant-all
    * Right-click on activequant-all and choose Check Out

When checkout is complete, switch back to Java perspective, and

    * Right-click on the project, navigate to Maven->Enable dependency management
    * Right-click on the project, choose Maven->Enable Nested Modules
    * Right-click on the project, navigate to Maven->Update source folders
    * Verify that JDK compliance level is 5.0 or higher.

Cheers,

   Wessel


Mark Breman-2 wrote:
Hello Wessel,

Yes i'm using eclipse (ganymede) and the maven plugin.

I don't think the problem is with the heap size, as i get red markers in the editor indicating that the dependencies are not resolved (i'm not compiling).
Were do you get the org.hibernate jar file from? Do I need to add a maven repository for this so this jar file can be found?

Thanx,

-Mark-



----- Original Message ----
From: Wessel de Roode <jwderoode2@hotmail.com>
To: ccapi@activestocks.de
Sent: Saturday, August 9, 2008 5:49:15 PM
Subject: Re: [ccapi] Maven dependency problem for activequant-dao-hibernate?


Hi Mark,

Are you using eclipse? Or are you using it directly from the command line.
And make sure that the heap size of the Java vm is set large enough. Often
the compilation breaks because java runs out of its heap size. You can find
some hints in my blog and also on the website of AQ.

Wessel


Mark Breman-2 wrote:
>
> Hello everyone,
>
> Last night I checked out the maven tree (all projects) for the first time.
>
> Now I solved a few dependency problems with maven, mainly due to my
> inexperience with maven, but there are two dependecy problems that remain
> (both are in the activequant-dao-hibernate pom.xml):
>
> "Multiple annotations found at this line:
>     - Missing indirectly referenced artifact org.hibernate:hibernate:jar:
>      3.3.0.CR2:compile
>     - Missing indirectly referenced artifact
> mysql:mysql-connector-java:jar:5.1.6:test"
>
> Anyone any idea?
>
> -Mark-
>
>
>
>      
> _______________________________________________
> ccapi mailing list
> ccapi@activestocks.de
> http://activestocks.de/cgi-bin/mailman/listinfo/ccapi
>
>

--
View this message in context: http://www.nabble.com/Maven-dependency-problem-for-activequant-dao-hibernate--tp18905184p18905988.html
Sent from the ccapi2 and activeQuant mailing list archive at Nabble.com.

_______________________________________________
ccapi mailing list
ccapi@activestocks.de
http://activestocks.de/cgi-bin/mailman/listinfo/ccapi



     
_______________________________________________
ccapi mailing list
ccapi@activestocks.de
http://activestocks.de/cgi-bin/mailman/listinfo/ccapi

Parent Message unknown Re: Maven dependency problem for activequant-dao-hibernate?

by Mark Breman-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
Hello Wessel,

Oke, it turned out that I had not installed an optional part of the eclipse plugin called "Maven central repository index". After I installed that I got the memory error you already described. I made the heap size bigger and that solved the memory error. Now I can look in the maven central repository. I see there that a hibernate 3.2.6.ga is available (as refered to from the activequant-dao-hibernate projects pom-file).

I tried replacing the strange version number in the projects pom-file with 3.2.6.ga (instead of "[3.2.6.ga,)") and the dependency is resolved!

I will try Mike's suggestion (from the other tread). looks like i'm getting there....

Thanx Wessel,

-Mark-

----- Original Message ----
From: Wessel de Roode <jwderoode2@...>
To: ccapi@...
Sent: Saturday, August 9, 2008 8:22:23 PM
Subject: Re: [ccapi] Maven dependency problem for activequant-dao-hibernate?


No not at all you don't need anything it should work straight out of the box.
However you need to change the heap size when using the eclipse plugin

This might help:
http://www.activequant.org/?q=blog/[user]/comparing_maven_integration_plugins_for_eclipse

about the dependency, check out this article and the part about maven. You
need to enable dependency in MAven:
http://activequant.org/?q=node/287

Using Eclipse to Checkout Everything
When doing a refactoring, its desirable to load all activequant sources to
leverage the Eclipse's refactoring machinery across all modules.
Technically, the goal is to checkout the root of the Maven's build together
with all modules.

    * From CVS perspective, navigate to activequant-maven/activequant-all
    * Right-click on activequant-all and choose Check Out

When checkout is complete, switch back to Java perspective, and

    * Right-click on the project, navigate to Maven->Enable dependency
management
    * Right-click on the project, choose Maven->Enable Nested Modules
    * Right-click on the project, navigate to Maven->Update source folders
    * Verify that JDK compliance level is 5.0 or higher.

Cheers,

  Wessel



Mark Breman-2 wrote:

>
> Hello Wessel,
>
> Yes i'm using eclipse (ganymede) and the maven plugin.
>
> I don't think the problem is with the heap size, as i get red markers in
> the editor indicating that the dependencies are not resolved (i'm not
> compiling).
> Were do you get the org.hibernate jar file from? Do I need to add a maven
> repository for this so this jar file can be found?
>
> Thanx,
>
> -Mark-
>
>
>
> ----- Original Message ----
> From: Wessel de Roode <jwderoode2@...>
> To: ccapi@...
> Sent: Saturday, August 9, 2008 5:49:15 PM
> Subject: Re: [ccapi] Maven dependency problem for
> activequant-dao-hibernate?
>
>
> Hi Mark,
>
> Are you using eclipse? Or are you using it directly from the command line.
> And make sure that the heap size of the Java vm is set large enough. Often
> the compilation breaks because java runs out of its heap size. You can
> find
> some hints in my blog and also on the website of AQ.
>
> Wessel
>
>
> Mark Breman-2 wrote:
>>
>> Hello everyone,
>>
>> Last night I checked out the maven tree (all projects) for the first
>> time.
>>
>> Now I solved a few dependency problems with maven, mainly due to my
>> inexperience with maven, but there are two dependecy problems that remain
>> (both are in the activequant-dao-hibernate pom.xml):
>>
>> "Multiple annotations found at this line:
>>    - Missing indirectly referenced artifact org.hibernate:hibernate:jar:
>>      3.3.0.CR2:compile
>>    - Missing indirectly referenced artifact
>> mysql:mysql-connector-java:jar:5.1.6:test"
>>
>> Anyone any idea?
>>
>> -Mark-
>>
>>
>>
>>     
>> _______________________________________________
>> ccapi mailing list
>> ccapi@...
>> http://activestocks.de/cgi-bin/mailman/listinfo/ccapi
>>
>>
>
> --
> View this message in context:
> http://www.nabble.com/Maven-dependency-problem-for-activequant-dao-hibernate--tp18905184p18905988.html
> Sent from the ccapi2 and activeQuant mailing list archive at Nabble.com.
>
> _______________________________________________
> ccapi mailing list
> ccapi@...
> http://activestocks.de/cgi-bin/mailman/listinfo/ccapi
>
>
>
>     
> _______________________________________________
> ccapi mailing list
> ccapi@...
> http://activestocks.de/cgi-bin/mailman/listinfo/ccapi
>
>

--
View this message in context: http://www.nabble.com/Maven-dependency-problem-for-activequant-dao-hibernate--tp18905184p18907182.html
Sent from the ccapi2 and activeQuant mailing list archive at Nabble.com.

_______________________________________________
ccapi mailing list
ccapi@...
http://activestocks.de/cgi-bin/mailman/listinfo/ccapi


_______________________________________________
ccapi mailing list
ccapi@...
http://activestocks.de/cgi-bin/mailman/listinfo/ccapi

Re: Maven dependency problem for activequant-dao-hibernate?

by Mike Kroutikov-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Mark, which maven/eclipse plugin are you using? Tyco's or Q4 ? I use Q4 with Eclipse/Ganymede, and it sees the central repository by default....

Btw, here is the link to the hibernate stuff on central

http://repo1.maven.org/maven2/org/hibernate/hibernate/3.2.6.ga/hibernate-3.2.6.ga.pom

-Mike

On Sat, Aug 9, 2008 at 2:52 PM, Mark Breman <m.breman@...> wrote:
Hello Wessel,

Oke, it turned out that I had not installed an optional part of the eclipse plugin called "Maven central repository index". After I installed that I got the memory error you already described. I made the heap size bigger and that solved the memory error. Now I can look in the maven central repository. I see there that a hibernate 3.2.6.ga is available (as refered to from the activequant-dao-hibernate projects pom-file).

I tried replacing the strange version number in the projects pom-file with 3.2.6.ga (instead of "[3.2.6.ga,)") and the dependency is resolved!

I will try Mike's suggestion (from the other tread). looks like i'm getting there....

Thanx Wessel,

-Mark-

----- Original Message ----
From: Wessel de Roode <jwderoode2@...>
To: ccapi@...
Sent: Saturday, August 9, 2008 8:22:23 PM
Subject: Re: [ccapi] Maven dependency problem for activequant-dao-hibernate?


No not at all you don't need anything it should work straight out of the box.
However you need to change the heap size when using the eclipse plugin

This might help:
http://www.activequant.org/?q=blog/[user]/comparing_maven_integration_plugins_for_eclipse

about the dependency, check out this article and the part about maven. You
need to enable dependency in MAven:
http://activequant.org/?q=node/287

Using Eclipse to Checkout Everything
When doing a refactoring, its desirable to load all activequant sources to
leverage the Eclipse's refactoring machinery across all modules.
Technically, the goal is to checkout the root of the Maven's build together
with all modules.

    * From CVS perspective, navigate to activequant-maven/activequant-all
    * Right-click on activequant-all and choose Check Out

When checkout is complete, switch back to Java perspective, and

    * Right-click on the project, navigate to Maven->Enable dependency
management
    * Right-click on the project, choose Maven->Enable Nested Modules
    * Right-click on the project, navigate to Maven->Update source folders
    * Verify that JDK compliance level is 5.0 or higher.

Cheers,

  Wessel



Mark Breman-2 wrote:
>
> Hello Wessel,
>
> Yes i'm using eclipse (ganymede) and the maven plugin.
>
> I don't think the problem is with the heap size, as i get red markers in
> the editor indicating that the dependencies are not resolved (i'm not
> compiling).
> Were do you get the org.hibernate jar file from? Do I need to add a maven
> repository for this so this jar file can be found?
>
> Thanx,
>
> -Mark-
>
>
>
> ----- Original Message ----
> From: Wessel de Roode <jwderoode2@...>
> To: ccapi@...
> Sent: Saturday, August 9, 2008 5:49:15 PM
> Subject: Re: [ccapi] Maven dependency problem for
> activequant-dao-hibernate?
>
>
> Hi Mark,
>
> Are you using eclipse? Or are you using it directly from the command line.
> And make sure that the heap size of the Java vm is set large enough. Often
> the compilation breaks because java runs out of its heap size. You can
> find
> some hints in my blog and also on the website of AQ.
>
> Wessel
>
>
> Mark Breman-2 wrote:
>>
>> Hello everyone,
>>
>> Last night I checked out the maven tree (all projects) for the first
>> time.
>>
>> Now I solved a few dependency problems with maven, mainly due to my
>> inexperience with maven, but there are two dependecy problems that remain
>> (both are in the activequant-dao-hibernate pom.xml):
>>

>> "Multiple annotations found at this line:
>>    - Missing indirectly referenced artifact org.hibernate:hibernate:jar:
>>      3.3.0.CR2:compile
>>    - Missing indirectly referenced artifact
>> mysql:mysql-connector-java:jar:5.1.6:test"
>>
>> Anyone any idea?
>>
>> -Mark-
>>
>>
>>
>>     
>> _______________________________________________
>> ccapi mailing list
>> ccapi@...
>> http://activestocks.de/cgi-bin/mailman/listinfo/ccapi
>>
>>
>
> --
> View this message in context:
> http://www.nabble.com/Maven-dependency-problem-for-activequant-dao-hibernate--tp18905184p18905988.html
> Sent from the ccapi2 and activeQuant mailing list archive at Nabble.com.
>
> _______________________________________________
> ccapi mailing list
> ccapi@...
> http://activestocks.de/cgi-bin/mailman/listinfo/ccapi
>
>
>
>     
> _______________________________________________
> ccapi mailing list
> ccapi@...
> http://activestocks.de/cgi-bin/mailman/listinfo/ccapi
>
>

--
View this message in context: http://www.nabble.com/Maven-dependency-problem-for-activequant-dao-hibernate--tp18905184p18907182.html
Sent from the ccapi2 and activeQuant mailing list archive at Nabble.com.

_______________________________________________
ccapi mailing list
ccapi@...
http://activestocks.de/cgi-bin/mailman/listinfo/ccapi


_______________________________________________
ccapi mailing list
ccapi@...
http://activestocks.de/cgi-bin/mailman/listinfo/ccapi



_______________________________________________
ccapi mailing list
ccapi@...
http://activestocks.de/cgi-bin/mailman/listinfo/ccapi

Parent Message unknown Re: Maven dependency problem for activequant-dao-hibernate?

by Mark Breman-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
Hello Mike,

I already tried replacing [3.2.6.ga,) with 3.2.6.ga and that made it work.

Replacing it with "[3.2.5.ga,)" does not make it work.

Are you sure there should be a comma after "ga"?

-Mark-

----- Original Message ----
From: Mike Kroutikov <pgmmpk@...>
To: ccapi2 and activeQuant discussion list <ccapi@...>
Sent: Saturday, August 9, 2008 8:21:36 PM
Subject: Re: [ccapi] Maven dependency problem for activequant-dao-hibernate?

Mark, try removing ranges: [3.2.6.ga) => 3.2.5.ga .

Let me know it it helps
-Mike

On Sat, Aug 9, 2008 at 2:17 PM, Mark Breman <m.breman@...> wrote:
Does anyone know what this strange version number of the hibernate dependency in the pom.xml file from the activequant-dao-hibernate project means:

        <dependency>
            <groupId>org.hibernate</groupId>
            <artifactId>hibernate</artifactId>
            <version>[3.2.6.ga,)</version>
        </dependency>

Version 3.2.6.ga of the hibernate jar is available in the maven central repository (i see that in my Maven Indexes), but it can't find it. Could the strange version number have anything to do with this?

-Mark-


----- Original Message ----
From: Mark Breman <m.breman@...>
To: ccapi2 and activeQuant discussion list <ccapi@...>
Sent: Saturday, August 9, 2008 6:31:34 PM
Subject: Re: [ccapi] Maven dependency problem for activequant-dao-hibernate?

Hello Wessel,

Yes i'm using eclipse (ganymede) and the maven plugin.

I don't think the problem is with the heap size, as i get red markers in the editor indicating that the dependencies are not resolved (i'm not compiling).
Were do you get the org.hibernate jar file from? Do I need to add a maven repository for this so this jar file can be found?

Thanx,

-Mark-

----- Original Message ----
From: Wessel de Roode <jwderoode2@...>
To: ccapi@...
Sent: Saturday, August 9, 2008 5:49:15 PM
Subject: Re: [ccapi] Maven dependency problem for activequant-dao-hibernate?


Hi Mark,

Are you using eclipse? Or are you using it directly from the command line.
And make sure that the heap size of the Java vm is set large enough. Often
the compilation breaks because java runs out of its heap size. You can find
some hints in my blog and also on the website of AQ.

Wessel


Mark Breman-2 wrote:
>
> Hello everyone,
>
> Last night I checked out the maven tree (all projects) for the first time.
>
> Now I solved a few dependency problems with maven, mainly due to my
> inexperience with maven, but there are two dependecy problems that remain
> (both are in the activequant-dao-hibernate pom.xml):
>

> "Multiple annotations found at this line:
>    - Missing indirectly referenced artifact org.hibernate:hibernate:jar:
>      3.3.0.CR2:compile
>    - Missing indirectly referenced artifact
> mysql:mysql-connector-java:jar:5.1.6:test"
>
> Anyone any idea?
>
> -Mark-
>
>
>
>     
> _______________________________________________
> ccapi mailing list
> ccapi@...
> http://activestocks.de/cgi-bin/mailman/listinfo/ccapi
>
>

--
View this message in context: http://www.nabble.com/Maven-dependency-problem-for-activequant-dao-hibernate--tp18905184p18905988.html
Sent from the ccapi2 and activeQuant mailing list archive at Nabble.com.

_______________________________________________
ccapi mailing list
ccapi@...
http://activestocks.de/cgi-bin/mailman/listinfo/ccapi



_______________________________________________
ccapi mailing list
ccapi@...
http://activestocks.de/cgi-bin/mailman/listinfo/ccapi




_______________________________________________
ccapi mailing list
ccapi@...
http://activestocks.de/cgi-bin/mailman/listinfo/ccapi

Parent Message unknown Re: Maven dependency problem for activequant-dao-hibernate?

by Mark Breman-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
I have the plugin from SonaType. Here's the update site: http://m2eclipse.sonatype.org/update/


----- Original Message ----
From: Mike Kroutikov <pgmmpk@...>
To: ccapi2 and activeQuant discussion list <ccapi@...>
Sent: Saturday, August 9, 2008 8:56:47 PM
Subject: Re: [ccapi] Maven dependency problem for activequant-dao-hibernate?

Mark, which maven/eclipse plugin are you using? Tyco's or Q4 ? I use Q4 with Eclipse/Ganymede, and it sees the central repository by default....

Btw, here is the link to the hibernate stuff on central

http://repo1.maven.org/maven2/org/hibernate/hibernate/3.2.6.ga/hibernate-3.2.6.ga.pom

-Mike

On Sat, Aug 9, 2008 at 2:52 PM, Mark Breman <m.breman@...> wrote:
Hello Wessel,

Oke, it turned out that I had not installed an optional part of the eclipse plugin called "Maven central repository index". After I installed that I got the memory error you already described. I made the heap size bigger and that solved the memory error. Now I can look in the maven central repository. I see there that a hibernate 3.2.6.ga is available (as refered to from the activequant-dao-hibernate projects pom-file).

I tried replacing the strange version number in the projects pom-file with 3.2.6.ga (instead of "[3.2.6.ga,)") and the dependency is resolved!

I will try Mike's suggestion (from the other tread). looks like i'm getting there....

Thanx Wessel,

-Mark-

----- Original Message ----
From: Wessel de Roode <jwderoode2@...>
To: ccapi@...
Sent: Saturday, August 9, 2008 8:22:23 PM
Subject: Re: [ccapi] Maven dependency problem for activequant-dao-hibernate?


No not at all you don't need anything it should work straight out of the box.
However you need to change the heap size when using the eclipse plugin

This might help:
http://www.activequant.org/?q=blog/[user]/comparing_maven_integration_plugins_for_eclipse

about the dependency, check out this article and the part about maven. You
need to enable dependency in MAven:
http://activequant.org/?q=node/287

Using Eclipse to Checkout Everything
When doing a refactoring, its desirable to load all activequant sources to
leverage the Eclipse's refactoring machinery across all modules.
Technically, the goal is to checkout the root of the Maven's build together
with all modules.

    * From CVS perspective, navigate to activequant-maven/activequant-all
    * Right-click on activequant-all and choose Check Out

When checkout is complete, switch back to Java perspective, and

    * Right-click on the project, navigate to Maven->Enable dependency
management
    * Right-click on the project, choose Maven->Enable Nested Modules
    * Right-click on the project, navigate to Maven->Update source folders
    * Verify that JDK compliance level is 5.0 or higher.

Cheers,

  Wessel



Mark Breman-2 wrote:
>
> Hello Wessel,
>
> Yes i'm using eclipse (ganymede) and the maven plugin.
>
> I don't think the problem is with the heap size, as i get red markers in
> the editor indicating that the dependencies are not resolved (i'm not
> compiling).
> Were do you get the org.hibernate jar file from? Do I need to add a maven
> repository for this so this jar file can be found?
>
> Thanx,
>
> -Mark-
>
>
>
> ----- Original Message ----
> From: Wessel de Roode <jwderoode2@...>
> To: ccapi@...
> Sent: Saturday, August 9, 2008 5:49:15 PM
> Subject: Re: [ccapi] Maven dependency problem for
> activequant-dao-hibernate?
>
>
> Hi Mark,
>
> Are you using eclipse? Or are you using it directly from the command line.
> And make sure that the heap size of the Java vm is set large enough. Often
> the compilation breaks because java runs out of its heap size. You can
> find
> some hints in my blog and also on the website of AQ.
>
> Wessel
>
>
> Mark Breman-2 wrote:
>>
>> Hello everyone,
>>
>> Last night I checked out the maven tree (all projects) for the first
>> time.
>>
>> Now I solved a few dependency problems with maven, mainly due to my
>> inexperience with maven, but there are two dependecy problems that remain
>> (both are in the activequant-dao-hibernate pom.xml):
>>

>> "Multiple annotations found at this line:
>>    - Missing indirectly referenced artifact org.hibernate:hibernate:jar:
>>      3.3.0.CR2:compile
>>    - Missing indirectly referenced artifact
>> mysql:mysql-connector-java:jar:5.1.6:test"
>>
>> Anyone any idea?
>>
>> -Mark-
>>
>>
>>
>>     
>> _______________________________________________
>> ccapi mailing list
>> ccapi@...
>> http://activestocks.de/cgi-bin/mailman/listinfo/ccapi
>>
>>
>
> --
> View this message in context:
> http://www.nabble.com/Maven-dependency-problem-for-activequant-dao-hibernate--tp18905184p18905988.html
> Sent from the ccapi2 and activeQuant mailing list archive at Nabble.com.
>
> _______________________________________________
> ccapi mailing list
> ccapi@...
> http://activestocks.de/cgi-bin/mailman/listinfo/ccapi
>
>
>
>     
> _______________________________________________
> ccapi mailing list
> ccapi@...
> http://activestocks.de/cgi-bin/mailman/listinfo/ccapi
>
>

--
View this message in context: http://www.nabble.com/Maven-dependency-problem-for-activequant-dao-hibernate--tp18905184p18907182.html
Sent from the ccapi2 and activeQuant mailing list archive at Nabble.com.

_______________________________________________
ccapi mailing list
ccapi@...
http://activestocks.de/cgi-bin/mailman/listinfo/ccapi


_______________________________________________
ccapi mailing list
ccapi@...
http://activestocks.de/cgi-bin/mailman/listinfo/ccapi




_______________________________________________
ccapi mailing list
ccapi@...
http://activestocks.de/cgi-bin/mailman/listinfo/ccapi

Re: Maven dependency problem for activequant-dao-hibernate?

by Mike Kroutikov-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

It seems that there is a problem in interpreting version dependency range, possibly due to the non-numeric version format in some maven-eclipse integration plugins. Note that version ranges for many other dependencies (see pom.xml in activequant-parent) work just fine...

I see the problem that Mark described with Q4 maven-eclipse integration. Fixed version works file, but when I reverse to the version range, it fails to locate dependency... There is no problem whatsoever when using command-line maven...

I committed new version of pom.xml for the hibernate module to workaround this. It now has fixed hibernate dependency.

-Mike

On Sat, Aug 9, 2008 at 3:09 PM, Mark Breman <m.breman@...> wrote:
I have the plugin from SonaType. Here's the update site: http://m2eclipse.sonatype.org/update/


----- Original Message ----
From: Mike Kroutikov <pgmmpk@...>
To: ccapi2 and activeQuant discussion list <ccapi@...>
Sent: Saturday, August 9, 2008 8:56:47 PM
Subject: Re: [ccapi] Maven dependency problem for activequant-dao-hibernate?

Mark, which maven/eclipse plugin are you using? Tyco's or Q4 ? I use Q4 with Eclipse/Ganymede, and it sees the central repository by default....

Btw, here is the link to the hibernate stuff on central

http://repo1.maven.org/maven2/org/hibernate/hibernate/3.2.6.ga/hibernate-3.2.6.ga.pom

-Mike

On Sat, Aug 9, 2008 at 2:52 PM, Mark Breman <m.breman@...> wrote:
Hello Wessel,

Oke, it turned out that I had not installed an optional part of the eclipse plugin called "Maven central repository index". After I installed that I got the memory error you already described. I made the heap size bigger and that solved the memory error. Now I can look in the maven central repository. I see there that a hibernate 3.2.6.ga is available (as refered to from the activequant-dao-hibernate projects pom-file).

I tried replacing the strange version number in the projects pom-file with 3.2.6.ga (instead of "[3.2.6.ga,)") and the dependency is r