Hi list,

ok this sounds like the simplest question but either my brain fried this evening and I can't see the obvious or else I hit some really unexpected behaviour. I have a multi-module project hosted on github (https://github.com/agilebirds/openflexo) and it is built regularly on jenkins. Somehow, jenkins got messed up and I don't know exactly when my build broke, but it has worked for at least 2 months every night. Anyway, the error I get is the following (classical error): [INFO] ------------------------------------------------------------------------
[INFO] Building FlexoFoundation 1.4.4-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ flexofoundation ---
[INFO] Deleting D:\tmp\openflexo\flexodesktop\model\flexofoundation\target
[INFO]
[INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ flexofou
ndation ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO] Copying 0 resource
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ flexofoundati
on ---
[INFO] Compiling 1542 source files to D:\tmp\openflexo\flexodesktop\model\flexof
oundation\target\classes
[WARNING] \tmp\openflexo\flexodesktop\model\flexofoundation\src\main\java\org\op enflexo\foundation\rm\FlexoProject.java:[180,31] com.sun.image.codec.jpeg.JPEGCo
dec is Sun proprietary API and may be removed in a future release
[WARNING] \tmp\openflexo\flexodesktop\model\flexofoundation\src\main\java\org\op enflexo\foundation\rm\FlexoProject.java:[181,31] com.sun.image.codec.jpeg.JPEGIm
ageEncoder is Sun proprietary API and may be removed in a future release
[WARNING] \tmp\openflexo\flexodesktop\model\flexofoundation\src\main\java\org\op enflexo\foundation\gen\ScreenshotGenerator.java:[59,31] com.sun.image.codec.jpeg .ImageFormatException is Sun proprietary API and may be removed in a future rele
ase
[WARNING] \tmp\openflexo\flexodesktop\model\flexofoundation\src\main\java\org\op enflexo\foundation\gen\ScreenshotGenerator.java:[60,31] com.sun.image.codec.jpeg
.JPEGCodec is Sun proprietary API and may be removed in a future release
[WARNING] \tmp\openflexo\flexodesktop\model\flexofoundation\src\main\java\org\op enflexo\foundation\rm\FlexoProject.java:[3018,5] com.sun.image.codec.jpeg.JPEGIm
ageEncoder is Sun proprietary API and may be removed in a future release
[WARNING] \tmp\openflexo\flexodesktop\model\flexofoundation\src\main\java\org\op enflexo\foundation\rm\FlexoProject.java:[3018,32] com.sun.image.codec.jpeg.JPEGC
odec is Sun proprietary API and may be removed in a future release
[WARNING] \tmp\openflexo\flexodesktop\model\flexofoundation\src\main\java\org\op enflexo\foundation\gen\ScreenshotGenerator.java:[418,35] com.sun.image.codec.jpe
g.JPEGCodec is Sun proprietary API and may be removed in a future release
[WARNING] \tmp\openflexo\flexodesktop\model\flexofoundation\src\main\java\org\op enflexo\foundation\gen\ScreenshotGenerator.java:[426,21] com.sun.image.codec.jpe g.ImageFormatException is Sun proprietary API and may be removed in a future rel
ease
[INFO]
[INFO] --- maven-resources-plugin:2.4.3:testResources (default-testResources) @
flexofoundation ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 41 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ flexo
foundation ---
[INFO] Compiling 27 source files to D:\tmp\openflexo\flexodesktop\model\flexofou
ndation\target\test-classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] \tmp\openflexo\flexodesktop\model\flexofoundation\src\test\java\org\open
flexo\foundation\FlexoTestCase.java:[40,34] cannot find symbol
symbol  : class ComponentDMEntity
location: package org.openflexo.foundation.dm
...
and it goes on and on with the same error but for different classes.

Now the thing is that the classes Maven complains it cannot find are in the same project, they just are not test-classes. So I thought that my workspace was all messed up and I went to see on the HD if the corresponding java source files were there or not: all files seems to be present and ok, but when I go to the "target" directory and look for the corresponding class files, I see that many of them are missing. So I was wondering how would Maven not compile all classes located in src/main/java? I have counted the number of Java files in src/main/java--> 1542 java files and I have counted the number of class files in target/classes: 629 files. How is this possible?

I use the following command to perform my goals and options: '-DskipTests clean deploy'. I thought that this could be environmental and so I decided to checkout the code in a clean repository on my laptop, and I also hit the same error.

I have spent my afternoon trying to figure out what the problem was and how this happened, but so far I came up with nothing, so any idea would be greatly appreciated (don't hesitate, even if you think it is a dumb idea, because I got nothing).

My pom.xml can be found here: https://github.com/agilebirds/openflexo/blob/master/flexodesktop/model/flexofoundation/pom.xml My root pom can be found here: https://github.com/agilebirds/openflexo/blob/master/pom.xml and it contains the maven compiler configuration which is the following (compiler is 1.6 for source and targe, encoding is UTF-8 everywhere):

<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>${compiler.source}</source>
<target>${compiler.target}</target>
<encoding>${source.encoding}</encoding>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<configuration>
<encoding>${resource.encoding}</encoding>
</configuration>
</plugin>
</plugins>
</pluginManagement>

I have wrongly asked my question, please tell me how I can improve it.

Cheers,
Guillaume


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to