You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@continuum.apache.org by Iker Almandoz <ik...@gmail.com> on 2009/01/13 16:29:21 UTC

Builds files generated under "working-directory" --> All modules built everytime.

Hi All, 

 

I recently upgraded to version 1.2.2 and have encountered the following
problem.

 

I configured continuum as follows:

-          Working directory:
/usr/local/continuum-1.2.2/data/working-directory

-          Build output directory:
/usr/local/continuum-1.2.2/data/build-output-directory

 

My builds are configured to do "mvn clean install" and I have the
"checsktyle plugin" configured (actual configuration at the end of this
e-mail).

When "continuum" runs the maven goal, it generates a target folder under the
"working directory" rather than the "build output directory" for the
checkstyle related outputs. 

"target"

"target/site"

"taget/site/checkstyle.html"

 

Then in my "continuum" log I  can see the following:

 

2009-01-12 07:36:34,711 [pool-1-thread-1] INFO  buildController  - Merging
SCM results

2009-01-12 07:36:34,780 [pool-1-thread-1] INFO  buildController  - The
project was not built because all changes are unknown (maybe local
modifications or ignored files not defined in your SCM tool.

2009-01-12 07:36:35,008 [pool-1-thread-1] INFO  buildController  - Changes
found in the current project, building

2009-01-12 07:36:35,009 [pool-1-thread-1] INFO  buildController  -
Performing action update-project-from-working-directory

 

This causes all the projects to be rebuilt every hour which is making the
updated continuum version hard to use.


Any help/advice would be greatly appreciated, 


Best regards, 

Iker 

 

Checkstyle configuration: 

  <build>

   <plugins>

    <plugin>

        <groupId>org.apache.maven.plugins</groupId>

        <artifactId>maven-checkstyle-plugin</artifactId>

        <configuration>

          <configLocation>checkstyle/checks.xml</configLocation>

        </configuration>

        <executions>

                <execution>

                        <goals>

                                <goal>check</goal>

                        </goals>

                </execution>

        </executions>

    </plugin>

</plugins>

</build>


RE: Builds files generated under "working-directory" --> All modules built everytime.

Posted by Iker Almandoz <ik...@gmail.com>.
Wendy, 

You are right that 'checkstyle' has nothing to do on this.  It was my
misunderstanding of the tree.

I tried adding the 'target' folder to my '.cvsignore'.
However, the scm is currently ignoring the contents of the .cvsignore.
When I do "mvn scm:diff -Dmaven.scm.provider.cvs.implementation=cvs_native"
I don't see the target but if I do with the java only version, then 'target
is shown as a modification.

Can I configure continuum to use 'cvs_native' implementation ?  Any other
thoughts ?

Thanks for the help, 
Iker

-----Original Message-----
From: Wendy Smoak [mailto:wsmoak@gmail.com] 
Sent: Tuesday, January 13, 2009 2:26 PM
To: users@continuum.apache.org
Subject: Re: Builds files generated under "working-directory" --> All
modules built everytime.

On Tue, Jan 13, 2009 at 8:29 AM, Iker Almandoz
<ik...@gmail.com> wrote:

> When "continuum" runs the maven goal, it generates a target folder under
the
> "working directory" rather than the "build output directory" for the
> checkstyle related outputs.

That sounds normal. The build output directory is for the log file
(what you would see scrolling by if you built it at the command line).
 Continuum also plays favorites with Surefire, copies the test results
to the build output directory, and puts a link on the results web
page.

AFAIK, it doesn't do anything special with Checkstyle, so you can
expect to find those under 'target'.  You can publish the project
website if you want to view them online.  (There's been talk of
introducing a plugin architecture for Continuum which would make it
easier to add things like this to the results page.)

> Then in my "continuum" log I  can see the following:
>
> 2009-01-12 07:36:34,711 [pool-1-thread-1] INFO  buildController  - Merging
> SCM results
>
> 2009-01-12 07:36:34,780 [pool-1-thread-1] INFO  buildController  - The
> project was not built because all changes are unknown (maybe local
> modifications or ignored files not defined in your SCM tool.
>
> 2009-01-12 07:36:35,008 [pool-1-thread-1] INFO  buildController  - Changes
> found in the current project, building
>
> 2009-01-12 07:36:35,009 [pool-1-thread-1] INFO  buildController  -
> Performing action update-project-from-working-directory
>
> This causes all the projects to be rebuilt every hour which is making the
> updated continuum version hard to use.

That's odd... but what makes you think this is related to the
Checkstyle html file?  Perhaps you just need to add the 'target'
directory to the ignored list?

-- 
Wendy


Re: Builds files generated under "working-directory" --> All modules built everytime.

Posted by Wendy Smoak <ws...@gmail.com>.
On Tue, Jan 13, 2009 at 8:29 AM, Iker Almandoz
<ik...@gmail.com> wrote:

> When "continuum" runs the maven goal, it generates a target folder under the
> "working directory" rather than the "build output directory" for the
> checkstyle related outputs.

That sounds normal. The build output directory is for the log file
(what you would see scrolling by if you built it at the command line).
 Continuum also plays favorites with Surefire, copies the test results
to the build output directory, and puts a link on the results web
page.

AFAIK, it doesn't do anything special with Checkstyle, so you can
expect to find those under 'target'.  You can publish the project
website if you want to view them online.  (There's been talk of
introducing a plugin architecture for Continuum which would make it
easier to add things like this to the results page.)

> Then in my "continuum" log I  can see the following:
>
> 2009-01-12 07:36:34,711 [pool-1-thread-1] INFO  buildController  - Merging
> SCM results
>
> 2009-01-12 07:36:34,780 [pool-1-thread-1] INFO  buildController  - The
> project was not built because all changes are unknown (maybe local
> modifications or ignored files not defined in your SCM tool.
>
> 2009-01-12 07:36:35,008 [pool-1-thread-1] INFO  buildController  - Changes
> found in the current project, building
>
> 2009-01-12 07:36:35,009 [pool-1-thread-1] INFO  buildController  -
> Performing action update-project-from-working-directory
>
> This causes all the projects to be rebuilt every hour which is making the
> updated continuum version hard to use.

That's odd... but what makes you think this is related to the
Checkstyle html file?  Perhaps you just need to add the 'target'
directory to the ignored list?

-- 
Wendy