Re: How does maven handle artifact's license files?

2009-06-23 Thread Stevo Slavić
It scans through your project's dependencies, looks for licenses
definitions, and tries to download them (based on given license URL) into a
destination you designate via outputDirectory parameter (defaults to
${project.build.directory}/licenses). It can do the license
scanning/downloading quietly (defaults to false), not to report warnings if
license can not be found or downloaded. To automatically embed downloaded
licenses into your jar or war you can use build helper plugin or assembly
plugin - wish jar/war plugins were enough.

As already stated, problem is that many library vendors don't include the
license info in artefact pom's, but also many include it in their own
special way, so you will e.g. get multiple differently named Apache 2
licenses, invalid URL's, or BSD license template library vendor failed to
customize, ...

Regards,
Stevo.

On Wed, Jun 24, 2009 at 4:35 AM, David Hoffer  wrote:

> What does the maven-jboss-license-plugin do?
>
>
> On Tue, Jun 23, 2009 at 5:03 PM, Stevo Slavić  wrote:
>
> >...
> >
> >...
> >
> >repository.jboss.org
> >http://repository.jboss.org/maven2
> >
> >true
> >
> >
> >false
> >
> >
> >...
> >
> >...
> >
> >...
> >
> >...
> >
> >org.jboss.maven.plugins
> >maven-jboss-license-plugin
> >1.0.0
> >
> >
> >download-licenses
> >generate-resources
> >
> >download-licenses
> >
> >
> >
> >
> >
> ${project.build.directory}/generated-resources/licenses
> >false
> >
> >
> >
> >
> >...
> >
> >...
> >
> >...
> >
> > Regards,
> > Stevo.
> >
> > On Tue, Jun 23, 2009 at 8:57 PM, David Hoffer 
> wrote:
> >
> > > The report does show a list of known licenses and which artifact is
> > > associated with each.  However most just say Unknown (likely because
> like
> > > you say the pom is missing the information).
> > >
> > > However this doesn't help the end product, that is, it doesn't do what
> > the
> > > license says is needed...rather its just an informational report.
> > >
> > > For instance, for the apache license, doesn't a copy of the license
> have
> > to
> > > come with the product/application?  I thought I heard, some time ago,
> > that
> > > maven was working on automating this just like they do for runtime
> > > artifacts.
> > >
> > > -Dave
> > >
> > > On Tue, Jun 23, 2009 at 12:45 PM, Todd Thiessen 
> > > wrote:
> > >
> > > > The dependencies report show all transitive licenses that your
> project
> > > > uses. I believe this report is part of the default maven site
> > > > generation.
> > > >
> > > > Of course if artifacts don't have any license information in their
> pom,
> > > > no information will be shown in the report.
> > > >
> > > > ---
> > > > Todd Thiessen
> > > >
> > > >
> > > > > -Original Message-
> > > > > From: David Hoffer [mailto:dhoff...@gmail.com]
> > > > > Sent: Tuesday, June 23, 2009 2:40 PM
> > > > > To: Maven Users List
> > > > > Subject: How does maven handle artifact's license files?
> > > > >
> > > > > Does maven have support for tracking license files my
> > > > > dependent artifacts may have and doing something with these
> > > > > files, such as installing with my product/application?  If so, how?
> > > > >
> > > > > (Ideally I want to deploy license docs with each artifact
> > > > > that needs one (ideally public artifacts should already have
> > > > > this) then I want to include all these in a specific location
> > > > > in my war.)
> > > > >
> > > > > -Dave
> > > > >
> > > >
> > > > -
> > > > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> > > > For additional commands, e-mail: users-h...@maven.apache.org
> > > >
> > > >
> > >
> >
>


Re: artifacts not downloading

2009-06-23 Thread Barrie Treloar
On Wed, Jun 24, 2009 at 2:35 PM, Wes Wannemacher wrote:
> It is a large multi-module build (the struts2 build, in fact) and a
> quick glance/grep through poms didn't yield any obvious entries
> pointing to download.java.net, but I will dig further tomorrow. I
> noticed the same thing at my office recently and I did get around it
> by using nexus. I just wasn't sure if it was my build or if others had
> noticed that artifacts weren't where maven was looking.

Run
  mvn help:effective-pom > epom.txt

This will show you the complete  defined in the inheritance chain.

You can also check your settings.xml to see whether you are pointing
to something wierd.

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



Re: artifacts not downloading

2009-06-23 Thread Wes Wannemacher
It is a large multi-module build (the struts2 build, in fact) and a
quick glance/grep through poms didn't yield any obvious entries
pointing to download.java.net, but I will dig further tomorrow. I
noticed the same thing at my office recently and I did get around it
by using nexus. I just wasn't sure if it was my build or if others had
noticed that artifacts weren't where maven was looking.

-Wes

On Wed, Jun 24, 2009 at 12:41 AM, Barrie Treloar wrote:
> On Wed, Jun 24, 2009 at 1:54 PM, Wes Wannemacher wrote:
>> Hello,
>>
>> Lately I have noticed that while building, maven is downloading its
>> dependencies, but once in a while, an artifact will come over
>> incorrectly (I suspect a bad mirror somewhere). For instance, if I
>> look at the contents of
>> ~/.m2/repository/cglib/cglib-full/2.0.2/cglib-full-2.0.2.jar I see -
>>
>> cat /home/wesw/.m2/repository/cglib/cglib-full/2.0.2/cglib-full-2.0.2.jar
>> 
>> 
>> 301 Moved Permanently
>> 
>> Moved Permanently
>> The document has moved > href="http://download.java.net/maven/2/cglib/cglib-full/2.0.2/cglib-full-2.0.2.jar";>here.
>> 
>> Apache Server at maven2-repository.dev.java.net Port 443
>> 
>>
>> It is helpful that they tell me where to find it, but how can I make
>> maven understand that?
>
> Do you have multiple s defined in your pom?
>
> I can download 
> http://repo1.maven.org/maven2/cglib/cglib-full/2.0.2/cglib-full-2.0.2.jar
> fine.
>
> However if I go to http://download.java.net/maven/2/cglib/cglib/ you
> can see there is only one version 2.2_beta1/ (and no cglib-full at
> all)
>
> I suspect that you have included another repository that is claiming
> to have that artifact - when in fact it doesn't.
> It is very bad for a repository to delete or move an artifact.
>
> You may be able to get around this by fixing your  declarations.
> You may be able to get around this by using a repository manager like
> archiva or nexus.
>
> Good luck.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>



-- 
Wes Wannemacher
Author - Struts 2 In Practice
Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
http://www.manning.com/wannemacher

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



Re: artifacts not downloading

2009-06-23 Thread Barrie Treloar
On Wed, Jun 24, 2009 at 1:54 PM, Wes Wannemacher wrote:
> Hello,
>
> Lately I have noticed that while building, maven is downloading its
> dependencies, but once in a while, an artifact will come over
> incorrectly (I suspect a bad mirror somewhere). For instance, if I
> look at the contents of
> ~/.m2/repository/cglib/cglib-full/2.0.2/cglib-full-2.0.2.jar I see -
>
> cat /home/wesw/.m2/repository/cglib/cglib-full/2.0.2/cglib-full-2.0.2.jar
> 
> 
> 301 Moved Permanently
> 
> Moved Permanently
> The document has moved  href="http://download.java.net/maven/2/cglib/cglib-full/2.0.2/cglib-full-2.0.2.jar";>here.
> 
> Apache Server at maven2-repository.dev.java.net Port 443
> 
>
> It is helpful that they tell me where to find it, but how can I make
> maven understand that?

Do you have multiple s defined in your pom?

I can download 
http://repo1.maven.org/maven2/cglib/cglib-full/2.0.2/cglib-full-2.0.2.jar
fine.

However if I go to http://download.java.net/maven/2/cglib/cglib/ you
can see there is only one version 2.2_beta1/ (and no cglib-full at
all)

I suspect that you have included another repository that is claiming
to have that artifact - when in fact it doesn't.
It is very bad for a repository to delete or move an artifact.

You may be able to get around this by fixing your  declarations.
You may be able to get around this by using a repository manager like
archiva or nexus.

Good luck.

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



Help with linkage error while running plugin goal

2009-06-23 Thread Jerry Lin
Hello,

I am trying to develop a maven plugin. When I explicitly invoke the plug-in,
I get a linkage error which I have had a very hard time resolving. Any help
would be greatly appreciated.

I am using the m2 Eclipse plugin to build my maven projects. I have tried
deleting the local repository and re-downloading all dependencies with the
same results. When I run mvn from the command line, I get a
slightly different printout which hints at a problem related to logging.
Here is the printout I get when I run my plug-in goal from Eclipse:

[ERROR]
com.cisco.ipcentral.maven_ipcentral_plugin.IPCentralMojo#execute()
caused a linkage error (java.lang.NoClassDefFoundError). Check the
realms:

NOTE:
Plugin realm
is: /plugins/com.cisco.ipcentral:maven-ipcentral-plugin:0.0.1-snaps...@48
/thread:main
Container realm is: plexus.core

Realm
ID: /plugins/com.cisco.ipcentral:maven-ipcentral-plugin:0.0.1-snaps...@48
/thread:main
urls[0] =
file:/home/jerrylin/.m2/repository/com/cisco/ipcentral/maven-ipcentral-plugin/0.0.1-SNAPSHOT/maven-ipcentral-plugin-0.0.1-SNAPSHOT.jar
urls[1] =
file:/home/jerrylin/.m2/repository/axis/axis-wsdl4j/1.5.1/axis-wsdl4j-1.5.1.jar
urls[2] =
file:/home/jerrylin/.m2/repository/org/apache/axis/axis-ant/1.4/axis-ant-1.4.jar
urls[3] =
file:/home/jerrylin/.m2/repository/javax/activation/activation/1.1/activation-1.1.jar
urls[4] =
file:/home/jerrylin/.m2/repository/javax/mail/mail/1.4.1/mail-1.4.1.jar
urls[5] =
file:/home/jerrylin/.m2/repository/org/apache/maven/maven-project-builder/3.0-alpha-2/maven-project-builder-3.0-alpha-2.jar
urls[6] =
file:/home/jerrylin/.m2/repository/org/sonatype/spice/model-builder/1.3/model-builder-1.3.jar
urls[7] =
file:/home/jerrylin/.m2/repository/org/codehaus/woodstox/wstx-asl/3.2.6/wstx-asl-3.2.6.jar
urls[8] =
file:/home/jerrylin/.m2/repository/stax/stax-api/1.0.1/stax-api-1.0.1.jar
urls[9] =
file:/home/jerrylin/.m2/repository/org/apache/maven/maven-embedder/2.0.4/maven-embedder-2.0.4.jar
urls[10] =
file:/home/jerrylin/.m2/repository/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar
urls[11] =
file:/home/jerrylin/.m2/repository/junit/junit/3.8/junit-3.8.jar
urls[12] =
file:/home/jerrylin/.m2/repository/org/apache/maven/maven-error-diagnostics/2.0.5/maven-error-diagnostics-2.0.5.jar
urls[13] =
file:/home/jerrylin/.m2/repository/org/apache/maven/maven-plugin-registry/2.0.5/maven-plugin-registry-2.0.5.jar
urls[14] =
file:/home/jerrylin/.m2/repository/org/apache/maven/maven-embedder/2.0.4/maven-embedder-2.0.4-javadoc.jar
urls[15] =
file:/home/jerrylin/.m2/repository/org/apache/maven/maven-embedder/2.0.4/maven-embedder-2.0.4-sources.jar
urls[16] =
file:/home/jerrylin/.m2/repository/commons-discovery/commons-discovery/0.4/commons-discovery-0.4.jar
urls[17] =
file:/home/jerrylin/.m2/repository/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.jar
urls[18] =
file:/home/jerrylin/.m2/repository/log4j/log4j/1.2.9/log4j-1.2.9.jar
urls[19] =
file:/home/jerrylin/.m2/repository/commons-configuration/commons-configuration/1.3/commons-configuration-1.3.jar
urls[20] =
file:/home/jerrylin/.m2/repository/commons-collections/commons-collections/3.1/commons-collections-3.1.jar
urls[21] =
file:/home/jerrylin/.m2/repository/commons-lang/commons-lang/2.1/commons-lang-2.1.jar
urls[22] =
file:/home/jerrylin/.m2/repository/commons-logging/commons-logging-api/1.0.4/commons-logging-api-1.0.4.jar
urls[23] =
file:/home/jerrylin/.m2/repository/commons-digester/commons-digester/1.6/commons-digester-1.6.jar
urls[24] =
file:/home/jerrylin/.m2/repository/commons-beanutils/commons-beanutils/1.6/commons-beanutils-1.6.jar
urls[25] =
file:/home/jerrylin/.m2/repository/xml-apis/xml-apis/1.0.b2/xml-apis-1.0.b2.jar
urls[26] =
file:/home/jerrylin/.m2/repository/commons-beanutils/commons-beanutils-core/1.7.0/commons-beanutils-core-1.7.0.jar
urls[27] =
file:/home/jerrylin/.m2/repository/commons-codec/commons-codec/1.3/commons-codec-1.3.jar
urls[28] =
file:/home/jerrylin/.m2/repository/commons-jxpath/commons-jxpath/1.2/commons-jxpath-1.2.jar
urls[29] =
file:/home/jerrylin/.m2/repository/xerces/xerces/1.2.3/xerces-1.2.3.jar
urls[30] =
file:/home/jerrylin/.m2/repository/javax/servlet/servlet-api/2.2/servlet-api-2.2.jar
urls[31] =
file:/home/jerrylin/.m2/repository/ant/ant-optional/1.5.1/ant-optional-1.5.1.jar
urls[32] = file:/home/jerrylin/.m2/repository/jdom/jdom/b9/jdom-b9.jar
urls[33] =
file:/home/jerrylin/.m2/repository/xerces/xercesImpl/2.2.1/xercesImpl-2.2.1.jar
urls[34] =
file:/home/jerrylin/.m2/repository/xalan/xalan/2.7.0/xalan-2.7.0.jar
urls[35] =
file:/home/jerrylin/.m2/repository/net/sf/ehcache/ehcache/1.3.0/ehcache-1.3.0.jar
urls[36] =
file:/home/jerrylin/.m2/repository/net/sf/jsr107cache/jsr107cache/1.0/jsr107cache-1.0.jar
urls[37] =
file:/home/jerrylin/.m2/repository/backport-util-concurrent/backport-util-concurrent/3.0/backport-util-concurrent-3.0.jar
urls[38] = file:/home/jerrylin/.m2/repository/axis/axis/1.4/axis-1.4.jar
urls[39] =
file:/home/jerrylin/.m2/repository/org/apache/axis

artifacts not downloading

2009-06-23 Thread Wes Wannemacher
Hello,

Lately I have noticed that while building, maven is downloading its
dependencies, but once in a while, an artifact will come over
incorrectly (I suspect a bad mirror somewhere). For instance, if I
look at the contents of
~/.m2/repository/cglib/cglib-full/2.0.2/cglib-full-2.0.2.jar I see -

cat /home/wesw/.m2/repository/cglib/cglib-full/2.0.2/cglib-full-2.0.2.jar


301 Moved Permanently

Moved Permanently
The document has moved http://download.java.net/maven/2/cglib/cglib-full/2.0.2/cglib-full-2.0.2.jar";>here.

Apache Server at maven2-repository.dev.java.net Port 443


It is helpful that they tell me where to find it, but how can I make
maven understand that?

-Wes
-- 
Wes Wannemacher
Author - Struts 2 In Practice
Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
http://www.manning.com/wannemacher

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



Re: How does maven handle artifact's license files?

2009-06-23 Thread David Hoffer
What does the maven-jboss-license-plugin do?


On Tue, Jun 23, 2009 at 5:03 PM, Stevo Slavić  wrote:

>...
>
>...
>
>repository.jboss.org
>http://repository.jboss.org/maven2
>
>true
>
>
>false
>
>
>...
>
>...
>
>...
>
>...
>
>org.jboss.maven.plugins
>maven-jboss-license-plugin
>1.0.0
>
>
>download-licenses
>generate-resources
>
>download-licenses
>
>
>
>
> ${project.build.directory}/generated-resources/licenses
>false
>
>
>
>
>...
>
>...
>
>...
>
> Regards,
> Stevo.
>
> On Tue, Jun 23, 2009 at 8:57 PM, David Hoffer  wrote:
>
> > The report does show a list of known licenses and which artifact is
> > associated with each.  However most just say Unknown (likely because like
> > you say the pom is missing the information).
> >
> > However this doesn't help the end product, that is, it doesn't do what
> the
> > license says is needed...rather its just an informational report.
> >
> > For instance, for the apache license, doesn't a copy of the license have
> to
> > come with the product/application?  I thought I heard, some time ago,
> that
> > maven was working on automating this just like they do for runtime
> > artifacts.
> >
> > -Dave
> >
> > On Tue, Jun 23, 2009 at 12:45 PM, Todd Thiessen 
> > wrote:
> >
> > > The dependencies report show all transitive licenses that your project
> > > uses. I believe this report is part of the default maven site
> > > generation.
> > >
> > > Of course if artifacts don't have any license information in their pom,
> > > no information will be shown in the report.
> > >
> > > ---
> > > Todd Thiessen
> > >
> > >
> > > > -Original Message-
> > > > From: David Hoffer [mailto:dhoff...@gmail.com]
> > > > Sent: Tuesday, June 23, 2009 2:40 PM
> > > > To: Maven Users List
> > > > Subject: How does maven handle artifact's license files?
> > > >
> > > > Does maven have support for tracking license files my
> > > > dependent artifacts may have and doing something with these
> > > > files, such as installing with my product/application?  If so, how?
> > > >
> > > > (Ideally I want to deploy license docs with each artifact
> > > > that needs one (ideally public artifacts should already have
> > > > this) then I want to include all these in a specific location
> > > > in my war.)
> > > >
> > > > -Dave
> > > >
> > >
> > > -
> > > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> > > For additional commands, e-mail: users-h...@maven.apache.org
> > >
> > >
> >
>


Re: How does maven handle artifact's license files?

2009-06-23 Thread Stevo Slavić
...

...

repository.jboss.org
http://repository.jboss.org/maven2

true


false


...

...

...

...

org.jboss.maven.plugins
maven-jboss-license-plugin
1.0.0


download-licenses
generate-resources

download-licenses



${project.build.directory}/generated-resources/licenses
false




...

...

...

Regards,
Stevo.

On Tue, Jun 23, 2009 at 8:57 PM, David Hoffer  wrote:

> The report does show a list of known licenses and which artifact is
> associated with each.  However most just say Unknown (likely because like
> you say the pom is missing the information).
>
> However this doesn't help the end product, that is, it doesn't do what the
> license says is needed...rather its just an informational report.
>
> For instance, for the apache license, doesn't a copy of the license have to
> come with the product/application?  I thought I heard, some time ago, that
> maven was working on automating this just like they do for runtime
> artifacts.
>
> -Dave
>
> On Tue, Jun 23, 2009 at 12:45 PM, Todd Thiessen 
> wrote:
>
> > The dependencies report show all transitive licenses that your project
> > uses. I believe this report is part of the default maven site
> > generation.
> >
> > Of course if artifacts don't have any license information in their pom,
> > no information will be shown in the report.
> >
> > ---
> > Todd Thiessen
> >
> >
> > > -Original Message-
> > > From: David Hoffer [mailto:dhoff...@gmail.com]
> > > Sent: Tuesday, June 23, 2009 2:40 PM
> > > To: Maven Users List
> > > Subject: How does maven handle artifact's license files?
> > >
> > > Does maven have support for tracking license files my
> > > dependent artifacts may have and doing something with these
> > > files, such as installing with my product/application?  If so, how?
> > >
> > > (Ideally I want to deploy license docs with each artifact
> > > that needs one (ideally public artifacts should already have
> > > this) then I want to include all these in a specific location
> > > in my war.)
> > >
> > > -Dave
> > >
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> > For additional commands, e-mail: users-h...@maven.apache.org
> >
> >
>


Re: Manual Steps for Integrating Maven with Eclipse...

2009-06-23 Thread Barrie Treloar
On Wed, Jun 24, 2009 at 3:28 AM, Shesadri
Parthasarathy wrote:
> Hi ,
>
> We are working for one of our clients and all our development happens thru 
> Eclipse 3.1. We are using Maven Project for Build and deployment process. As 
> there is some issues in doing the installation of the maven plugin in 
> Eclipse, we want to know the manual steps involved in achieving the same what 
> plug-in installation does.
>
> Is it possible for you to provide the steps (changes to folder or workspace, 
> inclusion of list of executable etc) as part of Maven integration into 
> Eclipse so that we can do it manually.
>
> Quick response on this would be appreciated.
>
> Thanks,
> Sesha.
>

This question belongs on the users list.

Have a look at the http://maven.apache.org/plugins/maven-eclipse-plugin/

There is nothing special about Eclipse and Maven projects.
You just need configure Eclipse to have all the jars that you pom.xml
defines as dependencies (and their transitive dependencies)

The maven-eclipse-plugin automates that for you.

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



Re: problem webapp integration test setup with seperate test module (handling of lifecycle dependencies).

2009-06-23 Thread aldana


to clarify:
-inside test-webapp I need to disable the tests (because jetty isn't
running), during the lifecycle the tests are compiled
-inside the webapp I need to access the test-cases of test-webapp and
integrate them inside phase integration-test. The access would be done by
passing the path to compiled test classes relatively (e.g.
../../test-webapp/target/test-classes). 

I guess there is no other way to do this?
That all feels very unnatural, maybe I better move the integration tests to
the webapp/ project itself (though I really prefer a dedicated test
module)... 

thanks again.

Stephen Connolly-2 wrote:
> 
> 1. Have a look at the failsafe-maven plugin
> 2. if you insist on having the tests in a separate module, then
> test-webapp cannot depend on webapp, an you will need to add
> test-webapp as a dependency to webapp (with scope test) and then
> unpack it with (as surefire/failsafe do not scan jar files for test
> cases at present)
> 
> 2009/6/22 aldana :
>>
>> I want to setup a integration test for a webapp.
>>
>> my project structure (with a seperate test module):
>> parent/
>>  -test-webapp
>>  -webapp
>>
>> requirement is:
>> - webapp (pre-integration-test phase) starts up with jetty:start
>> - test-webapp test cases are run (integration-test phase)
>> - webapp (post-integration-test phase) shuts down with jetty:stop
>>
>> currently I haven't found a way to combine these projects and the
>> dependency
>> of phase runnings. The post-integration phase is always executed before
>> the
>> integration-tests are run and thus fail.
>>
>> I had a look at http://docs.codehaus.org/display/JETTY/Maven+Jetty+Plugin
>> but no success.
>> Maybe there is a trick with the reactor plugin where I can pass such
>> lifecycle dependencies?
>>
>> thanks.
>>
>> -
>> manuel aldana
>> aldana((at))gmx.de
>> software-engineering blog: http://www.aldana-online.de
>> --
>> View this message in context:
>> http://www.nabble.com/problem-webapp-integration-test-setup-with-seperate-test-module-%28handling-of-lifecycle-dependencies%29.-tp24139775p24139775.html
>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>> For additional commands, e-mail: users-h...@maven.apache.org
>>
>>
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
> 
> 
> 


-
manuel aldana
aldana((at))gmx.de
software-engineering blog: http://www.aldana-online.de
-- 
View this message in context: 
http://www.nabble.com/problem-webapp-integration-test-setup-with-seperate-test-module-%28handling-of-lifecycle-dependencies%29.-tp24139775p24175375.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: problem webapp integration test setup with seperate test module (handling of lifecycle dependencies).

2009-06-23 Thread aldana

yes, test-webapp tests http-endpoints exposed from webapp only.


mickknutson wrote:
> 
> Are you only trying to run integration tests against your webapp? Is that
> why you created the test-webapp?
> 
> ---
> Thank You…
> 
> Mick Knutson, President
> 
> BASE Logic, Inc.
> Enterprise Architecture, Design, Mentoring & Agile Consulting
> p. (866) BLiNC-411: (254-6241-1)
> f. (415) 685-4233
> 
> Website: http://baselogic.com
> Linked IN: http://linkedin.com/in/mickknutson
> Vacation Rental: http://tahoe.baselogic.com
> ---
> 
> 
> 
> On Sun, Jun 21, 2009 at 4:05 PM, aldana  wrote:
> 
>>
>> I want to setup a integration test for a webapp.
>>
>> my project structure (with a seperate test module):
>> parent/
>>  -test-webapp
>>  -webapp
>>
>> requirement is:
>> - webapp (pre-integration-test phase) starts up with jetty:start
>> - test-webapp test cases are run (integration-test phase)
>> - webapp (post-integration-test phase) shuts down with jetty:stop
>>
>> currently I haven't found a way to combine these projects and the
>> dependency
>> of phase runnings. The post-integration phase is always executed before
>> the
>> integration-tests are run and thus fail.
>>
>> I had a look at http://docs.codehaus.org/display/JETTY/Maven+Jetty+Plugin
>> but no success.
>> Maybe there is a trick with the reactor plugin where I can pass such
>> lifecycle dependencies?
>>
>> thanks.
>>
>> -
>> manuel aldana
>> aldana((at))gmx.de
>> software-engineering blog: http://www.aldana-online.de
>> --
>> View this message in context:
>> http://www.nabble.com/problem-webapp-integration-test-setup-with-seperate-test-module-%28handling-of-lifecycle-dependencies%29.-tp24139775p24139775.html
>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>> For additional commands, e-mail: users-h...@maven.apache.org
>>
>>
> 
> 


-
manuel aldana
aldana((at))gmx.de
software-engineering blog: http://www.aldana-online.de
-- 
View this message in context: 
http://www.nabble.com/problem-webapp-integration-test-setup-with-seperate-test-module-%28handling-of-lifecycle-dependencies%29.-tp24139775p24174721.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: beyond Properies and Resource Filtering

2009-06-23 Thread Mick Knutson
I use Annotations to instantiate my Spring context in my tests:

@ContextConfiguration(locations = {"classpath:*applicationContext-test.xml*"
})
public class UserWebServiceTest extends AbstractSpringTest {


Then when I do not have to modify my Maven config in order to switch from
test, to production version of my context.



---
Thank You…

Mick Knutson, President

BASE Logic, Inc.
Enterprise Architecture, Design, Mentoring & Agile Consulting
p. (866) BLiNC-411: (254-6241-1)
f. (415) 685-4233

Website: http://baselogic.com
Linked IN: http://linkedin.com/in/mickknutson
Vacation Rental: http://tahoe.baselogic.com
---



On Tue, Jun 23, 2009 at 4:06 PM, David Weintraub  wrote:

> This should help:
>
>
> http://maven.apache.org/plugins/maven-resources-plugin/examples/include-exclude.html
>
> And over here:
>
>
> http://maven.apache.org/plugins/maven-resources-plugin/copy-resources-mojo.html
>
> (Note the Examples links on the left side. They can provide you with
> specific pom.xml examples).
>
> I find that the reference at http://maven.apache.org/plugins/ is the
> best way to find information. I'm not too impress with any of the
> books I've seen. Most talk about how to setup a pom.xml for a specific
> type of application, but not about exactly how everything works, or
> where you can find more information.
>
> You can define command line properties to define exactly which
> directory you want:
>
>   $ mvn -Dconfig-type=foo package
>
> 
>   
>
> src/main/resources
>   
>
>src/main/${config-type}-resources
>   
>  
> 
>
> If you use the above examples, you'll have to move those two
> directories to where you really want those the "mySpringBean.xml" file
> to be located when copied. For example, if they go into the META-INF
> directory, you'll need to have the two files in:
>
> src/main/foo-resources/META-INF/mySpringBean.xml
>
> and
>
> src/main/bar-resources/META-INF/mySpringBean.xml
>
>
>
> On Tue, Jun 23, 2009 at 3:00 PM, Robert Glover
> wrote:
> >
> > I have read chapter 13 of "Maven: The Definitive Guide" and did not find
> my question answered there.
> >
> >   Here is what I need to do.  I have two subdirectories as follows:
> >
> > src/main/resources/foo
> > src/main/resources/bar
> >
> >   I have the same file in each of those two directories:
> >
> > src/main/resources/foo/mySpringBean.xml
> > src/main/recourse/bar/mySpringBean.xml
> >
> >What I need to do is specify on the command line (or in a Profile or
> in settings.xml) which of those two directories should have it's contents
> copied to  target/classes.  The other directory should not have its contents
> copied into target/classes.
> >
> >   Thank you in advance! (hope hope).
> >
> > Robert
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> > For additional commands, e-mail: users-h...@maven.apache.org
> >
> >
>
>
>
> --
> David Weintraub
> qazw...@gmail.com
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


Re: beyond Properies and Resource Filtering

2009-06-23 Thread David Weintraub
This should help:

http://maven.apache.org/plugins/maven-resources-plugin/examples/include-exclude.html

And over here:

http://maven.apache.org/plugins/maven-resources-plugin/copy-resources-mojo.html

(Note the Examples links on the left side. They can provide you with
specific pom.xml examples).

I find that the reference at http://maven.apache.org/plugins/ is the
best way to find information. I'm not too impress with any of the
books I've seen. Most talk about how to setup a pom.xml for a specific
type of application, but not about exactly how everything works, or
where you can find more information.

You can define command line properties to define exactly which
directory you want:

   $ mvn -Dconfig-type=foo package


   

 src/main/resources
   

src/main/${config-type}-resources
   
  


If you use the above examples, you'll have to move those two
directories to where you really want those the "mySpringBean.xml" file
to be located when copied. For example, if they go into the META-INF
directory, you'll need to have the two files in:

src/main/foo-resources/META-INF/mySpringBean.xml

 and

src/main/bar-resources/META-INF/mySpringBean.xml



On Tue, Jun 23, 2009 at 3:00 PM, Robert Glover wrote:
>
> I have read chapter 13 of "Maven: The Definitive Guide" and did not find my 
> question answered there.
>
>   Here is what I need to do.  I have two subdirectories as follows:
>
> src/main/resources/foo
> src/main/resources/bar
>
>   I have the same file in each of those two directories:
>
> src/main/resources/foo/mySpringBean.xml
> src/main/recourse/bar/mySpringBean.xml
>
>    What I need to do is specify on the command line (or in a Profile or in 
> settings.xml) which of those two directories should have it's contents copied 
> to  target/classes.  The other directory should not have its contents copied 
> into target/classes.
>
>   Thank you in advance! (hope hope).
>
> Robert
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>



-- 
David Weintraub
qazw...@gmail.com

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



beyond Properies and Resource Filtering

2009-06-23 Thread Robert Glover

I have read chapter 13 of "Maven: The Definitive Guide" and did not find my 
question answered there.

   Here is what I need to do.  I have two subdirectories as follows:

src/main/resources/foo
src/main/resources/bar

   I have the same file in each of those two directories:

src/main/resources/foo/mySpringBean.xml
src/main/recourse/bar/mySpringBean.xml

What I need to do is specify on the command line (or in a Profile or in 
settings.xml) which of those two directories should have it's contents copied 
to  target/classes.  The other directory should not have its contents copied 
into target/classes.

   Thank you in advance! (hope hope).

Robert

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



Re: How does maven handle artifact's license files?

2009-06-23 Thread David Hoffer
The report does show a list of known licenses and which artifact is
associated with each.  However most just say Unknown (likely because like
you say the pom is missing the information).

However this doesn't help the end product, that is, it doesn't do what the
license says is needed...rather its just an informational report.

For instance, for the apache license, doesn't a copy of the license have to
come with the product/application?  I thought I heard, some time ago, that
maven was working on automating this just like they do for runtime
artifacts.

-Dave

On Tue, Jun 23, 2009 at 12:45 PM, Todd Thiessen  wrote:

> The dependencies report show all transitive licenses that your project
> uses. I believe this report is part of the default maven site
> generation.
>
> Of course if artifacts don't have any license information in their pom,
> no information will be shown in the report.
>
> ---
> Todd Thiessen
>
>
> > -Original Message-
> > From: David Hoffer [mailto:dhoff...@gmail.com]
> > Sent: Tuesday, June 23, 2009 2:40 PM
> > To: Maven Users List
> > Subject: How does maven handle artifact's license files?
> >
> > Does maven have support for tracking license files my
> > dependent artifacts may have and doing something with these
> > files, such as installing with my product/application?  If so, how?
> >
> > (Ideally I want to deploy license docs with each artifact
> > that needs one (ideally public artifacts should already have
> > this) then I want to include all these in a specific location
> > in my war.)
> >
> > -Dave
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


RE: How does maven handle artifact's license files?

2009-06-23 Thread Todd Thiessen
The dependencies report show all transitive licenses that your project
uses. I believe this report is part of the default maven site
generation.

Of course if artifacts don't have any license information in their pom,
no information will be shown in the report.

---
Todd Thiessen
 

> -Original Message-
> From: David Hoffer [mailto:dhoff...@gmail.com] 
> Sent: Tuesday, June 23, 2009 2:40 PM
> To: Maven Users List
> Subject: How does maven handle artifact's license files?
> 
> Does maven have support for tracking license files my 
> dependent artifacts may have and doing something with these 
> files, such as installing with my product/application?  If so, how?
> 
> (Ideally I want to deploy license docs with each artifact 
> that needs one (ideally public artifacts should already have 
> this) then I want to include all these in a specific location 
> in my war.)
> 
> -Dave
> 

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



How does maven handle artifact's license files?

2009-06-23 Thread David Hoffer
Does maven have support for tracking license files my dependent artifacts
may have and doing something with these files, such as installing with my
product/application?  If so, how?

(Ideally I want to deploy license docs with each artifact that needs one
(ideally public artifacts should already have this) then I want to include
all these in a specific location in my war.)

-Dave


[Maven User List] Maven for PHP with TYPO3 cms?

2009-06-23 Thread Yomo Guiamo
Hello list,
Has anyone tried to set up TYPO3 (4.2.x or later) with Maven 2 (2.1.0)?
Since TYPO3 is now using PHP5 which is OO, a solid OO-setup should be
possible with Maven2, a Maven repository manager (e.g. Nexus or
Artifactory), Subversion and a continuous integration tool (e.g. Hudson or
Cruise or Xinc).

First stop is to setup TYPO3 with Maven2. So far my first attempt resulted
in a rough setup. My main problem is which Maven2 modules to create. So far
I came up with the following setup. Needless to say that I don't think this
is future-proof or the best TYPO3-Maven setup.


   - A module: typo3-core. This contains all the PHP files from the
   typo3_src (same as typo3) directory.
   - A module: typo3-lib. This contains all the PHP files from the t3lib
   directory.
   - A module: typo3-webapp. This contains the index.php file from
   typo3_src/index.php
   - An assembly descriptor that creates a .zip or .tar.gz file of your
   TYPO3 site that contains the exact layout as the dummy package (which you
   probably tailored to your site needs) and the TYPO3 source packge. By
   working with an assembly you make sure that the (3rd) party that is going to
   deploy your TYPO3 site is actually getting the directory layout they need.


My question is: does anyone have a suggestion for a better setup? Keep in
mind that I started this thread to come up with a solid setup for TYPO3
(from 4.2.x towards 5.0) with Maven2 that may be of use to the community.
That means that any help is appreciated!

If Maven for PHP isn't the way to go as a build tool for PHP projects, let
me know why and what better alternative(s) there is (are) out there (besides
Ant).

Thank you.

Best regards,

Yomo Guiamo


Concurrent access to local repository by multiple processes

2009-06-23 Thread Jason Voegele
I am wondering if it is now safe to have multiple Maven 2.1.0 processes 
running concurrently using the same local repository.  I know that with 
older versions of Maven this was certainly not safe, but reading 
comments on some JIRA issues leads me to believe that this may have been 
addressed with Maven 2.1.0.  Can anyone comment with any amount of 
certainty?


--
Jason Voegele
An investment in knowledge always pays the best interest.
-- Benjamin Franklin


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



Existing 1.1.1 project and Maven Plugin don't play nice.

2009-06-23 Thread kitplummer

I have an existing 1.1.1 project which I want to 'maveninze'.  Unfortunately
I can't get past the problem outline on here:
http://grails.org/Maven+Integration (in the comments).  Has this been fixed,
or is there a known workaround that works?  Is there a JIRA already for this
that I can track...I didn't find anything.
-- 
View this message in context: 
http://www.nabble.com/Existing-1.1.1-project-and-Maven-Plugin-don%27t-play-nice.-tp24166687p24166687.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: how can I filter the resources of one of the dependencies before building an EAR?

2009-06-23 Thread Mark Bargen

Hi, I've been dealing with much the same requirement.  

I think you'll want to use the assembly plugin in order to "pack them
again," and you'll want the resulting EJB artifact to be a dependency for
the project that builds the EAR.  

Just an observation: intuitively this approach strikes me as antithetical to
some core Maven values and even basic "good practices" like factoring out
commonality, etc.  I limit its application to a very narrow use case. 
Specifically, I only use this approach for the situation where I require the
ability to deploy, into a single appserver, multiple instances of the same
application that are guaranteed to be identical except as regards their
configuration as obtained from the various deployment descriptors (e.g.,
context roots, data source bindings, etc.).  To the extent possible (and
practicable) I obviate this problem by refactoring.  

Mark



Sergio Rodriguez wrote:
> 
> Hello,
> 
> I have an EJB project that is a dependency of several of my projects. I
> need to modify the JNDI name at the EJB's jboss.xml so I can deploy
> several apps on the same jboss server.
> 
> How can I filter the resources of an already-compiled dependency? I have
> tried to unpack-dependencies and filter them, but don't know how to pack
> them again into a new EJB for my EAR.
> 
> Any suggestions?
> 

-- 
View this message in context: 
http://www.nabble.com/how-can-I-filter-the-resources-of-one-of-the-dependencies-before-building-an-EAR--tp24160990p24166045.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



RE: Sharing checkstyle configuration across multiple maven projects

2009-06-23 Thread Mohan KR
Just curious apart from the bug, what is the reasoning behind 'protecting' a
cs
configuration ? Just trying to understand the 'abuse' part.


Thanks,
mohan kr


-Original Message-
From: Stevo Slavić [mailto:ssla...@gmail.com] 
Sent: Tuesday, June 23, 2009 1:24 AM
To: Maven Users List
Subject: Re: Sharing checkstyle configuration across multiple maven projects

It's even "nicer" if you need to control the access to such resource and
bugs come by (http://jira.codehaus.org/browse/MCHECKSTYLE-109,
http://jira.codehaus.org/browse/PLXCOMP-128)

To share such common resources and configuration (checkstyle, license, ..)
with other maven projects I needed a maven project with all the maven
goodies, that everyone in an intranet only could use but not abuse. To get
eclipse-cs to use same configuration, project is under svn and release
plugin tags releases nicely, and eclipse-cs configuration is a viewvc
enabled path which is long and nasty but named and eclipse-cs supports
authentication for remote configuration.

Regards,
Stevo.

2009/6/23 Stephen Connolly 

> it's even better if your source control is subversion fronted by apache...
>
> 2009/6/23 Mohan KR :
> > I have always used the remote location for checkstyle, especially for
> > sharing cs configuration for
> > *disconnected* projects. And then nice thing is if using eclipse, with
> > eclipse-cs I check in the
> > .checkstyle and we have everything synced up nicely.
> >
> > Of course, you need to *host* the checkstyle file for this, apache httpd
> > works really nice.
> >
> > Thanks,
> > mohan kr
> >
> > -Original Message-
> > From: Stevo Slavić [mailto:ssla...@gmail.com]
> > Sent: Monday, June 22, 2009 3:13 PM
> > To: Maven Users List
> > Subject: Re: Sharing checkstyle configuration across multiple maven
> projects
> >
> > There was a difference between my attached example and one
> > here<
> http://maven.apache.org/plugins/maven-checkstyle-plugin/examples/multi-
> > module-config.html>,
> > instead of defining maven-checkstyle-plugin in build/plugins section
I've
> > defined it in build/pluginManagement/plugins section. Second mistake was
> > that shared-resources (build-tools) inherited parent that's aggregating
> it
> > causing cyclic dependency.
> >
> > Regards,
> > Stevo.
> >
> > On Mon, Jun 22, 2009 at 5:58 PM, Todd Thiessen 
> wrote:
> >
> >> What you could do is point to an actual version of your checkstyle
> >> config. ie:
> >>
> >>
> >>  org.apache.maven.plugins
> >>  maven-checkstyle-plugin
> >>  
> >>
> >>  ...
> >>  ...
> >>  ...
> >>
> >>  
> >>
> >>
> >> Instead of the using the  parameter. This way any of
> >> your modules can point to the artifact without having to know its
folder
> >> location.
> >>
> >> ---
> >> Todd Thiessen
> >>
> >>
> >> > -Original Message-
> >> > From: Stevo Slavic [mailto:ssla...@gmail.com]
> >> > Sent: Monday, June 22, 2009 11:50 AM
> >> > To: users@maven.apache.org
> >> > Subject: Sharing checkstyle configuration across multiple
> >> > maven projects
> >> >
> >> > Hello Maven users,
> >> >
> >> > I'm trying to configure a maven project to serve as parent
> >> > project for multiple other maven projects. One of the things
> >> > parent was supposed to do is share checkstyle configuration.
> >> > To accomplish this I've tried by following example given here
> >> >  >> > les/multi-module-config.html> . Attached are two project,
> >> > pappa in role of a "capo di tutti capi" parent pom, and
> >> > aproject as a simple project being pappa's child.
> >> > Unfortunately, this doesn't work as expected, checkstyle
> >> > configuration doesn't get found when trying to generate site
> >> > for aproject. Little bit of debugging revealed that maven
> >> > complains at a config location URL (see [1]).
> >> >
> >> > Are there any workarounds to this?
> >> >
> >> > I'm thinking of spring framework's pseudo URL prefix
> >> > "classpath:", is something like that available in maven 2?
> >> >
> >> >
> >> > Regards,
> >> > Stevo.
> >> >
> >> >
> >> > [1] aproject's maven build output snippet
> >> >
> >> > [INFO] Generating "Checkstyle" report.
> >> > [DEBUG] URLResourceLoader: Exception when looking for
> >> > 'checkstyle/checks.xml' at ''
> >> > java.net.MalformedURLException: no protocol:
> >> > checkstyle/checks.xml at java.net.URL.(URL.java:567) at
> >> > java.net.URL.(URL.java:464) at
> >> > java.net.URL.(URL.java:413) at
> >> > org.codehaus.plexus.resource.loader.URLResourceLoader.getResou
> >> > rceAsInputStream(URLResourceLoader.java:45)
> >> > at
> >> > org.codehaus.plexus.resource.DefaultResourceManager.getResourc
> >> > eAsInputStream(DefaultResourceManager.java:77)
> >> > at
> >> > org.codehaus.plexus.resource.DefaultResourceManager.getResourc
> >> > eAsFile(DefaultResourceManager.java:117)
> >> > at
> >> > org.apache.maven.plugin.

Re: error in POM

2009-06-23 Thread JC
I think you should use the maven central repository.
Verify your settings.xml file in "/root/.m2/" and check the repositories
configuration.
If you don't have any repository configured, by default, the maven central
repository will be used.
Refer to http://maven.apache.org/settings.html for settings.xml
configuration.
The maven central repository URL is http://repo1.maven.org/maven2/

Good luck (and sorry for my poor english ;) )

Joao Carlos

On Mon, Jun 22, 2009 at 11:20 PM, Nelson Serafica wrote:

> It seems there's no maven plugins. I tried to visit
> http://download.java.net/maven/2/org/apache/ but there is no maven. All I
> can see is ant, axis, jasper, lucene, servicemix. Could it be removed?
>
> If ever I found new repo, how can I update it?
>
> TIA
>
>
> Wayne Fay wrote:
>
>> You or someone else has defined a repo in settings.xml file that is
>> pointing to maven2-repository.dev.java.net.
>>
>>  Moved Permanently
>>> The document has moved >> href="
>>> http://download.java.net/maven/2/org/apache/maven/plugins/maven-site-plugin/2.0-beta-7/maven-site-plugin-2.0-beta-7.pom
>>> ">here.
>>> 
>>> Apache Server at maven2-repository.dev.java.net Port
>>> 443
>>> 
>>>
>>
>> Apparently that is not longer a valid repo location. Adjust it to look
>> at download.java.net instead.
>>
>> The INDIVO Users list (or whatever) should also be able to help with
>> these kinds of problems, I would assume, and might be a better
>> resource for you as the people on this list are not INDIVO experts.
>>
>> Wayne
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>> For additional commands, e-mail: users-h...@maven.apache.org
>>
>>
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


apache.commons.vfs

2009-06-23 Thread Lutchumaya

Hello everyone

Is it possible to upload files to webserver by HTTPS protocol using VFS.

Thank you

Regards
Lutchumaya

-- 
View this message in context: 
http://www.nabble.com/apache.commons.vfs-tp24165036p24165036.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: Snippets of APT files

2009-06-23 Thread nsowatsk
Not using Appfuse, not sure I see the connection.

Regards

Nathan


On 23/06/2009 13:47, "Martin Gainty"  wrote:

> 
> are you using Appfuse?
> http://static.appfuse.org/plugins/appfuse-maven-plugin/plugin-info.html
> 
> if so which Appfuse goal are you executing?
> 
> please display contents of pom.xml
> 
> Martin Gainty 
> __
> Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
>  
> Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger
> sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung
> oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich
> dem Austausch von Informationen und entfaltet keine rechtliche
> Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen
> wir keine Haftung fuer den Inhalt uebernehmen.
> Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le
> destinataire prévu, nous te demandons avec bonté que pour satisfaire informez
> l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est
> interdite. Ce message sert à l'information seulement et n'aura pas n'importe
> quel effet légalement obligatoire. Étant donné que les email peuvent
> facilement être sujets à la manipulation, nous ne pouvons accepter aucune
> responsabilité pour le contenu fourni.
> 
> 
> 
> 
>> Date: Tue, 23 Jun 2009 13:39:58 +0200
>> Subject: Re: Snippets of APT files
>> From: nsowa...@cisco.com
>> To: users@maven.apache.org
>> 
>> Yes, #include already exists as a Velocity macro, but I could never get that
>> to work with APT files. This would be like that, but with snippet
>> identifiers, so the word "include" would have the same semantics, which is
>> good.
>> 
>> Thanks
>> 
>> Nathan
>> 
>> On 23/06/2009 13:34, "Barrie Treloar"  wrote:
>> 
>>> On Tue, Jun 23, 2009 at 8:36 PM, nsowatsk wrote:
 Hi all
 
 I tried. The verbatim flag doesn't appear to make any difference at all,
 but
 it has at least given me something to think about.
>>> 
>>> Maybe you can extend the snippet macro with another flag "include" or
>>> something.
>>> 
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>>> For additional commands, e-mail: users-h...@maven.apache.org
>>> 
>> 
>> 
>> -
>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>> For additional commands, e-mail: users-h...@maven.apache.org
>> 
> 
> _
> Lauren found her dream laptop. Find the PC that¹s right for you.
> http://www.microsoft.com/windows/choosepc/?ocid=ftp_val_wl_290


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



RE: Snippets of APT files

2009-06-23 Thread Martin Gainty

are you using Appfuse?
http://static.appfuse.org/plugins/appfuse-maven-plugin/plugin-info.html

if so which Appfuse goal are you executing?

please display contents of pom.xml

Martin Gainty 
__ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.




> Date: Tue, 23 Jun 2009 13:39:58 +0200
> Subject: Re: Snippets of APT files
> From: nsowa...@cisco.com
> To: users@maven.apache.org
> 
> Yes, #include already exists as a Velocity macro, but I could never get that
> to work with APT files. This would be like that, but with snippet
> identifiers, so the word "include" would have the same semantics, which is
> good.
> 
> Thanks
> 
> Nathan
> 
> On 23/06/2009 13:34, "Barrie Treloar"  wrote:
> 
> > On Tue, Jun 23, 2009 at 8:36 PM, nsowatsk wrote:
> >> Hi all
> >> 
> >> I tried. The verbatim flag doesn't appear to make any difference at all, 
> >> but
> >> it has at least given me something to think about.
> > 
> > Maybe you can extend the snippet macro with another flag "include" or
> > something.
> > 
> > -
> > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> > For additional commands, e-mail: users-h...@maven.apache.org
> > 
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
> 

_
Lauren found her dream laptop. Find the PC that’s right for you.
http://www.microsoft.com/windows/choosepc/?ocid=ftp_val_wl_290

Re: Snippets of APT files

2009-06-23 Thread nsowatsk
Yes, #include already exists as a Velocity macro, but I could never get that
to work with APT files. This would be like that, but with snippet
identifiers, so the word "include" would have the same semantics, which is
good.

Thanks

Nathan

On 23/06/2009 13:34, "Barrie Treloar"  wrote:

> On Tue, Jun 23, 2009 at 8:36 PM, nsowatsk wrote:
>> Hi all
>> 
>> I tried. The verbatim flag doesn't appear to make any difference at all, but
>> it has at least given me something to think about.
> 
> Maybe you can extend the snippet macro with another flag "include" or
> something.
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
> 


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



Re: Snippets of APT files

2009-06-23 Thread Barrie Treloar
On Tue, Jun 23, 2009 at 8:36 PM, nsowatsk wrote:
> Hi all
>
> I tried. The verbatim flag doesn't appear to make any difference at all, but
> it has at least given me something to think about.

Maybe you can extend the snippet macro with another flag "include" or something.

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



Re: Snippets of APT files

2009-06-23 Thread nsowatsk
Hi all

I tried. The verbatim flag doesn't appear to make any difference at all, but
it has at least given me something to think about.

Many thanks

Nathan


On 23/06/2009 11:57, "Lukas Theussl"  wrote:

> 
> I don't think this will do what he wants either. It only means that special
> apt 
> characters won't be escaped so the text is sent as-is, but it won't be parsed
> again.
> 
> -Lukas
> 
> 
> Barrie Treloar wrote:
>> On Tue, Jun 23, 2009 at 3:24 PM, nsowatsk wrote:
>>> Hi Barrie
>>> 
>>> Thanks for this. That does work, but, as you say, it ends up in a box as
>>> literal text.
>>> 
>>> I can probably write a "APT snippet" macro. If I do, who would be able to
>>> commit it?
>> 
>> Did you try verbatim=false?
>> As the default is true.
>> 
>> http://maven.apache.org/doxia/macros/index.html#Snippet_Macro
>> Parameter Description
>> id The id of the snippet to include. If omitted the whole file/url
>> will be included (since Doxia 1.1).
>> url The path of the URL to include.
>> file The path of the file to include (since doxia-1.0-alpha-9).
>> verbatim If the content should be output as verbatim escaped text. If
>> this is set to false then the content of the snippet will not be
>> escaped. This means that you can use it like Server-Side Includes on a
>> webserver. Default value is true.
>> 
>> -
>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>> For additional commands, e-mail: users-h...@maven.apache.org
>> 
>> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
> 


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



Re: Mantis integration? mantis-report..?

2009-06-23 Thread turbo-555

this is the jira issue..posted almost 2 years ago...

http://jira.codehaus.org/browse/MCHANGES-84?page=com.atlassian.jira.plugin.system.issuetabpanels%3Aworklog-tabpanel
JIRA ISSUE MCHANGES 84 


nothing new on this front?



thanks pawel, I'll eventually try your way too...I have to see if it can
match my needs.


rgds
Turbo-555


Paweł Paprota wrote:
> 
> Witam!
> 
> On Mon, 22 Jun 2009 06:24:23 -0700 (PDT)
> turbo-555  wrote:
> 
>> 
>> Hi all,
>> 
>> in the company where I work we use Mantis as bugtracking tool...now I
>> would like to know if it's possible to generate changes reports as
>> it's done with jira...
>> 
>> 
>> is there a mantis-report like for jira?or do the changes reports need
>> to be hand written?
>> 
>> 
>> has anyone experience in using maven + mantis?
>> 
>> 
> 
> It's not exactly Maven-Mantis integration but we use Mantis plugin for
> Hudson to get some information automatically posted in Mantis during
> the build process.
> 
> -- 
> Paweł
> 
>  
> 

-- 
View this message in context: 
http://www.nabble.com/Mantis-integration--mantis-report..--tp24147185p24163212.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



references to other repositories in poms in central repo

2009-06-23 Thread Reto Bachmann-Gmür
Hi

I'm having problem with a build downloading an invalid jar for
commons-logging, actually the content of the jar is a redirection page.

It turns out, that the jar is being downloaded from a repository at dev
java.net defined in the pom of castor [1].

Two questions:

1. Artifacts in the central repository should have all dependencies in
the central repo, shouldn't external repositories be removed from them

2.
https://maven2-repository.dev.java.net/nonav/repository/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar
redirects to a non-existing resource on http://download.java.net, why
does maven store the redirection page as jar in the local repo
(~/.m2/repository/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar)?

Cheers,
reto

1.
http://repo1.maven.org/maven2/org/codehaus/castor/castor/1.3/castor-1.3.pom

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



Re: Snippets of APT files

2009-06-23 Thread Lukas Theussl


I don't think this will do what he wants either. It only means that special apt 
characters won't be escaped so the text is sent as-is, but it won't be parsed again.


-Lukas


Barrie Treloar wrote:

On Tue, Jun 23, 2009 at 3:24 PM, nsowatsk wrote:

Hi Barrie

Thanks for this. That does work, but, as you say, it ends up in a box as
literal text.

I can probably write a "APT snippet" macro. If I do, who would be able to
commit it?


Did you try verbatim=false?
As the default is true.

http://maven.apache.org/doxia/macros/index.html#Snippet_Macro
Parameter   Description
id  The id of the snippet to include. If omitted the whole file/url
will be included (since Doxia 1.1).
url The path of the URL to include.
fileThe path of the file to include (since doxia-1.0-alpha-9).
verbatimIf the content should be output as verbatim escaped text. If
this is set to false then the content of the snippet will not be
escaped. This means that you can use it like Server-Side Includes on a
webserver. Default value is true.

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




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



Re: Snippets of APT files

2009-06-23 Thread Barrie Treloar
On Tue, Jun 23, 2009 at 3:24 PM, nsowatsk wrote:
> Hi Barrie
>
> Thanks for this. That does work, but, as you say, it ends up in a box as
> literal text.
>
> I can probably write a "APT snippet" macro. If I do, who would be able to
> commit it?

Did you try verbatim=false?
As the default is true.

http://maven.apache.org/doxia/macros/index.html#Snippet_Macro
Parameter   Description
id  The id of the snippet to include. If omitted the whole file/url
will be included (since Doxia 1.1).
url The path of the URL to include.
fileThe path of the file to include (since doxia-1.0-alpha-9).
verbatimIf the content should be output as verbatim escaped text. If
this is set to false then the content of the snippet will not be
escaped. This means that you can use it like Server-Side Includes on a
webserver. Default value is true.

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



jar-with-dependencies fais with "error in opening zip file"

2009-06-23 Thread Alexy Khrabrov
I deployed the same pom.xml which works fine on Mac OSX to CentOS, and
doing mvn package there croaks:

Failed to create assembly: Error creating assembly archive
jar-with-dependencies: error in opening zip file

I'm using the standard jar-with-dependencies descriptorRef, attached
to the package phase with a main class per Maven book.  What can be
different on Linux to cause this?  Tried different versions of maven
-- 2.0.10 and 2.1.0m and of the maven-assembly-plugin --
2.2-beta-{2,4} -- with the same results.

Cheers,
Alexy

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



how can I filter the resources of one of the dependencies before building an EAR?

2009-06-23 Thread Sergio Rodriguez

Hello,

I have an EJB project that is a dependency of several of my projects. I need
to modify the JNDI name at the EJB's jboss.xml so I can deploy several apps
on the same jboss server.

How can I filter the resources of an already-compiled dependency? I have
tried to unpack-dependencies and filter them, but don't know how to pack
them again into a new EJB for my EAR.

Any suggestions?
-- 
View this message in context: 
http://www.nabble.com/how-can-I-filter-the-resources-of-one-of-the-dependencies-before-building-an-EAR--tp24160990p24160990.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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