[ http://jira.codehaus.org/browse/MOJO-368?page=all ]
Kaare Nilsen closed MOJO-368:
-----------------------------
Resolution: Won't Fix
Basicly. this issue I cannot do anything with. As long as the ajc compiler does
not support the bndl artifact (which I suspect they are not going to support in
anytime soon) I really do not want to add special handling in the plugin
> aspectj:compile can't resolve non-jar packaged dependency
> ---------------------------------------------------------
>
> Key: MOJO-368
> URL: http://jira.codehaus.org/browse/MOJO-368
> Project: Mojo
> Type: Bug
> Components: aspectj
> Reporter: Emanuel Bulic
> Priority: Critical
>
>
> I created a bndl artifact type, and I plan on using the aspectj-maven-plugin
> to compile the source. However, the aspectj:compile and test-compile mojo's
> can't resolve bndl dependencies.
> interface21:
> <groupId>com.dcx.NGST</groupId>
> <artifactId>interface21</artifactId>
> <packaging>jar</packaging>
> <version>1.20-SNAPSHOT</version>
> logging:
> <groupId>com.dcx.NGST</groupId>
> <artifactId>logging</artifactId>
> <packaging>bndl</packaging>
> <version>1.20-SNAPSHOT</version>
> util:
> <groupId>com.dcx.NGST</groupId>
> <artifactId>util</artifactId>
> <packaging>bndl</packaging>
> <version>1.20-SNAPSHOT</version>
> <dependency>
> <groupId>com.dcx.NGST</groupId>
> <artifactId>logging</artifactId>
> <type>bndl</type>
> <version>1.20-SNAPSHOT</version>
> </dependency>
> <dependency>
> <groupId>com.dcx.NGST</groupId>
> <artifactId>interface21</artifactId>
> <type>jar</type>
> <version>1.20-SNAPSHOT</version>
> </dependency>
> Logging and interface21 have only jar dependencies. interface21 is a jar
> type artifact, and is built using the default maven lifecycle. Logging and
> util are bndl type artifacts and are build using aspectj, with the following
> lifecycle:
> <component>
> <role>org.apache.maven.lifecycle.mapping.LifecycleMapping</role>
> <role-hint>bndl</role-hint>
>
> <implementation>org.apache.maven.lifecycle.mapping.DefaultLifecycleMapping</implementation>
> <configuration>
> <phases>
>
> <process-resources>org.apache.maven.plugins:maven-resources-plugin:resources</process-resources>
>
> <compile>org.codehaus.mojo:aspectj-maven-plugin:compile</compile>
>
> <process-test-resources>org.apache.maven.plugins:maven-resources-plugin:testResources</process-test-resources>
>
> <test-compile>org.codehaus.mojo:aspectj-maven-plugin:test-compile</test-compile>
> <test>com.dcx.NGST:maven-ajtest-plugin:test</test>
>
> <package>com.dcx.NGST:maven-bundle-plugin:jar,com.dcx.NGST:maven-bundle-plugin:test-jar</package>
>
> <install>org.apache.maven.plugins:maven-install-plugin:install</install>
> <deploy>org.apache.maven.plugins:maven-deploy-plugin:deploy</deploy>
> </phases>
> </configuration>
> </component>
> Logging, builds fine, but, while building util, I get the following error:
> [INFO] [aspectj:compile]
> [INFO] Starting compiling aspects
> [INFO] Argumentsfile written :
> C:\NGST\app\java\util\maven-target\classesbuilddef.lst
> [INFO] zipfile classpath entry does not exist:
> C:\j2sdk1.4.2_10\jre\lib\i18n.jar
> [INFO] directory classpath entry does not exist: C:\j2sdk1.4.2_10\jre\classes
> [INFO] directory classpath entry does not exist:
> C:\NGST\app\java\logging\maven-target\logging-1.20-SNAPSHOT.bndl
> [INFO] compiling
> C:\NGST\app\java\util\src\com\dcx\NGST\beancontainer\BeanFactoryLevel.java
> [INFO] compiling
> C:\NGST\app\java\util\src\com\dcx\NGST\core\exceptions\UnSupportedMethodException.java
> [INFO] compiling
> C:\NGST\app\java\util\src\com\dcx\NGST\util\StringPropertiesSort.java
> [INFO] compiling
> C:\NGST\app\java\util\src\com\dcx\NGST\dataRecording\OutputWriteable.java
> ...
> ...
> ...
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Compiler errors :
> error at (no source information available)
> C:\NGST\app\java\util\src\com\dcx\NGST\util\XMLHelper.java:0::0 The type
> com.dcx.NGST.logging.Logger cannot be resolved. It is indirectly referenced
> from required .class files
> error at import com.dcx.NGST.logging.Level;
> ^^^^^^^^^^^^^^^^^^^
> C:\NGST\app\java\util\src\com\dcx\NGST\io\AtomicFileOutputStream.java:12:0::0
> The import com.dcx.NGST.logging cannot be resolved
> error at import com.dcx.NGST.logging.Logger;
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira