Hi,
I am finding problem in downloading maven-apt-plugin for using Querydsl
I have referred the Querydsl reference manual and added the below Maven dependencies in pom.xml.
<dependency>
<groupId>com.mysema.querydsl</groupId>
<artifactId>querydsl-apt</artifactId>
<version>2.7.2</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.mysema.querydsl</groupId>
<artifactId>querydsl-jpa</artifactId>
<version>2.7.2</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>1.6.1</version>
<scope>provided</scope>
</dependency>
And then added the plug-in as below
<plugin>
<groupId>com.mysema.maven</groupId>
<artifactId>maven-apt-plugin</artifactId>
<version>1.0.2</version>
<executions>
<execution>
<goals>
<goal>process</goal>
</goals>
<configuration>
<outputDirectory>target/generated-sources/java</outputDirectory>
<processor>com.mysema.query.apt.jpa.JPAAnnotationProcessor</processor>
</configuration>
</execution>
</executions>
</plugin>
Then the pom file gives the below error:
Plugin execution not covered by lifecycle configuration: com.mysema.maven:maven-apt-plugin:1.0.2:process (execution: default, phase: generate-sources)
I also find problems in downloading the maven-apt-plugin manually using below maven command:
mvn install:install-file -DgroupId=com.mysema.maven -DartifactId=maven-apt-plugin -Dversion=1.0.2 -Dfile=/home/nileshm/Downloads/maven-apt-plugin.1.0.2.jar -Dpackaging=jar -DgeneratePom=true
It gives the below error:
Error installing artifact 'com.mysema.maven:maven-apt-plugin:jar': Error installing artifact: File /home/nileshm/Downloads/maven-apt-plugin.jar does not exist
Please excuse me if I am having some insufficient knowledge about it.
Can someone please help me to resolve this?
Cheers,
Nileshm
Hi.