You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by pa...@centrum.cz on 2008/02/14 21:56:57 UTC

maven repository

Hello,

using jestspeed-2.1.3
Maven version: 2.0.8


I'm new to jetspeed, my problem is that 
I can't figure out how to make custom build
using maven2 without maven repository from JetspeedTraining.
This JetspeedTraining is nowhere visibly to be found, I found it's 
location on forums.

With this (JetspeedTraining) maven repository building is OK.
But is it even possible without it?

All my attempts failed without this repo.

It also looks to me that there is no need to download anything manually
that by issuing command 

mvn archetype:create -DarchetypeGroupId=org.apache.portals.jetspeed-2 -DarchetypeArtifactId=portal-archetype -DarchetypeVersion=2.1.3 -DgroupId=myportalgroup -DartifactId=myportaltest -Dversion=1.0

new portal is created, than from it's folder myportaltest command

mvn -P tomcat,min

the portal itself is compiled and deployed, donwloaded from somewhere




my settings.xml for unsucessful builds, the repo is commented.



<settings xmlns="http://maven.apache.org/POM/4.0.0">

    <!-- Local Repository Location -->

    
<!--     <localRepository>/home/vlinhart/diplomka/jetspeed/jetexpress/JetspeedTraining/maven/repository</localRepository> -->
<!--     <localRepository>/home/vlinhart/diplomka/jetspeed/maven/repo</localRepository> -->
    

    <!-- Jetspeed-2 Profiles -->

    <profiles>

        <!-- Jetspeed Settings Profile -->
        <profile>
            <id>jetspeed-settings</id>
            <activation>
                <activeByDefault>true</activeByDefault>
            </activation>
            <properties>

                <org.apache.jetspeed.server.home>/home/vlinhart/diplomka/jetspeed/apache-tomcat-5.5.20</org.apache.jetspeed.server.home>
                <org.apache.jetspeed.catalina.version.major>5.5</org.apache.jetspeed.catalina.version.major>
                <org.apache.jetspeed.services.autodeployment.server>localhost</org.apache.jetspeed.services.autodeployment.server>
                <org.apache.jetspeed.services.autodeployment.port>8080</org.apache.jetspeed.services.autodeployment.port>
                <!-- tomcat-users.xml must include a user with the manager role -->
                <org.apache.jetspeed.services.autodeployment.user>j2deployer</org.apache.jetspeed.services.autodeployment.user>
                <org.apache.jetspeed.services.autodeployment.password>toor</org.apache.jetspeed.services.autodeployment.password>

                <org.apache.jetspeed.production.jdbc.drivers.path>${org.apache.jetspeed.server.home}/shared/lib/derby-10.1.1.0.jar</org.apache.jetspeed.production.jdbc.drivers.path>
                <org.apache.jetspeed.production.database.default.name>derby</org.apache.jetspeed.production.database.default.name>
                <org.apache.jetspeed.production.database.url>jdbc:derby:/home/vlinhart/diplomka/jetspeed/db;create=true</org.apache.jetspeed.production.database.url>
                <org.apache.jetspeed.production.database.driver>org.apache.derby.jdbc.EmbeddedDriver</org.apache.jetspeed.production.database.driver>
                <org.apache.jetspeed.production.database.user></org.apache.jetspeed.production.database.user>
                <org.apache.jetspeed.production.database.password></org.apache.jetspeed.production.database.password>
    
            </properties>
        </profile>

     </profiles>
    <activeProfiles>
    </activeProfiles>

</settings>


what is the binary download for?

sorry for all the questions, but tutorials are not clear enough for me.


Thanks for help,

Vladimir Linhart


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org


Re: maven repository

Posted by pa...@centrum.cz.
OK, 

my problems were solved! 
when I discovered that java 1.6_03 32bit for building on linux is NOT working,
I downloaded java 1.5 and suddenly all maven2 builds are successful.

It would have been great to have this information sooner. Can you please update
the web pages? It's stated there that java 1.4+ will be fine, it's not completly 
true. It would save time to many people..

Vladimir Linhart





______________________________________________________________
> Od: pandu@centrum.cz
> Komu: &quot;Jetspeed Users List&quot; <je...@portals.apache.org>
> Datum: 15.02.2008 11:41
> Předmět: Re: maven repository
>
>>In order to build with Maven, a Maven repository is required to get  all
>dependencies
>>
>But why isn't this repo included in any download? how can one 
>build jetspeed without it? using the maven
>
>>> what is the binary download for?
>>>
>>There are binary downloads for installers of demo portals as well as 
>binary downloads of the entire build including source and documentation
>>
>>http://portals.apache.org/jetspeed-2/download.html
>>
>I know how to use the installer, but with the binary build, I don't know how to deploy to tomcat.
>
>thanks a lot,
>
>Vladimir Linhart
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
>For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org


RE: maven repository

Posted by Mohan Kannapareddy <km...@gmail.com>.
No, the reason it didn't work (which I am still not sure) is due to the Maven-2 team 
releasing the plugin with download defaulting to the newer version of the plugin
(archetype). But if you give the "full" plugin resolution as below it will *fix* itself
 to the exact version, so no implicit assumptions. (This is not a J2 issue) 
 search for "Better Builds With Maven"  which is a free download with registration,
 it will help with the Maven 2 build process.

Cheers
mohan

-----Original Message-----
From: pandu@centrum.cz [mailto:pandu@centrum.cz] 
Sent: Saturday, February 23, 2008 3:21 PM
To: Jetspeed Users List
Subject: RE: maven repository

Hello,

thanks, it worked! :-) 
But when will it stop working? Next update? Tomorrow?

It's clearly visible that it's pretty hard to use this software,
basic stuff isn't documented properly.

Vladimir


______________________________________________________________
> Od: kmoh.raj@gmail.com
> Komu: &quot;'Jetspeed Users List'&quot; <je...@portals.apache.org>
> Datum: 23.02.2008 21:01
> Predmet: RE: maven repository
>
>ok, here it goes again. Please *note* there is *NO* space between the ":" (it is my outlook 
>formatter), I just tried it and it works, also the groupId was wrong in my previous:
>
>mvn org.apache.maven.plugins:maven-archetype-plugin:1.0-alpha-7:create -D.....
>
>Cheers
>Mohan
>
>
>-----Original Message-----
>From: pandu@centrum.cz [mailto:pandu@centrum.cz] 
>Sent: Saturday, February 23, 2008 5:53 AM
>To: Jetspeed Users List
>Subject: RE: maven repository
>
>So now the command looks like this
>
>mvn -e org.apache.maven.archetype: maven-archetype-plugin: 1.0-alpha-7:create -DarchetypeGroupId=org.apache.portals.jetspeed-2 -DarchetypeArtifactId=portal-archetype -DarchetypeVersion=2.1.3 -DgroupId=myportalgroup -DartifactId=myportal -Dversion=1.0
>
>and the error is the same
>
>[ERROR] BUILD FAILURE
>[INFO] ------------------------------------------------------------------------
>[INFO] Invalid task 'org.apache.maven.archetype:': you must specify a valid lifecycle phase, or a goal in the format plugin:goal or pluginGroupId:pluginArtifactId:pluginVersion:goal
>[INFO] ------------------------------------------------------------------------
>[INFO] Trace
>org.apache.maven.BuildFailureException: Invalid task 'org.apache.maven.archetype:': you must specify a valid lifecycle phase, or a goal in the format plugin:goal or pluginGroupId:pluginArtifactId:pluginVersion:goal
>
>but the other way with specifying ANY repo works just fine.
>
>
>______________________________________________________________
>> Od: kmoh.raj@gmail.com
>> Komu: &quot;'Jetspeed Users List'&quot; <je...@portals.apache.org>
>> Datum: 23.02.2008 02:08
>> Predmet: RE: maven repository
>>
>>Oops sorry I missed the -plugin it should be:
>>  
>>mvn -e org.apache.maven.archetype: maven-archetype-plugin: 1.0-alpha-7:create ....
>>
>>-----Original Message-----
>>From: pandu@centrum.cz [mailto:pandu@centrum.cz] 
>>Sent: Friday, February 22, 2008 6:24 PM
>>To: Jetspeed Users List
>>Subject: RE: maven repository
>>
>>Here we go,
>>
>>mvn -e org.apache.maven.archetype: maven-archetype: 1.0-alpha-7:create -DarchetypeGroupId=org.apache.portals.jetspeed-2 -DarchetypeArtifactId=portal-archetype -DarchetypeVersion=2.1.3 -DgroupId=myportalgroup -DartifactId=myportal -Dversion=1.0
>>
>>with -e parameter it's more sexy trace
>>
>>+ Error stacktraces are turned on.
>>[INFO] Scanning for projects...
>>[INFO] ------------------------------------------------------------------------
>>[ERROR] BUILD FAILURE
>>[INFO] ------------------------------------------------------------------------
>>[INFO] Invalid task 'org.apache.maven.archetype:': you must specify a valid lifecycle phase, or a goal in the format plugin:goal or pluginGroupId:pluginArtifactId:pluginVersion:goal
>>[INFO] ------------------------------------------------------------------------
>>[INFO] Trace
>>org.apache.maven.BuildFailureException: Invalid task 'org.apache.maven.archetype:': you must specify a valid lifecycle phase, or a goal in the format plugin:goal or pluginGroupId:pluginArtifactId:pluginVersion:goal
>>        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1515)
>>        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(DefaultLifecycleExecutor.java:386)
>>        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:138)
>>        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333)
>>        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126)
>>        at org.apache.maven.cli.MavenCli.main(MavenCli.java:282)
>>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>        at java.lang.reflect.Method.invoke(Method.java:585)
>>        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)
>>        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
>>[INFO] ------------------------------------------------------------------------
>>[INFO] Total time: < 1 second
>>[INFO] Finished at: Sat Feb 23 00:15:10 CET 2008
>>[INFO] Final Memory: 1M/2M
>>[INFO] ------------------------------------------------------------------------
>>
>>it should be exactly as you suggested,
>>
>>my settings.xml
>>
>><settings xmlns="http://maven.apache.org/POM/4.0.0">
>>
>>    <profiles>
>>
>>        <!-- Jetspeed Settings Profile -->
>>        <profile>
>>            <id>jetspeed-settings</id>
>>            <activation>
>>                <activeByDefault>true</activeByDefault>
>>            </activation>
>>            <properties>
>>
>>                <org.apache.jetspeed.server.home>/home/vlinhart/diplomka/jetspeed/apache-tomcat-5.5.20</org.apache.jetspeed.server.home>
>>                <org.apache.jetspeed.catalina.version.major>5.5</org.apache.jetspeed.catalina.version.major>
>>                <org.apache.jetspeed.services.autodeployment.server>localhost</org.apache.jetspeed.services.autodeployment.server>
>>                <org.apache.jetspeed.services.autodeployment.port>8080</org.apache.jetspeed.services.autodeployment.port>
>>                <!-- tomcat-users.xml must include a user with the manager role -->
>>                <org.apache.jetspeed.services.autodeployment.user>j2deployer</org.apache.jetspeed.services.autodeployment.user>
>>                <org.apache.jetspeed.services.autodeployment.password>toor</org.apache.jetspeed.services.autodeployment.password>
>>
>>                <org.apache.jetspeed.production.jdbc.drivers.path>${org.apache.jetspeed.server.home}/shared/lib/derby-10.1.1.0.jar</org.apache.jetspeed.production.jdbc.drivers.path>
>>                <org.apache.jetspeed.production.database.default.name>derby</org.apache.jetspeed.production.database.default.name>
>>                <org.apache.jetspeed.production.database.url>jdbc:derby:/home/vlinhart/diplomka/jetspeed/db;create=true</org.apache.jetspeed.production.database.url>
>>                <org.apache.jetspeed.production.database.driver>org.apache.derby.jdbc.EmbeddedDriver</org.apache.jetspeed.production.database.driver>
>>                <org.apache.jetspeed.production.database.user></org.apache.jetspeed.production.database.user>
>>                <org.apache.jetspeed.production.database.password></org.apache.jetspeed.production.database.password>
>>    
>>            </properties>
>>        </profile>
>>
>>    </profiles>
>>    <activeProfiles>
>>    </activeProfiles>
>>
>></settings>
>>
>>
>>thanks
>>______________________________________________________________
>>> Od: kmoh.raj@gmail.com
>>> Komu: &quot;'Jetspeed Users List'&quot; <je...@portals.apache.org>
>>> Datum: 22.02.2008 23:59
>>> Predmet: RE: maven repository
>>>
>>>Ok, here are some tips:
>>>  - you need *not* relocate your "local" m2 repository, by default it is <user home>/.m2/repository.
>>>    Now, you can use settings.xml with the <localRepository> element and point it to somewhere.
>>>    So make sure that if you *do* have a localRepository element in settings.xml, then please 
>>>    "browse" that folder and see if all the artifacts are present. If they are *not*, then do 
>>>    "mvn install" *again* on your j2 source, this should populate your repository with all j2
>>>    artifacts (including the portal archetype).
>>>  - second to avoid the prompt, invoke the older version of the archetype plugin *exactly* as
>>>    below:
>>>     mvn org.apache.maven.archetype: maven-archetype: 1.0-alpha-7:create <all your other -D options>
>>>    And the prompt should disappear, like I said this is new feature of the latest archetype plugin which
>>>    the maven group have for some reason pushed it, without much  warning (unless you monitor the
>>>    mailing list).
>>>
>>> Cheers
>>> Mohan
>>>
>>>
>>>-----Original Message-----
>>>From: pandu@centrum.cz [mailto:pandu@centrum.cz] 
>>>Sent: Friday, February 22, 2008 5:04 PM
>>>To: Jetspeed Users List
>>>Subject: RE: maven repository
>>>
>>>I'm afraid that this solves nothing, question still appears.
>>>
>>>But I've found some workaround. There in the http://wiki.apache.org/portals/Jetspeed2/Maven2BuildSupport
>>>
>>>"""
>>>Repository relocation
>>>
>>>While the default location of the settings.xml file should not be changed, (e.g. ~/.m2/settings.xml), one can relocate the repository using the ' <localRepository> ' element in the settings.xml file. See the settings.xml.sample file for an example. Note that the repository path must be an absolute path and not contain any property expressions.
>>>"""
>>>
>>>is said that " ... one can relocate the repository using the ' <localRepository> ' ..."
>>>but one MUST relocate the repository (anywhere), in order to successfuly execute the 
>>>
>>>mvn archetype:create -DarchetypeGroupId=org.apache.portals.jetspeed-2 -DarchetypeArtifactId=portal-archetype -DarchetypeVersion=2.1.3 -DgroupId=myportalgroup -DartifactId=myportal -Dversion=1.0
>>>
>>>command, after relocating local repo, new custom project was created.
>>>Then the command 
>>>mvn -P tomcat 
>>>can build the portal and deploy it succesfuly.
>>>
>>>What a mess!
>>>
>>>Can't it be straightforward? It's really depresing, documentation outdated, several types 
>>>of build...
>>>
>>>Hope that's gonna help someone.
>>>
>>>V
>>>
>>>
>>>
>>>
>>>______________________________________________________________
>>>> Od: kmoh.raj@gmail.com
>>>> Komu: &quot;'Jetspeed Users List'&quot; <je...@portals.apache.org>
>>>> Datum: 22.02.2008 21:39
>>>> Predmet: RE: maven repository
>>>>
>>>>Ah..they just upgraded to a new version of the archetype plugin, you can use the option
>>>>-DinteractiveMode=false
>>>>to avoid the question.
>>>>
>>>>Cheers
>>>> Mohan
>>>>
>>>>-----Original Message-----
>>>>From: pandu@centrum.cz [mailto:pandu@centrum.cz] 
>>>>Sent: Friday, February 22, 2008 12:55 PM
>>>>To: Jetspeed Users List
>>>>Subject: Re: maven repository
>>>>
>>>>There is still one problem with repository,
>>>>
>>>>how can one make his own custom build when the command
>>>>
>>>>mvn archetype:create -DarchetypeGroupId=org.apache.portals.jetspeed-2 -DarchetypeArtifactId=portal-archetype -DarchetypeVersion=2.1.3 -DgroupId=myportalgroup -DartifactId=myportal -Dversion=1.0
>>>>
>>>>produces some questions from maven:
>>>>
>>>>
>>>>[INFO] Building Jetspeed-2 Enterprise Portal
>>>>[INFO]    task-segment: [archetype:create] (aggregator-style)
>>>>[INFO] ------------------------------------------------------------------------
>>>>[INFO] Preparing archetype:create
>>>>[INFO] No goals needed for project - skipping
>>>>Downloading: http://www.bluesunrise.com/maven2/myportalgroup/wagon-http-shared/1.0-beta-2/wagon-http-shared-1.0-beta-2.pom
>>>>Downloading: http://repo1.maven.org/maven2/myportalgroup/wagon-http-shared/1.0-beta-2/wagon-http-shared-1.0-beta-2.pom
>>>>Downloading: http://www.bluesunrise.com/maven2/myportalgroup/wagon-http-shared/1.0-beta-2/wagon-http-shared-1.0-beta-2.pom
>>>>Downloading: http://repo1.maven.org/maven2/myportalgroup/wagon-http-shared/1.0-beta-2/wagon-http-shared-1.0-beta-2.pom
>>>>Downloading: http://www.bluesunrise.com/maven/myportalgroup/poms/wagon-http-shared-1.0-beta-2.pom
>>>>Downloading: http://dist.codehaus.org/myportalgroup/poms/wagon-http-shared-1.0-beta-2.pom
>>>>Downloading: http://repo1.maven.org/maven/myportalgroup/poms/wagon-http-shared-1.0-beta-2.pom
>>>>[INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
>>>>[INFO] Setting property: velocimacro.messages.on => 'false'.
>>>>[INFO] Setting property: resource.loader => 'classpath'.
>>>>[INFO] Setting property: resource.manager.logwhenfound => 'false'.
>>>>[INFO] [archetype:create]
>>>>[WARNING] No archetype repository found.
>>>>[WARNING] Specified archetype not found.
>>>>Choose archetype:
>>>>1: internal -> appfuse-basic-jsf (AppFuse archetype for creating a web application with Hibernate, Spring and JSF)
>>>>2: internal -> appfuse-basic-spring (AppFuse archetype for creating a web application with Hibernate, Spring and Spring MVC)
>>>>...
>>>>...
>>>>35: internal -> maven-archetype-sar (JBoss Service Archive)
>>>>36: internal -> wicket-archetype-quickstart (A simple Apache Wicket project)
>>>>Choose a number:  (1/2/3/4/5/6/7/8/9/10/11/12/13/14/15/16/17/18/19/20/21/22/23/24/25/26/27/28/29/30/31/32/33/34/35/36): 
>>>>
>>>>I've done the previous complete build to populate maven repo and this >>>.m2/repository/org/apache/portals/jetspeed-2/portal-archetype/2.1.3/portal-archetype-2.1.3.jar    
>>>>
>>>>archetype seems to be present.
>>>>
>>>>What am I doing wrong?
>>>>
>>>>______________________________________________________________
>>>>> Od: pandu@centrum.cz
>>>>> Komu: &quot;Jetspeed Users List&quot; <je...@portals.apache.org>
>>>>> Datum: 18.02.2008 13:51
>>>>> Predmet: Re: maven repository
>>>>>
>>>>>OK, 
>>>>>
>>>>>my problems were solved! 
>>>>>when I discovered that java 1.6_03 32bit for building on linux is NOT working,
>>>>>I downloaded java 1.5 and suddenly all maven2 builds are successful.
>>>>>
>>>>>It would have been great to have this information sooner. Can you please update
>>>>>the web pages? It's stated there that java 1.4+ will be fine, it's not completly 
>>>>>true. It would save time to many people..
>>>>>
>>>>>Vladimir Linhart
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>______________________________________________________________
>>>>>> Od: pandu@centrum.cz
>>>>>> Komu: &quot;Jetspeed Users List&quot; <je...@portals.apache.org>
>>>>>> Datum: 15.02.2008 11:41
>>>>>> Predmet: Re: maven repository
>>>>>>
>>>>>>>In order to build with Maven, a Maven repository is required to get  all
>>>>>>dependencies
>>>>>>>
>>>>>>But why isn't this repo included in any download? how can one 
>>>>>>build jetspeed without it? using the maven
>>>>>>
>>>>>>>> what is the binary download for?
>>>>>>>>
>>>>>>>There are binary downloads for installers of demo portals as well as >>>binary downloads of the entire build including source and documentation
>>>>>>>
>>>>>>>http://portals.apache.org/jetspeed-2/download.html
>>>>>>>
>>>>>>I know how to use the installer, but with the binary build, I don't know how to deploy to tomcat.
>>>>>>
>>>>>>thanks a lot,
>>>>>>
>>>>>>Vladimir Linhart
>>>>>>
>>>>>>
>>>>>>--------------------------------------------------------------------->>>>To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
>>>>>>For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>--------------------------------------------------------------------->>>>To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
>>>>>For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>>>>>
>>>>>
>>>>
>>>>
>>>>---------------------------------------------------------------------
>>>>To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
>>>>For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>>>>
>>>>
>>>>---------------------------------------------------------------------
>>>>To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
>>>>For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>>>>
>>>>
>>>
>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
>>>For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>>>
>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
>>>For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>>>
>>>
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
>>For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
>>For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>>
>>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
>For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
>For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org


RE: maven repository

Posted by pa...@centrum.cz.
Hello,

thanks, it worked! :-) 
But when will it stop working? Next update? Tomorrow?

It's clearly visible that it's pretty hard to use this software,
basic stuff isn't documented properly.

Vladimir


______________________________________________________________
> Od: kmoh.raj@gmail.com
> Komu: &quot;'Jetspeed Users List'&quot; <je...@portals.apache.org>
> Datum: 23.02.2008 21:01
> Předmět: RE: maven repository
>
>ok, here it goes again. Please *note* there is *NO* space between the ":" (it is my outlook 
>formatter), I just tried it and it works, also the groupId was wrong in my previous:
>
>mvn org.apache.maven.plugins:maven-archetype-plugin:1.0-alpha-7:create -D.....
>
>Cheers
>Mohan
>
>
>-----Original Message-----
>From: pandu@centrum.cz [mailto:pandu@centrum.cz] 
>Sent: Saturday, February 23, 2008 5:53 AM
>To: Jetspeed Users List
>Subject: RE: maven repository
>
>So now the command looks like this
>
>mvn -e org.apache.maven.archetype: maven-archetype-plugin: 1.0-alpha-7:create -DarchetypeGroupId=org.apache.portals.jetspeed-2 -DarchetypeArtifactId=portal-archetype -DarchetypeVersion=2.1.3 -DgroupId=myportalgroup -DartifactId=myportal -Dversion=1.0
>
>and the error is the same
>
>[ERROR] BUILD FAILURE
>[INFO] ------------------------------------------------------------------------
>[INFO] Invalid task 'org.apache.maven.archetype:': you must specify a valid lifecycle phase, or a goal in the format plugin:goal or pluginGroupId:pluginArtifactId:pluginVersion:goal
>[INFO] ------------------------------------------------------------------------
>[INFO] Trace
>org.apache.maven.BuildFailureException: Invalid task 'org.apache.maven.archetype:': you must specify a valid lifecycle phase, or a goal in the format plugin:goal or pluginGroupId:pluginArtifactId:pluginVersion:goal
>
>but the other way with specifying ANY repo works just fine.
>
>
>______________________________________________________________
>> Od: kmoh.raj@gmail.com
>> Komu: &quot;'Jetspeed Users List'&quot; <je...@portals.apache.org>
>> Datum: 23.02.2008 02:08
>> Predmet: RE: maven repository
>>
>>Oops sorry I missed the -plugin it should be:
>>  
>>mvn -e org.apache.maven.archetype: maven-archetype-plugin: 1.0-alpha-7:create ....
>>
>>-----Original Message-----
>>From: pandu@centrum.cz [mailto:pandu@centrum.cz] 
>>Sent: Friday, February 22, 2008 6:24 PM
>>To: Jetspeed Users List
>>Subject: RE: maven repository
>>
>>Here we go,
>>
>>mvn -e org.apache.maven.archetype: maven-archetype: 1.0-alpha-7:create -DarchetypeGroupId=org.apache.portals.jetspeed-2 -DarchetypeArtifactId=portal-archetype -DarchetypeVersion=2.1.3 -DgroupId=myportalgroup -DartifactId=myportal -Dversion=1.0
>>
>>with -e parameter it's more sexy trace
>>
>>+ Error stacktraces are turned on.
>>[INFO] Scanning for projects...
>>[INFO] ------------------------------------------------------------------------
>>[ERROR] BUILD FAILURE
>>[INFO] ------------------------------------------------------------------------
>>[INFO] Invalid task 'org.apache.maven.archetype:': you must specify a valid lifecycle phase, or a goal in the format plugin:goal or pluginGroupId:pluginArtifactId:pluginVersion:goal
>>[INFO] ------------------------------------------------------------------------
>>[INFO] Trace
>>org.apache.maven.BuildFailureException: Invalid task 'org.apache.maven.archetype:': you must specify a valid lifecycle phase, or a goal in the format plugin:goal or pluginGroupId:pluginArtifactId:pluginVersion:goal
>>        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1515)
>>        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(DefaultLifecycleExecutor.java:386)
>>        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:138)
>>        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333)
>>        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126)
>>        at org.apache.maven.cli.MavenCli.main(MavenCli.java:282)
>>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>        at java.lang.reflect.Method.invoke(Method.java:585)
>>        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)
>>        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
>>[INFO] ------------------------------------------------------------------------
>>[INFO] Total time: < 1 second
>>[INFO] Finished at: Sat Feb 23 00:15:10 CET 2008
>>[INFO] Final Memory: 1M/2M
>>[INFO] ------------------------------------------------------------------------
>>
>>it should be exactly as you suggested,
>>
>>my settings.xml
>>
>><settings xmlns="http://maven.apache.org/POM/4.0.0">
>>
>>    <profiles>
>>
>>        <!-- Jetspeed Settings Profile -->
>>        <profile>
>>            <id>jetspeed-settings</id>
>>            <activation>
>>                <activeByDefault>true</activeByDefault>
>>            </activation>
>>            <properties>
>>
>>                <org.apache.jetspeed.server.home>/home/vlinhart/diplomka/jetspeed/apache-tomcat-5.5.20</org.apache.jetspeed.server.home>
>>                <org.apache.jetspeed.catalina.version.major>5.5</org.apache.jetspeed.catalina.version.major>
>>                <org.apache.jetspeed.services.autodeployment.server>localhost</org.apache.jetspeed.services.autodeployment.server>
>>                <org.apache.jetspeed.services.autodeployment.port>8080</org.apache.jetspeed.services.autodeployment.port>
>>                <!-- tomcat-users.xml must include a user with the manager role -->
>>                <org.apache.jetspeed.services.autodeployment.user>j2deployer</org.apache.jetspeed.services.autodeployment.user>
>>                <org.apache.jetspeed.services.autodeployment.password>toor</org.apache.jetspeed.services.autodeployment.password>
>>
>>                <org.apache.jetspeed.production.jdbc.drivers.path>${org.apache.jetspeed.server.home}/shared/lib/derby-10.1.1.0.jar</org.apache.jetspeed.production.jdbc.drivers.path>
>>                <org.apache.jetspeed.production.database.default.name>derby</org.apache.jetspeed.production.database.default.name>
>>                <org.apache.jetspeed.production.database.url>jdbc:derby:/home/vlinhart/diplomka/jetspeed/db;create=true</org.apache.jetspeed.production.database.url>
>>                <org.apache.jetspeed.production.database.driver>org.apache.derby.jdbc.EmbeddedDriver</org.apache.jetspeed.production.database.driver>
>>                <org.apache.jetspeed.production.database.user></org.apache.jetspeed.production.database.user>
>>                <org.apache.jetspeed.production.database.password></org.apache.jetspeed.production.database.password>
>>    
>>            </properties>
>>        </profile>
>>
>>    </profiles>
>>    <activeProfiles>
>>    </activeProfiles>
>>
>></settings>
>>
>>
>>thanks
>>______________________________________________________________
>>> Od: kmoh.raj@gmail.com
>>> Komu: &quot;'Jetspeed Users List'&quot; <je...@portals.apache.org>
>>> Datum: 22.02.2008 23:59
>>> Predmet: RE: maven repository
>>>
>>>Ok, here are some tips:
>>>  - you need *not* relocate your "local" m2 repository, by default it is <user home>/.m2/repository.
>>>    Now, you can use settings.xml with the <localRepository> element and point it to somewhere.
>>>    So make sure that if you *do* have a localRepository element in settings.xml, then please 
>>>    "browse" that folder and see if all the artifacts are present. If they are *not*, then do 
>>>    "mvn install" *again* on your j2 source, this should populate your repository with all j2
>>>    artifacts (including the portal archetype).
>>>  - second to avoid the prompt, invoke the older version of the archetype plugin *exactly* as
>>>    below:
>>>     mvn org.apache.maven.archetype: maven-archetype: 1.0-alpha-7:create <all your other -D options>
>>>    And the prompt should disappear, like I said this is new feature of the latest archetype plugin which
>>>    the maven group have for some reason pushed it, without much  warning (unless you monitor the
>>>    mailing list).
>>>
>>> Cheers
>>> Mohan
>>>
>>>
>>>-----Original Message-----
>>>From: pandu@centrum.cz [mailto:pandu@centrum.cz] 
>>>Sent: Friday, February 22, 2008 5:04 PM
>>>To: Jetspeed Users List
>>>Subject: RE: maven repository
>>>
>>>I'm afraid that this solves nothing, question still appears.
>>>
>>>But I've found some workaround. There in the http://wiki.apache.org/portals/Jetspeed2/Maven2BuildSupport
>>>
>>>"""
>>>Repository relocation
>>>
>>>While the default location of the settings.xml file should not be changed, (e.g. ~/.m2/settings.xml), one can relocate the repository using the ' <localRepository> ' element in the settings.xml file. See the settings.xml.sample file for an example. Note that the repository path must be an absolute path and not contain any property expressions.
>>>"""
>>>
>>>is said that " ... one can relocate the repository using the ' <localRepository> ' ..."
>>>but one MUST relocate the repository (anywhere), in order to successfuly execute the 
>>>
>>>mvn archetype:create -DarchetypeGroupId=org.apache.portals.jetspeed-2 -DarchetypeArtifactId=portal-archetype -DarchetypeVersion=2.1.3 -DgroupId=myportalgroup -DartifactId=myportal -Dversion=1.0
>>>
>>>command, after relocating local repo, new custom project was created.
>>>Then the command 
>>>mvn -P tomcat 
>>>can build the portal and deploy it succesfuly.
>>>
>>>What a mess!
>>>
>>>Can't it be straightforward? It's really depresing, documentation outdated, several types 
>>>of build...
>>>
>>>Hope that's gonna help someone.
>>>
>>>V
>>>
>>>
>>>
>>>
>>>______________________________________________________________
>>>> Od: kmoh.raj@gmail.com
>>>> Komu: &quot;'Jetspeed Users List'&quot; <je...@portals.apache.org>
>>>> Datum: 22.02.2008 21:39
>>>> Predmet: RE: maven repository
>>>>
>>>>Ah..they just upgraded to a new version of the archetype plugin, you can use the option
>>>>-DinteractiveMode=false
>>>>to avoid the question.
>>>>
>>>>Cheers
>>>> Mohan
>>>>
>>>>-----Original Message-----
>>>>From: pandu@centrum.cz [mailto:pandu@centrum.cz] 
>>>>Sent: Friday, February 22, 2008 12:55 PM
>>>>To: Jetspeed Users List
>>>>Subject: Re: maven repository
>>>>
>>>>There is still one problem with repository,
>>>>
>>>>how can one make his own custom build when the command
>>>>
>>>>mvn archetype:create -DarchetypeGroupId=org.apache.portals.jetspeed-2 -DarchetypeArtifactId=portal-archetype -DarchetypeVersion=2.1.3 -DgroupId=myportalgroup -DartifactId=myportal -Dversion=1.0
>>>>
>>>>produces some questions from maven:
>>>>
>>>>
>>>>[INFO] Building Jetspeed-2 Enterprise Portal
>>>>[INFO]    task-segment: [archetype:create] (aggregator-style)
>>>>[INFO] ------------------------------------------------------------------------
>>>>[INFO] Preparing archetype:create
>>>>[INFO] No goals needed for project - skipping
>>>>Downloading: http://www.bluesunrise.com/maven2/myportalgroup/wagon-http-shared/1.0-beta-2/wagon-http-shared-1.0-beta-2.pom
>>>>Downloading: http://repo1.maven.org/maven2/myportalgroup/wagon-http-shared/1.0-beta-2/wagon-http-shared-1.0-beta-2.pom
>>>>Downloading: http://www.bluesunrise.com/maven2/myportalgroup/wagon-http-shared/1.0-beta-2/wagon-http-shared-1.0-beta-2.pom
>>>>Downloading: http://repo1.maven.org/maven2/myportalgroup/wagon-http-shared/1.0-beta-2/wagon-http-shared-1.0-beta-2.pom
>>>>Downloading: http://www.bluesunrise.com/maven/myportalgroup/poms/wagon-http-shared-1.0-beta-2.pom
>>>>Downloading: http://dist.codehaus.org/myportalgroup/poms/wagon-http-shared-1.0-beta-2.pom
>>>>Downloading: http://repo1.maven.org/maven/myportalgroup/poms/wagon-http-shared-1.0-beta-2.pom
>>>>[INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
>>>>[INFO] Setting property: velocimacro.messages.on => 'false'.
>>>>[INFO] Setting property: resource.loader => 'classpath'.
>>>>[INFO] Setting property: resource.manager.logwhenfound => 'false'.
>>>>[INFO] [archetype:create]
>>>>[WARNING] No archetype repository found.
>>>>[WARNING] Specified archetype not found.
>>>>Choose archetype:
>>>>1: internal -> appfuse-basic-jsf (AppFuse archetype for creating a web application with Hibernate, Spring and JSF)
>>>>2: internal -> appfuse-basic-spring (AppFuse archetype for creating a web application with Hibernate, Spring and Spring MVC)
>>>>...
>>>>...
>>>>35: internal -> maven-archetype-sar (JBoss Service Archive)
>>>>36: internal -> wicket-archetype-quickstart (A simple Apache Wicket project)
>>>>Choose a number:  (1/2/3/4/5/6/7/8/9/10/11/12/13/14/15/16/17/18/19/20/21/22/23/24/25/26/27/28/29/30/31/32/33/34/35/36): 
>>>>
>>>>I've done the previous complete build to populate maven repo and this >>>.m2/repository/org/apache/portals/jetspeed-2/portal-archetype/2.1.3/portal-archetype-2.1.3.jar    
>>>>
>>>>archetype seems to be present.
>>>>
>>>>What am I doing wrong?
>>>>
>>>>______________________________________________________________
>>>>> Od: pandu@centrum.cz
>>>>> Komu: &quot;Jetspeed Users List&quot; <je...@portals.apache.org>
>>>>> Datum: 18.02.2008 13:51
>>>>> Predmet: Re: maven repository
>>>>>
>>>>>OK, 
>>>>>
>>>>>my problems were solved! 
>>>>>when I discovered that java 1.6_03 32bit for building on linux is NOT working,
>>>>>I downloaded java 1.5 and suddenly all maven2 builds are successful.
>>>>>
>>>>>It would have been great to have this information sooner. Can you please update
>>>>>the web pages? It's stated there that java 1.4+ will be fine, it's not completly 
>>>>>true. It would save time to many people..
>>>>>
>>>>>Vladimir Linhart
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>______________________________________________________________
>>>>>> Od: pandu@centrum.cz
>>>>>> Komu: &quot;Jetspeed Users List&quot; <je...@portals.apache.org>
>>>>>> Datum: 15.02.2008 11:41
>>>>>> Predmet: Re: maven repository
>>>>>>
>>>>>>>In order to build with Maven, a Maven repository is required to get  all
>>>>>>dependencies
>>>>>>>
>>>>>>But why isn't this repo included in any download? how can one 
>>>>>>build jetspeed without it? using the maven
>>>>>>
>>>>>>>> what is the binary download for?
>>>>>>>>
>>>>>>>There are binary downloads for installers of demo portals as well as >>>binary downloads of the entire build including source and documentation
>>>>>>>
>>>>>>>http://portals.apache.org/jetspeed-2/download.html
>>>>>>>
>>>>>>I know how to use the installer, but with the binary build, I don't know how to deploy to tomcat.
>>>>>>
>>>>>>thanks a lot,
>>>>>>
>>>>>>Vladimir Linhart
>>>>>>
>>>>>>
>>>>>>--------------------------------------------------------------------->>>>To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
>>>>>>For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>--------------------------------------------------------------------->>>>To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
>>>>>For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>>>>>
>>>>>
>>>>
>>>>
>>>>---------------------------------------------------------------------
>>>>To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
>>>>For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>>>>
>>>>
>>>>---------------------------------------------------------------------
>>>>To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
>>>>For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>>>>
>>>>
>>>
>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
>>>For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>>>
>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
>>>For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>>>
>>>
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
>>For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
>>For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>>
>>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
>For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
>For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org


RE: maven repository

Posted by Mohan Kannapareddy <km...@gmail.com>.
ok, here it goes again. Please *note* there is *NO* space between the ":" (it is my outlook 
formatter), I just tried it and it works, also the groupId was wrong in my previous:

mvn org.apache.maven.plugins:maven-archetype-plugin:1.0-alpha-7:create -D.....

Cheers
Mohan


-----Original Message-----
From: pandu@centrum.cz [mailto:pandu@centrum.cz] 
Sent: Saturday, February 23, 2008 5:53 AM
To: Jetspeed Users List
Subject: RE: maven repository

So now the command looks like this

mvn -e org.apache.maven.archetype: maven-archetype-plugin: 1.0-alpha-7:create -DarchetypeGroupId=org.apache.portals.jetspeed-2 -DarchetypeArtifactId=portal-archetype -DarchetypeVersion=2.1.3 -DgroupId=myportalgroup -DartifactId=myportal -Dversion=1.0

and the error is the same

[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Invalid task 'org.apache.maven.archetype:': you must specify a valid lifecycle phase, or a goal in the format plugin:goal or pluginGroupId:pluginArtifactId:pluginVersion:goal
[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.BuildFailureException: Invalid task 'org.apache.maven.archetype:': you must specify a valid lifecycle phase, or a goal in the format plugin:goal or pluginGroupId:pluginArtifactId:pluginVersion:goal

but the other way with specifying ANY repo works just fine.


______________________________________________________________
> Od: kmoh.raj@gmail.com
> Komu: &quot;'Jetspeed Users List'&quot; <je...@portals.apache.org>
> Datum: 23.02.2008 02:08
> Predmet: RE: maven repository
>
>Oops sorry I missed the -plugin it should be:
>  
>mvn -e org.apache.maven.archetype: maven-archetype-plugin: 1.0-alpha-7:create ....
>
>-----Original Message-----
>From: pandu@centrum.cz [mailto:pandu@centrum.cz] 
>Sent: Friday, February 22, 2008 6:24 PM
>To: Jetspeed Users List
>Subject: RE: maven repository
>
>Here we go,
>
>mvn -e org.apache.maven.archetype: maven-archetype: 1.0-alpha-7:create -DarchetypeGroupId=org.apache.portals.jetspeed-2 -DarchetypeArtifactId=portal-archetype -DarchetypeVersion=2.1.3 -DgroupId=myportalgroup -DartifactId=myportal -Dversion=1.0
>
>with -e parameter it's more sexy trace
>
>+ Error stacktraces are turned on.
>[INFO] Scanning for projects...
>[INFO] ------------------------------------------------------------------------
>[ERROR] BUILD FAILURE
>[INFO] ------------------------------------------------------------------------
>[INFO] Invalid task 'org.apache.maven.archetype:': you must specify a valid lifecycle phase, or a goal in the format plugin:goal or pluginGroupId:pluginArtifactId:pluginVersion:goal
>[INFO] ------------------------------------------------------------------------
>[INFO] Trace
>org.apache.maven.BuildFailureException: Invalid task 'org.apache.maven.archetype:': you must specify a valid lifecycle phase, or a goal in the format plugin:goal or pluginGroupId:pluginArtifactId:pluginVersion:goal
>        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1515)
>        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(DefaultLifecycleExecutor.java:386)
>        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:138)
>        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333)
>        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126)
>        at org.apache.maven.cli.MavenCli.main(MavenCli.java:282)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>        at java.lang.reflect.Method.invoke(Method.java:585)
>        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)
>        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
>[INFO] ------------------------------------------------------------------------
>[INFO] Total time: < 1 second
>[INFO] Finished at: Sat Feb 23 00:15:10 CET 2008
>[INFO] Final Memory: 1M/2M
>[INFO] ------------------------------------------------------------------------
>
>it should be exactly as you suggested,
>
>my settings.xml
>
><settings xmlns="http://maven.apache.org/POM/4.0.0">
>
>    <profiles>
>
>        <!-- Jetspeed Settings Profile -->
>        <profile>
>            <id>jetspeed-settings</id>
>            <activation>
>                <activeByDefault>true</activeByDefault>
>            </activation>
>            <properties>
>
>                <org.apache.jetspeed.server.home>/home/vlinhart/diplomka/jetspeed/apache-tomcat-5.5.20</org.apache.jetspeed.server.home>
>                <org.apache.jetspeed.catalina.version.major>5.5</org.apache.jetspeed.catalina.version.major>
>                <org.apache.jetspeed.services.autodeployment.server>localhost</org.apache.jetspeed.services.autodeployment.server>
>                <org.apache.jetspeed.services.autodeployment.port>8080</org.apache.jetspeed.services.autodeployment.port>
>                <!-- tomcat-users.xml must include a user with the manager role -->
>                <org.apache.jetspeed.services.autodeployment.user>j2deployer</org.apache.jetspeed.services.autodeployment.user>
>                <org.apache.jetspeed.services.autodeployment.password>toor</org.apache.jetspeed.services.autodeployment.password>
>
>                <org.apache.jetspeed.production.jdbc.drivers.path>${org.apache.jetspeed.server.home}/shared/lib/derby-10.1.1.0.jar</org.apache.jetspeed.production.jdbc.drivers.path>
>                <org.apache.jetspeed.production.database.default.name>derby</org.apache.jetspeed.production.database.default.name>
>                <org.apache.jetspeed.production.database.url>jdbc:derby:/home/vlinhart/diplomka/jetspeed/db;create=true</org.apache.jetspeed.production.database.url>
>                <org.apache.jetspeed.production.database.driver>org.apache.derby.jdbc.EmbeddedDriver</org.apache.jetspeed.production.database.driver>
>                <org.apache.jetspeed.production.database.user></org.apache.jetspeed.production.database.user>
>                <org.apache.jetspeed.production.database.password></org.apache.jetspeed.production.database.password>
>    
>            </properties>
>        </profile>
>
>    </profiles>
>    <activeProfiles>
>    </activeProfiles>
>
></settings>
>
>
>thanks
>______________________________________________________________
>> Od: kmoh.raj@gmail.com
>> Komu: &quot;'Jetspeed Users List'&quot; <je...@portals.apache.org>
>> Datum: 22.02.2008 23:59
>> Predmet: RE: maven repository
>>
>>Ok, here are some tips:
>>  - you need *not* relocate your "local" m2 repository, by default it is <user home>/.m2/repository.
>>    Now, you can use settings.xml with the <localRepository> element and point it to somewhere.
>>    So make sure that if you *do* have a localRepository element in settings.xml, then please 
>>    "browse" that folder and see if all the artifacts are present. If they are *not*, then do 
>>    "mvn install" *again* on your j2 source, this should populate your repository with all j2
>>    artifacts (including the portal archetype).
>>  - second to avoid the prompt, invoke the older version of the archetype plugin *exactly* as
>>    below:
>>     mvn org.apache.maven.archetype: maven-archetype: 1.0-alpha-7:create <all your other -D options>
>>    And the prompt should disappear, like I said this is new feature of the latest archetype plugin which
>>    the maven group have for some reason pushed it, without much  warning (unless you monitor the
>>    mailing list).
>>
>> Cheers
>> Mohan
>>
>>
>>-----Original Message-----
>>From: pandu@centrum.cz [mailto:pandu@centrum.cz] 
>>Sent: Friday, February 22, 2008 5:04 PM
>>To: Jetspeed Users List
>>Subject: RE: maven repository
>>
>>I'm afraid that this solves nothing, question still appears.
>>
>>But I've found some workaround. There in the http://wiki.apache.org/portals/Jetspeed2/Maven2BuildSupport
>>
>>"""
>>Repository relocation
>>
>>While the default location of the settings.xml file should not be changed, (e.g. ~/.m2/settings.xml), one can relocate the repository using the ' <localRepository> ' element in the settings.xml file. See the settings.xml.sample file for an example. Note that the repository path must be an absolute path and not contain any property expressions.
>>"""
>>
>>is said that " ... one can relocate the repository using the ' <localRepository> ' ..."
>>but one MUST relocate the repository (anywhere), in order to successfuly execute the 
>>
>>mvn archetype:create -DarchetypeGroupId=org.apache.portals.jetspeed-2 -DarchetypeArtifactId=portal-archetype -DarchetypeVersion=2.1.3 -DgroupId=myportalgroup -DartifactId=myportal -Dversion=1.0
>>
>>command, after relocating local repo, new custom project was created.
>>Then the command 
>>mvn -P tomcat 
>>can build the portal and deploy it succesfuly.
>>
>>What a mess!
>>
>>Can't it be straightforward? It's really depresing, documentation outdated, several types 
>>of build...
>>
>>Hope that's gonna help someone.
>>
>>V
>>
>>
>>
>>
>>______________________________________________________________
>>> Od: kmoh.raj@gmail.com
>>> Komu: &quot;'Jetspeed Users List'&quot; <je...@portals.apache.org>
>>> Datum: 22.02.2008 21:39
>>> Predmet: RE: maven repository
>>>
>>>Ah..they just upgraded to a new version of the archetype plugin, you can use the option
>>>-DinteractiveMode=false
>>>to avoid the question.
>>>
>>>Cheers
>>> Mohan
>>>
>>>-----Original Message-----
>>>From: pandu@centrum.cz [mailto:pandu@centrum.cz] 
>>>Sent: Friday, February 22, 2008 12:55 PM
>>>To: Jetspeed Users List
>>>Subject: Re: maven repository
>>>
>>>There is still one problem with repository,
>>>
>>>how can one make his own custom build when the command
>>>
>>>mvn archetype:create -DarchetypeGroupId=org.apache.portals.jetspeed-2 -DarchetypeArtifactId=portal-archetype -DarchetypeVersion=2.1.3 -DgroupId=myportalgroup -DartifactId=myportal -Dversion=1.0
>>>
>>>produces some questions from maven:
>>>
>>>
>>>[INFO] Building Jetspeed-2 Enterprise Portal
>>>[INFO]    task-segment: [archetype:create] (aggregator-style)
>>>[INFO] ------------------------------------------------------------------------
>>>[INFO] Preparing archetype:create
>>>[INFO] No goals needed for project - skipping
>>>Downloading: http://www.bluesunrise.com/maven2/myportalgroup/wagon-http-shared/1.0-beta-2/wagon-http-shared-1.0-beta-2.pom
>>>Downloading: http://repo1.maven.org/maven2/myportalgroup/wagon-http-shared/1.0-beta-2/wagon-http-shared-1.0-beta-2.pom
>>>Downloading: http://www.bluesunrise.com/maven2/myportalgroup/wagon-http-shared/1.0-beta-2/wagon-http-shared-1.0-beta-2.pom
>>>Downloading: http://repo1.maven.org/maven2/myportalgroup/wagon-http-shared/1.0-beta-2/wagon-http-shared-1.0-beta-2.pom
>>>Downloading: http://www.bluesunrise.com/maven/myportalgroup/poms/wagon-http-shared-1.0-beta-2.pom
>>>Downloading: http://dist.codehaus.org/myportalgroup/poms/wagon-http-shared-1.0-beta-2.pom
>>>Downloading: http://repo1.maven.org/maven/myportalgroup/poms/wagon-http-shared-1.0-beta-2.pom
>>>[INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
>>>[INFO] Setting property: velocimacro.messages.on => 'false'.
>>>[INFO] Setting property: resource.loader => 'classpath'.
>>>[INFO] Setting property: resource.manager.logwhenfound => 'false'.
>>>[INFO] [archetype:create]
>>>[WARNING] No archetype repository found.
>>>[WARNING] Specified archetype not found.
>>>Choose archetype:
>>>1: internal -> appfuse-basic-jsf (AppFuse archetype for creating a web application with Hibernate, Spring and JSF)
>>>2: internal -> appfuse-basic-spring (AppFuse archetype for creating a web application with Hibernate, Spring and Spring MVC)
>>>...
>>>...
>>>35: internal -> maven-archetype-sar (JBoss Service Archive)
>>>36: internal -> wicket-archetype-quickstart (A simple Apache Wicket project)
>>>Choose a number:  (1/2/3/4/5/6/7/8/9/10/11/12/13/14/15/16/17/18/19/20/21/22/23/24/25/26/27/28/29/30/31/32/33/34/35/36): 
>>>
>>>I've done the previous complete build to populate maven repo and this 
>>>.m2/repository/org/apache/portals/jetspeed-2/portal-archetype/2.1.3/portal-archetype-2.1.3.jar    
>>>
>>>archetype seems to be present.
>>>
>>>What am I doing wrong?
>>>
>>>______________________________________________________________
>>>> Od: pandu@centrum.cz
>>>> Komu: &quot;Jetspeed Users List&quot; <je...@portals.apache.org>
>>>> Datum: 18.02.2008 13:51
>>>> Predmet: Re: maven repository
>>>>
>>>>OK, 
>>>>
>>>>my problems were solved! 
>>>>when I discovered that java 1.6_03 32bit for building on linux is NOT working,
>>>>I downloaded java 1.5 and suddenly all maven2 builds are successful.
>>>>
>>>>It would have been great to have this information sooner. Can you please update
>>>>the web pages? It's stated there that java 1.4+ will be fine, it's not completly 
>>>>true. It would save time to many people..
>>>>
>>>>Vladimir Linhart
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>______________________________________________________________
>>>>> Od: pandu@centrum.cz
>>>>> Komu: &quot;Jetspeed Users List&quot; <je...@portals.apache.org>
>>>>> Datum: 15.02.2008 11:41
>>>>> Predmet: Re: maven repository
>>>>>
>>>>>>In order to build with Maven, a Maven repository is required to get  all
>>>>>dependencies
>>>>>>
>>>>>But why isn't this repo included in any download? how can one 
>>>>>build jetspeed without it? using the maven
>>>>>
>>>>>>> what is the binary download for?
>>>>>>>
>>>>>>There are binary downloads for installers of demo portals as well as >>>binary downloads of the entire build including source and documentation
>>>>>>
>>>>>>http://portals.apache.org/jetspeed-2/download.html
>>>>>>
>>>>>I know how to use the installer, but with the binary build, I don't know how to deploy to tomcat.
>>>>>
>>>>>thanks a lot,
>>>>>
>>>>>Vladimir Linhart
>>>>>
>>>>>
>>>>>--------------------------------------------------------------------->>>>To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
>>>>>For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>>>>>
>>>>>
>>>>
>>>>
>>>>---------------------------------------------------------------------
>>>>To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
>>>>For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>>>>
>>>>
>>>
>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
>>>For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>>>
>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
>>>For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>>>
>>>
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
>>For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
>>For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>>
>>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
>For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
>For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org


RE: maven repository

Posted by pa...@centrum.cz.
So now the command looks like this

mvn -e org.apache.maven.archetype: maven-archetype-plugin: 1.0-alpha-7:create -DarchetypeGroupId=org.apache.portals.jetspeed-2 -DarchetypeArtifactId=portal-archetype -DarchetypeVersion=2.1.3 -DgroupId=myportalgroup -DartifactId=myportal -Dversion=1.0

and the error is the same

[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Invalid task 'org.apache.maven.archetype:': you must specify a valid lifecycle phase, or a goal in the format plugin:goal or pluginGroupId:pluginArtifactId:pluginVersion:goal
[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.BuildFailureException: Invalid task 'org.apache.maven.archetype:': you must specify a valid lifecycle phase, or a goal in the format plugin:goal or pluginGroupId:pluginArtifactId:pluginVersion:goal

but the other way with specifying ANY repo works just fine.


______________________________________________________________
> Od: kmoh.raj@gmail.com
> Komu: &quot;'Jetspeed Users List'&quot; <je...@portals.apache.org>
> Datum: 23.02.2008 02:08
> Předmět: RE: maven repository
>
>Oops sorry I missed the -plugin it should be:
>  
>mvn -e org.apache.maven.archetype: maven-archetype-plugin: 1.0-alpha-7:create ....
>
>-----Original Message-----
>From: pandu@centrum.cz [mailto:pandu@centrum.cz] 
>Sent: Friday, February 22, 2008 6:24 PM
>To: Jetspeed Users List
>Subject: RE: maven repository
>
>Here we go,
>
>mvn -e org.apache.maven.archetype: maven-archetype: 1.0-alpha-7:create -DarchetypeGroupId=org.apache.portals.jetspeed-2 -DarchetypeArtifactId=portal-archetype -DarchetypeVersion=2.1.3 -DgroupId=myportalgroup -DartifactId=myportal -Dversion=1.0
>
>with -e parameter it's more sexy trace
>
>+ Error stacktraces are turned on.
>[INFO] Scanning for projects...
>[INFO] ------------------------------------------------------------------------
>[ERROR] BUILD FAILURE
>[INFO] ------------------------------------------------------------------------
>[INFO] Invalid task 'org.apache.maven.archetype:': you must specify a valid lifecycle phase, or a goal in the format plugin:goal or pluginGroupId:pluginArtifactId:pluginVersion:goal
>[INFO] ------------------------------------------------------------------------
>[INFO] Trace
>org.apache.maven.BuildFailureException: Invalid task 'org.apache.maven.archetype:': you must specify a valid lifecycle phase, or a goal in the format plugin:goal or pluginGroupId:pluginArtifactId:pluginVersion:goal
>        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1515)
>        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(DefaultLifecycleExecutor.java:386)
>        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:138)
>        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333)
>        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126)
>        at org.apache.maven.cli.MavenCli.main(MavenCli.java:282)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>        at java.lang.reflect.Method.invoke(Method.java:585)
>        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)
>        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
>[INFO] ------------------------------------------------------------------------
>[INFO] Total time: < 1 second
>[INFO] Finished at: Sat Feb 23 00:15:10 CET 2008
>[INFO] Final Memory: 1M/2M
>[INFO] ------------------------------------------------------------------------
>
>it should be exactly as you suggested,
>
>my settings.xml
>
><settings xmlns="http://maven.apache.org/POM/4.0.0">
>
>    <profiles>
>
>        <!-- Jetspeed Settings Profile -->
>        <profile>
>            <id>jetspeed-settings</id>
>            <activation>
>                <activeByDefault>true</activeByDefault>
>            </activation>
>            <properties>
>
>                <org.apache.jetspeed.server.home>/home/vlinhart/diplomka/jetspeed/apache-tomcat-5.5.20</org.apache.jetspeed.server.home>
>                <org.apache.jetspeed.catalina.version.major>5.5</org.apache.jetspeed.catalina.version.major>
>                <org.apache.jetspeed.services.autodeployment.server>localhost</org.apache.jetspeed.services.autodeployment.server>
>                <org.apache.jetspeed.services.autodeployment.port>8080</org.apache.jetspeed.services.autodeployment.port>
>                <!-- tomcat-users.xml must include a user with the manager role -->
>                <org.apache.jetspeed.services.autodeployment.user>j2deployer</org.apache.jetspeed.services.autodeployment.user>
>                <org.apache.jetspeed.services.autodeployment.password>toor</org.apache.jetspeed.services.autodeployment.password>
>
>                <org.apache.jetspeed.production.jdbc.drivers.path>${org.apache.jetspeed.server.home}/shared/lib/derby-10.1.1.0.jar</org.apache.jetspeed.production.jdbc.drivers.path>
>                <org.apache.jetspeed.production.database.default.name>derby</org.apache.jetspeed.production.database.default.name>
>                <org.apache.jetspeed.production.database.url>jdbc:derby:/home/vlinhart/diplomka/jetspeed/db;create=true</org.apache.jetspeed.production.database.url>
>                <org.apache.jetspeed.production.database.driver>org.apache.derby.jdbc.EmbeddedDriver</org.apache.jetspeed.production.database.driver>
>                <org.apache.jetspeed.production.database.user></org.apache.jetspeed.production.database.user>
>                <org.apache.jetspeed.production.database.password></org.apache.jetspeed.production.database.password>
>    
>            </properties>
>        </profile>
>
>    </profiles>
>    <activeProfiles>
>    </activeProfiles>
>
></settings>
>
>
>thanks
>______________________________________________________________
>> Od: kmoh.raj@gmail.com
>> Komu: &quot;'Jetspeed Users List'&quot; <je...@portals.apache.org>
>> Datum: 22.02.2008 23:59
>> Predmet: RE: maven repository
>>
>>Ok, here are some tips:
>>  - you need *not* relocate your "local" m2 repository, by default it is <user home>/.m2/repository.
>>    Now, you can use settings.xml with the <localRepository> element and point it to somewhere.
>>    So make sure that if you *do* have a localRepository element in settings.xml, then please 
>>    "browse" that folder and see if all the artifacts are present. If they are *not*, then do 
>>    "mvn install" *again* on your j2 source, this should populate your repository with all j2
>>    artifacts (including the portal archetype).
>>  - second to avoid the prompt, invoke the older version of the archetype plugin *exactly* as
>>    below:
>>     mvn org.apache.maven.archetype: maven-archetype: 1.0-alpha-7:create <all your other -D options>
>>    And the prompt should disappear, like I said this is new feature of the latest archetype plugin which
>>    the maven group have for some reason pushed it, without much  warning (unless you monitor the
>>    mailing list).
>>
>> Cheers
>> Mohan
>>
>>
>>-----Original Message-----
>>From: pandu@centrum.cz [mailto:pandu@centrum.cz] 
>>Sent: Friday, February 22, 2008 5:04 PM
>>To: Jetspeed Users List
>>Subject: RE: maven repository
>>
>>I'm afraid that this solves nothing, question still appears.
>>
>>But I've found some workaround. There in the http://wiki.apache.org/portals/Jetspeed2/Maven2BuildSupport
>>
>>"""
>>Repository relocation
>>
>>While the default location of the settings.xml file should not be changed, (e.g. ~/.m2/settings.xml), one can relocate the repository using the ' <localRepository> ' element in the settings.xml file. See the settings.xml.sample file for an example. Note that the repository path must be an absolute path and not contain any property expressions.
>>"""
>>
>>is said that " ... one can relocate the repository using the ' <localRepository> ' ..."
>>but one MUST relocate the repository (anywhere), in order to successfuly execute the 
>>
>>mvn archetype:create -DarchetypeGroupId=org.apache.portals.jetspeed-2 -DarchetypeArtifactId=portal-archetype -DarchetypeVersion=2.1.3 -DgroupId=myportalgroup -DartifactId=myportal -Dversion=1.0
>>
>>command, after relocating local repo, new custom project was created.
>>Then the command 
>>mvn -P tomcat 
>>can build the portal and deploy it succesfuly.
>>
>>What a mess!
>>
>>Can't it be straightforward? It's really depresing, documentation outdated, several types 
>>of build...
>>
>>Hope that's gonna help someone.
>>
>>V
>>
>>
>>
>>
>>______________________________________________________________
>>> Od: kmoh.raj@gmail.com
>>> Komu: &quot;'Jetspeed Users List'&quot; <je...@portals.apache.org>
>>> Datum: 22.02.2008 21:39
>>> Predmet: RE: maven repository
>>>
>>>Ah..they just upgraded to a new version of the archetype plugin, you can use the option
>>>-DinteractiveMode=false
>>>to avoid the question.
>>>
>>>Cheers
>>> Mohan
>>>
>>>-----Original Message-----
>>>From: pandu@centrum.cz [mailto:pandu@centrum.cz] 
>>>Sent: Friday, February 22, 2008 12:55 PM
>>>To: Jetspeed Users List
>>>Subject: Re: maven repository
>>>
>>>There is still one problem with repository,
>>>
>>>how can one make his own custom build when the command
>>>
>>>mvn archetype:create -DarchetypeGroupId=org.apache.portals.jetspeed-2 -DarchetypeArtifactId=portal-archetype -DarchetypeVersion=2.1.3 -DgroupId=myportalgroup -DartifactId=myportal -Dversion=1.0
>>>
>>>produces some questions from maven:
>>>
>>>
>>>[INFO] Building Jetspeed-2 Enterprise Portal
>>>[INFO]    task-segment: [archetype:create] (aggregator-style)
>>>[INFO] ------------------------------------------------------------------------
>>>[INFO] Preparing archetype:create
>>>[INFO] No goals needed for project - skipping
>>>Downloading: http://www.bluesunrise.com/maven2/myportalgroup/wagon-http-shared/1.0-beta-2/wagon-http-shared-1.0-beta-2.pom
>>>Downloading: http://repo1.maven.org/maven2/myportalgroup/wagon-http-shared/1.0-beta-2/wagon-http-shared-1.0-beta-2.pom
>>>Downloading: http://www.bluesunrise.com/maven2/myportalgroup/wagon-http-shared/1.0-beta-2/wagon-http-shared-1.0-beta-2.pom
>>>Downloading: http://repo1.maven.org/maven2/myportalgroup/wagon-http-shared/1.0-beta-2/wagon-http-shared-1.0-beta-2.pom
>>>Downloading: http://www.bluesunrise.com/maven/myportalgroup/poms/wagon-http-shared-1.0-beta-2.pom
>>>Downloading: http://dist.codehaus.org/myportalgroup/poms/wagon-http-shared-1.0-beta-2.pom
>>>Downloading: http://repo1.maven.org/maven/myportalgroup/poms/wagon-http-shared-1.0-beta-2.pom
>>>[INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
>>>[INFO] Setting property: velocimacro.messages.on => 'false'.
>>>[INFO] Setting property: resource.loader => 'classpath'.
>>>[INFO] Setting property: resource.manager.logwhenfound => 'false'.
>>>[INFO] [archetype:create]
>>>[WARNING] No archetype repository found.
>>>[WARNING] Specified archetype not found.
>>>Choose archetype:
>>>1: internal -> appfuse-basic-jsf (AppFuse archetype for creating a web application with Hibernate, Spring and JSF)
>>>2: internal -> appfuse-basic-spring (AppFuse archetype for creating a web application with Hibernate, Spring and Spring MVC)
>>>...
>>>...
>>>35: internal -> maven-archetype-sar (JBoss Service Archive)
>>>36: internal -> wicket-archetype-quickstart (A simple Apache Wicket project)
>>>Choose a number:  (1/2/3/4/5/6/7/8/9/10/11/12/13/14/15/16/17/18/19/20/21/22/23/24/25/26/27/28/29/30/31/32/33/34/35/36): 
>>>
>>>I've done the previous complete build to populate maven repo and this 
>>>.m2/repository/org/apache/portals/jetspeed-2/portal-archetype/2.1.3/portal-archetype-2.1.3.jar    
>>>
>>>archetype seems to be present.
>>>
>>>What am I doing wrong?
>>>
>>>______________________________________________________________
>>>> Od: pandu@centrum.cz
>>>> Komu: &quot;Jetspeed Users List&quot; <je...@portals.apache.org>
>>>> Datum: 18.02.2008 13:51
>>>> Predmet: Re: maven repository
>>>>
>>>>OK, 
>>>>
>>>>my problems were solved! 
>>>>when I discovered that java 1.6_03 32bit for building on linux is NOT working,
>>>>I downloaded java 1.5 and suddenly all maven2 builds are successful.
>>>>
>>>>It would have been great to have this information sooner. Can you please update
>>>>the web pages? It's stated there that java 1.4+ will be fine, it's not completly 
>>>>true. It would save time to many people..
>>>>
>>>>Vladimir Linhart
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>______________________________________________________________
>>>>> Od: pandu@centrum.cz
>>>>> Komu: &quot;Jetspeed Users List&quot; <je...@portals.apache.org>
>>>>> Datum: 15.02.2008 11:41
>>>>> Predmet: Re: maven repository
>>>>>
>>>>>>In order to build with Maven, a Maven repository is required to get  all
>>>>>dependencies
>>>>>>
>>>>>But why isn't this repo included in any download? how can one 
>>>>>build jetspeed without it? using the maven
>>>>>
>>>>>>> what is the binary download for?
>>>>>>>
>>>>>>There are binary downloads for installers of demo portals as well as >>>binary downloads of the entire build including source and documentation
>>>>>>
>>>>>>http://portals.apache.org/jetspeed-2/download.html
>>>>>>
>>>>>I know how to use the installer, but with the binary build, I don't know how to deploy to tomcat.
>>>>>
>>>>>thanks a lot,
>>>>>
>>>>>Vladimir Linhart
>>>>>
>>>>>
>>>>>--------------------------------------------------------------------->>>>To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
>>>>>For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>>>>>
>>>>>
>>>>
>>>>
>>>>---------------------------------------------------------------------
>>>>To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
>>>>For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>>>>
>>>>
>>>
>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
>>>For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>>>
>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
>>>For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>>>
>>>
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
>>For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
>>For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>>
>>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
>For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
>For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org


RE: maven repository

Posted by Mohan Kannapareddy <km...@gmail.com>.
Oops sorry I missed the -plugin it should be:
  
mvn -e org.apache.maven.archetype: maven-archetype-plugin: 1.0-alpha-7:create ....

-----Original Message-----
From: pandu@centrum.cz [mailto:pandu@centrum.cz] 
Sent: Friday, February 22, 2008 6:24 PM
To: Jetspeed Users List
Subject: RE: maven repository

Here we go,

mvn -e org.apache.maven.archetype: maven-archetype: 1.0-alpha-7:create -DarchetypeGroupId=org.apache.portals.jetspeed-2 -DarchetypeArtifactId=portal-archetype -DarchetypeVersion=2.1.3 -DgroupId=myportalgroup -DartifactId=myportal -Dversion=1.0

with -e parameter it's more sexy trace

+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Invalid task 'org.apache.maven.archetype:': you must specify a valid lifecycle phase, or a goal in the format plugin:goal or pluginGroupId:pluginArtifactId:pluginVersion:goal
[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.BuildFailureException: Invalid task 'org.apache.maven.archetype:': you must specify a valid lifecycle phase, or a goal in the format plugin:goal or pluginGroupId:pluginArtifactId:pluginVersion:goal
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1515)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(DefaultLifecycleExecutor.java:386)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:138)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:282)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        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)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
[INFO] ------------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Sat Feb 23 00:15:10 CET 2008
[INFO] Final Memory: 1M/2M
[INFO] ------------------------------------------------------------------------

it should be exactly as you suggested,

my settings.xml

<settings xmlns="http://maven.apache.org/POM/4.0.0">

    <profiles>

        <!-- Jetspeed Settings Profile -->
        <profile>
            <id>jetspeed-settings</id>
            <activation>
                <activeByDefault>true</activeByDefault>
            </activation>
            <properties>

                <org.apache.jetspeed.server.home>/home/vlinhart/diplomka/jetspeed/apache-tomcat-5.5.20</org.apache.jetspeed.server.home>
                <org.apache.jetspeed.catalina.version.major>5.5</org.apache.jetspeed.catalina.version.major>
                <org.apache.jetspeed.services.autodeployment.server>localhost</org.apache.jetspeed.services.autodeployment.server>
                <org.apache.jetspeed.services.autodeployment.port>8080</org.apache.jetspeed.services.autodeployment.port>
                <!-- tomcat-users.xml must include a user with the manager role -->
                <org.apache.jetspeed.services.autodeployment.user>j2deployer</org.apache.jetspeed.services.autodeployment.user>
                <org.apache.jetspeed.services.autodeployment.password>toor</org.apache.jetspeed.services.autodeployment.password>

                <org.apache.jetspeed.production.jdbc.drivers.path>${org.apache.jetspeed.server.home}/shared/lib/derby-10.1.1.0.jar</org.apache.jetspeed.production.jdbc.drivers.path>
                <org.apache.jetspeed.production.database.default.name>derby</org.apache.jetspeed.production.database.default.name>
                <org.apache.jetspeed.production.database.url>jdbc:derby:/home/vlinhart/diplomka/jetspeed/db;create=true</org.apache.jetspeed.production.database.url>
                <org.apache.jetspeed.production.database.driver>org.apache.derby.jdbc.EmbeddedDriver</org.apache.jetspeed.production.database.driver>
                <org.apache.jetspeed.production.database.user></org.apache.jetspeed.production.database.user>
                <org.apache.jetspeed.production.database.password></org.apache.jetspeed.production.database.password>
    
            </properties>
        </profile>

    </profiles>
    <activeProfiles>
    </activeProfiles>

</settings>


thanks
______________________________________________________________
> Od: kmoh.raj@gmail.com
> Komu: &quot;'Jetspeed Users List'&quot; <je...@portals.apache.org>
> Datum: 22.02.2008 23:59
> Predmet: RE: maven repository
>
>Ok, here are some tips:
>  - you need *not* relocate your "local" m2 repository, by default it is <user home>/.m2/repository.
>    Now, you can use settings.xml with the <localRepository> element and point it to somewhere.
>    So make sure that if you *do* have a localRepository element in settings.xml, then please 
>    "browse" that folder and see if all the artifacts are present. If they are *not*, then do 
>    "mvn install" *again* on your j2 source, this should populate your repository with all j2
>    artifacts (including the portal archetype).
>  - second to avoid the prompt, invoke the older version of the archetype plugin *exactly* as
>    below:
>     mvn org.apache.maven.archetype: maven-archetype: 1.0-alpha-7:create <all your other -D options>
>    And the prompt should disappear, like I said this is new feature of the latest archetype plugin which
>    the maven group have for some reason pushed it, without much  warning (unless you monitor the
>    mailing list).
>
> Cheers
> Mohan
>
>
>-----Original Message-----
>From: pandu@centrum.cz [mailto:pandu@centrum.cz] 
>Sent: Friday, February 22, 2008 5:04 PM
>To: Jetspeed Users List
>Subject: RE: maven repository
>
>I'm afraid that this solves nothing, question still appears.
>
>But I've found some workaround. There in the http://wiki.apache.org/portals/Jetspeed2/Maven2BuildSupport
>
>"""
>Repository relocation
>
>While the default location of the settings.xml file should not be changed, (e.g. ~/.m2/settings.xml), one can relocate the repository using the ' <localRepository> ' element in the settings.xml file. See the settings.xml.sample file for an example. Note that the repository path must be an absolute path and not contain any property expressions.
>"""
>
>is said that " ... one can relocate the repository using the ' <localRepository> ' ..."
>but one MUST relocate the repository (anywhere), in order to successfuly execute the 
>
>mvn archetype:create -DarchetypeGroupId=org.apache.portals.jetspeed-2 -DarchetypeArtifactId=portal-archetype -DarchetypeVersion=2.1.3 -DgroupId=myportalgroup -DartifactId=myportal -Dversion=1.0
>
>command, after relocating local repo, new custom project was created.
>Then the command 
>mvn -P tomcat 
>can build the portal and deploy it succesfuly.
>
>What a mess!
>
>Can't it be straightforward? It's really depresing, documentation outdated, several types 
>of build...
>
>Hope that's gonna help someone.
>
>V
>
>
>
>
>______________________________________________________________
>> Od: kmoh.raj@gmail.com
>> Komu: &quot;'Jetspeed Users List'&quot; <je...@portals.apache.org>
>> Datum: 22.02.2008 21:39
>> Predmet: RE: maven repository
>>
>>Ah..they just upgraded to a new version of the archetype plugin, you can use the option
>>-DinteractiveMode=false
>>to avoid the question.
>>
>>Cheers
>> Mohan
>>
>>-----Original Message-----
>>From: pandu@centrum.cz [mailto:pandu@centrum.cz] 
>>Sent: Friday, February 22, 2008 12:55 PM
>>To: Jetspeed Users List
>>Subject: Re: maven repository
>>
>>There is still one problem with repository,
>>
>>how can one make his own custom build when the command
>>
>>mvn archetype:create -DarchetypeGroupId=org.apache.portals.jetspeed-2 -DarchetypeArtifactId=portal-archetype -DarchetypeVersion=2.1.3 -DgroupId=myportalgroup -DartifactId=myportal -Dversion=1.0
>>
>>produces some questions from maven:
>>
>>
>>[INFO] Building Jetspeed-2 Enterprise Portal
>>[INFO]    task-segment: [archetype:create] (aggregator-style)
>>[INFO] ------------------------------------------------------------------------
>>[INFO] Preparing archetype:create
>>[INFO] No goals needed for project - skipping
>>Downloading: http://www.bluesunrise.com/maven2/myportalgroup/wagon-http-shared/1.0-beta-2/wagon-http-shared-1.0-beta-2.pom
>>Downloading: http://repo1.maven.org/maven2/myportalgroup/wagon-http-shared/1.0-beta-2/wagon-http-shared-1.0-beta-2.pom
>>Downloading: http://www.bluesunrise.com/maven2/myportalgroup/wagon-http-shared/1.0-beta-2/wagon-http-shared-1.0-beta-2.pom
>>Downloading: http://repo1.maven.org/maven2/myportalgroup/wagon-http-shared/1.0-beta-2/wagon-http-shared-1.0-beta-2.pom
>>Downloading: http://www.bluesunrise.com/maven/myportalgroup/poms/wagon-http-shared-1.0-beta-2.pom
>>Downloading: http://dist.codehaus.org/myportalgroup/poms/wagon-http-shared-1.0-beta-2.pom
>>Downloading: http://repo1.maven.org/maven/myportalgroup/poms/wagon-http-shared-1.0-beta-2.pom
>>[INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
>>[INFO] Setting property: velocimacro.messages.on => 'false'.
>>[INFO] Setting property: resource.loader => 'classpath'.
>>[INFO] Setting property: resource.manager.logwhenfound => 'false'.
>>[INFO] [archetype:create]
>>[WARNING] No archetype repository found.
>>[WARNING] Specified archetype not found.
>>Choose archetype:
>>1: internal -> appfuse-basic-jsf (AppFuse archetype for creating a web application with Hibernate, Spring and JSF)
>>2: internal -> appfuse-basic-spring (AppFuse archetype for creating a web application with Hibernate, Spring and Spring MVC)
>>...
>>...
>>35: internal -> maven-archetype-sar (JBoss Service Archive)
>>36: internal -> wicket-archetype-quickstart (A simple Apache Wicket project)
>>Choose a number:  (1/2/3/4/5/6/7/8/9/10/11/12/13/14/15/16/17/18/19/20/21/22/23/24/25/26/27/28/29/30/31/32/33/34/35/36): 
>>
>>I've done the previous complete build to populate maven repo and this 
>>.m2/repository/org/apache/portals/jetspeed-2/portal-archetype/2.1.3/portal-archetype-2.1.3.jar    
>>
>>archetype seems to be present.
>>
>>What am I doing wrong?
>>
>>______________________________________________________________
>>> Od: pandu@centrum.cz
>>> Komu: &quot;Jetspeed Users List&quot; <je...@portals.apache.org>
>>> Datum: 18.02.2008 13:51
>>> Predmet: Re: maven repository
>>>
>>>OK, 
>>>
>>>my problems were solved! 
>>>when I discovered that java 1.6_03 32bit for building on linux is NOT working,
>>>I downloaded java 1.5 and suddenly all maven2 builds are successful.
>>>
>>>It would have been great to have this information sooner. Can you please update
>>>the web pages? It's stated there that java 1.4+ will be fine, it's not completly 
>>>true. It would save time to many people..
>>>
>>>Vladimir Linhart
>>>
>>>
>>>
>>>
>>>
>>>______________________________________________________________
>>>> Od: pandu@centrum.cz
>>>> Komu: &quot;Jetspeed Users List&quot; <je...@portals.apache.org>
>>>> Datum: 15.02.2008 11:41
>>>> Predmet: Re: maven repository
>>>>
>>>>>In order to build with Maven, a Maven repository is required to get  all
>>>>dependencies
>>>>>
>>>>But why isn't this repo included in any download? how can one 
>>>>build jetspeed without it? using the maven
>>>>
>>>>>> what is the binary download for?
>>>>>>
>>>>>There are binary downloads for installers of demo portals as well as >>>binary downloads of the entire build including source and documentation
>>>>>
>>>>>http://portals.apache.org/jetspeed-2/download.html
>>>>>
>>>>I know how to use the installer, but with the binary build, I don't know how to deploy to tomcat.
>>>>
>>>>thanks a lot,
>>>>
>>>>Vladimir Linhart
>>>>
>>>>
>>>>---------------------------------------------------------------------
>>>>To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
>>>>For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>>>>
>>>>
>>>
>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
>>>For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>>>
>>>
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
>>For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
>>For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>>
>>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
>For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
>For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org


RE: maven repository

Posted by pa...@centrum.cz.
Here we go,

mvn -e org.apache.maven.archetype: maven-archetype: 1.0-alpha-7:create -DarchetypeGroupId=org.apache.portals.jetspeed-2 -DarchetypeArtifactId=portal-archetype -DarchetypeVersion=2.1.3 -DgroupId=myportalgroup -DartifactId=myportal -Dversion=1.0

with -e parameter it's more sexy trace

+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Invalid task 'org.apache.maven.archetype:': you must specify a valid lifecycle phase, or a goal in the format plugin:goal or pluginGroupId:pluginArtifactId:pluginVersion:goal
[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.BuildFailureException: Invalid task 'org.apache.maven.archetype:': you must specify a valid lifecycle phase, or a goal in the format plugin:goal or pluginGroupId:pluginArtifactId:pluginVersion:goal
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1515)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(DefaultLifecycleExecutor.java:386)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:138)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:282)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        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)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
[INFO] ------------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Sat Feb 23 00:15:10 CET 2008
[INFO] Final Memory: 1M/2M
[INFO] ------------------------------------------------------------------------

it should be exactly as you suggested,

my settings.xml

<settings xmlns="http://maven.apache.org/POM/4.0.0">

    <profiles>

        <!-- Jetspeed Settings Profile -->
        <profile>
            <id>jetspeed-settings</id>
            <activation>
                <activeByDefault>true</activeByDefault>
            </activation>
            <properties>

                <org.apache.jetspeed.server.home>/home/vlinhart/diplomka/jetspeed/apache-tomcat-5.5.20</org.apache.jetspeed.server.home>
                <org.apache.jetspeed.catalina.version.major>5.5</org.apache.jetspeed.catalina.version.major>
                <org.apache.jetspeed.services.autodeployment.server>localhost</org.apache.jetspeed.services.autodeployment.server>
                <org.apache.jetspeed.services.autodeployment.port>8080</org.apache.jetspeed.services.autodeployment.port>
                <!-- tomcat-users.xml must include a user with the manager role -->
                <org.apache.jetspeed.services.autodeployment.user>j2deployer</org.apache.jetspeed.services.autodeployment.user>
                <org.apache.jetspeed.services.autodeployment.password>toor</org.apache.jetspeed.services.autodeployment.password>

                <org.apache.jetspeed.production.jdbc.drivers.path>${org.apache.jetspeed.server.home}/shared/lib/derby-10.1.1.0.jar</org.apache.jetspeed.production.jdbc.drivers.path>
                <org.apache.jetspeed.production.database.default.name>derby</org.apache.jetspeed.production.database.default.name>
                <org.apache.jetspeed.production.database.url>jdbc:derby:/home/vlinhart/diplomka/jetspeed/db;create=true</org.apache.jetspeed.production.database.url>
                <org.apache.jetspeed.production.database.driver>org.apache.derby.jdbc.EmbeddedDriver</org.apache.jetspeed.production.database.driver>
                <org.apache.jetspeed.production.database.user></org.apache.jetspeed.production.database.user>
                <org.apache.jetspeed.production.database.password></org.apache.jetspeed.production.database.password>
    
            </properties>
        </profile>

    </profiles>
    <activeProfiles>
    </activeProfiles>

</settings>


thanks
______________________________________________________________
> Od: kmoh.raj@gmail.com
> Komu: &quot;'Jetspeed Users List'&quot; <je...@portals.apache.org>
> Datum: 22.02.2008 23:59
> Předmět: RE: maven repository
>
>Ok, here are some tips:
>  - you need *not* relocate your "local" m2 repository, by default it is <user home>/.m2/repository.
>    Now, you can use settings.xml with the <localRepository> element and point it to somewhere.
>    So make sure that if you *do* have a localRepository element in settings.xml, then please 
>    "browse" that folder and see if all the artifacts are present. If they are *not*, then do 
>    "mvn install" *again* on your j2 source, this should populate your repository with all j2
>    artifacts (including the portal archetype).
>  - second to avoid the prompt, invoke the older version of the archetype plugin *exactly* as
>    below:
>     mvn org.apache.maven.archetype: maven-archetype: 1.0-alpha-7:create <all your other -D options>
>    And the prompt should disappear, like I said this is new feature of the latest archetype plugin which
>    the maven group have for some reason pushed it, without much  warning (unless you monitor the
>    mailing list).
>
> Cheers
> Mohan
>
>
>-----Original Message-----
>From: pandu@centrum.cz [mailto:pandu@centrum.cz] 
>Sent: Friday, February 22, 2008 5:04 PM
>To: Jetspeed Users List
>Subject: RE: maven repository
>
>I'm afraid that this solves nothing, question still appears.
>
>But I've found some workaround. There in the http://wiki.apache.org/portals/Jetspeed2/Maven2BuildSupport
>
>"""
>Repository relocation
>
>While the default location of the settings.xml file should not be changed, (e.g. ~/.m2/settings.xml), one can relocate the repository using the ' <localRepository> ' element in the settings.xml file. See the settings.xml.sample file for an example. Note that the repository path must be an absolute path and not contain any property expressions.
>"""
>
>is said that " ... one can relocate the repository using the ' <localRepository> ' ..."
>but one MUST relocate the repository (anywhere), in order to successfuly execute the 
>
>mvn archetype:create -DarchetypeGroupId=org.apache.portals.jetspeed-2 -DarchetypeArtifactId=portal-archetype -DarchetypeVersion=2.1.3 -DgroupId=myportalgroup -DartifactId=myportal -Dversion=1.0
>
>command, after relocating local repo, new custom project was created.
>Then the command 
>mvn -P tomcat 
>can build the portal and deploy it succesfuly.
>
>What a mess!
>
>Can't it be straightforward? It's really depresing, documentation outdated, several types 
>of build...
>
>Hope that's gonna help someone.
>
>V
>
>
>
>
>______________________________________________________________
>> Od: kmoh.raj@gmail.com
>> Komu: &quot;'Jetspeed Users List'&quot; <je...@portals.apache.org>
>> Datum: 22.02.2008 21:39
>> Predmet: RE: maven repository
>>
>>Ah..they just upgraded to a new version of the archetype plugin, you can use the option
>>-DinteractiveMode=false
>>to avoid the question.
>>
>>Cheers
>> Mohan
>>
>>-----Original Message-----
>>From: pandu@centrum.cz [mailto:pandu@centrum.cz] 
>>Sent: Friday, February 22, 2008 12:55 PM
>>To: Jetspeed Users List
>>Subject: Re: maven repository
>>
>>There is still one problem with repository,
>>
>>how can one make his own custom build when the command
>>
>>mvn archetype:create -DarchetypeGroupId=org.apache.portals.jetspeed-2 -DarchetypeArtifactId=portal-archetype -DarchetypeVersion=2.1.3 -DgroupId=myportalgroup -DartifactId=myportal -Dversion=1.0
>>
>>produces some questions from maven:
>>
>>
>>[INFO] Building Jetspeed-2 Enterprise Portal
>>[INFO]    task-segment: [archetype:create] (aggregator-style)
>>[INFO] ------------------------------------------------------------------------
>>[INFO] Preparing archetype:create
>>[INFO] No goals needed for project - skipping
>>Downloading: http://www.bluesunrise.com/maven2/myportalgroup/wagon-http-shared/1.0-beta-2/wagon-http-shared-1.0-beta-2.pom
>>Downloading: http://repo1.maven.org/maven2/myportalgroup/wagon-http-shared/1.0-beta-2/wagon-http-shared-1.0-beta-2.pom
>>Downloading: http://www.bluesunrise.com/maven2/myportalgroup/wagon-http-shared/1.0-beta-2/wagon-http-shared-1.0-beta-2.pom
>>Downloading: http://repo1.maven.org/maven2/myportalgroup/wagon-http-shared/1.0-beta-2/wagon-http-shared-1.0-beta-2.pom
>>Downloading: http://www.bluesunrise.com/maven/myportalgroup/poms/wagon-http-shared-1.0-beta-2.pom
>>Downloading: http://dist.codehaus.org/myportalgroup/poms/wagon-http-shared-1.0-beta-2.pom
>>Downloading: http://repo1.maven.org/maven/myportalgroup/poms/wagon-http-shared-1.0-beta-2.pom
>>[INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
>>[INFO] Setting property: velocimacro.messages.on => 'false'.
>>[INFO] Setting property: resource.loader => 'classpath'.
>>[INFO] Setting property: resource.manager.logwhenfound => 'false'.
>>[INFO] [archetype:create]
>>[WARNING] No archetype repository found.
>>[WARNING] Specified archetype not found.
>>Choose archetype:
>>1: internal -> appfuse-basic-jsf (AppFuse archetype for creating a web application with Hibernate, Spring and JSF)
>>2: internal -> appfuse-basic-spring (AppFuse archetype for creating a web application with Hibernate, Spring and Spring MVC)
>>...
>>...
>>35: internal -> maven-archetype-sar (JBoss Service Archive)
>>36: internal -> wicket-archetype-quickstart (A simple Apache Wicket project)
>>Choose a number:  (1/2/3/4/5/6/7/8/9/10/11/12/13/14/15/16/17/18/19/20/21/22/23/24/25/26/27/28/29/30/31/32/33/34/35/36): 
>>
>>I've done the previous complete build to populate maven repo and this 
>>.m2/repository/org/apache/portals/jetspeed-2/portal-archetype/2.1.3/portal-archetype-2.1.3.jar    
>>
>>archetype seems to be present.
>>
>>What am I doing wrong?
>>
>>______________________________________________________________
>>> Od: pandu@centrum.cz
>>> Komu: &quot;Jetspeed Users List&quot; <je...@portals.apache.org>
>>> Datum: 18.02.2008 13:51
>>> Predmet: Re: maven repository
>>>
>>>OK, 
>>>
>>>my problems were solved! 
>>>when I discovered that java 1.6_03 32bit for building on linux is NOT working,
>>>I downloaded java 1.5 and suddenly all maven2 builds are successful.
>>>
>>>It would have been great to have this information sooner. Can you please update
>>>the web pages? It's stated there that java 1.4+ will be fine, it's not completly 
>>>true. It would save time to many people..
>>>
>>>Vladimir Linhart
>>>
>>>
>>>
>>>
>>>
>>>______________________________________________________________
>>>> Od: pandu@centrum.cz
>>>> Komu: &quot;Jetspeed Users List&quot; <je...@portals.apache.org>
>>>> Datum: 15.02.2008 11:41
>>>> Predmet: Re: maven repository
>>>>
>>>>>In order to build with Maven, a Maven repository is required to get  all
>>>>dependencies
>>>>>
>>>>But why isn't this repo included in any download? how can one 
>>>>build jetspeed without it? using the maven
>>>>
>>>>>> what is the binary download for?
>>>>>>
>>>>>There are binary downloads for installers of demo portals as well as >>>binary downloads of the entire build including source and documentation
>>>>>
>>>>>http://portals.apache.org/jetspeed-2/download.html
>>>>>
>>>>I know how to use the installer, but with the binary build, I don't know how to deploy to tomcat.
>>>>
>>>>thanks a lot,
>>>>
>>>>Vladimir Linhart
>>>>
>>>>
>>>>---------------------------------------------------------------------
>>>>To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
>>>>For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>>>>
>>>>
>>>
>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
>>>For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>>>
>>>
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
>>For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
>>For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>>
>>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
>For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
>For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org


RE: maven repository

Posted by Mohan Kannapareddy <km...@gmail.com>.
Ok, here are some tips:
  - you need *not* relocate your "local" m2 repository, by default it is <user home>/.m2/repository.
    Now, you can use settings.xml with the <localRepository> element and point it to somewhere.
    So make sure that if you *do* have a localRepository element in settings.xml, then please 
    "browse" that folder and see if all the artifacts are present. If they are *not*, then do 
    "mvn install" *again* on your j2 source, this should populate your repository with all j2
    artifacts (including the portal archetype).
  - second to avoid the prompt, invoke the older version of the archetype plugin *exactly* as
    below:
     mvn org.apache.maven.archetype: maven-archetype: 1.0-alpha-7:create <all your other -D options>
    And the prompt should disappear, like I said this is new feature of the latest archetype plugin which
    the maven group have for some reason pushed it, without much  warning (unless you monitor the
    mailing list).

 Cheers
 Mohan


-----Original Message-----
From: pandu@centrum.cz [mailto:pandu@centrum.cz] 
Sent: Friday, February 22, 2008 5:04 PM
To: Jetspeed Users List
Subject: RE: maven repository

I'm afraid that this solves nothing, question still appears.

But I've found some workaround. There in the http://wiki.apache.org/portals/Jetspeed2/Maven2BuildSupport

"""
Repository relocation

While the default location of the settings.xml file should not be changed, (e.g. ~/.m2/settings.xml), one can relocate the repository using the ' <localRepository> ' element in the settings.xml file. See the settings.xml.sample file for an example. Note that the repository path must be an absolute path and not contain any property expressions.
"""

is said that " ... one can relocate the repository using the ' <localRepository> ' ..."
but one MUST relocate the repository (anywhere), in order to successfuly execute the 

mvn archetype:create -DarchetypeGroupId=org.apache.portals.jetspeed-2 -DarchetypeArtifactId=portal-archetype -DarchetypeVersion=2.1.3 -DgroupId=myportalgroup -DartifactId=myportal -Dversion=1.0

command, after relocating local repo, new custom project was created.
Then the command 
mvn -P tomcat 
can build the portal and deploy it succesfuly.

What a mess!

Can't it be straightforward? It's really depresing, documentation outdated, several types 
of build...

Hope that's gonna help someone.

V




______________________________________________________________
> Od: kmoh.raj@gmail.com
> Komu: &quot;'Jetspeed Users List'&quot; <je...@portals.apache.org>
> Datum: 22.02.2008 21:39
> Predmet: RE: maven repository
>
>Ah..they just upgraded to a new version of the archetype plugin, you can use the option
>-DinteractiveMode=false
>to avoid the question.
>
>Cheers
> Mohan
>
>-----Original Message-----
>From: pandu@centrum.cz [mailto:pandu@centrum.cz] 
>Sent: Friday, February 22, 2008 12:55 PM
>To: Jetspeed Users List
>Subject: Re: maven repository
>
>There is still one problem with repository,
>
>how can one make his own custom build when the command
>
>mvn archetype:create -DarchetypeGroupId=org.apache.portals.jetspeed-2 -DarchetypeArtifactId=portal-archetype -DarchetypeVersion=2.1.3 -DgroupId=myportalgroup -DartifactId=myportal -Dversion=1.0
>
>produces some questions from maven:
>
>
>[INFO] Building Jetspeed-2 Enterprise Portal
>[INFO]    task-segment: [archetype:create] (aggregator-style)
>[INFO] ------------------------------------------------------------------------
>[INFO] Preparing archetype:create
>[INFO] No goals needed for project - skipping
>Downloading: http://www.bluesunrise.com/maven2/myportalgroup/wagon-http-shared/1.0-beta-2/wagon-http-shared-1.0-beta-2.pom
>Downloading: http://repo1.maven.org/maven2/myportalgroup/wagon-http-shared/1.0-beta-2/wagon-http-shared-1.0-beta-2.pom
>Downloading: http://www.bluesunrise.com/maven2/myportalgroup/wagon-http-shared/1.0-beta-2/wagon-http-shared-1.0-beta-2.pom
>Downloading: http://repo1.maven.org/maven2/myportalgroup/wagon-http-shared/1.0-beta-2/wagon-http-shared-1.0-beta-2.pom
>Downloading: http://www.bluesunrise.com/maven/myportalgroup/poms/wagon-http-shared-1.0-beta-2.pom
>Downloading: http://dist.codehaus.org/myportalgroup/poms/wagon-http-shared-1.0-beta-2.pom
>Downloading: http://repo1.maven.org/maven/myportalgroup/poms/wagon-http-shared-1.0-beta-2.pom
>[INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
>[INFO] Setting property: velocimacro.messages.on => 'false'.
>[INFO] Setting property: resource.loader => 'classpath'.
>[INFO] Setting property: resource.manager.logwhenfound => 'false'.
>[INFO] [archetype:create]
>[WARNING] No archetype repository found.
>[WARNING] Specified archetype not found.
>Choose archetype:
>1: internal -> appfuse-basic-jsf (AppFuse archetype for creating a web application with Hibernate, Spring and JSF)
>2: internal -> appfuse-basic-spring (AppFuse archetype for creating a web application with Hibernate, Spring and Spring MVC)
>...
>...
>35: internal -> maven-archetype-sar (JBoss Service Archive)
>36: internal -> wicket-archetype-quickstart (A simple Apache Wicket project)
>Choose a number:  (1/2/3/4/5/6/7/8/9/10/11/12/13/14/15/16/17/18/19/20/21/22/23/24/25/26/27/28/29/30/31/32/33/34/35/36): 
>
>I've done the previous complete build to populate maven repo and this 
>.m2/repository/org/apache/portals/jetspeed-2/portal-archetype/2.1.3/portal-archetype-2.1.3.jar    
>
>archetype seems to be present.
>
>What am I doing wrong?
>
>______________________________________________________________
>> Od: pandu@centrum.cz
>> Komu: &quot;Jetspeed Users List&quot; <je...@portals.apache.org>
>> Datum: 18.02.2008 13:51
>> Predmet: Re: maven repository
>>
>>OK, 
>>
>>my problems were solved! 
>>when I discovered that java 1.6_03 32bit for building on linux is NOT working,
>>I downloaded java 1.5 and suddenly all maven2 builds are successful.
>>
>>It would have been great to have this information sooner. Can you please update
>>the web pages? It's stated there that java 1.4+ will be fine, it's not completly 
>>true. It would save time to many people..
>>
>>Vladimir Linhart
>>
>>
>>
>>
>>
>>______________________________________________________________
>>> Od: pandu@centrum.cz
>>> Komu: &quot;Jetspeed Users List&quot; <je...@portals.apache.org>
>>> Datum: 15.02.2008 11:41
>>> Predmet: Re: maven repository
>>>
>>>>In order to build with Maven, a Maven repository is required to get  all
>>>dependencies
>>>>
>>>But why isn't this repo included in any download? how can one 
>>>build jetspeed without it? using the maven
>>>
>>>>> what is the binary download for?
>>>>>
>>>>There are binary downloads for installers of demo portals as well as 
>>>binary downloads of the entire build including source and documentation
>>>>
>>>>http://portals.apache.org/jetspeed-2/download.html
>>>>
>>>I know how to use the installer, but with the binary build, I don't know how to deploy to tomcat.
>>>
>>>thanks a lot,
>>>
>>>Vladimir Linhart
>>>
>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
>>>For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>>>
>>>
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
>>For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>>
>>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
>For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
>For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org


RE: maven repository

Posted by pa...@centrum.cz.
I'm afraid that this solves nothing, question still appears.

But I've found some workaround. There in the http://wiki.apache.org/portals/Jetspeed2/Maven2BuildSupport

"""
Repository relocation

While the default location of the settings.xml file should not be changed, (e.g. ~/.m2/settings.xml), one can relocate the repository using the ' <localRepository> ' element in the settings.xml file. See the settings.xml.sample file for an example. Note that the repository path must be an absolute path and not contain any property expressions.
"""

is said that " ... one can relocate the repository using the ' <localRepository> ' ..."
but one MUST relocate the repository (anywhere), in order to successfuly execute the 

mvn archetype:create -DarchetypeGroupId=org.apache.portals.jetspeed-2 -DarchetypeArtifactId=portal-archetype -DarchetypeVersion=2.1.3 -DgroupId=myportalgroup -DartifactId=myportal -Dversion=1.0

command, after relocating local repo, new custom project was created.
Then the command 
mvn -P tomcat 
can build the portal and deploy it succesfuly.

What a mess!

Can't it be straightforward? It's really depresing, documentation outdated, several types 
of build...

Hope that's gonna help someone.

V




______________________________________________________________
> Od: kmoh.raj@gmail.com
> Komu: &quot;'Jetspeed Users List'&quot; <je...@portals.apache.org>
> Datum: 22.02.2008 21:39
> Předmět: RE: maven repository
>
>Ah..they just upgraded to a new version of the archetype plugin, you can use the option
>-DinteractiveMode=false
>to avoid the question.
>
>Cheers
> Mohan
>
>-----Original Message-----
>From: pandu@centrum.cz [mailto:pandu@centrum.cz] 
>Sent: Friday, February 22, 2008 12:55 PM
>To: Jetspeed Users List
>Subject: Re: maven repository
>
>There is still one problem with repository,
>
>how can one make his own custom build when the command
>
>mvn archetype:create -DarchetypeGroupId=org.apache.portals.jetspeed-2 -DarchetypeArtifactId=portal-archetype -DarchetypeVersion=2.1.3 -DgroupId=myportalgroup -DartifactId=myportal -Dversion=1.0
>
>produces some questions from maven:
>
>
>[INFO] Building Jetspeed-2 Enterprise Portal
>[INFO]    task-segment: [archetype:create] (aggregator-style)
>[INFO] ------------------------------------------------------------------------
>[INFO] Preparing archetype:create
>[INFO] No goals needed for project - skipping
>Downloading: http://www.bluesunrise.com/maven2/myportalgroup/wagon-http-shared/1.0-beta-2/wagon-http-shared-1.0-beta-2.pom
>Downloading: http://repo1.maven.org/maven2/myportalgroup/wagon-http-shared/1.0-beta-2/wagon-http-shared-1.0-beta-2.pom
>Downloading: http://www.bluesunrise.com/maven2/myportalgroup/wagon-http-shared/1.0-beta-2/wagon-http-shared-1.0-beta-2.pom
>Downloading: http://repo1.maven.org/maven2/myportalgroup/wagon-http-shared/1.0-beta-2/wagon-http-shared-1.0-beta-2.pom
>Downloading: http://www.bluesunrise.com/maven/myportalgroup/poms/wagon-http-shared-1.0-beta-2.pom
>Downloading: http://dist.codehaus.org/myportalgroup/poms/wagon-http-shared-1.0-beta-2.pom
>Downloading: http://repo1.maven.org/maven/myportalgroup/poms/wagon-http-shared-1.0-beta-2.pom
>[INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
>[INFO] Setting property: velocimacro.messages.on => 'false'.
>[INFO] Setting property: resource.loader => 'classpath'.
>[INFO] Setting property: resource.manager.logwhenfound => 'false'.
>[INFO] [archetype:create]
>[WARNING] No archetype repository found.
>[WARNING] Specified archetype not found.
>Choose archetype:
>1: internal -> appfuse-basic-jsf (AppFuse archetype for creating a web application with Hibernate, Spring and JSF)
>2: internal -> appfuse-basic-spring (AppFuse archetype for creating a web application with Hibernate, Spring and Spring MVC)
>...
>...
>35: internal -> maven-archetype-sar (JBoss Service Archive)
>36: internal -> wicket-archetype-quickstart (A simple Apache Wicket project)
>Choose a number:  (1/2/3/4/5/6/7/8/9/10/11/12/13/14/15/16/17/18/19/20/21/22/23/24/25/26/27/28/29/30/31/32/33/34/35/36): 
>
>I've done the previous complete build to populate maven repo and this 
>.m2/repository/org/apache/portals/jetspeed-2/portal-archetype/2.1.3/portal-archetype-2.1.3.jar    
>
>archetype seems to be present.
>
>What am I doing wrong?
>
>______________________________________________________________
>> Od: pandu@centrum.cz
>> Komu: &quot;Jetspeed Users List&quot; <je...@portals.apache.org>
>> Datum: 18.02.2008 13:51
>> Predmet: Re: maven repository
>>
>>OK, 
>>
>>my problems were solved! 
>>when I discovered that java 1.6_03 32bit for building on linux is NOT working,
>>I downloaded java 1.5 and suddenly all maven2 builds are successful.
>>
>>It would have been great to have this information sooner. Can you please update
>>the web pages? It's stated there that java 1.4+ will be fine, it's not completly 
>>true. It would save time to many people..
>>
>>Vladimir Linhart
>>
>>
>>
>>
>>
>>______________________________________________________________
>>> Od: pandu@centrum.cz
>>> Komu: &quot;Jetspeed Users List&quot; <je...@portals.apache.org>
>>> Datum: 15.02.2008 11:41
>>> Predmet: Re: maven repository
>>>
>>>>In order to build with Maven, a Maven repository is required to get  all
>>>dependencies
>>>>
>>>But why isn't this repo included in any download? how can one 
>>>build jetspeed without it? using the maven
>>>
>>>>> what is the binary download for?
>>>>>
>>>>There are binary downloads for installers of demo portals as well as 
>>>binary downloads of the entire build including source and documentation
>>>>
>>>>http://portals.apache.org/jetspeed-2/download.html
>>>>
>>>I know how to use the installer, but with the binary build, I don't know how to deploy to tomcat.
>>>
>>>thanks a lot,
>>>
>>>Vladimir Linhart
>>>
>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
>>>For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>>>
>>>
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
>>For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>>
>>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
>For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
>For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org


RE: maven repository

Posted by Mohan Kannapareddy <km...@gmail.com>.
Ah..they just upgraded to a new version of the archetype plugin, you can use the option
-DinteractiveMode=false
to avoid the question.

Cheers
 Mohan

-----Original Message-----
From: pandu@centrum.cz [mailto:pandu@centrum.cz] 
Sent: Friday, February 22, 2008 12:55 PM
To: Jetspeed Users List
Subject: Re: maven repository

There is still one problem with repository,

how can one make his own custom build when the command

mvn archetype:create -DarchetypeGroupId=org.apache.portals.jetspeed-2 -DarchetypeArtifactId=portal-archetype -DarchetypeVersion=2.1.3 -DgroupId=myportalgroup -DartifactId=myportal -Dversion=1.0

produces some questions from maven:


[INFO] Building Jetspeed-2 Enterprise Portal
[INFO]    task-segment: [archetype:create] (aggregator-style)
[INFO] ------------------------------------------------------------------------
[INFO] Preparing archetype:create
[INFO] No goals needed for project - skipping
Downloading: http://www.bluesunrise.com/maven2/myportalgroup/wagon-http-shared/1.0-beta-2/wagon-http-shared-1.0-beta-2.pom
Downloading: http://repo1.maven.org/maven2/myportalgroup/wagon-http-shared/1.0-beta-2/wagon-http-shared-1.0-beta-2.pom
Downloading: http://www.bluesunrise.com/maven2/myportalgroup/wagon-http-shared/1.0-beta-2/wagon-http-shared-1.0-beta-2.pom
Downloading: http://repo1.maven.org/maven2/myportalgroup/wagon-http-shared/1.0-beta-2/wagon-http-shared-1.0-beta-2.pom
Downloading: http://www.bluesunrise.com/maven/myportalgroup/poms/wagon-http-shared-1.0-beta-2.pom
Downloading: http://dist.codehaus.org/myportalgroup/poms/wagon-http-shared-1.0-beta-2.pom
Downloading: http://repo1.maven.org/maven/myportalgroup/poms/wagon-http-shared-1.0-beta-2.pom
[INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on => 'false'.
[INFO] Setting property: resource.loader => 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound => 'false'.
[INFO] [archetype:create]
[WARNING] No archetype repository found.
[WARNING] Specified archetype not found.
Choose archetype:
1: internal -> appfuse-basic-jsf (AppFuse archetype for creating a web application with Hibernate, Spring and JSF)
2: internal -> appfuse-basic-spring (AppFuse archetype for creating a web application with Hibernate, Spring and Spring MVC)
...
...
35: internal -> maven-archetype-sar (JBoss Service Archive)
36: internal -> wicket-archetype-quickstart (A simple Apache Wicket project)
Choose a number:  (1/2/3/4/5/6/7/8/9/10/11/12/13/14/15/16/17/18/19/20/21/22/23/24/25/26/27/28/29/30/31/32/33/34/35/36): 

I've done the previous complete build to populate maven repo and this 
.m2/repository/org/apache/portals/jetspeed-2/portal-archetype/2.1.3/portal-archetype-2.1.3.jar    

archetype seems to be present.

What am I doing wrong?

______________________________________________________________
> Od: pandu@centrum.cz
> Komu: &quot;Jetspeed Users List&quot; <je...@portals.apache.org>
> Datum: 18.02.2008 13:51
> Predmet: Re: maven repository
>
>OK, 
>
>my problems were solved! 
>when I discovered that java 1.6_03 32bit for building on linux is NOT working,
>I downloaded java 1.5 and suddenly all maven2 builds are successful.
>
>It would have been great to have this information sooner. Can you please update
>the web pages? It's stated there that java 1.4+ will be fine, it's not completly 
>true. It would save time to many people..
>
>Vladimir Linhart
>
>
>
>
>
>______________________________________________________________
>> Od: pandu@centrum.cz
>> Komu: &quot;Jetspeed Users List&quot; <je...@portals.apache.org>
>> Datum: 15.02.2008 11:41
>> Predmet: Re: maven repository
>>
>>>In order to build with Maven, a Maven repository is required to get  all
>>dependencies
>>>
>>But why isn't this repo included in any download? how can one 
>>build jetspeed without it? using the maven
>>
>>>> what is the binary download for?
>>>>
>>>There are binary downloads for installers of demo portals as well as 
>>binary downloads of the entire build including source and documentation
>>>
>>>http://portals.apache.org/jetspeed-2/download.html
>>>
>>I know how to use the installer, but with the binary build, I don't know how to deploy to tomcat.
>>
>>thanks a lot,
>>
>>Vladimir Linhart
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
>>For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>>
>>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
>For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org


Re: maven repository

Posted by pa...@centrum.cz.
There is still one problem with repository,

how can one make his own custom build when the command

mvn archetype:create -DarchetypeGroupId=org.apache.portals.jetspeed-2 -DarchetypeArtifactId=portal-archetype -DarchetypeVersion=2.1.3 -DgroupId=myportalgroup -DartifactId=myportal -Dversion=1.0

produces some questions from maven:


[INFO] Building Jetspeed-2 Enterprise Portal
[INFO]    task-segment: [archetype:create] (aggregator-style)
[INFO] ------------------------------------------------------------------------
[INFO] Preparing archetype:create
[INFO] No goals needed for project - skipping
Downloading: http://www.bluesunrise.com/maven2/myportalgroup/wagon-http-shared/1.0-beta-2/wagon-http-shared-1.0-beta-2.pom
Downloading: http://repo1.maven.org/maven2/myportalgroup/wagon-http-shared/1.0-beta-2/wagon-http-shared-1.0-beta-2.pom
Downloading: http://www.bluesunrise.com/maven2/myportalgroup/wagon-http-shared/1.0-beta-2/wagon-http-shared-1.0-beta-2.pom
Downloading: http://repo1.maven.org/maven2/myportalgroup/wagon-http-shared/1.0-beta-2/wagon-http-shared-1.0-beta-2.pom
Downloading: http://www.bluesunrise.com/maven/myportalgroup/poms/wagon-http-shared-1.0-beta-2.pom
Downloading: http://dist.codehaus.org/myportalgroup/poms/wagon-http-shared-1.0-beta-2.pom
Downloading: http://repo1.maven.org/maven/myportalgroup/poms/wagon-http-shared-1.0-beta-2.pom
[INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on => 'false'.
[INFO] Setting property: resource.loader => 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound => 'false'.
[INFO] [archetype:create]
[WARNING] No archetype repository found.
[WARNING] Specified archetype not found.
Choose archetype:
1: internal -> appfuse-basic-jsf (AppFuse archetype for creating a web application with Hibernate, Spring and JSF)
2: internal -> appfuse-basic-spring (AppFuse archetype for creating a web application with Hibernate, Spring and Spring MVC)
...
...
35: internal -> maven-archetype-sar (JBoss Service Archive)
36: internal -> wicket-archetype-quickstart (A simple Apache Wicket project)
Choose a number:  (1/2/3/4/5/6/7/8/9/10/11/12/13/14/15/16/17/18/19/20/21/22/23/24/25/26/27/28/29/30/31/32/33/34/35/36): 

I've done the previous complete build to populate maven repo and this 
.m2/repository/org/apache/portals/jetspeed-2/portal-archetype/2.1.3/portal-archetype-2.1.3.jar    

archetype seems to be present.

What am I doing wrong?

______________________________________________________________
> Od: pandu@centrum.cz
> Komu: &quot;Jetspeed Users List&quot; <je...@portals.apache.org>
> Datum: 18.02.2008 13:51
> Předmět: Re: maven repository
>
>OK, 
>
>my problems were solved! 
>when I discovered that java 1.6_03 32bit for building on linux is NOT working,
>I downloaded java 1.5 and suddenly all maven2 builds are successful.
>
>It would have been great to have this information sooner. Can you please update
>the web pages? It's stated there that java 1.4+ will be fine, it's not completly 
>true. It would save time to many people..
>
>Vladimir Linhart
>
>
>
>
>
>______________________________________________________________
>> Od: pandu@centrum.cz
>> Komu: &quot;Jetspeed Users List&quot; <je...@portals.apache.org>
>> Datum: 15.02.2008 11:41
>> Předmět: Re: maven repository
>>
>>>In order to build with Maven, a Maven repository is required to get  all
>>dependencies
>>>
>>But why isn't this repo included in any download? how can one 
>>build jetspeed without it? using the maven
>>
>>>> what is the binary download for?
>>>>
>>>There are binary downloads for installers of demo portals as well as 
>>binary downloads of the entire build including source and documentation
>>>
>>>http://portals.apache.org/jetspeed-2/download.html
>>>
>>I know how to use the installer, but with the binary build, I don't know how to deploy to tomcat.
>>
>>thanks a lot,
>>
>>Vladimir Linhart
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
>>For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>>
>>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
>For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org


Re: maven repository

Posted by pa...@centrum.cz.
>In order to build with Maven, a Maven repository is required to get  all
dependencies
>
But why isn't this repo included in any download? how can one 
build jetspeed without it? using the maven

>> what is the binary download for?
>>
>There are binary downloads for installers of demo portals as well as 
binary downloads of the entire build including source and documentation
>
>http://portals.apache.org/jetspeed-2/download.html
>
I know how to use the installer, but with the binary build, I don't know how to deploy to tomcat.

thanks a lot,

Vladimir Linhart


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org


Re: maven repository

Posted by David Sean Taylor <da...@bluesunrise.com>.
On Feb 14, 2008, at 12:56 PM, <pa...@centrum.cz> <pa...@centrum.cz>  
wrote:

> Hello,
>
> using jestspeed-2.1.3
> Maven version: 2.0.8
>
>
> I'm new to jetspeed, my problem is that
> I can't figure out how to make custom build
> using maven2 without maven repository from JetspeedTraining.
> This JetspeedTraining is nowhere visibly to be found, I found it's
> location on forums.
>
> With this (JetspeedTraining) maven repository building is OK.
> But is it even possible without it?
>
In order to build with Maven, a Maven repository is required to get  
all dependencies

>
>
> what is the binary download for?
>
There are binary downloads for installers of demo portals as well as  
binary downloads of the entire build including source and documentation

http://portals.apache.org/jetspeed-2/download.html