You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Patrick Moore <pm...@yahoo.com> on 2006/08/21 19:46:56 UTC

getting the sources and javadocs

Hi there -

It looks like there is no way with maven2 to get the generated javadoc jar or
the sources.jar files. Is this correct?

Been looking for a while for a way and I found this:
http://jira.codehaus.org/browse/MNG-2248

-Pat



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: ant plugin and javah

Posted by Pierre Parrend <pi...@insa-lyon.fr>.
 Hello,

 I solved the problem by following trick :

<tasks>
                <exec executable="ant" failonerror="true"/>
</tasks>

that is ti say I use the ant version that is installed on my computer. But it is
not very portable ...

another question : 

is it possible to execute several ant tasks in the same pom ?
when I try to define several <execution> tags (for different compilation phases,
for instance compile and clean), I only get error messages.

pierre

Quoting Dave Syer <da...@hotmail.com>:

> 
> > How is it possible to tell the plugin to use more libraries ? for
> instances
> the
> > ones that are present in $ANT_HOME/lib/ ?
> 
> I don't know about $ANT_HOME/lib (maven isn't using $ANT_HOME so it probably
> isn't going to see those jars).  Have you tried adding dependencies to the
> plugin in your <build> element?
> -- 
> View this message in context:
>
http://www.nabble.com/getting-the-sources-and-javadocs-tf2141673.html#a5930104
> Sent from the Maven - Users forum at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 


-- 
Pierre Parrend
doctorant, moniteur
laboratoire CITI, 21, Av. Jean Capelle
69621 Villeurbanne Cedex
pierre.parrend@insa-lyon.fr
www.rzo.free.fr

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: ant plugin and javah

Posted by Dave Syer <da...@hotmail.com>.
> How is it possible to tell the plugin to use more libraries ? for instances
the
> ones that are present in $ANT_HOME/lib/ ?

I don't know about $ANT_HOME/lib (maven isn't using $ANT_HOME so it probably
isn't going to see those jars).  Have you tried adding dependencies to the
plugin in your <build> element?
-- 
View this message in context: http://www.nabble.com/getting-the-sources-and-javadocs-tf2141673.html#a5930104
Sent from the Maven - Users forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


ant plugin and javah

Posted by Pierre Parrend <pi...@insa-lyon.fr>.
  Hello,

 I'm using maven 2 with the ant plugin. I do not know if there is a specific
mailing list, but somebody here can surely tell me.

I get the following problem : will compiling a maven project than uses javah,
maven cannot find suitable jar file.
How is it possible to tell the plugin to use more libraries ? for instances the
ones that are present in $ANT_HOME/lib/ ?

the error message is the following:

-----------
Embedded error: The following error occurred while executing this line:
/home/pierre/boulot/dev/pparrend/malicious-suite/loadinjector-mvn/build.xml:13:
Could not create task or type of type: javah.

Ant could not find the task or a class this task relies upon.
-----------

 thanks for your advices,

Pierre Parrend

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: getting the sources and javadocs

Posted by Arik Kfir <ar...@gmail.com>.
As well as the IDEA plugin, of course ;-)

On Mon, 2006-08-21 at 15:57 -0400, Tomislav Stojcevich wrote:
> The maven-dependency-plugin has a sources goal.
> http://mojo.codehaus.org/dependency-maven-plugin/introduction.html
> 
> mvn dependency:sources
> 
> This is not available in the released 1.0 version, but it is in the
> 1.1-SNAPSHOT.  You need to build from source or get from mojo snapshot
> repository.  http://snapshots.maven.codehaus.org/maven2/org/codehaus/mojo/dependency-maven-plugin/1.1-SNAPSHOT/
> 
> Or just use the eclipse plugin with the -DdownloadSources=true and
> ignore the generated eclipse files.
> 
> On 8/21/06, Patrick Moore <pm...@yahoo.com> wrote:
> > Hi there -
> >
> > It looks like there is no way with maven2 to get the generated javadoc jar or
> > the sources.jar files. Is this correct?
> >
> > Been looking for a while for a way and I found this:
> > http://jira.codehaus.org/browse/MNG-2248
> >
> > -Pat
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: getting the sources and javadocs

Posted by Denis Cabasson <de...@insee.fr>.
Just read what Tomislav wrote, this is a feature of the 1.1-SNAPSHOT
version....

Denis


Patrick Moore-3 wrote:
> 
> Hi --
> 
> I tried :
> 
>  mvn dependency:sources 
> 
> and the plugin does not know about the sources goal (which is also not
> reference on the web page given below.)
> 
> Is it possible that you are using a snapshot build of this plugin?
> 
> -Pat
> 
> --- Tomislav Stojcevich <st...@gmail.com> wrote:
> 
>> The maven-dependency-plugin has a sources goal.
>> http://mojo.codehaus.org/dependency-maven-plugin/introduction.html
>> 
>> mvn dependency:sources
>> 
>> This is not available in the released 1.0 version, but it is in the
>> 1.1-SNAPSHOT.  You need to build from source or get from mojo snapshot
>> repository. 
>>
> http://snapshots.maven.codehaus.org/maven2/org/codehaus/mojo/dependency-maven-plugin/1.1-SNAPSHOT/
>> 
>> Or just use the eclipse plugin with the -DdownloadSources=true and
>> ignore the generated eclipse files.
>> 
>> On 8/21/06, Patrick Moore <pm...@yahoo.com> wrote:
>> > Hi there -
>> >
>> > It looks like there is no way with maven2 to get the generated javadoc
>> jar
>> or
>> > the sources.jar files. Is this correct?
>> >
>> > Been looking for a while for a way and I found this:
>> > http://jira.codehaus.org/browse/MNG-2248
>> >
>> > -Pat
>> >
>> >
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> > For additional commands, e-mail: users-help@maven.apache.org
>> >
>> >
>> 
>> 
>> -- 
>> tom
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>> 
>> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/getting-the-sources-and-javadocs-tf2141673.html#a5930192
Sent from the Maven - Users forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: getting the sources and javadocs

Posted by Patrick Moore <pm...@yahoo.com>.
Hi --

I tried :

 mvn dependency:sources 

and the plugin does not know about the sources goal (which is also not
reference on the web page given below.)

Is it possible that you are using a snapshot build of this plugin?

-Pat

--- Tomislav Stojcevich <st...@gmail.com> wrote:

> The maven-dependency-plugin has a sources goal.
> http://mojo.codehaus.org/dependency-maven-plugin/introduction.html
> 
> mvn dependency:sources
> 
> This is not available in the released 1.0 version, but it is in the
> 1.1-SNAPSHOT.  You need to build from source or get from mojo snapshot
> repository. 
>
http://snapshots.maven.codehaus.org/maven2/org/codehaus/mojo/dependency-maven-plugin/1.1-SNAPSHOT/
> 
> Or just use the eclipse plugin with the -DdownloadSources=true and
> ignore the generated eclipse files.
> 
> On 8/21/06, Patrick Moore <pm...@yahoo.com> wrote:
> > Hi there -
> >
> > It looks like there is no way with maven2 to get the generated javadoc jar
> or
> > the sources.jar files. Is this correct?
> >
> > Been looking for a while for a way and I found this:
> > http://jira.codehaus.org/browse/MNG-2248
> >
> > -Pat
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
> 
> 
> -- 
> tom
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: getting the sources and javadocs

Posted by Tomislav Stojcevich <st...@gmail.com>.
The maven-dependency-plugin has a sources goal.
http://mojo.codehaus.org/dependency-maven-plugin/introduction.html

mvn dependency:sources

This is not available in the released 1.0 version, but it is in the
1.1-SNAPSHOT.  You need to build from source or get from mojo snapshot
repository.  http://snapshots.maven.codehaus.org/maven2/org/codehaus/mojo/dependency-maven-plugin/1.1-SNAPSHOT/

Or just use the eclipse plugin with the -DdownloadSources=true and
ignore the generated eclipse files.

On 8/21/06, Patrick Moore <pm...@yahoo.com> wrote:
> Hi there -
>
> It looks like there is no way with maven2 to get the generated javadoc jar or
> the sources.jar files. Is this correct?
>
> Been looking for a while for a way and I found this:
> http://jira.codehaus.org/browse/MNG-2248
>
> -Pat
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


-- 
tom

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: getting the sources and javadocs

Posted by Mike Perham <mp...@us.ibm.com>.



Not by hand from the command line afaik.  The eclipse plugin will try to
download both if available when you run eclipse:eclipse.

mike

Patrick Moore <pm...@yahoo.com> wrote on 08/21/2006 12:46:56 PM:

> Hi there -
>
> It looks like there is no way with maven2 to get the generated javadoc
jar or
> the sources.jar files. Is this correct?
>
> Been looking for a while for a way and I found this:
> http://jira.codehaus.org/browse/MNG-2248