好的,所以我有一个错误,导致我的一个项目永远建立。
我有一个自定义的ANT构建器脚本,它基本上运行Maven .pom文件(我这样做只是为了节省我手动操作的时间),并且在每次eclipse保存后完成。
然而,一个特别的项目是永远建立一个循环,完成,你再去。
<?xml version="1.0" encoding="UTF-8"?>
<!-- Configuration of Ant build task to generate a Jar file each time project is 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>
所以它是一个简单的ant构建脚本。
Maven POM文件
<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 is any dependency that does not belong to OrderlyCalls But
its required for OrderlyStats declare the required Dependencies in this 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>
任何想法可能导致构建器脚本一旦完成就会重新运行吗?
PS。我在Linux上(如果这有任何区别)
答案 0 :(得分:0)
在没有-T 4C?
的情况下试用它我看到这些并行版本发生了奇怪的事情。而且,似乎it's still experimental。你没有使用已知的非线程安全库中提到的版本之前的版本,对吗?