On Tue, 2002-10-01 at 12:47, Michael McKibben wrote:
> Hello, I am trying to specify non jar dependencies in my project.xml. I
> was under the impression that any type of artifact could be listed as a
> dependency similar to the following xml example:
> 
>               <dependency>
>                       <id>jboss-server</id>
>                       <type>distributions</type>
>                       <version>3.0.2</version>
>                       <artifact>jboss-3.0.2.zip</artifact>
>               </dependency>
> 
> I have a remote repository setup with the following structure:
>       jboss-server/distributions/jboss-3.0.2.zip
> 
> Unfortunately, maven tries to download my dependency as:
>       jboss-server/jars/jboss-3.0.2.zip
> 
> Looking at the code impl for ProjectVerifier.verifyDependencies() I can
> see why. It assumes all dependencies are a DefaultJarArtifact! Wouldn't a
> more generic approach be to build the url by <id>/<type>/<artifact>?

Of course. Look near the top of ProjectVerifier:

// Temporary
import org.apache.maven.repository.DefaultJarArtifact;

Look in the org.apache.maven.repository package if you would like to
implement what you suggest. Patches welcome.

To almost every question that starts with "Don't you think it might be
better if Maven did X,Y, and Z", the answer is yes. And usually the
reason is that something basically working is better than nothing
working which is why things like general dependency handling isn't fully
implemented. Or why artifacts aren't verified. We intend to but like
everything else it's a matter of time.
 
> I am a newbie user so maybe I just misunderstand the purpose of the
> dependency element in a maven project.xml. I was hoping I could have maven
> automatically download the jboss dist to the local repository so I can
> write a goal to unpack the jboss dist, deploy, and test my project's ejbs.
> 
> Regards,
> 
> --mike
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
-- 
jvz.

Jason van Zyl
[EMAIL PROTECTED]
http://tambora.zenplex.org

In short, man creates for himself a new religion of a rational
and technical order to justify his work and to be justified in it.
  
  -- Jacques Ellul, The Technological Society


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to