Hi Gert-

Thanks for the response.

On Sep 28, 2007, at 1:52 AM, Gert Vanthienen wrote:

Daryl,


In the current release (3.1.2), there is no Maven archetype for creating a Drools SU. You can use the generic servicemix-service- unit archetype and manually add the dependency for servicemix- drools (have a look at http://incubator.apache.org/servicemix/23- beginner-creating-our-first-su-module.html and http:// incubator.apache.org/servicemix/24-beginner-configuring-the- servicemix-file-su.html for an example.

Another option is to build a 3.2-SNAPSHOT yourself, which does come with a predefined servicemix-drools-service-unit archetype.

I did build a 3.2-SNAPSHOT and had just looked into the archetypes directory and saw that it was indeed there. So my question now is, how do I change the command to get it to work? Here is what I used at first:

C:\\sandbox>mvn archetype:create - DarchetypeGroupId=org.apache.servicemix.tooling -Darc hetypeArtificactId=servicemix-drools-service-unit - DgroupId=com.funddevelopmentservices.sandbox -Dar
tifactId=drools-su-example

I then tried specifically referring to the version:

C:\sandbox>mvn archetype:create - DarchetypeGroupId=org.apache.servicemix.tooling -Darc hetypeArtificactId=servicemix-drools-service-unit - DgroupId=com.funddevelopmentservices.sandbox -Dar
tifactId=drools-su-example -Dversion=3.2-SNAPSHOT

but both time I got the following:

[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

GroupId: org.apache.servicemix.tooling
ArtifactId: maven-archetype-quickstart
Version: RELEASE

Reason: Unable to determine the release version

Try downloading the file manually from the project website.

Then, install it using the command:
mvn install:install-file -DgroupId=org.apache.servicemix.tooling -DartifactId=maven-archetype-qu
ickstart \
        -Dversion=RELEASE -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy- file -DgroupId=org.apache.servicemix.tooling -DartifactId=maven- archetype-quickstart \
        -Dversion=RELEASE -Dpackaging=jar -Dfile=/path/to/file \
         -Durl=[url] -DrepositoryId=[id]


  org.apache.servicemix.tooling:maven-archetype-quickstart:jar:RELEASE


Thanks again for your help.

BTW, I did get the drools su working without the archetype, though the documentation page on the website is missing some key pieces. I will try to update it a bit later this morning.




Gert

Daryl Richter wrote:
Hi-
I was trying to create a new unit using the servicemix-drools- service-unit archetype as described on this page: http:// incubator.apache.org/servicemix/maven-archetypes.html. I kept getting a failed to resolve artifact error, so I browsed the maven repo at http://people.apache.org/repo/m2-incubating- repository/org/apache/servicemix/tooling/ and I saw a bunch of archetypes but none for drools. Any ideas? Is the web page incorrect and there is no drools archetype?

--
Daryl
http://itsallsemantics.com

"Hell, there are no rules here-- we're trying to accomplish something."
    -- Thomas A. Edison



Reply via email to