You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Brett Porter (JIRA)" <ji...@codehaus.org> on 2006/02/06 11:41:47 UTC
[jira] Closed: (MNG-2041) Specifying a New Packaging / Creating a
Custom Artifact Handler
[ http://jira.codehaus.org/browse/MNG-2041?page=all ]
Brett Porter closed MNG-2041:
-----------------------------
Assign To: Brett Porter
Resolution: Won't Fix
please ask questions on the users@ list.
I think you need <language>java</language> in there.
> Specifying a New Packaging / Creating a Custom Artifact Handler
> ---------------------------------------------------------------
>
> Key: MNG-2041
> URL: http://jira.codehaus.org/browse/MNG-2041
> Project: Maven 2
> Type: Bug
> Versions: 2.0.2
> Environment: solaris and windows
> Reporter: Olivier Lamy
> Assignee: Brett Porter
> Priority: Critical
>
>
> Hi all,
> I need to Specifying a New Packaging (I have read the section called Specifying a New Packaging [1]). This part is ok. But I have a trouble with the section called Creating a Custom Artifact Handler. I use this : <addedToClasspath>true</addedToClasspath>
> But when I try javadoc:javadoc on an module with this new packaging. Mvn says : Not executing Javadoc as the project is not a Java classpath-capable package.
> I have try my own implementation of ArtifactHandler which simply extends org.apache.maven.artifact.handler.DefaultArtifactHandler.
> But the same result.
> Note , I use the following hack (if not my file =
> artifactId-${version}-{packaging}) : this.getProject().getArtifact().setArtifactHandler( new my own implementation of ArtifactHandler ); getProject().getArtifact().setFile( artifactFile ); My own implementation of ArtifactHandler override :
> - getPackaging()
> - getExtension()
> - getType()
> - isAddedToClasspath() with return true.
> What's wrong ?? (an already existing issue ?)
> Thanks in advance,
> Olivier
--
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
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org