Hi Jan,

Thanks for the help... Note that when using:
    http://svn.magnolia-cms.com/snapshots
I got:

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

    GroupId: info.magnolia
    ArtifactId: maven-archetype-magnolia-module
    Version: 1.0.0-SNAPSHOT

    Reason: Unable to download the artifact from any repository

    Try downloading the file manually from the project website.

    Then, install it using the command:
        mvn install:install-file -DgroupId=info.magnolia
-DartifactId=maven-archetype-magnolia-module \
        -Dversion=1.0.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file


    info.magnolia:maven-archetype-magnolia-module:jar:1.0.0-SNAPSHOT

    from the specified remote repositories:
        id0 (http://svn.magnolia-cms.com/snapshots)

However switching to http://svn.magnolia.info/maven/snapshots seems to work.

------------------
So for all looks like the working command is:

mvn archetype:create -DarchetypeGroupId=info.magnolia \
     -DarchetypeArtifactId=maven-archetype-magnolia-module \
     -DarchetypeVersion=1.0.0-SNAPSHOT \
     -DgroupId=com.foo.bar \
     -DartifactId=my-module \
     -DremoteRepositories= http://svn.magnolia.info/maven/snapshots
------------------

Cheers,
Abdul


On 11/24/09 8:18 AM, "Jan Haderka" <[email protected]> wrote:

> 
> Hi Abdul,
> the artifact is a bit outdated. To make build run, you need to replace
> repo link with the valid repo:
> 
> mvn archetype:create -DarchetypeGroupId=info.magnolia \
>      -DarchetypeArtifactId=maven-archetype-magnolia-module \
>      -DarchetypeVersion=1.0.0-SNAPSHOT \
>      -DgroupId=com.foo.bar \
>      -DartifactId=my-module \
>      -DremoteRepositories=http://svn.magnolia-cms.com/snapshots
> 
> however the module it will generate will be configured to run against
> Magnolia 3.0, so you need to edit generated pom to change this to
> Magnolia 4.1.1, also need to update the repo reference to
> http://svn.magnolia-cms.com/m2
> 
> After that you need to edit the generated MyModule.java and remove all
> references to AbstractModule and its exceptions as this thing doesn't
> exist anymore. In 4.x module class do not need to extend anything (at
> most you might want to have your module class to implement
> ModuleLifecycle interface if you want to have control over restart of
> the module).
> 
> HTH,
> Jan
> 
> 
> On Mon, 2009-11-23 at 21:22 +0100, Abdul Nabi wrote:
>> Hello All,
>> 
>> Hopefully a simple/stupid/newbie question (but also a good first start
>> at using the user list)...
>> 
>> I¹m ready to create my module and have tried the command from the
>> ³Module QuickStart² Wiki section -
>> mvn org.apache.maven.plugins:maven-archetype-plugin:1.0-alpha-7:create
>> -DarchetypeGroupId=info.magnolia \
>>    -DarchetypeArtifactId=maven-archetype-magnolia-module \
>>    -DarchetypeVersion=1.0 \
>>    -DremoteRepositories=http://maven.magnolia.info/m2 \
>>   -DgroupId=com.foo.bar \
>>    -DartifactId=my-module
>> 
>> And from the excerise guide  -
>> mvn archetype:create -DarchetypeGroupId=info.magnolia \
>>     -DarchetypeArtifactId=maven-archetype-magnolia-module \
>>     -DarchetypeVersion=1.0.0-SNAPSHOT \
>>     -DgroupId=com.foo.bar \
>>     -DartifactId=my-module \
>>     -DremoteRepositories=http://svn.magnolia.info/maven/snapshots
>> 
>> And in both cases get -
>> [INFO] Scanning for projects...
>> [INFO]
>> ------------------------------------------------------------------------
>> [ERROR] BUILD FAILURE
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Invalid task 'DarchetypeVersion=1.0.0-SNAPSHOT': you must
>> specify a valid lifecycle phase, or a goal in the format plugin:goal
>> or pluginGroupId:pluginArtifactId:pluginVersion:goal
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] For more information, run Maven with the -e switch
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Total time: < 1 second
>> [INFO] Finished at: Mon Nov 23 20:11:27 GMT+00:01 2009
>> [INFO] Final Memory: 1M/4M
>> [INFO]
>> ------------------------------------------------------------------------
>> 
>> I¹ve tried some variations, but to no avail... Before doing a deep
>> dive and getting three degrees away from my original goal just wanted
>> to check if folks had a quick pointer on this.
>> 
>> Note ­ Using Maven 2.0.6 and Magnolia EE 4.1.1
>> 
>> Thanks!
>> 
>> Mit freundlichen Grüssen,
>> Kind regards
>> 
>> Abdul Nabi
>> Technical Architect
>> 
>> frog design europe gmbh
>> Kalkofenstr. 51
>> 71083 Herrenberg
>> 
>> 
>> 
>> ______________________________________________________________________
>> ----------------------------------------------------------------
>> For list details see
>> http://www.magnolia-cms.com/home/community/mailing-lists.html
>> To unsubscribe, E-mail to: <[email protected]>
>> ----------------------------------------------------------------
> 
> 
> ----------------------------------------------------------------
> For list details see
> http://www.magnolia-cms.com/home/community/mailing-lists.html
> To unsubscribe, E-mail to: <[email protected]>
> ----------------------------------------------------------------
> 
> 

Mit freundlichen Grüssen,
Kind regards

Abdul Nabi
Technical Architect

frog design europe gmbh
Kalkofenstr. 51
71083 Herrenberg

+ 49 7032 914-260 Tel
+ 49 7032 914-111 Fax
mailto:[email protected] <mailto:[email protected]>
http://www.frogdesign.com <http://www.frogdesign.com/>
Sitz der Gesellschaft: Herrenberg, Amtsgericht Stuttgart, HRB 245808
Geschäftsführung: Duncan Robertson, Bettina Teschner      USt Ident Nr. DE
220 598 284
 
design mind: http://designmind.frogdesign.com
<http://designmind.frogdesign.com>
twitter: http://twitter.com/frogdesign <http://twitter.com/frogdesign>

P Please consider your environmental responsibility before printing this
e-mail.

CONFIDENTIAL AND PROPRIETARY INFORMATION NOTICE:
The information contained in and/or attached to this e-mail is Confidential
and Proprietary Information of frog design europe gmbh and its operating
companies and subsidiaries. This information is intended only for the
confidential use of the person(s) designated above. If this message has
reached a person or persons not designated above, you are hereby notified
that you have received this document in error and that any review,
dissemination, distribution or copying of this message is strictly
prohibited. If you are not a designated recipient, please notify frog design
europe gmbh  immediately by reply e-mail and delete the original message
together with any and all attachments.





----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to