RE: Packaging dependencies in lib folder of ejb

2010-01-23 Thread Marcin Kwapisz
> 
> 5
> 
> 
> org.imixs
>  jee-demo-lib 
> lib
> 
> 
> 
> 
> 
> But how to do the same for a jar ? My goal is to place  the
> jee-demo-lib.jar into the /lib folder of my ejb as it is possible to
> place it in an ear using the maven-ear-plugin.
> Is there a similar mechanism in the maven-ejb-plugin?
> I need this to repackage a large project for a test on glassfish V3
[[Marcin Kwapisz]] 
Use maven-assembly-plugin or maven-dependency-plugin (copy-dependecies goal)

Regards
-- 
Marcin Kwapisz





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



RE: Surefire and testSourceDirectory

2010-01-06 Thread Marcin Kwapisz
> This is simply not where testSourceDirectory goes in the pom. The
> Surefire plugin does not look for this value where you've put it,
> therefore it has no effect on your build which is correct.
[Marcin Kwapisz] 
Why? This is parameter for surefire with default value set to 
${project.build.testSourceDirectory}. The documentation for the surefire plugin 
is very misleading, and I think testSourceDirectory should be removed from 
required parameters (if it is ignored). I can set other parameters like 
classesDirectory and testClassesDirectory in the surefire configuration and 
they work. The description of these two parameters is identical to 
testSourcesDirectory

Regards,
Marcin


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



RE: Surefire and testSourceDirectory

2010-01-05 Thread Marcin Kwapisz
Sorry, attachments are not accepted. It is my pom.xml

http://maven.apache.org/POM/4.0.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd";>
4.0.0
pl.zsk.samples
SurefireFiltering
jar
1.0-SNAPSHOT
SurefireFiltering
http://maven.apache.org



org.apache.maven.plugins
maven-compiler-plugin
2.1

1.6
1.6
${project.build.sourceEncoding}



org.apache.maven.plugins
maven-resources-plugin
2.4.1

${project.build.sourceEncoding}



org.apache.maven.plugins
maven-surefire-plugin
2.4.3





src/test/whatever







junit
junit
4.7
test



UTF-8
Przefiltrowano




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



RE: Surefire and testSourceDirectory

2010-01-05 Thread Marcin Kwapisz
> Usually i use the tag  in order to indicate if
> tests are for integration
> (src/it) or for unit tests
> (src/test)
> I use 2 modules, one for unit tests and another for integration tests
[[Marcin Kwapisz]] 

The following configuration doesn't work, testSourceDirectory under surefire 
plugin configuration can be set to any directory:




org.apache.maven.plugins
maven-surefire-plugin
2.4.3


${project.build.directory}/filteredTestSources





And that one of course works (I use it), and if there is no test sources, no 
test will be compiled and run:




org.apache.maven.plugins
maven-surefire-plugin
2.4.3


   
${project.build.directory}/filteredTestSources


I attached simple example to this email, but I do not know if the list server 
accept it

Regards
Marcin


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

RE: Surefire and testSourceDirectory

2010-01-05 Thread Marcin Kwapisz
> Well, the purpose is what the docs says:
> "The test source directory containing test class sources."
> And it does work, otherwise no unit tests would work/run for any Maven
> project. As a convention, this param is defined in the Maven super pom.

[Marcin Kwapisz]
Source files are not run. You mean . This property must 
be set to directory where compiled test classes are placed. 
 can be set in surefire configuration to whatever 
directory, and tests work properly.



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



Surefire and testSourceDirectory

2010-01-05 Thread Marcin Kwapisz
Hi,
can someone tell me what is the purpose of  in 
configuration of the surefire plugin. I do not think this parameter work at 
all. There is project.build.testSourceDirectory and I use it to point at my 
filtered test source files. But this method is very inconvenient due to 
NetBeans IDE - there is no "Test Packages" in project tree then.

Is there another way to tell compiler where test sources are? I tried to set 
project.build.testSourceDirectory (outside pom.xml) in profiles.xml, but it 
doesn't work.

Thanks in advance
Regards
-- 
Marcin Kwapisz



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



RE: Running Jar file created by Maven

2009-10-13 Thread Marcin Kwapisz
> but if I try to build it from the command prompt using mvn
> install,
> it build the whole staff, but when I try to run the jar file, it just
> fails
> becuase it cannot find the library files (dependencies), looks like
> maven
> doesn't add those files, although it downloads them...

[Marcin Kwapisz] 
Maven does not pack jar into jar. You can use assembly plugin to do that (as 
Eric Lewis wrote), but you can also use dependency plugin to copy dependencies 
(needed libraries) to you Target directory (or directory where your main jar is 
located). 

Regards
Marcin Kwapisz


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



maven-release-plugin lock version number in submodule

2009-09-07 Thread Marcin Kwapisz
Hi,
I have multimodule project. One module has final version number. Is it possible 
to lock version number in pom.xml? maven:prepare changes the version number to 
-SNAPSHOT.

The only one solution I could find is to remove the module from parent project, 
deploy the jar into maven repository and then use it as a simple dependency.

Regards
-- 
Marcin  Kwapisz


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



war-plugin and

2008-12-08 Thread Marcin Kwapisz
Hi,
I have problem with class-path in manifest file. 

My war-plugin configuration is as follows:


maven-war-plugin
2.1-alpha-2

@{artifactId}@@[EMAIL 
PROTECTED]@{extension}@


true
lib/





When I set outpuFileMapping, jar names in lib folder do not correspond to names 
in class-path in manifest file. Do I miss something? Or is it a bug in the 
plugin?

Class-Path: lib/jsf-api-1.2_04-p01.jar lib/jsf-impl-1.2_04-p01.jar 
lib/commons-digester-1.5.jar lib/commons-beanutils-1.6.jar 
lib/commons-logging-1.0.jar 

Regards
-- 
Marcin Kwapisz
Division of Computer Networks
Technical Univeristy of Lodz, Poland




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