cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Reinhard Pötz <reinh...@apache.org>
Subject Re: Cocoon 3 trunk
Date Wed, 05 Nov 2008 07:55:53 GMT
Steven Dolg wrote:
> Vadim Gritsenko schrieb:
>> On Nov 4, 2008, at 3:13 PM, Steven Dolg wrote:
>>
>>> Hi Vadim,
>>>
>>> the port stated in the README is unfortunately wrong.
>>>
>>> However the demo is working correctly for me
>>
>> After a bit of poking around I figured out it was caused by a firefox
>> cache (it cached a redirect). After clearing the cache I can see
>> "Cocoon 3 Samples and Integration Tests: Overview" page.
>>
>>
>>> as well as the generated project for IDEA (I tried IDEA 7.0.4 with a
>>> JDK 1.6.0_06).
>>
>> It is not possible to generate a project file from cocoon-3 root
>> directory itself, and so the next closest thing which I found is to do
>> it in the ./parent directory. So, when running mvn idea:idea command
>> there, it creates incorrect cocoon-parent.ipr file:
>>
>>     <modules>
>>       <!-- module filepath="$$PROJECT_DIR$$/${pom.artifactId}.iml"/ -->
>>       <module filepath="$PROJECT_DIR$/cocoon-parent.iml"/>
>>       <module
>> filepath="$PROJECT_DIR$//Users/vgritsenko/Projects/Apache/cocoon-3/cocoon-all/cocoon-all.iml"/>
>>
>>       <module
>> filepath="$PROJECT_DIR$//Users/vgritsenko/Projects/Apache/cocoon-3/cocoon-controller/cocoon-controller.iml"/>
>>
>>
>> So it seems like idea plugin appends absolute file paths to the
>> $PROJECT_DIR$. I had to manually edit file so that it loads in IDEA.
>> It now reads:
>>
>>     <modules>
>>       <!-- module filepath="$$PROJECT_DIR$$/${pom.artifactId}.iml"/ -->
>>       <module filepath="$PROJECT_DIR$/cocoon-parent.iml"/>
>>       <module filepath="$PROJECT_DIR$/../cocoon-all/cocoon-all.iml"/>
>>       <module
>> filepath="$PROJECT_DIR$/../cocoon-controller/cocoon-controller.iml"/>
>>
>>
>> Short of hacking maven plugin, I think easiest way to fix that would
>> be to add a pom to cocoon-3 directory. WDYT?
> That is strange.
> When I generate the IDEA project files from the parent directory I get
> the following modules section:
> <component name="ProjectModuleManager">
>    <modules>
>      <!-- module filepath="$$PROJECT_DIR$$/${pom.artifactId}.iml"/ -->
>      <module filepath="$PROJECT_DIR$/cocoon-parent.iml"/>
>      <module filepath="$PROJECT_DIR$/../cocoon-all/cocoon-all.iml"/>
>      <module
> filepath="$PROJECT_DIR$/../cocoon-controller/cocoon-controller.iml"/>
>      <module
> filepath="$PROJECT_DIR$/../cocoon-optional/cocoon-optional.iml"/>
>      <module
> filepath="$PROJECT_DIR$/../cocoon-pipeline/cocoon-pipeline.iml"/>
>      <module filepath="$PROJECT_DIR$/../cocoon-rest/cocoon-rest.iml"/>
>      <module filepath="$PROJECT_DIR$/../cocoon-sample/cocoon-sample.iml"/>
>      <module
> filepath="$PROJECT_DIR$/../cocoon-servlet/cocoon-servlet.iml"/>
>      <module
> filepath="$PROJECT_DIR$/../cocoon-sitemap/cocoon-sitemap.iml"/>
>      <module
> filepath="$PROJECT_DIR$/../cocoon-stringtemplate/cocoon-stringtemplate.iml"/>
> 
>    </modules>
>  </component>
> After opening IDEA changes all that into absolute paths - but I guess
> this is all right (I have absolutely no experience with IDEA).
> 
> So the only thing I can image are different Maven and/or different
> idea-plugin versions.
> Mine are Maven 2.0.9 and maven-idea-plugin 2.2.
> 
> 
> If everything fails moving the pom might be an option. Would that
> produce a valid project file with your setup?

If that solves the problem with IDEA, we can (re)introduce the root pom.
Actually I also have problems with creating releases because the Maven
release plugin doesn't support flat scenarios (although recommended by
Maven AFAIU).

Vadim, you can use cocoon3/trunk/release.pom.xml and rename it to
pom.xml. Then go to parent/pom.xml and remove the <modules> section from
there. Then invoke all mvn commands from cocoon3/trunk instead of
cocoon3/trunk/parent.

HTH

Please let us know if that works for you! Thanks.

-- 
Reinhard Pötz                           Managing Director, {Indoqa} GmbH
                         http://www.indoqa.com/en/people/reinhard.poetz/

Member of the Apache Software Foundation
Apache Cocoon Committer, PMC member                  reinhard@apache.org
________________________________________________________________________

Mime
View raw message