Re: generate link css on maven reports

2008-06-02 Thread ggalou08

It works,

thank you !



ggalou08 wrote:
> 
> hi !
> 
> I generate a site with maven reports and in the code source I see a link
> on a css file : print.css.
> 
> This file doesn't exist, and i wonder if I can force Maven not to generate
> this link or if it's just a bug ?!?
> 
> this is the source :
> 
> 
>   @import url("./css/maven-base.css");
>   @import url("./css/maven-theme.css");
>   @import url("./css/site.css");
> 
> 
> Thank you for your help !
> 

-- 
View this message in context: 
http://www.nabble.com/generate-link-css-on-maven-reports-tp17596897p17617100.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Maven and GData

2008-06-02 Thread Alan Gutierrez
It seems that Google Guice has made it into the Maven repositories  
while GData has not, even though they are both very openly licensed.  
I'm searching using mvnrepository.com. I'm not seeing anything for  
GData.


I did find the Google APIs Mavenized project. Not sure how up to date  
it is.


http://code.google.com/p/google-apis-mavenized/

Was hoping that it would be available in a repository somewhere.

Alan

--
Alan Gutierrez | [EMAIL PROTECTED] | http://blogometer.com/ | 504  
717 1428

Think New Orleans | http://thinknola.com/



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



Re: How can I run an Ant target in Maven?

2008-06-02 Thread Alan Gutierrez


On Jun 2, 2008, at 10:06 AM, [EMAIL PROTECTED] wrote:


Alan Gutierrez schrieb:

Related question:

In most of my projects I create command line tools. To get them up  
and
running quickly, I use Ant and all the classpath configuration  
that is

already defined in my build.xml.

I've seen that you're supposed to use Profiles to switch out plugin
configurations, so I could use different profiles to change my antrun
tasks, effectively creating targets.

But, is that the best practice? I assume that there are one of three
choices. (Because, I explored making Maven switchable without writing
plugins, and was told that profiles where it.)



So I would recommend keeping maven for build tasks, and doing all the
other stuff that is, as you say, "only tangentially part of the build
process" separate, eg shell-script, perl, or ant. If it isn't part  
of a
build lifecycle, then shoe-horning it into Maven will always be  
awkward.


This thread started with someone asking how to set up maven to
effectively act like
ant runSomeArbitraryProcessing
and I think this is exactly the sort of thing that should NOT be  
pushed
into a pom file. There is no reason why everything needs to be done  
via

Maven.



Simon

I'm happy to leave Maven focused on a build and deployment. The Ant  
task looks like it will be the method by which I implement command  
line utilities, without duplicating path management.


However, it seems like it would be best to create a convention for  
the shell script / batch file pair. Maybe utility that builds these  
utilities for you. If you name a utility such as database-export and  
create a class com.software.DatabaseExport.java, a Maven plugin can  
generate a database-export.sh and a database-export.bat that will  
know how to find libraries given an layout convention. The code for  
launching Ant or Groovy, those shell scripts and batch files, can be  
used as jumping off point for a convention.


Writing Java command line programs is easy using args4j. It's  
launching them and deploying them that is a problem.


This would be my preferred way of creating this utilities, since it  
would lead me to develop generally useful utilities, rather than one  
off Ant monsters.


Alan

--
Alan Gutierrez | [EMAIL PROTECTED] | http://blogometer.com/ | 504  
717 1428

Think New Orleans | http://thinknola.com/



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



Über Archetype ?

2008-06-02 Thread Chris_Graham
Hi All,

Does maven support the concept of an Über Archetype? That is, a 
single archetype that can create multiple projects in one invocation. 
Ideally, what I am looking for is a single archetype that can create a 
full J2EE project as a multi module build, along with all of it's EJB, EAR 
and WAR subprojects. Can this be done?

TIA.

-Chris


**
CAUTION - This message is intended for the addressee named above. It may 
contain privileged or confidential information. 

If you are not the intended recipient of this message you must: 
- Not use, copy, distribute or disclose it to anyone other than the addressee;
- Notify the sender via return email; and
- Delete the message (and any related attachments) from your computer 
immediately.

Internet emails are not necessarily secure. Australian Associated Motors 
Insurers Limited ABN 92 004 791 744 (AAMI), and its related entities, do not 
accept responsibility for changes made to this message after it was sent.

Unless otherwise stated, views expressed within this email are the author's own 
and do not represent those of AAMI.
**

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



Re: Cannot find parent: org.apache.maven.plugins:maven-plugins

2008-06-02 Thread Roger Martin
Building fuji itself.  Same behavior when building a fuji project
which creates a pom.xml
Wait on studying this further.  It is looking like a file
locked(couldn't delete C:\Users\Owner\.m2\repository\org down the
folder tree 
C:\Users\Owner\.m2\repository\org\apache\maven\plugins\maven-dependency-plugin\2.0
until I deleted the files at the leaf. Then could delete each of the
branches back to the root C:\Users\Owner\.m2\repository\)

This looks like a Windows Vista issue.  Ran low on laptop battery so I
hibernated the OS until I grabbed a cable. But I don't know what was
effecting the repository at the time.

I now know to purge my local repository and try again before asking
questions on this list.

A fuji build just completed!

On 6/2/08, Mick Knutson <[EMAIL PROTECTED]> wrote:
> what about YOUR pom.xml that you are creating a project for?
>
> Have you built fuji by itself? If so, then there is something wrong in your
> pom, not fuji's
>
> On Mon, Jun 2, 2008 at 1:35 PM, Roger Martin <[EMAIL PROTECTED]>
> wrote:
>
>> Hi Mick,
>>
>> This pom.xml is a pom.xml out of the fuji svn trunk at
>> https://fuji.dev.java.net/source/browse/fuji/
>>
>> Not sure this is maven or fuji but I don't see anyone talking about it
>> at fuji mailing list.  So maybe it is related to me using the latest
>> 2.0.9 version of maven
>>
>>
>> On 6/2/08, Mick Knutson <[EMAIL PROTECTED]> wrote:
>> > Upload your pom.xml
>> >
>> > On Mon, Jun 2, 2008 at 1:25 PM, Roger Martin <[EMAIL PROTECTED]
>> >
>> > wrote:
>> >
>> >> Hi, trying out a fresh svn checkout and build.  The build is with
>> >> maven (apache-maven-2.0.9) and is saying the reason is
>> >>
>> >> Reason: Cannot find parent: org.apache.maven.plugins:maven-plugins for
>> >> project:
>> >> null:maven-clean-plugin:maven-plugin:2.2 for project
>> >> null:maven-clean-plugin:mav
>> >> en-plugin:2.2
>> >>
>> >> 1)  First I'm not catching on how to go about debugging this
>> >> situation.  Don't know what the nulls are or even what would make it
>> >> happy.  How to go about finding the problem and solution?
>> >>
>> >> Output from 'mvn -e clean install'
>> >> --
>> >>
>> >> C:\java.net\fuji\trunk>set JAVA_HOME=C:/Program Files/Java/jdk1.6.0_06
>> >>
>> >> C:\java.net\fuji\trunk>set ANT_HOME=c:/apache/apache-ant-1.7.0
>> >>
>> >> C:\java.net\fuji\trunk>set M2_HOME=C:/apache/apache-maven-2.0.9
>> >>
>> >> C:\java.net\fuji\trunk>set TOMCAT_HOME=C:\Program
>> Files\jakarta-tomcat-4.0
>> >>
>> >> C:\java.net\fuji\trunk>set PATH=C:/Program
>> >> Files/Java/jdk1.6.0_06/bin;C:/apache/
>> >> apache-maven-2.0.9/bin
>> >>
>> >> C:\java.net\fuji\trunk>set
>> >> CLASSPATH=c:/apache/apache-ant-1.7.0/lib/svnkit-cli.j
>> >> ar
>> >>
>> >> C:\java.net\fuji\trunk>set MAVEN_BATCH_PAUSE=on
>> >>
>> >> C:\java.net\fuji\trunk>rem mvn
>> netbeans-freeform:generate-netbeans-project
>> >>
>> >> C:\java.net\fuji\trunk>mvn -e clean install
>> >> + Error stacktraces are turned on.
>> >> [INFO] Scanning for projects...
>> >> [INFO] Reactor build order:
>> >> [INFO]   build-common
>> >> [INFO]   core-common-pom
>> >> [INFO]   core-common-build-pom
>> >> [INFO]   Fuji IFL Library
>> >> [INFO]   JBI OSGi framework
>> >> [INFO]   fuji-top
>> >> [INFO]   Fuji Maven Utilities
>> >> [INFO]   Fuji Maven Plugins
>> >> [INFO]   Integration Application - equil
>> >> [INFO]   framework-system-test
>> >> [INFO]   Maven Integration Application Archetype
>> >> [INFO]   maven-top
>> >> [INFO]   core-top
>> >> [INFO]   Base JBI Component
>> >> [INFO]   Sun JRuby Engine
>> >> [INFO]   Gestalt XMPP Binding Installer
>> >> [INFO]   Gestalt RSS Binding Installer
>> >> [INFO]   Sun Shared Util Library Installer
>> >> [INFO]   installers-top
>> >> [INFO]   Maven File Service Archetype
>> >> [INFO]   Maven FTP Service Archetype
>> >> [INFO]   Maven HTTP Service Archetype
>> >> [INFO]   Maven JDBC Service Archetype
>> >> [INFO]   Maven JMS Service Archetype
>> >> [INFO]   Maven RSS Service Archetype
>> >> [INFO]   Maven SMTP Service Archetype
>> >> [INFO]   Maven XMPP Service Archetype
>> >> [INFO]   Maven JRuby Service Archetype
>> >> [INFO]   Maven XSLT Service Archetype
>> >> [INFO]   Maven Ajax Push Service Archetype
>> >> [INFO]   archetypes-top
>> >> [INFO]   XSLT Maven Plugins
>> >> [INFO]   Component Plugins
>> >> [INFO]   components-top
>> >> [INFO]   packaging-tests-top
>> >> [INFO]   Fuji with felix
>> >> [INFO]   release-packages-top
>> >> [INFO]   packaging-top
>> >> [INFO]
>> >> 
>> >> [INFO] Building build-common
>> >> [INFO]task-segment: [clean, install]
>> >> [INFO]
>> >> 
>> >> [INFO]
>> >> 
>> >> [ERROR] BUILD ERROR
>> >> [INFO]
>> >> 
>> >> [INFO] Error building POM (may not be this project's POM).
>> >>
>> >>
>> >> Project ID

Re: Cannot find parent: org.apache.maven.plugins:maven-plugins

2008-06-02 Thread Mick Knutson
what about YOUR pom.xml that you are creating a project for?

Have you built fuji by itself? If so, then there is something wrong in your
pom, not fuji's

On Mon, Jun 2, 2008 at 1:35 PM, Roger Martin <[EMAIL PROTECTED]>
wrote:

> Hi Mick,
>
> This pom.xml is a pom.xml out of the fuji svn trunk at
> https://fuji.dev.java.net/source/browse/fuji/
>
> Not sure this is maven or fuji but I don't see anyone talking about it
> at fuji mailing list.  So maybe it is related to me using the latest
> 2.0.9 version of maven
>
>
> On 6/2/08, Mick Knutson <[EMAIL PROTECTED]> wrote:
> > Upload your pom.xml
> >
> > On Mon, Jun 2, 2008 at 1:25 PM, Roger Martin <[EMAIL PROTECTED]
> >
> > wrote:
> >
> >> Hi, trying out a fresh svn checkout and build.  The build is with
> >> maven (apache-maven-2.0.9) and is saying the reason is
> >>
> >> Reason: Cannot find parent: org.apache.maven.plugins:maven-plugins for
> >> project:
> >> null:maven-clean-plugin:maven-plugin:2.2 for project
> >> null:maven-clean-plugin:mav
> >> en-plugin:2.2
> >>
> >> 1)  First I'm not catching on how to go about debugging this
> >> situation.  Don't know what the nulls are or even what would make it
> >> happy.  How to go about finding the problem and solution?
> >>
> >> Output from 'mvn -e clean install'
> >> --
> >>
> >> C:\java.net\fuji\trunk>set JAVA_HOME=C:/Program Files/Java/jdk1.6.0_06
> >>
> >> C:\java.net\fuji\trunk>set ANT_HOME=c:/apache/apache-ant-1.7.0
> >>
> >> C:\java.net\fuji\trunk>set M2_HOME=C:/apache/apache-maven-2.0.9
> >>
> >> C:\java.net\fuji\trunk>set TOMCAT_HOME=C:\Program
> Files\jakarta-tomcat-4.0
> >>
> >> C:\java.net\fuji\trunk>set PATH=C:/Program
> >> Files/Java/jdk1.6.0_06/bin;C:/apache/
> >> apache-maven-2.0.9/bin
> >>
> >> C:\java.net\fuji\trunk>set
> >> CLASSPATH=c:/apache/apache-ant-1.7.0/lib/svnkit-cli.j
> >> ar
> >>
> >> C:\java.net\fuji\trunk>set MAVEN_BATCH_PAUSE=on
> >>
> >> C:\java.net\fuji\trunk>rem mvn
> netbeans-freeform:generate-netbeans-project
> >>
> >> C:\java.net\fuji\trunk>mvn -e clean install
> >> + Error stacktraces are turned on.
> >> [INFO] Scanning for projects...
> >> [INFO] Reactor build order:
> >> [INFO]   build-common
> >> [INFO]   core-common-pom
> >> [INFO]   core-common-build-pom
> >> [INFO]   Fuji IFL Library
> >> [INFO]   JBI OSGi framework
> >> [INFO]   fuji-top
> >> [INFO]   Fuji Maven Utilities
> >> [INFO]   Fuji Maven Plugins
> >> [INFO]   Integration Application - equil
> >> [INFO]   framework-system-test
> >> [INFO]   Maven Integration Application Archetype
> >> [INFO]   maven-top
> >> [INFO]   core-top
> >> [INFO]   Base JBI Component
> >> [INFO]   Sun JRuby Engine
> >> [INFO]   Gestalt XMPP Binding Installer
> >> [INFO]   Gestalt RSS Binding Installer
> >> [INFO]   Sun Shared Util Library Installer
> >> [INFO]   installers-top
> >> [INFO]   Maven File Service Archetype
> >> [INFO]   Maven FTP Service Archetype
> >> [INFO]   Maven HTTP Service Archetype
> >> [INFO]   Maven JDBC Service Archetype
> >> [INFO]   Maven JMS Service Archetype
> >> [INFO]   Maven RSS Service Archetype
> >> [INFO]   Maven SMTP Service Archetype
> >> [INFO]   Maven XMPP Service Archetype
> >> [INFO]   Maven JRuby Service Archetype
> >> [INFO]   Maven XSLT Service Archetype
> >> [INFO]   Maven Ajax Push Service Archetype
> >> [INFO]   archetypes-top
> >> [INFO]   XSLT Maven Plugins
> >> [INFO]   Component Plugins
> >> [INFO]   components-top
> >> [INFO]   packaging-tests-top
> >> [INFO]   Fuji with felix
> >> [INFO]   release-packages-top
> >> [INFO]   packaging-top
> >> [INFO]
> >> 
> >> [INFO] Building build-common
> >> [INFO]task-segment: [clean, install]
> >> [INFO]
> >> 
> >> [INFO]
> >> 
> >> [ERROR] BUILD ERROR
> >> [INFO]
> >> 
> >> [INFO] Error building POM (may not be this project's POM).
> >>
> >>
> >> Project ID: null:maven-clean-plugin:maven-plugin:2.2
> >>
> >> Reason: Cannot find parent: org.apache.maven.plugins:maven-plugins for
> >> project:
> >> null:maven-clean-plugin:maven-plugin:2.2 for project
> >> null:maven-clean-plugin:mav
> >> en-plugin:2.2
> >>
> >>
> >> [INFO]
> >> 
> >> [INFO] Trace
> >> org.apache.maven.lifecycle.LifecycleExecutionException: Unable to build
> >> project
> >> for plugin 'org.apache.maven.plugins:maven-clean-plugin': Cannot find
> >> parent: or
> >> g.apache.maven.plugins:maven-plugins for project:
> >> null:maven-clean-plugin:maven-
> >> plugin:2.2 for project null:maven-clean-plugin:maven-plugin:2.2
> >>at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Defa
> >> ultLifecycleExecutor.java:1291)
> >>at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDes

Re: Cannot find parent: org.apache.maven.plugins:maven-plugins

2008-06-02 Thread Roger Martin
Hi Mick,

This pom.xml is a pom.xml out of the fuji svn trunk at
https://fuji.dev.java.net/source/browse/fuji/

Not sure this is maven or fuji but I don't see anyone talking about it
at fuji mailing list.  So maybe it is related to me using the latest
2.0.9 version of maven


On 6/2/08, Mick Knutson <[EMAIL PROTECTED]> wrote:
> Upload your pom.xml
>
> On Mon, Jun 2, 2008 at 1:25 PM, Roger Martin <[EMAIL PROTECTED]>
> wrote:
>
>> Hi, trying out a fresh svn checkout and build.  The build is with
>> maven (apache-maven-2.0.9) and is saying the reason is
>>
>> Reason: Cannot find parent: org.apache.maven.plugins:maven-plugins for
>> project:
>> null:maven-clean-plugin:maven-plugin:2.2 for project
>> null:maven-clean-plugin:mav
>> en-plugin:2.2
>>
>> 1)  First I'm not catching on how to go about debugging this
>> situation.  Don't know what the nulls are or even what would make it
>> happy.  How to go about finding the problem and solution?
>>
>> Output from 'mvn -e clean install'
>> --
>>
>> C:\java.net\fuji\trunk>set JAVA_HOME=C:/Program Files/Java/jdk1.6.0_06
>>
>> C:\java.net\fuji\trunk>set ANT_HOME=c:/apache/apache-ant-1.7.0
>>
>> C:\java.net\fuji\trunk>set M2_HOME=C:/apache/apache-maven-2.0.9
>>
>> C:\java.net\fuji\trunk>set TOMCAT_HOME=C:\Program Files\jakarta-tomcat-4.0
>>
>> C:\java.net\fuji\trunk>set PATH=C:/Program
>> Files/Java/jdk1.6.0_06/bin;C:/apache/
>> apache-maven-2.0.9/bin
>>
>> C:\java.net\fuji\trunk>set
>> CLASSPATH=c:/apache/apache-ant-1.7.0/lib/svnkit-cli.j
>> ar
>>
>> C:\java.net\fuji\trunk>set MAVEN_BATCH_PAUSE=on
>>
>> C:\java.net\fuji\trunk>rem mvn netbeans-freeform:generate-netbeans-project
>>
>> C:\java.net\fuji\trunk>mvn -e clean install
>> + Error stacktraces are turned on.
>> [INFO] Scanning for projects...
>> [INFO] Reactor build order:
>> [INFO]   build-common
>> [INFO]   core-common-pom
>> [INFO]   core-common-build-pom
>> [INFO]   Fuji IFL Library
>> [INFO]   JBI OSGi framework
>> [INFO]   fuji-top
>> [INFO]   Fuji Maven Utilities
>> [INFO]   Fuji Maven Plugins
>> [INFO]   Integration Application - equil
>> [INFO]   framework-system-test
>> [INFO]   Maven Integration Application Archetype
>> [INFO]   maven-top
>> [INFO]   core-top
>> [INFO]   Base JBI Component
>> [INFO]   Sun JRuby Engine
>> [INFO]   Gestalt XMPP Binding Installer
>> [INFO]   Gestalt RSS Binding Installer
>> [INFO]   Sun Shared Util Library Installer
>> [INFO]   installers-top
>> [INFO]   Maven File Service Archetype
>> [INFO]   Maven FTP Service Archetype
>> [INFO]   Maven HTTP Service Archetype
>> [INFO]   Maven JDBC Service Archetype
>> [INFO]   Maven JMS Service Archetype
>> [INFO]   Maven RSS Service Archetype
>> [INFO]   Maven SMTP Service Archetype
>> [INFO]   Maven XMPP Service Archetype
>> [INFO]   Maven JRuby Service Archetype
>> [INFO]   Maven XSLT Service Archetype
>> [INFO]   Maven Ajax Push Service Archetype
>> [INFO]   archetypes-top
>> [INFO]   XSLT Maven Plugins
>> [INFO]   Component Plugins
>> [INFO]   components-top
>> [INFO]   packaging-tests-top
>> [INFO]   Fuji with felix
>> [INFO]   release-packages-top
>> [INFO]   packaging-top
>> [INFO]
>> 
>> [INFO] Building build-common
>> [INFO]task-segment: [clean, install]
>> [INFO]
>> 
>> [INFO]
>> 
>> [ERROR] BUILD ERROR
>> [INFO]
>> 
>> [INFO] Error building POM (may not be this project's POM).
>>
>>
>> Project ID: null:maven-clean-plugin:maven-plugin:2.2
>>
>> Reason: Cannot find parent: org.apache.maven.plugins:maven-plugins for
>> project:
>> null:maven-clean-plugin:maven-plugin:2.2 for project
>> null:maven-clean-plugin:mav
>> en-plugin:2.2
>>
>>
>> [INFO]
>> 
>> [INFO] Trace
>> org.apache.maven.lifecycle.LifecycleExecutionException: Unable to build
>> project
>> for plugin 'org.apache.maven.plugins:maven-clean-plugin': Cannot find
>> parent: or
>> g.apache.maven.plugins:maven-plugins for project:
>> null:maven-clean-plugin:maven-
>> plugin:2.2 for project null:maven-clean-plugin:maven-plugin:2.2
>>at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Defa
>> ultLifecycleExecutor.java:1291)
>>at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor
>> (DefaultLifecycleExecutor.java:1542)
>>at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindLifecycleForP
>> ackaging(DefaultLifecycleExecutor.java:1033)
>>at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLifecycl
>> eMappings(DefaultLifecycleExecutor.java:997)
>>at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
>> ltLifecycleExecutor.java:477)
>>at
>> org.apache.maven.lifecycle.DefaultLifecycleE

Re: Cannot find parent: org.apache.maven.plugins:maven-plugins

2008-06-02 Thread Mick Knutson
Upload your pom.xml

On Mon, Jun 2, 2008 at 1:25 PM, Roger Martin <[EMAIL PROTECTED]>
wrote:

> Hi, trying out a fresh svn checkout and build.  The build is with
> maven (apache-maven-2.0.9) and is saying the reason is
>
> Reason: Cannot find parent: org.apache.maven.plugins:maven-plugins for
> project:
> null:maven-clean-plugin:maven-plugin:2.2 for project
> null:maven-clean-plugin:mav
> en-plugin:2.2
>
> 1)  First I'm not catching on how to go about debugging this
> situation.  Don't know what the nulls are or even what would make it
> happy.  How to go about finding the problem and solution?
>
> Output from 'mvn -e clean install'
> --
>
> C:\java.net\fuji\trunk>set JAVA_HOME=C:/Program Files/Java/jdk1.6.0_06
>
> C:\java.net\fuji\trunk>set ANT_HOME=c:/apache/apache-ant-1.7.0
>
> C:\java.net\fuji\trunk>set M2_HOME=C:/apache/apache-maven-2.0.9
>
> C:\java.net\fuji\trunk>set TOMCAT_HOME=C:\Program Files\jakarta-tomcat-4.0
>
> C:\java.net\fuji\trunk>set PATH=C:/Program
> Files/Java/jdk1.6.0_06/bin;C:/apache/
> apache-maven-2.0.9/bin
>
> C:\java.net\fuji\trunk>set
> CLASSPATH=c:/apache/apache-ant-1.7.0/lib/svnkit-cli.j
> ar
>
> C:\java.net\fuji\trunk>set MAVEN_BATCH_PAUSE=on
>
> C:\java.net\fuji\trunk>rem mvn netbeans-freeform:generate-netbeans-project
>
> C:\java.net\fuji\trunk>mvn -e clean install
> + Error stacktraces are turned on.
> [INFO] Scanning for projects...
> [INFO] Reactor build order:
> [INFO]   build-common
> [INFO]   core-common-pom
> [INFO]   core-common-build-pom
> [INFO]   Fuji IFL Library
> [INFO]   JBI OSGi framework
> [INFO]   fuji-top
> [INFO]   Fuji Maven Utilities
> [INFO]   Fuji Maven Plugins
> [INFO]   Integration Application - equil
> [INFO]   framework-system-test
> [INFO]   Maven Integration Application Archetype
> [INFO]   maven-top
> [INFO]   core-top
> [INFO]   Base JBI Component
> [INFO]   Sun JRuby Engine
> [INFO]   Gestalt XMPP Binding Installer
> [INFO]   Gestalt RSS Binding Installer
> [INFO]   Sun Shared Util Library Installer
> [INFO]   installers-top
> [INFO]   Maven File Service Archetype
> [INFO]   Maven FTP Service Archetype
> [INFO]   Maven HTTP Service Archetype
> [INFO]   Maven JDBC Service Archetype
> [INFO]   Maven JMS Service Archetype
> [INFO]   Maven RSS Service Archetype
> [INFO]   Maven SMTP Service Archetype
> [INFO]   Maven XMPP Service Archetype
> [INFO]   Maven JRuby Service Archetype
> [INFO]   Maven XSLT Service Archetype
> [INFO]   Maven Ajax Push Service Archetype
> [INFO]   archetypes-top
> [INFO]   XSLT Maven Plugins
> [INFO]   Component Plugins
> [INFO]   components-top
> [INFO]   packaging-tests-top
> [INFO]   Fuji with felix
> [INFO]   release-packages-top
> [INFO]   packaging-top
> [INFO]
> 
> [INFO] Building build-common
> [INFO]task-segment: [clean, install]
> [INFO]
> 
> [INFO]
> 
> [ERROR] BUILD ERROR
> [INFO]
> 
> [INFO] Error building POM (may not be this project's POM).
>
>
> Project ID: null:maven-clean-plugin:maven-plugin:2.2
>
> Reason: Cannot find parent: org.apache.maven.plugins:maven-plugins for
> project:
> null:maven-clean-plugin:maven-plugin:2.2 for project
> null:maven-clean-plugin:mav
> en-plugin:2.2
>
>
> [INFO]
> 
> [INFO] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: Unable to build
> project
> for plugin 'org.apache.maven.plugins:maven-clean-plugin': Cannot find
> parent: or
> g.apache.maven.plugins:maven-plugins for project:
> null:maven-clean-plugin:maven-
> plugin:2.2 for project null:maven-clean-plugin:maven-plugin:2.2
>at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Defa
> ultLifecycleExecutor.java:1291)
>at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor
> (DefaultLifecycleExecutor.java:1542)
>at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindLifecycleForP
> ackaging(DefaultLifecycleExecutor.java:1033)
>at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLifecycl
> eMappings(DefaultLifecycleExecutor.java:997)
>at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
> ltLifecycleExecutor.java:477)
>at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
> dleFailures(DefaultLifecycleExecutor.java:330)
>at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
> ts(DefaultLifecycleExecutor.java:291)
>at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
> fecycleExecutor.java:142)
>at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
>at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
>

Cannot find parent: org.apache.maven.plugins:maven-plugins

2008-06-02 Thread Roger Martin
Hi, trying out a fresh svn checkout and build.  The build is with
maven (apache-maven-2.0.9) and is saying the reason is

Reason: Cannot find parent: org.apache.maven.plugins:maven-plugins for project:
null:maven-clean-plugin:maven-plugin:2.2 for project null:maven-clean-plugin:mav
en-plugin:2.2

1)  First I'm not catching on how to go about debugging this
situation.  Don't know what the nulls are or even what would make it
happy.  How to go about finding the problem and solution?

Output from 'mvn -e clean install'
--

C:\java.net\fuji\trunk>set JAVA_HOME=C:/Program Files/Java/jdk1.6.0_06

C:\java.net\fuji\trunk>set ANT_HOME=c:/apache/apache-ant-1.7.0

C:\java.net\fuji\trunk>set M2_HOME=C:/apache/apache-maven-2.0.9

C:\java.net\fuji\trunk>set TOMCAT_HOME=C:\Program Files\jakarta-tomcat-4.0

C:\java.net\fuji\trunk>set PATH=C:/Program Files/Java/jdk1.6.0_06/bin;C:/apache/
apache-maven-2.0.9/bin

C:\java.net\fuji\trunk>set CLASSPATH=c:/apache/apache-ant-1.7.0/lib/svnkit-cli.j
ar

C:\java.net\fuji\trunk>set MAVEN_BATCH_PAUSE=on

C:\java.net\fuji\trunk>rem mvn netbeans-freeform:generate-netbeans-project

C:\java.net\fuji\trunk>mvn -e clean install
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO]   build-common
[INFO]   core-common-pom
[INFO]   core-common-build-pom
[INFO]   Fuji IFL Library
[INFO]   JBI OSGi framework
[INFO]   fuji-top
[INFO]   Fuji Maven Utilities
[INFO]   Fuji Maven Plugins
[INFO]   Integration Application - equil
[INFO]   framework-system-test
[INFO]   Maven Integration Application Archetype
[INFO]   maven-top
[INFO]   core-top
[INFO]   Base JBI Component
[INFO]   Sun JRuby Engine
[INFO]   Gestalt XMPP Binding Installer
[INFO]   Gestalt RSS Binding Installer
[INFO]   Sun Shared Util Library Installer
[INFO]   installers-top
[INFO]   Maven File Service Archetype
[INFO]   Maven FTP Service Archetype
[INFO]   Maven HTTP Service Archetype
[INFO]   Maven JDBC Service Archetype
[INFO]   Maven JMS Service Archetype
[INFO]   Maven RSS Service Archetype
[INFO]   Maven SMTP Service Archetype
[INFO]   Maven XMPP Service Archetype
[INFO]   Maven JRuby Service Archetype
[INFO]   Maven XSLT Service Archetype
[INFO]   Maven Ajax Push Service Archetype
[INFO]   archetypes-top
[INFO]   XSLT Maven Plugins
[INFO]   Component Plugins
[INFO]   components-top
[INFO]   packaging-tests-top
[INFO]   Fuji with felix
[INFO]   release-packages-top
[INFO]   packaging-top
[INFO] 
[INFO] Building build-common
[INFO]task-segment: [clean, install]
[INFO] 
[INFO] 
[ERROR] BUILD ERROR
[INFO] 
[INFO] Error building POM (may not be this project's POM).


Project ID: null:maven-clean-plugin:maven-plugin:2.2

Reason: Cannot find parent: org.apache.maven.plugins:maven-plugins for project:
null:maven-clean-plugin:maven-plugin:2.2 for project null:maven-clean-plugin:mav
en-plugin:2.2


[INFO] 
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Unable to build project
for plugin 'org.apache.maven.plugins:maven-clean-plugin': Cannot find parent: or
g.apache.maven.plugins:maven-plugins for project: null:maven-clean-plugin:maven-
plugin:2.2 for project null:maven-clean-plugin:maven-plugin:2.2
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Defa
ultLifecycleExecutor.java:1291)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor
(DefaultLifecycleExecutor.java:1542)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindLifecycleForP
ackaging(DefaultLifecycleExecutor.java:1033)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLifecycl
eMappings(DefaultLifecycleExecutor.java:997)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:477)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:330)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:291)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.java:142)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.r

Re: execute java class with symbolic name

2008-06-02 Thread Kalle Korhonen
Why don't you just put your main class in the default package then?

Kalle


On Mon, Jun 2, 2008 at 12:06 PM, mscarpentier <[EMAIL PROTECTED]>
wrote:

>
> Hello, I wanted to execute a Java class that has a "main method" on it with
> Maven, and so far I could execute this by doing something like this "mvn
> exec:java -Dexec.mainClass=com.business.project.MyClass"... What I wanted
> to
> use was something more 'user friendly', like "mvn MyCustomizedClass" or
> even
> "mvn exec:MyCustomizedClass".
> Thanks everybody!
> --
> View this message in context:
> http://www.nabble.com/execute-java-class-with-symbolic-name-tp17608467p17608467.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


execute java class with symbolic name

2008-06-02 Thread mscarpentier

Hello, I wanted to execute a Java class that has a "main method" on it with
Maven, and so far I could execute this by doing something like this "mvn
exec:java -Dexec.mainClass=com.business.project.MyClass"... What I wanted to
use was something more 'user friendly', like "mvn MyCustomizedClass" or even
"mvn exec:MyCustomizedClass".
Thanks everybody!
-- 
View this message in context: 
http://www.nabble.com/execute-java-class-with-symbolic-name-tp17608467p17608467.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



[m2] server setting in settings.xml?

2008-06-02 Thread Mick Knutson
I want to know if it is possible to add a server inside a profile in my
settings.xml? So that I can have one build deploy to stage, and one to
production based on the profile. Or would it be better to just specify a
different setting-prod.xml?

-- 
---
Thank You…

Mick Knutson
BASE Logic, inc.

Website: http://baselogic.com
Blog: http://baselogic.com/blog
BLiNC Magazine: http://blincmagazine.com
Linked IN: http://linkedin.com/in/mickknutson
DJ Mick: http://djmick.com
MySpace: http://myspace.com/mickknutson
Tahoe: http://tahoe.baselogic.com


How to get the compile or runtime classpath of a build into a plugin ?

2008-06-02 Thread RobAtWebDE
Hi, I am writting my own plug-in and try to pass in the compile and/or  
runtime classpath of the build. A previous version was using a build in  
Ant-task using something like




and it works. But where do I get the same information into my own plugin.  
I am expected to work something like


...



${maven.compile.classpath}



buildStartBat





...

but it does not work. No classpath is passed in the "cl" variable of the  
configuration. Where is the refid="maven.compile.classpath" pointing to ?  
There must be a property containing this information - or does the  
Ant-plugin create it ?


This costs me already some time which I never expected. Please give me  
some help.


Thanks, Rob.

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



java.lang.ClassNotFoundException: TestSuite

2008-06-02 Thread Dmitry Beransky
Hi folks,

Any ideas what might be causing the exception below?  I'm at my whit's ends.

(using surefire 2.4.3)

[09:15:30]: Forking command line: cmd.exe /X /C ""C:\Program Files
(x86)\Java\jdk1.5.0_06\jre\bin\java" -jar
C:\BuildAgent\temp\buildTmp\surefirebooter52899.jar
C:\BuildAgent\temp\buildTmp\surefire52897tmp
C:\BuildAgent\temp\buildTmp\surefire52898tmp"
[09:15:33]: org.apache.maven.surefire.booter.SurefireExecutionException:
Unable to create test class 'TestSuite'; nested exception is
java.lang.ClassNotFoundException: TestSuite; nested exception is
org.apache.maven.surefire.testset.TestSetFailedException: Unable to
create test class 'TestSuite'; nested exception is
java.lang.ClassNotFoundException: TestSuite
[09:15:33]: org.apache.maven.surefire.testset.TestSetFailedException:
Unable to create test class 'TestSuite'; nested exception is
java.lang.ClassNotFoundException: TestSuite
[09:15:33]: java.lang.ClassNotFoundException: TestSuite
[09:15:33]: at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
[09:15:33]: at java.security.AccessController.doPrivileged(Native Method)
[09:15:33]: at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
[09:15:33]: at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
[09:15:33]: at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
[09:15:33]: at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
[09:15:33]: at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.locateTestSets(AbstractDirectoryTestSuite.java:87)
[09:15:33]: at
org.apache.maven.surefire.Surefire.createSuiteFromDefinition(Surefire.java:209)
[09:15:33]: at org.apache.maven.surefire.Surefire.run(Surefire.java:156)
[09:15:33]: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[09:15:33]: at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[09:15:33]: at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[09:15:33]: at java.lang.reflect.Method.invoke(Method.java:585)
[09:15:33]: at
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
[09:15:33]: at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
[09:15:33]:
[INFO] 


Thanks
Dmitry

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



Re: Announcing Grails Maven Plugin 0.3

2008-06-02 Thread Arnaud HERITIER
In fact it's only the 0.3 ;-)

Arnaud

On Mon, Jun 2, 2008 at 1:53 PM, Trygve Laugstøl <[EMAIL PROTECTED]> wrote:

> The third release of the grails-maven-plugin is now available. You'll find
> the full list of changes in [jira|
> http://forge.octo.com/jira/secure/ReleaseNote.jspa?projectId=10120&styleName=Html&version=10332
> ]
>
> A lot of small bugs has been fixed and a few improvements has been
> implemented.
>
> As more users are using the Grails integration, more use-cases are
> discovered and integrated into the plugin. If you have a particular feature
> that you want to get in the plugin, don't hesitate to create issues in JIRA.
>
> JIRA: http://forge.octo.com/jira/browse/MTG
> Mailing list: Send an email with the subject "subscribe mtg" to
> [EMAIL PROTECTED] or just press [here|mailto:[EMAIL PROTECTED]
> ?subject=subscribe%20mtg]
>
> Have Fun with Grails+Maven.
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: generate link css on maven reports

2008-06-02 Thread Paul Davis
actually, it's so you can add your own css at:
src/site/resources/css/
in your project and have it used in the site

On Mon, Jun 2, 2008 at 2:03 AM, ggalou08 <[EMAIL PROTECTED]> wrote:

>
> hi !
>
> I generate a site with maven reports and in the code source I see a link on
> a css file : print.css.
>
> This file doesn't exist, and i wonder if I can force Maven not to generate
> this link or if it's just a bug ?!?
>
> this is the source :
>
>
>  @import url("./css/maven-base.css");
>  @import url("./css/maven-theme.css");
>  @import url("./css/site.css");
>
>
> Thank you for your help !
> --
> View this message in context:
> http://www.nabble.com/generate-link-css-on-maven-reports-tp17596897p17596897.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Question About Dependencies.

2008-06-02 Thread [EMAIL PROTECTED]
Artur Kirsis schrieb:
> Hello, I have following question. 
>
> If I have several profiles and each profile need several dependencies (
> there is default list of them and several dependencies that is different ) 
> How can I enable for the example dependencies tools and tools2 for profile
> localhost and tool3 and tool4 for profile localhost2 ?
>
> Thanks for the answer and sorry for my bad English.
>
>
>   
Sorry, but I don't understand your question.

A profile can include dependencies:
  
profile1
...

  ..

  

Then running
   mvn -Pprofile1 compile
will use the dependencies in that profile.

Or you can use
  

  foo
  ...

and run
  mvn -Dfoo compile

If this is not what you were asking, then maybe you could post an
example showing how you would like maven to work, and someone can
suggest how to get what you want..

Regards,
Simon


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



Re: How can I run an Ant target in Maven?

2008-06-02 Thread [EMAIL PROTECTED]
Alan Gutierrez schrieb:
> Related question:
>
> In most of my projects I create command line tools. To get them up and
> running quickly, I use Ant and all the classpath configuration that is
> already defined in my build.xml.
>
> I've seen that you're supposed to use Profiles to switch out plugin
> configurations, so I could use different profiles to change my antrun
> tasks, effectively creating targets.
>
> But, is that the best practice? I assume that there are one of three
> choices. (Because, I explored making Maven switchable without writing
> plugins, and was told that profiles where it.)
>
> 1) Use profiles - Seemingly verbose. Does not feel as though I'm using
> it as the authors intended. If my program is only tangentially part of
> the build process, like a program that updates a database schema, it
> seems like it should be it's own program with it's own documentation,
> not a by product or variation of the build.
>
> 2) Keep a parallel build.xml - If I can execute the tasks using the
> ant plugin, then it might not be the duplication that it appears to
> be. Is there a way to inherit or export the classpath configurations
> in Maven? (Similarly, part of the build, but people have grown
> accustomed to supplemental Ant tasks that perform non-build tasks.
> Maven conventions make supplemental actions unconventional.)
>
> 3) Define some standard shell script / batch file pair that
> understands the Maven repository layout - Or perhaps one that conforms
> to some best practice for distributing a shell script / batch file
> launcher pair, the way Groovy and Ant do.
>
> Assume that I want to write Java command line programs to aid my
> development by munging log files and the like, things that don't
> belong in a web interface.
== re maven and ant integration

The maven-antrun-plugin documents how to access maven classpath data.

You can use these classpath references
 * maven.compile.classpath
 * maven.runtime.classpath
 * maven.test.classpath
 * maven.plugin.classpath


Of course that requires that you run maven in order for it to compute
these, then execute ant as a sub-process.

There exists a "maven ant tasks" project that provides ant tasks that
can understand a pom file, allowing ant to be run directly from the
commandline and still access the data from the pom:
   http://maven.apache.org/ant-tasks.html

It would be really nice to have this functionality from a real
programming language (I'm no great fan of Ant). Maybe Groovy's Ant
integration would allow access to the maven ant tasks? It does initially
seem a little indirect (groovy->ant->maven) but could be worth a try..

See:
  http://www.ibm.com/developerworks/java/library/j-pg12144.html

== re best practice

The following is just my non-expert opinion. Comments/counter-arguments
welcome.

Ant is a procedural programming language, like a shell-scripting
language, that happens to have a bunch of built-in functions that are
useful for building java code, manipulating the filesystem, etc. It's a
swiss-army-knife type thing that does many things. But the result of
this flexibility is that
 (a) there are many ways to achieve the same end result (confusing)
 (b) it's impossible to separate "build" from "system management" type
steps.

Maven is based around a "project model" and a build lifecycle. As a
result it is *not* a programming language, and therefore there are many
things it cannot be made to do. But plugins can use the project model
and lifecycle information in ways that ant tasks just cannot. And it
takes only a little effort to make builds repeatable.

So I would recommend keeping maven for build tasks, and doing all the
other stuff that is, as you say, "only tangentially part of the build
process" separate, eg shell-script, perl, or ant. If it isn't part of a
build lifecycle, then shoe-horning it into Maven will always be awkward.

This thread started with someone asking how to set up maven to
effectively act like
ant runSomeArbitraryProcessing
and I think this is exactly the sort of thing that should NOT be pushed
into a pom file. There is no reason why everything needs to be done via
Maven.

Regards,
Simon


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



Question About Dependencies.

2008-06-02 Thread Artur Kirsis
Hello, I have following question. 

If I have several profiles and each profile need several dependencies (
there is default list of them and several dependencies that is different ) 
How can I enable for the example dependencies tools and tools2 for profile
localhost and tool3 and tool4 for profile localhost2 ?

Thanks for the answer and sorry for my bad English.


-- 
This message has been scanned for viruses and
dangerous content and is believed to be clean.



Re: How can I run an Ant target in Maven?

2008-06-02 Thread Alan Gutierrez

Related question:

In most of my projects I create command line tools. To get them up  
and running quickly, I use Ant and all the classpath configuration  
that is already defined in my build.xml.


I've seen that you're supposed to use Profiles to switch out plugin  
configurations, so I could use different profiles to change my antrun  
tasks, effectively creating targets.


But, is that the best practice? I assume that there are one of three  
choices. (Because, I explored making Maven switchable without writing  
plugins, and was told that profiles where it.)


1) Use profiles - Seemingly verbose. Does not feel as though I'm  
using it as the authors intended. If my program is only tangentially  
part of the build process, like a program that updates a database  
schema, it seems like it should be it's own program with it's own  
documentation, not a by product or variation of the build.


2) Keep a parallel build.xml - If I can execute the tasks using the  
ant plugin, then it might not be the duplication that it appears to  
be. Is there a way to inherit or export the classpath configurations  
in Maven? (Similarly, part of the build, but people have grown  
accustomed to supplemental Ant tasks that perform non-build tasks.  
Maven conventions make supplemental actions unconventional.)


3) Define some standard shell script / batch file pair that  
understands the Maven repository layout - Or perhaps one that  
conforms to some best practice for distributing a shell script /  
batch file launcher pair, the way Groovy and Ant do.


Assume that I want to write Java command line programs to aid my  
development by munging log files and the like, things that don't  
belong in a web interface.


Alan

On Jun 2, 2008, at 8:46 AM, [EMAIL PROTECTED] wrote:


Every maven plugin has documentation on the maven site. It is the best
place to look for answers to questions like this. See:
  http://maven.apache.org/plugins/maven-antrun-plugin/plugin-info.html

As the documentation says, writing a  tag is NOT allowed  
within

the pom.xml file.

So I would define this stuff in a separate build.xml file.  The antrun
plugin can then be configured to execute a task in this separate file,
using the  tag. And you can run the file directly from ant  
when you

want.

FYI, you can run the ant definition directly with
  antrun:run
but you cannot specify a target as far as I can see. And that makes
sense, as the maven-antrun-plugin doesn't allow targets to be defined
within the pom.xml file.

Regards,
Simon

John Casey schrieb:

You should be able to simply call the hibernatetool without a target.
IIRC, the antrun plugin may not support targets.

-john

youhaodeyi wrote:

I use Maven runant plugin to execute ant task, see below:




maven-antrun-plugin
















How can I run the target schema-recreate? I don't want o attach this
into
any Maven lifecycle.






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



--
Alan Gutierrez | [EMAIL PROTECTED] | http://blogometer.com/ | 504  
717 1428

Think New Orleans | http://thinknola.com/



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



Re: How can I compile my first maven project

2008-06-02 Thread xserge

I've just deleted local repository and all compiled SUCCESSFULLY.

Thank you for help.

-- 
View this message in context: 
http://www.nabble.com/How-can-I-compile-my-first-maven-project-tp17600859p17602079.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: How can I compile my first maven project

2008-06-02 Thread [EMAIL PROTECTED]
xserge schrieb:
> I've set proxy settings successfully in settings.xml, also I can reach
> "http://repo1.maven.org/maven2/org/apache/maven/plugins"; without any
> problems.
>
> Some plugins have been downloaded by maven in my local repository during
> command 
> "mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app"
>
> So I can assume that network settings are set well.

Try running "mvn -X compile" and see if that gives any clues. In
particular, look for things like
  " Skipping disabled repository central"
and similar ("central" is the default repository).

Regards,
Simon


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



Re: How can I run an Ant target in Maven?

2008-06-02 Thread [EMAIL PROTECTED]
Every maven plugin has documentation on the maven site. It is the best
place to look for answers to questions like this. See:
  http://maven.apache.org/plugins/maven-antrun-plugin/plugin-info.html

As the documentation says, writing a  tag is NOT allowed within
the pom.xml file.

So I would define this stuff in a separate build.xml file.  The antrun
plugin can then be configured to execute a task in this separate file,
using the  tag. And you can run the file directly from ant when you
want.

FYI, you can run the ant definition directly with
  antrun:run
but you cannot specify a target as far as I can see. And that makes
sense, as the maven-antrun-plugin doesn't allow targets to be defined
within the pom.xml file.

Regards,
Simon

John Casey schrieb:
> You should be able to simply call the hibernatetool without a target.
> IIRC, the antrun plugin may not support targets.
>
> -john
>
> youhaodeyi wrote:
>> I use Maven runant plugin to execute ant task, see below:
>>
>> 
>> 
>> 
>> maven-antrun-plugin
>> 
>> 
>> > value="target/classes" />
>> > classname="org.hibernate.tool.ant.HibernateToolTask"
>> />
>>
>> 
>> 
>> > configurationfile="${output}/hibernate.cfg.xml" />
>> > export="true" update="false" />
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> How can I run the target schema-recreate? I don't want o attach this
>> into
>> any Maven lifecycle.
>>   
>


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



Re: How can I compile my first maven project

2008-06-02 Thread xserge

I've set proxy settings successfully in settings.xml, also I can reach
"http://repo1.maven.org/maven2/org/apache/maven/plugins"; without any
problems.

Some plugins have been downloaded by maven in my local repository during
command 
"mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app"

So I can assume that network settings are set well.


-- 
View this message in context: 
http://www.nabble.com/How-can-I-compile-my-first-maven-project-tp17600859p17601502.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: How can I run an Ant target in Maven?

2008-06-02 Thread John Casey
You should be able to simply call the hibernatetool without a target. 
IIRC, the antrun plugin may not support targets.


-john

youhaodeyi wrote:

I use Maven runant plugin to execute ant task, see below:




maven-antrun-plugin
















How can I run the target schema-recreate? I don't want o attach this into
any Maven lifecycle.
  


--
John Casey
Developer, PMC Member - Apache Maven (http://maven.apache.org)
Blog: http://www.ejlife.net/blogs/buildchimp/


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



Re: How can I compile my first maven project

2008-06-02 Thread [EMAIL PROTECTED]
[EMAIL PROTECTED] schrieb:
> xserge schrieb:
>   
>> I've created first maven project using next command 
>>
>> mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app
>>
>> SUCCESSFULLY 
>>
>> Now I'm trying to compile this project from folder my-app
>>
>> using command 
>>
>> mvn compile
>>
>> and I received
>>
>> 
>>  BUILD ERROR
>> 
>> The plugin 'org.apache.maven.plugins:maven-resources-plugin' does not exist
>> or no valid version could be found
>> 
>>
>> Hello could anybody help me, that's wrong ? 
>>
>>   
>> 
>
> Looks like you have network-related problems.
>
> When you install maven, that just installs the core piece. Maven then
> downloads various plugins over the internet as they are needed,
> including the maven-resources-plugin. So you need to have an internet
> connection to run maven - at least for the first time.
>
> Try going to "http://repo1.maven.org/maven2/org/apache/maven/plugins";
> with a normal web browser. If you cannot get there, then that is the
> problem.
>
> The file "~/.m2/settings.xml" can be configured with details of network
> proxies, etc if that is necessary. See the documentation on the maven
> website for that.
>   

Hmm..although if you've run "archetype:create" successfully, then it
looks like you do have network connectivity ok. So maybe the problem is
something else. Can't think what it would be though..

Regards,
Simon


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



Re: How can I compile my first maven project

2008-06-02 Thread John Casey
It sounds like Maven is having a hard time accessing the network to 
download the plugins it needs to perform your build. Maybe you have a 
proxy that needs to be configured?


If so, you might check out this page: 
http://maven.apache.org/guides/mini/guide-proxies.html


Good luck,

-john

xserge wrote:
I've created first maven project using next command 


mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app

SUCCESSFULLY 


Now I'm trying to compile this project from folder my-app

using command 


mvn compile

and I received


 BUILD ERROR

The plugin 'org.apache.maven.plugins:maven-resources-plugin' does not exist
or no valid version could be found


Hello could anybody help me, that's wrong ? 

  


--
John Casey
Developer, PMC Member - Apache Maven (http://maven.apache.org)
Blog: http://www.ejlife.net/blogs/buildchimp/


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



Re: How can I compile my first maven project

2008-06-02 Thread [EMAIL PROTECTED]
xserge schrieb:
> I've created first maven project using next command 
>
> mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app
>
> SUCCESSFULLY 
>
> Now I'm trying to compile this project from folder my-app
>
> using command 
>
> mvn compile
>
> and I received
>
> 
>  BUILD ERROR
> 
> The plugin 'org.apache.maven.plugins:maven-resources-plugin' does not exist
> or no valid version could be found
> 
>
> Hello could anybody help me, that's wrong ? 
>
>   

Looks like you have network-related problems.

When you install maven, that just installs the core piece. Maven then
downloads various plugins over the internet as they are needed,
including the maven-resources-plugin. So you need to have an internet
connection to run maven - at least for the first time.

Try going to "http://repo1.maven.org/maven2/org/apache/maven/plugins";
with a normal web browser. If you cannot get there, then that is the
problem.

The file "~/.m2/settings.xml" can be configured with details of network
proxies, etc if that is necessary. See the documentation on the maven
website for that.

Regards,
Simon


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



How can I compile my first maven project

2008-06-02 Thread xserge

I've created first maven project using next command 

mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app

SUCCESSFULLY 

Now I'm trying to compile this project from folder my-app

using command 

mvn compile

and I received


 BUILD ERROR

The plugin 'org.apache.maven.plugins:maven-resources-plugin' does not exist
or no valid version could be found


Hello could anybody help me, that's wrong ? 

-- 
View this message in context: 
http://www.nabble.com/How-can-I-compile-my-first-maven-project-tp17600859p17600859.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



RE: How can I package test code?

2008-06-02 Thread Martin Gainty

sample plugin declaration from pom.xml 

  
org.apache.maven.plugins
maven-jar-plugin
2.2

  

  test-jar

  

  

and the test-jar configuration from components.xml


  org.apache.maven.artifact.handler.ArtifactHandler
  test-jar
  
org.apache.maven.artifact.handler.DefaultArtifactHandler
  
tests
jar
test-jar
jar
java
true
  


HTH
Martin 
__ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official business 
of Sender. This transmission is of a confidential nature and Sender does not 
endorse distribution to any party other than intended recipient. Sender does 
not necessarily endorse content contained within this transmission. 


> Date: Mon, 2 Jun 2008 14:18:15 +0200
> From: [EMAIL PROTECTED]
> To: users@maven.apache.org
> Subject: Re: How can I package test code?
> 
> youhaodeyi schrieb:
> > mvn package only packages source code into a jar file. I want to package the
> > test code into a jar file too. How can I do this?
> >   
> 
> See the documentation for maven-jar-plugin, goal "test-jar"
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

_
Keep your kids safer online with Windows Live Family Safety.
http://www.windowslive.com/family_safety/overview.html?ocid=TXT_TAGLM_WL_Refresh_family_safety_052008

Re: How can I package test code?

2008-06-02 Thread [EMAIL PROTECTED]
youhaodeyi schrieb:
> mvn package only packages source code into a jar file. I want to package the
> test code into a jar file too. How can I do this?
>   

See the documentation for maven-jar-plugin, goal "test-jar"


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



RE: Publishing Source and Javadoc to Local Repository

2008-06-02 Thread Beelen, M. - SPLXL
Alan,

To install the javadoc and source into your local repository you could
also run 

"mvn install -DperformRelease=true"

With kind regards,
  Marco Beelen
  Senior Software Engineer
  IPROFS 

[1]: http://www.mail-archive.com/users@maven.apache.org/msg58933.html

-Original Message-
From: Alan Gutierrez [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 02, 2008 12:09 AM
To: Maven Users List
Subject: Publishing Source and Javadoc to Local Repository

When I type:

mvn install

In my projects, it installs the jar artifact to the local repository in
my home directory, but not the source or javadoc.

How do install the source and javadoc from my working projects to my
local repository?

Alan

--
Alan Gutierrez | [EMAIL PROTECTED] | http://blogometer.com/ | 504
717 1428
Think New Orleans | http://thinknola.com/



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

**
For information, services and offers, please visit our web site:
http://www.klm.com. This e-mail and any attachment may contain
confidential and privileged material intended for the addressee
only. If you are not the addressee, you are notified that no part
of the e-mail or any attachment may be disclosed, copied or
distributed, and that any other action related to this e-mail or
attachment is strictly prohibited, and may be unlawful. If you have
received this e-mail by error, please notify the sender immediately
by return e-mail, and delete this message. 

Koninklijke Luchtvaart Maatschappij NV (KLM), its subsidiaries
and/or its employees shall not be liable for the incorrect or
incomplete transmission of this e-mail or any attachments, nor
responsible for any delay in receipt.
Koninklijke Luchtvaart Maatschappij N.V. (also known as KLM Royal
Dutch Airlines) is registered in Amstelveen, The Netherlands, with
registered number 33014286 
**

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



Announcing Grails Maven Plugin 0.4

2008-06-02 Thread Trygve Laugstøl
The third release of the grails-maven-plugin is now available. You'll 
find the full list of changes in 
[jira|http://forge.octo.com/jira/secure/ReleaseNote.jspa?projectId=10120&styleName=Html&version=10332]


A lot of small bugs has been fixed and a few improvements has been 
implemented.


As more users are using the Grails integration, more use-cases are 
discovered and integrated into the plugin. If you have a particular 
feature that you want to get in the plugin, don't hesitate to create 
issues in JIRA.


JIRA: http://forge.octo.com/jira/browse/MTG
Mailing list: Send an email with the subject "subscribe mtg" to 
[EMAIL PROTECTED] or just press 
[here|mailto:[EMAIL PROTECTED]


Have Fun with Grails+Maven.

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



How can I package test code?

2008-06-02 Thread youhaodeyi

mvn package only packages source code into a jar file. I want to package the
test code into a jar file too. How can I do this?
-- 
View this message in context: 
http://www.nabble.com/How-can-I-package-test-code--tp17599476p17599476.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



What this errors or exceptions can mean?

2008-06-02 Thread Sench

Hi All,

I'm trying to create my projects site with maven. Well creation process is
fine!
But I'm getting some errors in my console.
Ex.

1.
[INFO] Velocimacro : initialization starting.
[INFO] Velocimacro : adding VMs from VM library template :
VM_global_library.vm
[ERROR] ResourceManager : unable to find resource 'VM_global_library.vm' in
any resource loader.
[INFO] Velocimacro : error using  VM library template VM_global_library.vm :
org.apache.velocity.exception.ResourceNotFoundException: Unable to find
resource 'VM_global_library.vm'
[INFO] Velocimacro :  VM library template macro registration complete. 

2.
[INFO] ResourceManager : found templates/package-frame.vm with loader
org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
[INFO] ResourceManager : found templates/package-summary.vm with loader
org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
[WARNING] org.apache.velocity.runtime.exception.ReferenceException:
reference : template = templates/package-summary.vm [line 22,column 45] :
$name is not a valid reference.


Thanks,
Arsen

-- 
View this message in context: 
http://www.nabble.com/What-this-errors-or-exceptions-can-mean--tp17598762p17598762.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



manage dependencies at runtime

2008-06-02 Thread David Delbecq
Hello,

I have an application that is fully managed with maven 2 at compile time. It 
has also it's own "plugin" infrastucture. So it's possible to include plugins 
to my app, by adding the plugins in a specific jar folder. Those plugins 
(which have nothing to do with maven plugins!) are also build with maven.

That means, all jars in my application (main jar, dependency jars, plugins 
jar) contain a pom.xml and a pom.properties in the META-INF. What i'd like to 
do, before loading my plugins (which is currently simply done with a 
jarclassloader) is:

- analyse all my plugins jar
- locate their pom and extract dependency informations, in a recursive way
- for all dependencies that are not provided by main app, 
  - download the dependency jar
  - store it in a repository folder specific to app
  - add it to my jarclassloader.

So i need a way to add a maven dependencies management to my own app. That 
way, my plugins that have dependencies don't have to bundle them in a zip, 
and user just have to put the plugin jar in my plugins/ folder, maven 
dependencies discovery will do the rest.

Question is, is it possible to embed in my application a small maven 
dependency management? (i don't need the lifecycle suff, just to be able to 
manage dependencies and get a recursive list of them, resolved)


-- 
David Delbecq
Institut Royal Météorologique
Ext 557

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



How can I run an Ant target in Maven?

2008-06-02 Thread youhaodeyi

I use Maven runant plugin to execute ant task, see below:




maven-antrun-plugin
















How can I run the target schema-recreate? I don't want o attach this into
any Maven lifecycle.
-- 
View this message in context: 
http://www.nabble.com/How-can-I-run-an-Ant-target-in-Maven--tp17596941p17596941.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



generate link css on maven reports

2008-06-02 Thread ggalou08

hi !

I generate a site with maven reports and in the code source I see a link on
a css file : print.css.

This file doesn't exist, and i wonder if I can force Maven not to generate
this link or if it's just a bug ?!?

this is the source :


  @import url("./css/maven-base.css");
  @import url("./css/maven-theme.css");
  @import url("./css/site.css");


Thank you for your help !
-- 
View this message in context: 
http://www.nabble.com/generate-link-css-on-maven-reports-tp17596897p17596897.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Convert Maven 1 reactor tag to Maven 2 Java Mojo

2008-06-02 Thread benny . goemans
undefined

Re: Method calculateLink threw exception for reference $PathTool

2008-06-02 Thread David Delbecq
Le Sunday 01 June 2008 20:51:17 David Delbecq, vous avez écrit :
> Hello,
>
> I get the following error when i try to generate the site of a maven2
> modules based project.
> [INFO] Generating "Continuous Integration" report.
> [ERROR] Method calculateLink threw exception for reference $PathTool in
> template org/apache/maven/doxia/siterenderer/resources/default-site.vm
> at  [2,29]
>
>

Self responding :)

Seems it's a problem related to the fact i "forgot" to define the "href" on 
some menu link in my site.xml (it was a bit late,i wrote url= instead of 
href=). The error message was far from explicit :)

-- 
David Delbecq
Institut Royal Météorologique
Ext 557

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



Re: Axis2 and Maven2

2008-06-02 Thread Karl Heinz Marbaise
Hi,

now i have changed the dependencies...to the following:

org.apache.axis2.maven2
axis2-java2wsdl-maven-plugin
1.4


Now the the following message have vanished...

> [INFO] [axis2-java2wsdl:java2wsdl {execution: default}]
> java.lang.Exception: java.lang.ClassNotFoundException:
> com.soebes.testaxis2.service.WeatherService
> at
> org.apache.ws.java2wsdl.Java2WSDLCodegenEngine.generate(Java2WSDLCodegenEngine.java:58)
> at
> org.apache.axis2.maven2.java2wsdl.Java2WSDLMojo.execute(Java2WSDLMojo.java:146)

Kind regards
Karl Heinz Marbaise
-- 
SoftwareEntwicklung Beratung SchulungTel.: +49 (0) 2405 / 415 893
Dipl.Ing.(FH) Karl Heinz MarbaiseICQ#: 135949029
Hauptstrasse 177 USt.IdNr: DE191347579
52146 Würselen   http://www.soebes.de

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