Hi,
I am currently getting build failures with the tracing-aspectj project when
building on Linux. The Continuum server [1] is also seeing the same issue.
See [3] for the full build output from the Continuum server for the
tracing-aspectj project. The key bit from the output is:
[INFO] [surefire:test]
[INFO] Surefire report directory:
/home/continuum/data/working-directory/277/modules/tracing-aspectj/target/su
refire-reports
Error occurred during initialization of VM
Error opening zip file:
"/home/continuum/.m2/repository/org/aspectj/aspectjweaver/1.6.1/aspectj
weaver-1.6.1.jar"
agent library failed to init: instrument
The problem is that the build is attempting to run surefire with the AspectJ
codeweaver as the javaagent but is passing in an invalid filename. The code
that is causing this issue is in the pom.xml.
<configuration>
<includes>
<include>**/*TestCase.java</include>
</includes>
<reportFormat>brief</reportFormat>
<useFile>false</useFile>
<forkMode>once</forkMode>
<!-- I hit a bug in maven-surefire-plugin
http://jira.codehaus.org/browse/SUREFIRE-128 -->
<argLine>-ea -Xmx128m
-javaagent:"${settings.localRepository}/org/aspectj/aspectjweaver/1.6.1
/aspectjweaver-1.6.1.jar"</argLine>
</configuration>
In the pom.xml file, the path to the aspectjweaver jar is surrounded by
" so that it will handle paths with spaces in it. As the comment says,
this was added as a work around to fix surefire bug 128 [2] This surefire
bug has now been fixed in versions 2.4 and above.
The problem we have is that we are still using a version 2.3.1 which does
not contain the fix for this bug.
What I would like to do is:
* Upgrade the version of surefire that we are using to the latest
version - version 2.4.3
* Remove the " from the pom.xml of the tracing-aspectj project
to fix the build on Linux and the Continuum server.
Anyone have any reservations about upgrading to the latest version of
surefire?
Thanks,
Mark
[1]
http://vmbuild.apache.org/continuum/buildResult.action?buildId=107618&projec
tId=277&projectGroupId=19
[2] http://jira.codehaus.org/browse/SUREFIRE-128
[3] Full build output below for the tracing-aspectj project
[INFO]
------------------------------------------------------------------------
[INFO] Building Apache Tuscany AOP-based Logging and Tracing
[INFO] task-segment: [clean, install]
[INFO]
------------------------------------------------------------------------
[INFO] artifact org.apache.maven.plugins:maven-surefire-plugin: checking for
updates from apache
[INFO] artifact org.apache.maven.plugins:maven-surefire-plugin: checking for
updates from apache.incubator
[INFO] artifact org.apache.maven.plugins:maven-surefire-plugin: checking for
updates from codehaus-snapshot
[INFO] artifact org.apache.maven.plugins:maven-surefire-plugin: checking for
updates from apache.ws.zone
[INFO] artifact org.apache.maven.plugins:maven-surefire-plugin: checking for
updates from indiana
[INFO] artifact org.apache.maven.plugins:maven-surefire-plugin: checking for
updates from osuosl.org
[INFO] [clean:clean]
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
Downloading:
http://people.apache.org/repo/m2-incubating-repository/org/aspectj/aspectjrt
/1.6.1/aspectjrt-1.6.1.pom
Downloading:
http://ws.zones.apache.org/repository2/org/aspectj/aspectjrt/1.6.1/aspectjrt
-1.6.1.pom
Downloading:
http://ftp.ussg.iu.edu/eclipse/modeling/emf/emf/maven2//org/aspectj/aspectjr
t/1.6.1/aspectjrt-1.6.1.pom
Downloading:
http://ftp.osuosl.org/pub/eclipse/tools/emf/maven2/org/aspectj/aspectjrt/1.6
.1/aspectjrt-1.6.1.pom
Downloading:
http://repo1.maven.org/maven2/org/aspectj/aspectjrt/1.6.1/aspectjrt-1.6.1.po
m
494b downloaded
Downloading:
http://people.apache.org/repo/m2-incubating-repository/org/aspectj/aspectjli
b/1.6.1/aspectjlib-1.6.1.pom
Downloading:
http://ws.zones.apache.org/repository2/org/aspectj/aspectjlib/1.6.1/aspectjl
ib-1.6.1.pom
Downloading:
http://ftp.ussg.iu.edu/eclipse/modeling/emf/emf/maven2//org/aspectj/aspectjl
ib/1.6.1/aspectjlib-1.6.1.pom
Downloading:
http://ftp.osuosl.org/pub/eclipse/tools/emf/maven2/org/aspectj/aspectjlib/1.
6.1/aspectjlib-1.6.1.pom
Downloading:
http://repo1.maven.org/maven2/org/aspectj/aspectjlib/1.6.1/aspectjlib-1.6.1.
pom
495b downloaded
Downloading:
http://people.apache.org/repo/m2-incubating-repository/org/aspectj/aspectjwe
aver/1.6.1/aspectjweaver-1.6.1.pom
Downloading:
http://ws.zones.apache.org/repository2/org/aspectj/aspectjweaver/1.6.1/aspec
tjweaver-1.6.1.pom
Downloading:
http://ftp.ussg.iu.edu/eclipse/modeling/emf/emf/maven2//org/aspectj/aspectjw
eaver/1.6.1/aspectjweaver-1.6.1.pom
Downloading:
http://ftp.osuosl.org/pub/eclipse/tools/emf/maven2/org/aspectj/aspectjweaver
/1.6.1/aspectjweaver-1.6.1.pom
Downloading:
http://repo1.maven.org/maven2/org/aspectj/aspectjweaver/1.6.1/aspectjweaver-
1.6.1.pom
497b downloaded
Downloading:
http://people.apache.org/repo/m2-incubating-repository/org/aspectj/aspectjrt
/1.6.1/aspectjrt-1.6.1.jar
Downloading:
http://ws.zones.apache.org/repository2/org/aspectj/aspectjrt/1.6.1/aspectjrt
-1.6.1.jar
Downloading:
http://ftp.ussg.iu.edu/eclipse/modeling/emf/emf/maven2//org/aspectj/aspectjr
t/1.6.1/aspectjrt-1.6.1.jar
Downloading:
http://ftp.osuosl.org/pub/eclipse/tools/emf/maven2/org/aspectj/aspectjrt/1.6
.1/aspectjrt-1.6.1.jar
Downloading:
http://repo1.maven.org/maven2/org/aspectj/aspectjrt/1.6.1/aspectjrt-1.6.1.ja
r
112K downloaded
Downloading:
http://people.apache.org/repo/m2-incubating-repository/org/aspectj/aspectjli
b/1.6.1/aspectjlib-1.6.1.jar
Downloading:
http://ws.zones.apache.org/repository2/org/aspectj/aspectjlib/1.6.1/aspectjl
ib-1.6.1.jar
Downloading:
http://ftp.ussg.iu.edu/eclipse/modeling/emf/emf/maven2//org/aspectj/aspectjl
ib/1.6.1/aspectjlib-1.6.1.jar
Downloading:
http://ftp.osuosl.org/pub/eclipse/tools/emf/maven2/org/aspectj/aspectjlib/1.
6.1/aspectjlib-1.6.1.jar
Downloading:
http://repo1.maven.org/maven2/org/aspectj/aspectjlib/1.6.1/aspectjlib-1.6.1.
jar
7K downloaded
[INFO] [compiler:compile]
[INFO] Compiling 3 source files to
/home/continuum/data/working-directory/277/modules/tracing-aspectj/target/cl
asses
[INFO] [bundle:manifest {execution: bundle-manifest}]
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
Downloading:
http://people.apache.org/repo/m2-incubating-repository/org/aspectj/aspectjwe
aver/1.6.1/aspectjweaver-1.6.1.jar
Downloading:
http://ws.zones.apache.org/repository2/org/aspectj/aspectjweaver/1.6.1/aspec
tjweaver-1.6.1.jar
Downloading:
http://ftp.ussg.iu.edu/eclipse/modeling/emf/emf/maven2//org/aspectj/aspectjw
eaver/1.6.1/aspectjweaver-1.6.1.jar
Downloading:
http://ftp.osuosl.org/pub/eclipse/tools/emf/maven2/org/aspectj/aspectjweaver
/1.6.1/aspectjweaver-1.6.1.jar
Downloading:
http://repo1.maven.org/maven2/org/aspectj/aspectjweaver/1.6.1/aspectjweaver-
1.6.1.jar
1530K downloaded
[INFO] [compiler:testCompile]
[INFO] Compiling 1 source file to
/home/continuum/data/working-directory/277/modules/tracing-aspectj/target/te
st-classes
[INFO] [surefire:test]
[INFO] Surefire report directory:
/home/continuum/data/working-directory/277/modules/tracing-aspectj/target/su
refire-reports
Error occurred during initialization of VM
Error opening zip file:
"/home/continuum/.m2/repository/org/aspectj/aspectjweaver/1.6.1/aspectj
weaver-1.6.1.jar"
agent library failed to init: instrument
_____