You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by devillina <on...@delaware.be> on 2006/08/10 12:11:21 UTC

eclipse maven 2 plugin

Hi i'm using in eclipse the plugin to let it work with maven 2 and i'm having
some
problems with it.  (Bare in mind that everything works fine when i run it
from the 
command line.)

First issue
-----------------
As it currently doesn't read the settings.xml (or has this bin fixed and am
i doing something wrong??), i wonder how i can specify how to logon my
tomcat 

i currently have this inside my POM:

<plugin>
    <groupId>org.codehaus.mojo</groupId>
    <artifactId>tomcat-maven-plugin</artifactId>
    <version>1.0-SNAPSHOT</version>
    <configuration>
        <warFile>
            /target/dev/${artifactId}-${version}-dev.war
        </warFile>
        <server>myserver</server>
    </configuration>
</plugin>

as he doesn't read the settings.xml, this obviously doesnt work :)
any suggestions?

second issue
-------------------

I'm using multiple profiles (actually four called: dev, test, prod and qa).
How do I run a different profile in Eclipse than the default one?
(dev is the active by default one)

I've tried a lot of things:

i right-click on my pom and choose the run as Maven build... option.
Then you get a screen to specify your goal and arguments.

i've tried to fill in the following thing in the argument section

argumentName       argumentValue

P                          test
p                          test                
-P                         test
-p                         test
profile.name           test (then he just replaced "profile.name" with
"test" in my pom,
                                    but doesn't execute the test profile).

In the first four cases, he just executes the dev-profile (the active by
default one)

anybody that knows how to help??

thx!
-- 
View this message in context: http://www.nabble.com/eclipse-maven-2-plugin-tf2083850.html#a5741589
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: Assembly module: binary exlusion

Posted by John Casey <ca...@gmail.com>.
This should be fixed in the current 2.2-SNAPSHOT of the assembly plugin...if
you need help accessing this plugin, let me know.

-john

On 8/10/06, Sebastien Pennec <se...@qos.ch> wrote:
>
> Hello,
>
> I'm creating an assembly based on a few modules.
>
> To include the dependencies of all modules in a module_name/lib directory,
> I'm using
> the moduleSets/moduleSet elements in my assembly descriptor.
> Unfortunately, the jar of the artifact that is being assembled is always
> included in
> the lib directory. To prevent this, I wanted to do something like:
>
> <binaries>
>    <outputDirectory>${artifactId}/lib</outputDirectory>
>    <includeDependencies>true</includeDependencies>
>    <unpack>false</unpack>
>    <excludes>
>      <exclude>${groupId}:${artifactId}</exclude>
>      <exclude>module_name*</exclude>
>    </excludes>
> </binaries>
>
>
> I've tried these two ways of filling the <exclude> elements, but none
> work.
>
> Could anybody help me?
>
> Thanks!
>
> Sébastien
> --
> Sébastien Pennec
> sebastien@qos.ch
>
> Logback: The reliable, generic, fast and flexible logging framework for
> Java.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Assembly module: binary exlusion

Posted by Sebastien Pennec <se...@qos.ch>.
Hello,

I'm creating an assembly based on a few modules.

To include the dependencies of all modules in a module_name/lib directory, I'm using 
the moduleSets/moduleSet elements in my assembly descriptor.
Unfortunately, the jar of the artifact that is being assembled is always included in 
the lib directory. To prevent this, I wanted to do something like:

<binaries>
   <outputDirectory>${artifactId}/lib</outputDirectory>
   <includeDependencies>true</includeDependencies>
   <unpack>false</unpack>
   <excludes>
     <exclude>${groupId}:${artifactId}</exclude>
     <exclude>module_name*</exclude>
   </excludes>
</binaries>


I've tried these two ways of filling the <exclude> elements, but none work.

Could anybody help me?

Thanks!

Sébastien
-- 
Sébastien Pennec
sebastien@qos.ch

Logback: The reliable, generic, fast and flexible logging framework for Java.

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


Re: eclipse maven 2 plugin

Posted by "David J. M. Karlsen" <da...@davidkarlsen.com>.
devillina wrote:
> woeps, just noticed that this has it's own forum...anyway to replace this
> message to the "Maven Eclipse - User" forum ? 
> 
> sorry for the inconvenience

The m2eclipse list? It died along with the horrifying disc-crashes at 
codehaus - never came back. If you try to subscribe the mail bounce, if 
you try to contact the list maintainer - it will bounce....

Same with svn repos listed at the site - the most of them does not exist...



-- 
David J. M. Karlsen - +47 90 68 22 43
http://www.davidkarlsen.com
http://mp3.davidkarlsen.com

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


Re: eclipse maven 2 plugin

Posted by devillina <on...@delaware.be>.
woeps, just noticed that this has it's own forum...anyway to replace this
message to the "Maven Eclipse - User" forum ? 

sorry for the inconvenience
-- 
View this message in context: http://www.nabble.com/eclipse-maven-2-plugin-tf2083850.html#a5741620
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