You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Mark Shead <sh...@optimalinternet.com> on 2005/11/16 18:44:37 UTC

Listing Goals

In maven 1, you can do something like:
maven -g 

to get a listing of all the available goals.

Is there an equivalent way to do this in m2?

--Mark

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


Re: jars that are not in maven repository and how to deal with them

Posted by Arik Kfir <ar...@gmail.com>.
Afraid so.

I just leave them without a pom, until I want them to have
dependencies themselves (and ignore the message..)

I think there's a JIRA issue that asks for the install plugin to
generate a skeleton pom as well.

On 11/16/05, Krikor Krumlian <kr...@wgbh.org> wrote:
> Ok guys here is the deal -
>
> Now I have a jar file called db2xml.jar - and this needs to go in my
> repository. So i executed the following command
>
> mvn install:install-file -Dfile=/Users/greg/.maven/repository/db2xml/
> jars/db2xml.jar -DgroupId=db2xml -DartifactId=db2xml -Dversion=1.4 -
> Dpackaging=jar
>
> Ok now that is very good it added all the stuff to the repository
> now i go to compile and i get the following
>
> [INFO] Scanning for projects...
> [INFO]
> ------------------------------------------------------------------------
> ----
> [INFO] Building Online Ingestor
> [INFO]    task-segment: [compile]
> [INFO]
> ------------------------------------------------------------------------
> ----
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> Downloading: http://repo1.maven.org/maven2/db2xml/db2xml/1.4/
> db2xml-1.4.pom
> [WARNING] Unable to get resource from repository central (http://
> repo1.maven.org/maven2)
> [INFO] [compiler:compile]
> [INFO] Nothing to compile - all classes are up to date
> [INFO]
> ------------------------------------------------------------------------
> ----
> [INFO] BUILD SUCCESSFUL
> [INFO]
> ------------------------------------------------------------------------
> ----
> [INFO] Total time: 24 seconds
> [INFO] Finished at: Wed Nov 16 10:57:10 EST 2005
> [INFO] Final Memory: 3M/6M
> [INFO]
> ------------------------------------------------------------------------
> ----
>
> So i go to the ./m2/repository/db2xml/db2xml/1.4 and create a
> db2xml-1.4.pom with the following content
>
>
> <project>
>    <modelVersion>4.0.0</modelVersion>
>    <groupId>db2xml</groupId>
>    <artifactId>db2xml</artifactId>
>    <version>1.4</version>
> </project>
>
> Now i compile and I dont get that message which is beautiful . But my
> question do i Have to do the same for
> each jar that is not in the maven 2 repository ?
>
> Thank you
>
> ---------------------------------------------------------------------
> 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


jars that are not in maven repository and how to deal with them

Posted by Krikor Krumlian <kr...@wgbh.org>.
Ok guys here is the deal -

Now I have a jar file called db2xml.jar - and this needs to go in my
repository. So i executed the following command

mvn install:install-file -Dfile=/Users/greg/.maven/repository/db2xml/ 
jars/db2xml.jar -DgroupId=db2xml -DartifactId=db2xml -Dversion=1.4 - 
Dpackaging=jar

Ok now that is very good it added all the stuff to the repository
now i go to compile and i get the following

[INFO] Scanning for projects...
[INFO]  
------------------------------------------------------------------------ 
----
[INFO] Building Online Ingestor
[INFO]    task-segment: [compile]
[INFO]  
------------------------------------------------------------------------ 
----
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
Downloading: http://repo1.maven.org/maven2/db2xml/db2xml/1.4/ 
db2xml-1.4.pom
[WARNING] Unable to get resource from repository central (http:// 
repo1.maven.org/maven2)
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO]  
------------------------------------------------------------------------ 
----
[INFO] BUILD SUCCESSFUL
[INFO]  
------------------------------------------------------------------------ 
----
[INFO] Total time: 24 seconds
[INFO] Finished at: Wed Nov 16 10:57:10 EST 2005
[INFO] Final Memory: 3M/6M
[INFO]  
------------------------------------------------------------------------ 
----

So i go to the ./m2/repository/db2xml/db2xml/1.4 and create a  
db2xml-1.4.pom with the following content


<project>
   <modelVersion>4.0.0</modelVersion>
   <groupId>db2xml</groupId>
   <artifactId>db2xml</artifactId>
   <version>1.4</version>
</project>

Now i compile and I dont get that message which is beautiful . But my  
question do i Have to do the same for
each jar that is not in the maven 2 repository ?

Thank you 

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


Re: Listing Goals

Posted by Michael Böckling <mi...@giniality.com>.
Hi Mark,

there is an equivalent, but this functionality now resides in its own 
plugin, it is called projecthelp. So if you open a shell and execute
projecthelp:describe -Dplugin=org.apache.maven.plugins:maven-jar-plugin

you will get something like this (there are still plenty of ToDos in the 
maven plugins... ^^):


[INFO] [projecthelp:describe]
Description of Plugin
-----------------------------------------------

Group Id:  org.apache.maven.plugins
Artifact Id: maven-jar-plugin
Version:     2.1-SNAPSHOT
Goal Prefix: jar

Mojos:
-----------------------------------------------

TODO!
-----------------------------------------------

TODO!
-----------------------------------------------

TODO!
-----------------------------------------------


Further information at 
http://maven.apache.org/plugins/maven-projecthelp-plugin/.
Hope this is what you were looking for,
Michael

-- 
Giniality AG - Michael Böckling; Steinenberg 21, CH-4051 Basel
P: +41 61 226 99 63 - F: +41 61 226 99 69
michael.boeckling@giniality.ch; http://www.giniality.com/



>In maven 1, you can do something like:
>maven -g 
>
>to get a listing of all the available goals.
>
>Is there an equivalent way to do this in m2?
>
>--Mark
>
>---------------------------------------------------------------------
>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