[rules-users] Compile Challenges December 20, 2009
Geoffrey De Smet
ge0ffrey.spam at gmail.com
Tue Dec 22 14:03:43 EST 2009
Pete,
That should work :)
But the jars are in the jboss repo, which sadly isn't synced to the
central maven repo.
Just try:
<repositories>
<repository>
<id>repository.jboss.org</id>
<url>http://repository.jboss.org/maven2</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
<releases>
<enabled>true</enabled>
</releases>
</repository>
...
</repositories>
...
<dependency>
<groupId>org.drools.solver</groupId>
<artifactId>drools-solver-core</artifactId>
<version>5.1.0-m1</version>
</dependency>
Once m2 is out, solver will be renamed to planner:
<repositories>
<repository>
<id>repository.jboss.org</id>
<url>http://repository.jboss.org/maven2</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
<releases>
<enabled>true</enabled>
</releases>
</repository>
...
</repositories>
...
<dependency>
<groupId>org.drools.planner</groupId>
<artifactId>drools-planner-core</artifactId>
<version>5.1.0-m2</version>
</dependency>
With kind regards,
Geoffrey De Smet
Pete Carapetyan schreef:
> Geoffrey I must be making this much more difficult to understand.
>
> All I want to do is the same thing I do for any other project which I
> use, and have used for years.
>
> Add a dependency to the project. Then the code compiles. Nothing more
> complex than that should be required for a user (does not apply to
> drools developer which I am not)
>
> like this, if I was going to add poi, for example:
>
> <dependency>
> <groupId>org.apache.poi</groupId>
> <artifactId>poi</artifactId>
> <version>3.5-FINAL</version>
> </dependency>
>
> Again, apologies for making this seem complex.
>
> On Tue, Dec 22, 2009 at 12:40 PM, Geoffrey De Smet
> <ge0ffrey.spam at gmail.com> wrote:
>>
>>
>> Pete Carapetyan schreef:
>>
>>> Someday maybe you'll just be able to use drools planner examples in a
>>> single easy to use maven already eclipsed project without having to
>>> download and build source from svn. When it is time, it will happen.
>>> If it was that important to me, I guess I'd just do it eh?
>> The drools planner zip has a runExamples.sh, but it doesn't include
>> source code.
>> The drools sources zip has the planner source code and all the other
>> drools source code (like SVN) but you need to build drools itself before
>> building the examples.
>>
>> What would make it easier?
>>
>> 1) A zip with only the examples (no drools or drools planner code) that
>> has a pom which has the jboss repository already included? So it's just
>> a matter of opening the pom.xml?
>> Or even better, include eclipse, intellij and netbeans files too?
>>
>> 2) Or would a maven archetype be even better? The problem with maven
>> archetypes is it's maintance: it's get forgotten and in the end the
>> archetype becomes stale.
>>
>> I won't go for option 2) any time soon, but I wonder if we can somehow
>> configure the assembly plugin to do 1) and if there is intrest in such a
>> download.
>>
>> With kind regards,
>> Geoffrey De Smet
>>
>> _______________________________________________
>> rules-users mailing list
>> rules-users at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/rules-users
>>
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
More information about the rules-users
mailing list