Luciano Resende wrote:
Comments inline

On 4/9/07, Jean-Sebastien Delfino <[EMAIL PROTECTED]> wrote:

Won't this break if I just build java/sca/pom.xml without having done a
full build of java/pom.xml first?


Yes

I think we need to find a way to have parent and buildtools built
automatically when we build from java/pom.xml and built as well when we
build from java/sca/pom.xml, but not twice. I'll try to experiment with
a Maven property setting in java/pom.xml and a condition in
java/sca/pom.xml.


If you find an smart way to allow this to be placed in more then one place
it would be great.

Any better idea to fix this problem?


I'll do some research and if I find anything I'll let you know.


[EMAIL PROTECTED] wrote:
> Author: lresende
> Date: Mon Apr  9 13:46:39 2007
> New Revision: 526907
>
> URL: http://svn.apache.org/viewvc?view=rev&rev=526907
> Log:
> Fix to allow building from top-level
>
> Modified:
>     incubator/tuscany/java/sca/pom.xml
>
> Modified: incubator/tuscany/java/sca/pom.xml
> URL:
http://svn.apache.org/viewvc/incubator/tuscany/java/sca/pom.xml?view=diff&rev=526907&r1=526906&r2=526907
>
==============================================================================
> --- incubator/tuscany/java/sca/pom.xml (original)
> +++ incubator/tuscany/java/sca/pom.xml Mon Apr  9 13:46:39 2007
> @@ -39,8 +39,10 @@
>                  <activeByDefault>true</activeByDefault>
>              </activation>
>              <modules>
> +                <!--
>                  <module>../pom/parent</module>
>                  <module>../buildtools</module>
> +                -->
>                  <module>modules</module>
>                  <!--
>                  <module>samples</module>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>


--
Jean-Sebastien




I have updated java/pom.xml and java/sca/pom.xml as follows:

- java/sca/pom.xml
       <profile>
           <id>default</id>
           <activation>
               <activeByDefault>true</activeByDefault>
           </activation>
           <modules>
               <module>../pom/parent</module>
               <module>../buildtools</module>
               <module>modules</module>
               <!--
               <module>samples</module>
               <module>itest</module>
               -->
           </modules>
       </profile>

- java/pom.xml
       <profile>
           <id>all</id>
           <activation>
               <activeByDefault>true</activeByDefault>
           </activation>
           <modules>
               <module>spec/sdo-api</module>
               <module>sdo</module>
               <module>das</module>
               <module>sca</module>
               <!-- <module>distribution</module> -->
           </modules>
       </profile>

With this setup, building java/ from a clean repos works (taking the DAS error that I posted earlier aside). Building java/sca from a clean repos works as well. Building java/sdo and java/das individually still require you to build parent and buildtools first, so this new setup is not worse than before for them.

There is probably a cleaner way to do this with Maven, but at least this works for now.

--
Jean-Sebastien


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to