Maven Archetypes for Mobicents 2.3.0

92 views
Skip to first unread message

ionut.andras

unread,
Feb 24, 2011, 3:53:26 AM2/24/11
to mobicent...@googlegroups.com
Hi,

Can you tell me where I can get the maven archetypes for Mobicents 2.3.0?
What about JAIN SLEE specifications versions? What is the latest finished and what is work in progress?
FRom what I know: 1.1 finished, 2.0 work in progress. Am I wrong?

Thanks  a lot.

ionut.andras

unread,
Feb 25, 2011, 5:16:54 AM2/25/11
to mobicent...@googlegroups.com
Is there such a stupid question nobody is answering?

I'm asking that question because I've had a lot of troubles trying to integrate maven archetypes on windows
using this tutorial
http://groups.google.com/group/mobicents-public/web/jainslee-maven-archetypes
 
and this XML:

 <?xml version=”1.0? encoding=”UTF-8??>

<archetype-catalog>

            <archetypes>

                        <archetype>

                                    <groupId>org.mobicents.tools.maven.archetype.slee</groupId>

                                    <artifactId>jain-slee-11-service</artifactId>

                                    <version>1.0.0.BETA2-SNAPSHOT</version>

                                    <repository>http://repository.jboss.org/maven2</repository>

                        </archetype>

                        <archetype>

                                    <groupId>org.mobicents.tools.maven.archetype.slee</groupId>

                                    <artifactId>jain-slee-11-library</artifactId>

                                    <version>1.0.0.BETA2-SNAPSHOT</version>

                                    <repository>http://repository.jboss.org/maven2</repository>

                        </archetype>

                        <archetype>

                                    <groupId>org.mobicents.tools.maven.archetype.slee</groupId>

                                    <artifactId>jain-slee-11-ra</artifactId>

                                    <version>1.0.0.BETA2-SNAPSHOT</version>

                                    <repository>http://repository.jboss.org/maven2</repository>

                        </archetype>

                        <archetype>

                                    <groupId>org.mobicents.tools.maven.archetype.slee</groupId>

                                    <artifactId>jain-slee-11-profile</artifactId>

                                    <version>1.0.0.BETA2-SNAPSHOT</version>

                                    <repository>http://repository.jboss.org/maven2</repository>

                        </archetype>

        <archetype>

            <groupId>org.mobicents.tools.maven.archetype.slee</groupId>

            <artifactId>jain-slee-basic-service</artifactId>

            <version>1.0.0.BETA1</version>

            <repository>http://repository.jboss.org/maven2</repository>

        </archetype>

        <archetype>

            <groupId>org.mobicents.tools.maven.archetype.slee</groupId>

            <artifactId>jain-slee-basic-ra</artifactId>

            <version>1.0.0.BETA1</version>

            <repository>http://repository.jboss.org/maven2</repository>

        </archetype>                   

            </archetypes>

</archetype-catalog>


Finally I've made it working with this XML:

<?xml version="1.0" encoding="UTF-8"?><archetype-catalog>

  <archetypes>

    <archetype>

      <groupId>org.mobicents.tools.maven.archetype.slee</groupId>

      <artifactId>jain-slee-basic-service</artifactId>

      <version>1.0.0.BETA2-SNAPSHOT</version>

      <description>Mobicents :: Tools :: SLEE :: Maven2 Archetypes :: jain-slee-basic-service</description>

    </archetype>

    <archetype>

      <groupId>org.mobicents.tools.maven.archetype.slee</groupId>

      <artifactId>jain-slee-basic-ra</artifactId>

      <version>1.0.0.BETA2-SNAPSHOT</version>

      <description>Mobicents :: Tools :: SLEE :: Maven2 Archetypes :: jain-slee-basic-ra</description>

    </archetype>

    <archetype>

      <groupId>org.mobicents.tools.maven.archetype.slee</groupId>

      <artifactId>jain-slee-11-library</artifactId>

      <version>1.0.0.BETA2-SNAPSHOT</version>

      <description>Mobicents :: Tools :: SLEE :: Maven2 Archetypes :: jain-slee-11-library</description>

    </archetype>

    <archetype>

      <groupId>org.mobicents.tools.maven.archetype.slee</groupId>

      <artifactId>jain-slee-11-profile</artifactId>

      <version>1.0.0.BETA2-SNAPSHOT</version>

      <description>Mobicents :: Tools :: SLEE :: Maven2 Archetypes :: jain-slee-11-profile</description>

    </archetype>

    <archetype>

      <groupId>org.mobicents.tools.maven.archetype.slee</groupId>

      <artifactId>jain-slee-11-ra</artifactId>

      <version>1.0.0.BETA2-SNAPSHOT</version>

      <description>Mobicents :: Tools :: SLEE :: Maven2 Archetypes :: jain-slee-11-ra</description>

    </archetype>

    <archetype>

      <groupId>org.mobicents.tools.maven.archetype.slee</groupId>

      <artifactId>jain-slee-11-service</artifactId>

      <version>1.0.0.BETA2-SNAPSHOT</version>

      <description>Mobicents :: Tools :: SLEE :: Maven2 Archetypes :: jain-slee-11-service</description>

    </archetype>

  </archetypes>

</archetype-catalog>

So, seeing that is a lot of outdated documentation on the internet, I think asking
for a clarification is a fair question.

Please answer to this

Eduardo Martins

unread,
Feb 25, 2011, 5:27:39 AM2/25/11
to mobicent...@googlegroups.com, ionut.andras
I don't think it is stupid, probably you got no reply yet (only 1 day
passed!) because:

a) some don't care about these archetypes

b) some are too busy to reply properly

I'm am on b side.

-- Eduardo
..............................................
http://emmartins.blogspot.com
http://redhat.com/solutions/telco

Bartosz Baranowski

unread,
Feb 25, 2011, 5:28:58 AM2/25/11
to mobicent...@googlegroups.com
Sorry missed this. There was almost no interest in archetypes for some time now, so we did not update them. 
"11" in archetype names gives hint about xml descriptors which will be used - that is, compliant with 1.1 specification, not version of container. 

I have no clue why with repository tag it does not work, did not face such issue. Will try to get some spare time to test and update doc.


Bartosz Baranowski
JBoss R & D
==================================
Word of criticism meant to improve is always step forward.

Andras Ionut

unread,
Feb 25, 2011, 8:12:41 AM2/25/11
to mobicent...@googlegroups.com
Thanks everyone for the answer. Hope to see updates soon.
I've started with maven because when I've started using mobicents few months ago eclipslee plugin
seemed to me rather old and seemed that maven is updating.

Now my question is:
What is the right thing to do:
1. continue using maven archetypes to create projects and use maven for eclipse?
2. switch to eclipslee and use it's way of generating projects?

eclipslsee projects are compatible with ones created in maven or it's complicated to migrate?

Thanks a lot and waiting for an answer

Bartosz Baranowski

unread,
Feb 28, 2011, 4:37:37 AM2/28/11
to mobicent...@googlegroups.com, Andras Ionut
Inline.

Bartosz Baranowski
JBoss R & D
==================================
Word of criticism meant to improve is always step forward.


On Fri, Feb 25, 2011 at 2:12 PM, Andras Ionut <ionut....@gmail.com> wrote:
Thanks everyone for the answer. Hope to see updates soon.
I've started with maven because when I've started using mobicents few months ago eclipslee plugin
seemed to me rather old and seemed that maven is updating.

Now my question is:
What is the right thing to do:
1. continue using maven archetypes to create projects and use maven for eclipse?
2. switch to eclipslee and use it's way of generating projects?

That really depends on how comfortable are you with direct edit of XML descriptors.
 
eclipslsee projects are compatible with ones created in maven or it's complicated to migrate?


Archetypes dont create projects, it creates only template with poms and some example java files(which actually are part of descriptors). To create project you will have to use eclipse plugin.

EclipseSLEE also does not create specific project, it just adds dialogs to create SLEE components step by step or with GUI edit options.

You can use archetype to create module, than use eclipse plugin(mvn mobicents:eclipse) to generate project files and import as project into eclipse
 
Thanks a lot and waiting for an answer


Just updated source for 1.1 archetypes. To clarify it. 1.1 build proper 1.1 services/modules. By default its based on 2.3.0 release. However when module is generate from archetype you can change versions of used dependencies(all of them), ie. update it to 2.3.1 or whatever you desire.

RA archetype source code depends on Mobicents FT RA framework.


Ariel Guerrero

unread,
Mar 2, 2011, 4:25:38 AM3/2/11
to mobicent...@googlegroups.com, Bartosz Baranowski, Andras Ionut
In this http://community.jboss.org/wiki/MobicentsJAINSLEEMavenArchetypes
the archetype-catalog.xml, in this tutorial dosn't have the reposytory.
Can you tell me what is the repository definition.
Normally i am using 
        <archetype>
            <groupId>org.mobicents.tools.maven.archetype.slee</groupId>
            <artifactId>jain-slee-basic-service</artifactId>
            <version>1.0.0.BETA2-SNAPSHOT</version>
            <repository>http://repository.jboss.org/nexus/content/groups/public-jboss/</repository>
        </archetype>

But it dosn't have support for mobicents.2.3.0.FINAL, y am only see 1.2.7.GA (by the way, what's the meaning of GA?)

I have the next error
C:\Teste\ hello-world>mvn mobicents:eclipse
[INFO] Scanning for projects...
-server/2.3.0/mobicents-jainslee-server-2.3.0.pom
[INFO] Unable to find resource 'org.mobicents:mobicents-jainslee-server:pom:2.3.
0' in repository jboss (http://repository.jboss.org/maven2)
er/2.3.0/mobicents-jainslee-server-2.3.0.pom
[INFO] Unable to find resource 'org.mobicents:mobicents-jainslee-server:pom:2.3.
0' in repository central (http://repo1.maven.org/maven2)
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).


Project ID: org.mobicents:mobicents-jainslee-server

Reason: POM 'org.mobicents:mobicents-jainslee-server' not found in repository: U
nable to download the artifact from any repository

  org.mobicents:mobicents-jainslee-server:pom:2.3.0

from the specified remote repositories:
  jboss-snapshots (http://snapshots.jboss.org/maven2),

 for project org.mobicents:mobicents-jainslee-server


[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.reactor.MavenExecutionException: POM 'org.mobicents:mobicents-j
ainslee-server' not found in repository: Unable to download the artifact from an
y repository

  org.mobicents:mobicents-jainslee-server:pom:2.3.0

from the specified remote repositories:
  jboss-snapshots (http://snapshots.jboss.org/maven2),

 for project org.mobicents:mobicents-jainslee-server
        at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:421)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:295)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:132)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:290)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)

Bartosz Baranowski

unread,
Mar 2, 2011, 5:09:30 AM3/2/11
to Ariel Guerrero, mobicent...@googlegroups.com, Andras Ionut
Hit wrong button with original reply. Its there, its just been folded for some reason, removed and added again, seems fixed in article.


<archetype>

<groupId>org.mobicents.tools.maven.archetype.slee</groupId>

<artifactId>jain-slee-11-ra</artifactId>


<version>1.0.0.BETA2-SNAPSHOT</version>

<repository>http://repository.jboss.org/nexus/content/groups/public-jboss/

 
</repository>


</archetype>


Bartosz Baranowski
JBoss R & D
==================================
Word of criticism meant to improve is always step forward.


Reply all
Reply to author
Forward
0 new messages