Hi Timo,
> The default is that all sources are inspected. For inclusions and exclusions you can use the inclusion/exclusion options as documented
Thanks, that is what I've been looking for. Unfortunately, I still do something the wrong way.
We've used querydsl 3.2.3, I startet with:
<plugin>
<groupId>com.mysema.maven</groupId>
<artifactId>apt-maven-plugin</artifactId>
<version>1.1.1</version>
<executions>
<execution>
<goals>
<goal>process</goal>
</goals>
<configuration>
<outputDirectory>target/generated-sources/querydsl/java</outputDirectory>
<processor>com.mysema.query.apt.jpa.JPAAnnotationProcessor</processor>
<options>
<querydsl.excludedPackages>java,javax,org,com</querydsl.excludedPackages>
</options>
</configuration>
</execution>
</executions>
</plugin>
Neither querydsl.excludedPackages or querydsl.includedPackages seem to effect something.
Then I've upgraded to querydsl 3.3.1, still without the desired effect.
(Moreover, I get an java.lang.ClassFormatError: "Absent Code attribute in method that is not native or abstract in class file javax/persistence/FetchType
" which is caused by the dependency javax:javaee-api:6.0. This leads me to the assumption, that the querydsl.excludedPackages parameter is not being processed)
The mvn -X output suggest, that the parameter is passed to the processor:
[DEBUG] Configuring mojo com.mysema.maven:apt-maven-plugin:1.1.1:process from plugin realm ClassRealm[plugin>com.mysema.maven:apt-maven-plugin:1.1.1, parent: sun.misc.Launcher$AppClassLoader@5889949a]
[DEBUG] Configuring mojo 'com.mysema.maven:apt-maven-plugin:1.1.1:process' with basic configurator -->
[DEBUG] (s) options = {querydsl.excludedPackages=java,javax,org,com}
[DEBUG] (s) outputDirectory = D:\juli\RechteDB\quellen\kern\target\generated-sources\querydsl\java
[DEBUG] (s) pluginArtifacts = [com.mysema.maven:apt-maven-plugin:maven-plugin:1.1.1:, org.sonatype.plexus:plexus-build-api:jar:0.0.7:compile, org.codehaus.plexus:plexus-utils:jar:1.5.8:compile, backport-util-concurrent:backport-util-concurrent:jar:3.1:compile, org.codehaus.plexus:plexus-interpolation:jar:1.11:compile, junit:junit:jar:3.8.1:compile]
[DEBUG] (s) processor = com.mysema.query.apt.jpa.JPAAnnotationProcessor
[DEBUG] (s) project = MavenProject: de.wlps.juli:Kern:0.37.0-SNAPSHOT @ D:\juli\RechteDB\quellen\kern\pom.xml
[DEBUG] (s) sourceEncoding = UTF-8
[DEBUG] -- end configuration --
Any ideas?
Thanks for your effort,
Martin