java - Eclipse Auto-build eternal loop -


ok have bug causes 1 of project build forever.

i have custom ant builder script, runs maven .pom file (i did saves me time on doing things manually) , done after each save in eclipse.

however 1 particular project building forever in loop, finishes , of go again.

<?xml version="1.0" encoding="utf-8"?> <!-- configuration of ant build task generate jar file each time project updated --> <project name="orderlystatsse" default="execute-pom">     <target name="execute-pom" description="execute orderlystatsse.pom file">         <!--         <exec dir="." executable="cmd">              <arg line="/c mvn -t 4c install -dmaven.test.skip=true" />         </exec>          -->         <exec dir="." executable="sh">             <arg line="-c 'mvn -t 4c clean compile install -dmaven.test.skip=true'" />         </exec>      </target> </project> 

so simple ant build script.

maven pom file

<project xmlns="http://maven.apache.org/pom/4.0.0" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance"     xsi:schemalocation="http://maven.apache.org/pom/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">     <modelversion>4.0.0</modelversion>     <groupid>com.orderlysoftware</groupid>     <artifactid>orderlystatsse</artifactid>     <version>0.1</version>     <packaging>war</packaging>     <properties>         <jdk.version>1.7</jdk.version>     </properties>     <build>         <finalname>${project.artifactid}</finalname>         <plugins>             <plugin>                 <groupid>org.apache.maven.plugins</groupid>                 <artifactid>maven-compiler-plugin</artifactid>                 <version>2.3.2</version>                 <configuration>                     <source>${jdk.version}</source>                      <target>${jdk.version}</target>                 </configuration>             </plugin>             <plugin>                 <!-- jar plugin -->                 <groupid>org.apache.maven.plugins</groupid>                 <artifactid>maven-jar-plugin</artifactid>                 <version>2.3.2</version>                 <executions>                     <execution>                         <id>orderly-stats-se</id>                         <goals>                             <goal>jar</goal>                         </goals>                         <configuration>                             <finalname>${project.artifactid}</finalname>                             <classifier>base</classifier>                             <!-- <outputdirectory>c:/tomcat/lib</outputdirectory> -->                             <outputdirectory>/opt/tomcat7/lib</outputdirectory>                         </configuration>                     </execution>                 </executions>             </plugin>             <plugin>                 <groupid>org.apache.maven.plugins</groupid>                 <artifactid>maven-war-plugin</artifactid>                 <version>2.4</version>                 <configuration>                     <outputdirectoryuri>workspace_loc/orderlytelecomsmvn/mvn-output/war-files</outputdirectoryuri>                 </configuration>              </plugin>             <plugin>                 <groupid>org.apache.maven.plugins</groupid>                 <artifactid>maven-eclipse-plugin</artifactid>                 <version>2.9</version>                 <configuration>                     <linkedresources>                          <linkedresource>                             <name>src/main/webapp/realtime</name>                             <type>2</type>                             <locationuri>workspace_loc/orderlytelecomsmvn/orderlyq/src/main/webapp/realtime</locationuri>                         </linkedresource>                         <linkedresource>                             <name>src/main/webapp/reports</name>                             <type>2</type>                             <locationuri>workspace_loc/orderlytelecomsmvn/orderlystats/src/main/webapp/reports</locationuri>                         </linkedresource>                     </linkedresources>                 </configuration>             </plugin>            </plugins>     </build>     <!-- reporting -->     <reporting>         <plugins>             <plugin>                 <groupid>org.apache.maven.plugins</groupid>                 <artifactid>maven-project-info-reports-plugin</artifactid>                 <version>2.6</version>             </plugin>             <plugin>                 <groupid>org.apache.maven.plugins</groupid>                 <artifactid>maven-javadoc-plugin</artifactid>                 <version>2.9.1</version>                 <configuration></configuration>             </plugin>             <plugin>                 <groupid>org.codehaus.mojo</groupid>                 <artifactid>findbugs-maven-plugin</artifactid>                 <version>2.5.3</version>             </plugin>             <plugin>                 <groupid>org.apache.maven.plugins</groupid>                 <artifactid>maven-pmd-plugin</artifactid>                 <version>3.1</version>             </plugin>         </plugins>     </reporting>     <!-- project dependencies -->     <!-- if there dependency not belong orderlycalls          required orderlystats declare required dependencies in section -->     <dependencies>         <dependency>             <groupid>org.apache.tomcat.embed</groupid>             <artifactid>tomcat-embed-core</artifactid>             <version>7.0.53</version>             <scope>provided</scope>         </dependency>         <dependency>             <groupid>javax.mail</groupid>             <artifactid>mail</artifactid>             <version>1.4.7</version>             <scope>provided</scope>         </dependency>         <dependency>             <groupid>net.sf.trove4j</groupid>             <artifactid>trove4j</artifactid>             <version>3.0.3</version>             <scope>provided</scope>         </dependency>         <dependency>             <groupid>com.orderlysoftware</groupid>             <artifactid>orderlyshared</artifactid>             <version>0.1</version>             <scope>provided</scope>         </dependency>         <dependency>             <groupid>com.orderlysoftware</groupid>             <artifactid>orderlycalls</artifactid>             <version>0.1</version>             <scope>provided</scope>         </dependency>         <dependency>             <groupid>com.orderlysoftware</groupid>             <artifactid>orderlyq</artifactid>             <version>0.1</version>             <classifier>base</classifier>             <scope>provided</scope>         </dependency>         <dependency>             <groupid>com.orderlysoftware</groupid>             <artifactid>orderlystats</artifactid>             <version>0.1</version>             <classifier>base</classifier>             <scope>provided</scope>         </dependency>     </dependencies> </project> 

any ideas might causing builder script run on again once finishes ?

ps. on linux (if makes difference)

try without -t 4c? i've seen weird things happening parallel builds. and, seems it's still experimental. don't use versions prior mentioned in known non-thread safe libraries, you?


Comments

Popular posts from this blog

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -

javascript - oscilloscope of speaker input stops rendering after a few seconds -