You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Josh Suereth <jo...@gmail.com> on 2008/02/22 17:10:24 UTC

maven-apt-plugin

Not sure if this is the right place to be sending this, but I was wondering
why the following doesn't work:

<build>
        <finalName>TestWar</finalName>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                    <compilerVersion>1.5</compilerVersion>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.myfaces.tobago</groupId>
                <artifactId>maven-apt-plugin</artifactId>
                <version>1.0.15</version>
                <configuration>
                  <nocompile>true</nocompile>
                  <factory>test.MyAnnotationProcessorFactory</factory>
                  <fork>false</fork>
                </configuration>
                <dependencies>
                  <dependency>
                    <groupId>MyAptProcessor</groupId>
                    <artifactId>MyAptProcessor</artifactId>
                    <version>1.0-SNAPSHOT</version>
                  </dependency>
                </dependencies>
            </plugin>
        </plugins>
    </build>



If I move the dependency outside the plugin directory, and make it for the
whole project then it works.   I'd rather not make my Annotation processor
be a dependency for the whole project as it just generates some config files
based on annotations.   Any ideas?

Thanks,
-Josh Suereth

Re: maven-apt-plugin

Posted by Bernd Bohmann <be...@atanion.com>.
Hello Josh,

the plugin did not support plugin dependencies. See:

https://issues.apache.org/jira/browse/TOBAGO-130

Regards

Bernd




Josh Suereth schrieb:
> Not sure if this is the right place to be sending this, but I was wondering
> why the following doesn't work:
> 
> <build>
>         <finalName>TestWar</finalName>
>         <plugins>
>             <plugin>
>                 <groupId>org.apache.maven.plugins</groupId>
>                 <artifactId>maven-compiler-plugin</artifactId>
>                 <configuration>
>                     <compilerVersion>1.5</compilerVersion>
>                 </configuration>
>             </plugin>
>             <plugin>
>                 <groupId>org.apache.myfaces.tobago</groupId>
>                 <artifactId>maven-apt-plugin</artifactId>
>                 <version>1.0.15</version>
>                 <configuration>
>                   <nocompile>true</nocompile>
>                   <factory>test.MyAnnotationProcessorFactory</factory>
>                   <fork>false</fork>
>                 </configuration>
>                 <dependencies>
>                   <dependency>
>                     <groupId>MyAptProcessor</groupId>
>                     <artifactId>MyAptProcessor</artifactId>
>                     <version>1.0-SNAPSHOT</version>
>                   </dependency>
>                 </dependencies>
>             </plugin>
>         </plugins>
>     </build>
> 
> 
> 
> If I move the dependency outside the plugin directory, and make it for the
> whole project then it works.   I'd rather not make my Annotation processor
> be a dependency for the whole project as it just generates some config files
> based on annotations.   Any ideas?
> 
> Thanks,
> -Josh Suereth
>