Why are these sources in the project if they don't need to be compiled?
Are they really java sources?
If so, why don't they compile? If not, should they just be resources rather than sources?

Ron

On 26/05/2015 5:27 PM, Joris Kinable wrote:
Dear,

I'm trying to set up my first maven project for my code which can be found
here:
https://github.com/jkinable/jorlib

I have 3 pom files:
https://github.com/jkinable/jorlib/blob/master/pom.xml
https://github.com/jkinable/jorlib/blob/master/jorlib-core/pom.xml
https://github.com/jkinable/jorlib/blob/master/jorlib-demo/pom.xml

I would like to exclude all files in the following directory from both
compilation and testing (but the sources need to be retained):
jorlib-core/src/test/java/org/jorlib/frameworks/columnGeneration/tsp

I've tried to include pretty much every <exclude> ... </exclude> pattern I
could think of to the following plugins:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
in https://github.com/jkinable/jorlib/blob/master/pom.xml


and

<plugin>
   <groupId>org.apache.maven.plugins</groupId>
   <artifactId>maven-jar-plugin</artifactId>
   <version>2.4</version>
   <configuration>
       <archive>

  
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
       </archive>
   </configuration>
</plugin>
in https://github.com/jkinable/jorlib/blob/master/jorlib-core/pom.xml

Yet "mvn package" keeps compiling (and crashing) on files in the directory
jorlib-core/src/test/java/org/jorlib/frameworks/columnGeneration/tsp
Any suggestions on how to solve this?

Thank you,

Joris



--
Ron Wheeler
President
Artifact Software Inc
email: rwhee...@artifact-software.com
skype: ronaldmwheeler
phone: 866-970-2435, ext 102


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to