META-INF/services missing

Bug #628731 reported by Daniel Lipski
4
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Querydsl
Fix Released
Medium
Unassigned

Bug Description

Hi,
I dont know queryDSL well so forgiveme if I miss something, but I couldnt find META-INF/servicess in any jar in newest release.
This bug is similar to: #579985.

Regards
Daniel

Revision history for this message
Timo Westkämper (timo-westkamper) wrote :

Can you check again :

http://source.mysema.com/maven2/releases/com/mysema/querydsl/querydsl-hql/1.9.3/querydsl-hql-1.9.3-apt.jar

The following file is included

/META-INF/services/javax.annotation.processing.Processor

Just add the following dependency in addition to the other dependencies

JPA :

<dependency>
  <groupId>com.mysema.querydsl</groupId>
  <artifactId>querydsl-hql</artifactId>
  <version>1.9.3</version>
  <classifier>apt</classifier>
</dependency>

JDO :

<dependency>
  <groupId>com.mysema.querydsl</groupId>
  <artifactId>querydsl-jdoql</artifactId>
  <version>1.9.3</version>
  <classifier>apt</classifier>
</dependency>

Revision history for this message
Daniel Lipski (daniel-lipski-pl) wrote :

In this jar its ok, but I didnt download querydsl with maven (Im using ant). I downloaded it from:
http://source.mysema.com/static/querydsl/1.9.3/

There is no file named querydsl-hql-1.9.3-apt.jar only querydsl-apt-1.9.3.jar.

When Im using querydsl with hibernate which set of files should I use ?
querydsl-hql-1.9.3-full-deps.zip -querydsl-apt-1.9.3.jar + querydsl-hql-1.9.3-apt.jar ?

Revision history for this message
Timo Westkämper (timo-westkamper) wrote :

I am sorry. Apparently the hql-apt jar is missing from the zip, as you said.

> When Im using querydsl with hibernate which set of files should I use ?

The contents of http://source.mysema.com/static/querydsl/1.9.3/querydsl-hql-1.9.3-full-deps.zip
and the querydsl-hql-1.9.3-apt.jar file.

I will make sure that the hql-apt jar gets included in the zip file for the next release.

Revision history for this message
Daniel Lipski (daniel-lipski-pl) wrote :

Ok, is querydsl-apt-1.9.3.jar still required or it is replaced by querydsl-hql-1.9.3-apt.jar file ?

Revision history for this message
Timo Westkämper (timo-westkamper) wrote :

They have a different purpose

querydsl-apt-1.9.3.jar - contains all the annotation processors for Querydsl
querydsl-hql-1.9.3-apt.jar - contains only the APT configuration (via META-INF/services) for the Querydsl HQL module

So if you use an explicit APT configuration where you specify the annotation processor in the javac command, you don't need the second jar

Revision history for this message
Timo Westkämper (timo-westkamper) wrote :

Btw, are you using Maven or something else?

Changed in querydsl:
importance: Undecided → Medium
Changed in querydsl:
status: New → Fix Committed
Revision history for this message
Timo Westkämper (timo-westkamper) wrote :

Released in 1.9.4

Changed in querydsl:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.