Re: Retrieving "attached" files.

2011-04-21 Thread Stephen Connolly
in a dependencies section in a pom, type defaults to jar and classifier
defaults to "" (ie none)

you would need to add deps for each of the secondary artifacts.

you could probably handle it with the xslt task

- Stephen

---
Sent from my Android phone, so random spelling mistakes, random nonsense
words and other nonsense are a direct result of using swype to type on the
screen
On 22 Apr 2011 00:03, "Dave Wolf"  wrote:
> Hi,
>
> I've attached a couple of property files to my installed jar artifact,
using the artifact:install task (we're using maven-ant-tasks v2.1.2):
>
> 
>
> 
>
> 
>
> 
>
> 
>
>
> The files end up as expected in the local repository. So far, so good.
>
> The problem comes when I attempt to pull them into a dependent component.
I have a target that uses the following tasks:
>
> Copying securityservices jar dependencies
> 
> 
> 
> Copying securityservices jar dependencies
> 
> 
> 
> 
>
> Copying securityservices properties dependencies
> 
> 
> 
> 
> 
> 
>
> The "jar.dependency.fileset" works as expected. The
"properties.dependency.fileset" doesn't -- here is the output from the
build:
>
> [echo] Copying securityservices jar dependencies
> [artifact:dependencies] Maven Ant Tasks version: 2.1.2
> [artifact:dependencies] Loading Maven settings file:
/home/dwolf/.m2/settings.xml
> [artifact:dependencies] Loading Maven settings file:
/home/dwolf/devtools/maven/apache-maven-3.0.1/conf/settings.xml
> [artifact:dependencies] Using local repository: /home/dwolf/.m2/repository
> [pom] Loading Maven settings file: /home/dwolf/.m2/settings.xml
> [pom] Loading Maven settings file:
/home/dwolf/devtools/maven/apache-maven-3.0.1/conf/settings.xml
> [artifact:dependencies] Resolving dependencies...
> [artifact:dependencies] Using remote repositories:
> - id=nexus, url=
http://dgwsnxslgmt01.digitalglobe.com:8082/nexus/content/groups/development,
releases=enabled, snapshots=enabled
> com.digitalglobe:FM-PPE-GUI:jar:4.13-SNAPSHOT (selected)
> com.digitalglobe:securityservices:jar:4.13-SNAPSHOT:compile (selected)
> org.owasp.esapi:esapi:jar:2.0_rc10:compile (selected)
> org.beanshell:bsh-core:jar:2.0b4:compile (selected)
> log4j:log4j:jar:1.2.16:compile (selected)
> Setting project property: com.digitalglobe:securityservices:jar ->
/home/dwolf/.m2/repository/com/digitalglobe/securityservices/4.13-SNAPSHOT/securityservices
> -4.13-SNAPSHOT.jar
> Adding reference: com.digitalglobe:securityservices:jar
> Setting project property: org.owasp.esapi:esapi:jar ->
/home/dwolf/.m2/repository/org/owasp/esapi/esapi/2.0_rc10/esapi-2.0_rc10.jar
> Adding reference: org.owasp.esapi:esapi:jar
> Setting project property: org.beanshell:bsh-core:jar ->
/home/dwolf/.m2/repository/org/beanshell/bsh-core/2.0b4/bsh-core-2.0b4.jar
> Adding reference: org.beanshell:bsh-core:jar
> Setting project property: log4j:log4j:jar ->
/home/dwolf/.m2/repository/log4j/log4j/1.2.16/log4j-1.2.16.jar
> Adding reference: log4j:log4j:jar
> Adding reference: jar.dependency.fileset
> [echo] Copying securityservices jar dependencies
> fileset: Setup scanner in dir /home/dwolf/.m2/repository with patternSet{
includes:
[com/digitalglobe/securityservices/4.13-SNAPSHOT/securityservices-4.13-201
> 10421.185640-5.jar, org/owasp/esapi/esapi/2.0_rc10/esapi-2.0_rc10.jar,
org/beanshell/bsh-core/2.0b4/bsh-core-2.0b4.jar,
log4j/log4j/1.2.16/log4j-1.2.16.jar] e
> xcludes: [] }
> [copy]
com/digitalglobe/securityservices/4.13-SNAPSHOT/securityservices-4.13-20110421.185640-5.jar
added as securityservices-4.13-20110421.185640-5.jar d
> oesn't exist.
> [copy] log4j/log4j/1.2.16/log4j-1.2.16.jar added as log4j-1.2.16.jar
doesn't exist.
> [copy] org/beanshell/bsh-core/2.0b4/bsh-core-2.0b4.jar added as
bsh-core-2.0b4.jar doesn't exist.
> [copy] org/owasp/esapi/esapi/2.0_rc10/esapi-2.0_rc10.jar added as
esapi-2.0_rc10.jar doesn't exist.
> [copy] No sources found.
> [copy] Copying 4 files to
/home/dwolf/projects/FM-PPE-GUI/lib/securityservices
> [copy] Copying
/home/dwolf/.m2/repository/org/beanshell/bsh-core/2.0b4/bsh-core-2.0b4.jar
to /home/dwolf/projects/FM-PPE-GUI/lib/securityservices/bsh-cor
> e-2.0b4.jar
> [copy] Copying
/home/dwolf/.m2/repository/log4j/log4j/1.2.16/log4j-1.2.16.jar to
/home/dwolf/projects/FM-PPE-GUI/lib/securityservices/log4j-1.2.16.jar
> [copy] Copying
/home/dwolf/.m2/repository/com/digitalglobe/securityservices/4.13-SNAPSHOT/securityservices-4.13-20110421.185640-5.jar
to /home/dwolf/proj
>
ects/FM-PPE-GUI/lib/securityservices/securityservices-4.13-20110421.185640-5.jar
> [copy] Copying
/home/dwolf/.m2/repository/org/owasp/esapi/esapi/2.0_rc10/esapi-2.0_rc10.jar
to /home/dwolf/projects/FM-PPE-GUI/lib/securityservices/esapi
> -2.0_rc10.jar
> [echo] Copying securityservices properties dependencies
> [artifact:dependencies] Maven Ant Tasks version: 2.1.2
> [artifact:dependencies] Loading Maven settings file:
/home/dwolf/.m2/settings.xml
> [artifact:dependencies] Loading Maven settings file:
/home/dwolf/devtools/maven/apache-maven-3.0.1/conf/settings.xml
> [

Re: Can you make an http server, the local repository ?

2011-04-21 Thread Justin Edelson


On Apr 21, 2011, at 3:20 PM, Sony Antony  wrote:

> Assuming this is an internal web server with write permission ( PUT
> allowed ), is it possible to point to a web server for the local
> repository ?

No.

> 2. Is there any scenario at all wherein something gets written to the
> remote repository ( if you use the file:// type URL for remote
> repository, which I found would work )

Yes. When you do a deploy.
> --sony
> 
> -
> 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: Advantages of using a Repository Manager

2011-04-21 Thread Sony Antony
David :
Great writeup. Many thanks.

"Is that one copy per project built? Or do all builds on Hudson use that
private repo"
there is only one private repo for hudson, which was created only once in
teh beginning of hudson setup, by copying from teh "master repository"
( We have multiple independent hudson installations building independent
projects and different releases of teh same project. Each of these hudson
installations get their own private repository when they are setup in the
beginning - copied from teh master repository )


1. The biggest take away from your list was teh ability to easily search for
classes from the nexus interface. Agree this is something that would be very
handy for us.

2. I did not quite understand your staging suite. What is in the staging
repository ? Your project artifacts ? Will it include third party
dependencies ? What about maven plugins ?

3. As for how developers building it. We also have what we call "taiga
builds". These are complete builds outside maven. These are kicked off many
times during teh day ( any developer can kick off these ). This was also
setup by copying and creating a private repository in the beginning ( only
once ).  Whenever we do a taiga build, latest project artifacts get added to
this private repository. Now, we have put an Apache web server around this
private repository. All developers point to this webserver using a
setting.xml which defines this web server as the only remote repository.
( I acknowledge that this arrangement has teh problem that developers might
get different artifacts from different builds - if the latest build failed
after building some of teh artifacts successfully )

4. Responding to wheeler : We use install plugin to manually install some of
teh third party plugins and dependency artifacts to teh master repository,
that are not released through maven central.

Thanks again for writing it up

--sony



On Thu, Apr 21, 2011 at 10:48 AM, David Bruley <
dave.bru...@corelinksolutions.com> wrote:

> Want to make sure I understand your current setup correctly.
>
> You have a local repository on a file system somewhere that contains all
> the artifacts approved for use in your builds.  Then you create a copy of
> that repository and point Hudson to that private copy.  Is that one copy per
> project built?  Or do all builds on Hudson use that private repo?
>
> Anyway, we used an older version of a particular repo manager a few years
> back but switched over to the Professional version of Nexus last fall.  We
> too need to lock down what versions of artifacts developers use and Nexus
> has worked well for that.
>
> Not knowing your environment or process, I'm not sure if these would
> benefit you, but thought I would share the benefits we've seen:
>
> - Nexus Staging Suite
>
>   - This was probably the main reason we went with Nexus Pro.  When we do a
> release build, we can intercept the artifact(s) and segregate them in a
> staging repository.  If they do not pass testing or QA, we can "drop" the
> whole repo and those artifacts are gone.  If everything passes, we can
> "release" the contents of the staging repo to our "production approved"
> repository.  Helps ensure an artifact is not made available for general use
> until it's passed everything and has been formally released.  It's worked
> well with our particular release process.
>
> - Nexus Procurement Suite
>
>   - This has been a handy feature on those occasions when we do need to
> update our external artifacts, such as a new version of a plugin.  Helps
> control how new external artifacts are introduced inside the company.
>
> - Search capabilities
>
>   - The UI provides a nice capability for searching for an artifact.  Has
> some cool features where we can drill into the contents of a particular
> version of a jar or easily get the XML of the GAV for an artifact so we can
> paste it into our POM.  Can search on part of a GAV or even a class name to
> find artifacts containing a particular class.
>
> - Repository Grouping
>
>  - We can create group repositories in Nexus that are configured to use
> several individual repositories.  We can then use different profiles with
> Maven to point to different groups.  So our CI builds in development can
> point to one group and our release builds can point to a different group.
>
> - Consistent repos used by both developers and the CI servers
>
>  - Not sure how your developers build.  Do they point at the same local
> repo as Hudson or are they looking external when they build local?  We have
> each developer's Maven settings file configured to point to Nexus as well so
> there are no surprises when the code builds on Hudson as far as missing
> dependency versions, etc.
>
> Again, situation might differ for you and this is not intended to be a
> sales pitch for Nexus - I'm sure other Repository Managers have similar
> functionality as well - just sharing our experiences.
>
> Hope it helps.
>
> Dave Bruley
> Lead Technical A

Re: How to stop maven to check the dependency's pom.xml

2011-04-21 Thread Ron Wheeler

On 21/04/2011 7:48 PM, Zhao Binbin wrote:

There're project A and many other projects A1, A2 ... A10. A is the parent
of all other A[n] projects.. I used a property  in all the
pom files so when I need to change the version number, I only need to change
it in A's pom.xml. Actually it works well.

Why is this a good idea?
It seems to imply that all modules have changes in them at once and need 
new version numbers without actually thinking about what this means.
We have 70+ modules and it is still worth taking an hour or so to go 
through the projects as a team to understand what modules will change to 
upgrade the version. Not every new release requires a new version of 
every module.
I would be concerned that an unthinking change to versions without 
actually thinking about the impact of the new functionality is an 
invitation to sloppy thinking and reduced ability to scope the update.
We stopped renumbering releases of modules that did not need to be 
changed or recompiled.


Obviously major version changes do require a change in all modules but 
is only takes a few seconds to update the pom in each project.
This is not significant in the overall effort and at least one knows 
that a new version of a project has received some human attention.
It may also be tied to SVN changes that need to be done to branch and 
tag the module if required.

Ron


pom.xml of A

A
${project.version}
pom

   A1
   A2
   A3


   2.0


pom.xml of A1:


   A1
   ../pom.xml
   ${project.version}



I have another project B, which depends on A1.
   
  A1
  2.0
   

To build B:
1) in directory of A, run mvn clean install, it succeeds, and all jars are
installed to local repository.
2) in directory of B, run mvn clean package. it fails with messages:


[INFO]

[INFO] Building B
[INFO]

Downloading:
http://repo1.maven.org/maven2/com/.../.../.../${project.version}/A-${project.version}.pom
[INFO]



Actually jar file of A1 is already ready at local repository at xxx/2.0/
Why maven just pickup the jar file and compile? It seems trying to parse the
A1's pom.xml and doesn't understand project.version.

Anyone got any ideas?
I'm stuck at this for weeks. For some reasons I cannot change the pom files
of A, A1. How to write B's project to build successfully?




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



Re: Variables interpolated on the command-line

2011-04-21 Thread Sony Antony
I think %myvar2% will result in windows shell doing teh substitution
I dont think maven will use system variables set using -D as pom variables (
maybe I m wrong )
--sony
On Thu, Apr 21, 2011 at 7:24 PM, Phillip Hellewell  wrote:

> This is on Windows from a command prompt, not Linux.
>
> Phillip
>
> On Thu, Apr 21, 2011 at 12:21 PM, Jörg Schaible 
> wrote:
> > Phillip Hellewell wrote:
> >
> >> Oh, I just thought of something shorter that will work:
> >>
> >> -Dmyvar1=c:\test\${myvar2}\.
> >>
> >> Still seems kinda crazy though.  Anyone want to shed some light on why
> >> it works this way?  This is with Maven 3.0.1.
> >
> > Maybe you should have a look into the bash manual instead ?
> >
> > - Jörg
> >
> >
> > -
> > 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
>
>


How to stop maven to check the dependency's pom.xml

2011-04-21 Thread Zhao Binbin
There're project A and many other projects A1, A2 ... A10. A is the parent
of all other A[n] projects.. I used a property  in all the
pom files so when I need to change the version number, I only need to change
it in A's pom.xml. Actually it works well.

pom.xml of A

   A
   ${project.version}
   pom
   
  A1
  A2
  A3
   
   
  2.0
   

pom.xml of A1:

   
  A1
  ../pom.xml
  ${project.version}
   


I have another project B, which depends on A1.
  
 A1
 2.0
  

To build B:
1) in directory of A, run mvn clean install, it succeeds, and all jars are
installed to local repository.
2) in directory of B, run mvn clean package. it fails with messages:


[INFO]

[INFO] Building B
[INFO]

Downloading:
http://repo1.maven.org/maven2/com/.../.../.../${project.version}/A-${project.version}.pom
[INFO]



Actually jar file of A1 is already ready at local repository at xxx/2.0/
Why maven just pickup the jar file and compile? It seems trying to parse the
A1's pom.xml and doesn't understand project.version.

Anyone got any ideas?
I'm stuck at this for weeks. For some reasons I cannot change the pom files
of A, A1. How to write B's project to build successfully?


Re: Variables interpolated on the command-line

2011-04-21 Thread Phillip Hellewell
This is on Windows from a command prompt, not Linux.

Phillip

On Thu, Apr 21, 2011 at 12:21 PM, Jörg Schaible  wrote:
> Phillip Hellewell wrote:
>
>> Oh, I just thought of something shorter that will work:
>>
>> -Dmyvar1=c:\test\${myvar2}\.
>>
>> Still seems kinda crazy though.  Anyone want to shed some light on why
>> it works this way?  This is with Maven 3.0.1.
>
> Maybe you should have a look into the bash manual instead ?
>
> - Jörg
>
>
> -
> 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



Retrieving "attached" files.

2011-04-21 Thread Dave Wolf
Hi,

I've attached a couple of property files to my installed jar artifact, using 
the artifact:install task (we're using maven-ant-tasks v2.1.2):












The files end up as expected in the local repository. So far, so good.

The problem comes when I attempt to pull them into a dependent component. I 
have a target that uses the following tasks:

Copying securityservices jar dependencies



Copying securityservices jar dependencies

  
  


Copying securityservices properties dependencies

   


  


The "jar.dependency.fileset" works as expected. The 
"properties.dependency.fileset" doesn't -- here is the output from the build:

 [echo] Copying securityservices jar dependencies
[artifact:dependencies] Maven Ant Tasks version: 2.1.2
[artifact:dependencies] Loading Maven settings file: 
/home/dwolf/.m2/settings.xml
[artifact:dependencies] Loading Maven settings file: 
/home/dwolf/devtools/maven/apache-maven-3.0.1/conf/settings.xml
[artifact:dependencies] Using local repository: /home/dwolf/.m2/repository
  [pom] Loading Maven settings file: /home/dwolf/.m2/settings.xml
  [pom] Loading Maven settings file: 
/home/dwolf/devtools/maven/apache-maven-3.0.1/conf/settings.xml
[artifact:dependencies] Resolving dependencies...
[artifact:dependencies] Using remote repositories:
  - id=nexus, 
url=http://dgwsnxslgmt01.digitalglobe.com:8082/nexus/content/groups/development,
 releases=enabled, snapshots=enabled
  com.digitalglobe:FM-PPE-GUI:jar:4.13-SNAPSHOT (selected)
com.digitalglobe:securityservices:jar:4.13-SNAPSHOT:compile (selected)
  org.owasp.esapi:esapi:jar:2.0_rc10:compile (selected)
org.beanshell:bsh-core:jar:2.0b4:compile (selected)
  log4j:log4j:jar:1.2.16:compile (selected)
Setting project property: com.digitalglobe:securityservices:jar -> 
/home/dwolf/.m2/repository/com/digitalglobe/securityservices/4.13-SNAPSHOT/securityservices
-4.13-SNAPSHOT.jar
Adding reference: com.digitalglobe:securityservices:jar
Setting project property: org.owasp.esapi:esapi:jar -> 
/home/dwolf/.m2/repository/org/owasp/esapi/esapi/2.0_rc10/esapi-2.0_rc10.jar
Adding reference: org.owasp.esapi:esapi:jar
Setting project property: org.beanshell:bsh-core:jar -> 
/home/dwolf/.m2/repository/org/beanshell/bsh-core/2.0b4/bsh-core-2.0b4.jar
Adding reference: org.beanshell:bsh-core:jar
Setting project property: log4j:log4j:jar -> 
/home/dwolf/.m2/repository/log4j/log4j/1.2.16/log4j-1.2.16.jar
Adding reference: log4j:log4j:jar
Adding reference: jar.dependency.fileset
 [echo] Copying securityservices jar dependencies
fileset: Setup scanner in dir /home/dwolf/.m2/repository with patternSet{ 
includes: 
[com/digitalglobe/securityservices/4.13-SNAPSHOT/securityservices-4.13-201
10421.185640-5.jar, org/owasp/esapi/esapi/2.0_rc10/esapi-2.0_rc10.jar, 
org/beanshell/bsh-core/2.0b4/bsh-core-2.0b4.jar, 
log4j/log4j/1.2.16/log4j-1.2.16.jar] e
xcludes: [] }
 [copy] 
com/digitalglobe/securityservices/4.13-SNAPSHOT/securityservices-4.13-20110421.185640-5.jar
 added as securityservices-4.13-20110421.185640-5.jar d
oesn't exist.
 [copy] log4j/log4j/1.2.16/log4j-1.2.16.jar added as log4j-1.2.16.jar 
doesn't exist.
 [copy] org/beanshell/bsh-core/2.0b4/bsh-core-2.0b4.jar added as 
bsh-core-2.0b4.jar doesn't exist.
 [copy] org/owasp/esapi/esapi/2.0_rc10/esapi-2.0_rc10.jar added as 
esapi-2.0_rc10.jar doesn't exist.
 [copy] No sources found.
 [copy] Copying 4 files to 
/home/dwolf/projects/FM-PPE-GUI/lib/securityservices
 [copy] Copying 
/home/dwolf/.m2/repository/org/beanshell/bsh-core/2.0b4/bsh-core-2.0b4.jar to 
/home/dwolf/projects/FM-PPE-GUI/lib/securityservices/bsh-cor
e-2.0b4.jar
 [copy] Copying 
/home/dwolf/.m2/repository/log4j/log4j/1.2.16/log4j-1.2.16.jar to 
/home/dwolf/projects/FM-PPE-GUI/lib/securityservices/log4j-1.2.16.jar
 [copy] Copying 
/home/dwolf/.m2/repository/com/digitalglobe/securityservices/4.13-SNAPSHOT/securityservices-4.13-20110421.185640-5.jar
 to /home/dwolf/proj
ects/FM-PPE-GUI/lib/securityservices/securityservices-4.13-20110421.185640-5.jar
 [copy] Copying 
/home/dwolf/.m2/repository/org/owasp/esapi/esapi/2.0_rc10/esapi-2.0_rc10.jar to 
/home/dwolf/projects/FM-PPE-GUI/lib/securityservices/esapi
-2.0_rc10.jar
 [echo] Copying securityservices properties dependencies
[artifact:dependencies] Maven Ant Tasks version: 2.1.2
[artifact:dependencies] Loading Maven settings file: 
/home/dwolf/.m2/settings.xml
[artifact:dependencies] Loading Maven settings file: 
/home/dwolf/devtools/maven/apache-maven-3.0.1/conf/settings.xml
[artifact:dependencies] Using local repository: /home/dwolf/.m2/repository
[artifact:dependencies] Resolving dependencies...
[artifact:dependencies] Using remote repositories:
  - id=nexus, 
url=http://dgwsnxslgmt01.digitalglobe.com:8082/nexus/content/groups/development,
 releases=enabled, snapshots=

Can you make an http server, the local repository ?

2011-04-21 Thread Sony Antony
Assuming this is an internal web server with write permission ( PUT
allowed ), is it possible to point to a web server for the local
repository ?
2. Is there any scenario at all wherein something gets written to the
remote repository ( if you use the file:// type URL for remote
repository, which I found would work )
--sony

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



Re: Aggregating cobertura reports in a multi module build with Maven 3.0.3

2011-04-21 Thread Mirko Friedenhagen
BTW: when invoking "mvn clean install cobertura:cobertura site" I do
see the aggregated report in the workspace
(http://huschteguzzel.de/hudson/job/test-multimodule/ws/target/site/cobertura/index.html
or 
http://huschteguzzel.de/hudson/job/test-multimodule/ws/core/target/site/cobertura/index.html),
however "site" will not pick this up correctly.

Regards
Mirko

On Thu, Apr 21, 2011 at 22:38, Mirko Friedenhagen
 wrote:
> I tried this as well (had a look in the integration test). I now put
> the report plugins into the reportPlugins-Element as suggested in
> https://cwiki.apache.org/MAVEN/maven-3x-and-site-plugin.html#Maven3.xandsiteplugin-NewConfiguration
> and enabled aggregation in a seperate section for the corbertura
> plugin as well, see:
> https://github.com/mfriedenhagen/multi-module-sample/commit/fd784cfdb1d4c7543e298b1bc7d22a7718a234d8,
> the output from this may be seen at:
> http://pastebin.com/raw.php?i=YE0DcfKk. What is strange IMO:
> - generation of the cobertura report is skipped and in the
> project-reports.html of the modules I see:
> Cobertura Test 
> Coverage
> So the "cobertura/" part seems to be missing.
>
> Regards
> Mirko
>
> On Thu, Apr 21, 2011 at 22:20, Benson Margulies  wrote:
>> From the integration test, I see this in the top-level pom.
>>
>>  
>>    
>>      
>>        org.codehaus.mojo
>>        cobertura-maven-plugin
>>        2.5
>>        
>>          true
>>        
>>      
>>    
>>  
>>
>>
>>
>> On Thu, Apr 21, 2011 at 3:58 PM, Mirko Friedenhagen
>>  wrote:
>>> Hello,
>>>
>>> I am trying to use cobertura 2.5 with Maven 3.0.3 and want it's
>>> reports to be aggregated in a multi-module build What am I
>>> doing wrong?
>>>
>>> Looking at 
>>> http://svn.codehaus.org/mojo/tags/cobertura-maven-plugin-2.5/src/main/java/org/codehaus/mojo/cobertura/CoberturaReportMojo.java
>>> it seems to me, that the cobertura goal should be invoked during the
>>> test phase. Right now, when I invoke "mvn clean install site" IMO this
>>> goal should be invoked automatically. But I do not see the html or xml
>>> report in the modules. The output of "mvn clean install site" may be
>>> found at http://pastebin.com/MrvWefeV, the source code for this was:
>>> https://github.com/mfriedenhagen/multi-module-sample/commit/d25db3666b4f9388ca0879378b4917a89062323d
>>>
>>> Thanks for your answers
>>> A confused Mirko
>>> --
>>> http://illegalstateexception.blogspot.com/
>>> https://github.com/mfriedenhagen/
>>> https://bitbucket.org/mfriedenhagen/
>>>
>>> -
>>> 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
>>
>>
>
>
>
> --
> http://illegalstateexception.blogspot.com/
> https://github.com/mfriedenhagen/
> https://bitbucket.org/mfriedenhagen/
>



-- 
http://illegalstateexception.blogspot.com/
https://github.com/mfriedenhagen/
https://bitbucket.org/mfriedenhagen/

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



Re: Aggregating cobertura reports in a multi module build with Maven 3.0.3

2011-04-21 Thread Mirko Friedenhagen
I tried this as well (had a look in the integration test). I now put
the report plugins into the reportPlugins-Element as suggested in
https://cwiki.apache.org/MAVEN/maven-3x-and-site-plugin.html#Maven3.xandsiteplugin-NewConfiguration
and enabled aggregation in a seperate section for the corbertura
plugin as well, see:
https://github.com/mfriedenhagen/multi-module-sample/commit/fd784cfdb1d4c7543e298b1bc7d22a7718a234d8,
the output from this may be seen at:
http://pastebin.com/raw.php?i=YE0DcfKk. What is strange IMO:
- generation of the cobertura report is skipped and in the
project-reports.html of the modules I see:
Cobertura Test Coverage
So the "cobertura/" part seems to be missing.

Regards
Mirko

On Thu, Apr 21, 2011 at 22:20, Benson Margulies  wrote:
> From the integration test, I see this in the top-level pom.
>
>  
>    
>      
>        org.codehaus.mojo
>        cobertura-maven-plugin
>        2.5
>        
>          true
>        
>      
>    
>  
>
>
>
> On Thu, Apr 21, 2011 at 3:58 PM, Mirko Friedenhagen
>  wrote:
>> Hello,
>>
>> I am trying to use cobertura 2.5 with Maven 3.0.3 and want it's
>> reports to be aggregated in a multi-module build What am I
>> doing wrong?
>>
>> Looking at 
>> http://svn.codehaus.org/mojo/tags/cobertura-maven-plugin-2.5/src/main/java/org/codehaus/mojo/cobertura/CoberturaReportMojo.java
>> it seems to me, that the cobertura goal should be invoked during the
>> test phase. Right now, when I invoke "mvn clean install site" IMO this
>> goal should be invoked automatically. But I do not see the html or xml
>> report in the modules. The output of "mvn clean install site" may be
>> found at http://pastebin.com/MrvWefeV, the source code for this was:
>> https://github.com/mfriedenhagen/multi-module-sample/commit/d25db3666b4f9388ca0879378b4917a89062323d
>>
>> Thanks for your answers
>> A confused Mirko
>> --
>> http://illegalstateexception.blogspot.com/
>> https://github.com/mfriedenhagen/
>> https://bitbucket.org/mfriedenhagen/
>>
>> -
>> 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
>
>



-- 
http://illegalstateexception.blogspot.com/
https://github.com/mfriedenhagen/
https://bitbucket.org/mfriedenhagen/

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



Build a project twice with different classifier in one run

2011-04-21 Thread maxime.lem
Hello all,

Everything is in the title.
I would like to run a clean deploy twice for deploying 2 artifacts with
different classifier (compiled with different sdk), in only one maven run.
How can I do this ?

Thx

--
View this message in context: 
http://maven.40175.n5.nabble.com/Build-a-project-twice-with-different-classifier-in-one-run-tp4331794p4331794.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: Aggregating cobertura reports in a multi module build with Maven 3.0.3

2011-04-21 Thread Benson Margulies
>From the integration test, I see this in the top-level pom.

 

  
org.codehaus.mojo
cobertura-maven-plugin
2.5

  true

  

  



On Thu, Apr 21, 2011 at 3:58 PM, Mirko Friedenhagen
 wrote:
> Hello,
>
> I am trying to use cobertura 2.5 with Maven 3.0.3 and want it's
> reports to be aggregated in a multi-module build What am I
> doing wrong?
>
> Looking at 
> http://svn.codehaus.org/mojo/tags/cobertura-maven-plugin-2.5/src/main/java/org/codehaus/mojo/cobertura/CoberturaReportMojo.java
> it seems to me, that the cobertura goal should be invoked during the
> test phase. Right now, when I invoke "mvn clean install site" IMO this
> goal should be invoked automatically. But I do not see the html or xml
> report in the modules. The output of "mvn clean install site" may be
> found at http://pastebin.com/MrvWefeV, the source code for this was:
> https://github.com/mfriedenhagen/multi-module-sample/commit/d25db3666b4f9388ca0879378b4917a89062323d
>
> Thanks for your answers
> A confused Mirko
> --
> http://illegalstateexception.blogspot.com/
> https://github.com/mfriedenhagen/
> https://bitbucket.org/mfriedenhagen/
>
> -
> 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



Aggregating cobertura reports in a multi module build with Maven 3.0.3

2011-04-21 Thread Mirko Friedenhagen
Hello,

I am trying to use cobertura 2.5 with Maven 3.0.3 and want it's
reports to be aggregated in a multi-module build What am I
doing wrong?

Looking at 
http://svn.codehaus.org/mojo/tags/cobertura-maven-plugin-2.5/src/main/java/org/codehaus/mojo/cobertura/CoberturaReportMojo.java
it seems to me, that the cobertura goal should be invoked during the
test phase. Right now, when I invoke "mvn clean install site" IMO this
goal should be invoked automatically. But I do not see the html or xml
report in the modules. The output of "mvn clean install site" may be
found at http://pastebin.com/MrvWefeV, the source code for this was:
https://github.com/mfriedenhagen/multi-module-sample/commit/d25db3666b4f9388ca0879378b4917a89062323d

Thanks for your answers
A confused Mirko
--
http://illegalstateexception.blogspot.com/
https://github.com/mfriedenhagen/
https://bitbucket.org/mfriedenhagen/

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



Re: Variables interpolated on the command-line

2011-04-21 Thread Jörg Schaible
Phillip Hellewell wrote:

> Oh, I just thought of something shorter that will work:
> 
> -Dmyvar1=c:\test\${myvar2}\.
> 
> Still seems kinda crazy though.  Anyone want to shed some light on why
> it works this way?  This is with Maven 3.0.1.

Maybe you should have a look into the bash manual instead ?

- Jörg


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



Re: Variables interpolated on the command-line

2011-04-21 Thread Phillip Hellewell
Oh, I just thought of something shorter that will work:

-Dmyvar1=c:\test\${myvar2}\.

Still seems kinda crazy though.  Anyone want to shed some light on why
it works this way?  This is with Maven 3.0.1.

Phillip

On Thu, Apr 21, 2011 at 11:51 AM, Phillip Hellewell  wrote:
> Some more interesting examples:
>
> xyz${myvar2}  => xyznull
> ${myvar2}xyz   => ${myvar2}xyz
> xyz${myavr2}xyz => xyz${mvar2}xyz
>
> so as long as I add something after, I can get it to not interpolate like I 
> want
>
> So this is really ridiculous, but I've come up with something that works:
>
> -Dmyvar1=c:\test\${myvar2}\..\${myvar2}
>
> Phillip
>
> On Thu, Apr 21, 2011 at 11:39 AM, Phillip Hellewell  wrote:
>> I'm having trouble running a plugin I wrote and setting a variable to
>> another variable that I want to interpolate later.
>>
>> I've had success inside pom files by escaping the $ as $$, but from
>> the command-line that is not working.
>>
>> What's weird is that it is inconsistent about when it will interpolate
>> it or not, e.g.:
>>
>> mvn myplugin:mygoal -Dmyvar1=${myvar2}   => this sets myvar1 to
>> literally "${myvar2}", without interpolation
>>
>> mvn myplugin:mygoal -Dmyvar1="c:\test\${myvar2}"  => this one
>> interpolates it so I get myvar1 set to "c:\test\null"
>>
>> How can I make the second one work?
>>
>> Phillip
>>
>

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



Re: Advantages of using a Repository Manager

2011-04-21 Thread Brian Smith
Hi there,

We have a slightly more open setup than you do where developers can add
libraries _provided_ they're licensed under pre-approved business friendly
licenses.

Artifactory works excellently for us in that respect as it allows us to
handle permissions at the right level, I also personally find the UI to be
very intuitive and simple.

We also use the repository to publish API libraries to our internal
solutions teams and as an archive of customer deliverables quickly
accessible by support.

Repository Managers in general are very useful and Artifactory (power pack)
in particular would get a recommendation from me.

Kind regards

Brian



On 20 April 2011 13:23, Sony Antony  wrote:

> Im trying to evaluate whether we should use a repository manager.
>
> Will somebody post at least a few of the advantages here
> Our project uses a list of pre approved ( and pre downloaded ) dependencies
> and plugins.
>
> --sony
>


Re: Variables interpolated on the command-line

2011-04-21 Thread Phillip Hellewell
Some more interesting examples:

xyz${myvar2}  => xyznull
${myvar2}xyz   => ${myvar2}xyz
xyz${myavr2}xyz => xyz${mvar2}xyz

so as long as I add something after, I can get it to not interpolate like I want

So this is really ridiculous, but I've come up with something that works:

-Dmyvar1=c:\test\${myvar2}\..\${myvar2}

Phillip

On Thu, Apr 21, 2011 at 11:39 AM, Phillip Hellewell  wrote:
> I'm having trouble running a plugin I wrote and setting a variable to
> another variable that I want to interpolate later.
>
> I've had success inside pom files by escaping the $ as $$, but from
> the command-line that is not working.
>
> What's weird is that it is inconsistent about when it will interpolate
> it or not, e.g.:
>
> mvn myplugin:mygoal -Dmyvar1=${myvar2}   => this sets myvar1 to
> literally "${myvar2}", without interpolation
>
> mvn myplugin:mygoal -Dmyvar1="c:\test\${myvar2}"  => this one
> interpolates it so I get myvar1 set to "c:\test\null"
>
> How can I make the second one work?
>
> Phillip
>

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



Variables interpolated on the command-line

2011-04-21 Thread Phillip Hellewell
I'm having trouble running a plugin I wrote and setting a variable to
another variable that I want to interpolate later.

I've had success inside pom files by escaping the $ as $$, but from
the command-line that is not working.

What's weird is that it is inconsistent about when it will interpolate
it or not, e.g.:

mvn myplugin:mygoal -Dmyvar1=${myvar2}   => this sets myvar1 to
literally "${myvar2}", without interpolation

mvn myplugin:mygoal -Dmyvar1="c:\test\${myvar2}"  => this one
interpolates it so I get myvar1 set to "c:\test\null"

How can I make the second one work?

Phillip

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



shade plugin doesn't create dependency reduced pom

2011-04-21 Thread Willem van Engen
Hello,

When using maven-shade-plugin to create an uberjar I'm missing the
dependency reduced pom, even when createDependencyReducedPom is set to
true. I want to use this to create a java web start project it.
Is this a bug or am I missing something?

https://github.com/wvengen/jGridstart/blob/master/jgridstart-small/pom.xml

Regards,
- Willem

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



Re: Advantages of using a Repository Manager

2011-04-21 Thread Ron Wheeler
Great note. Thanks for taking the time to put this together. It has some 
great ideas that even experienced Nexus users will find helpful.


We are not nearly this sophisticated but we found that the free version 
of Nexus (competitors might do just as well) made our use and 
understanding of Maven much more trouble-free since it added a lot of 
transparency to dependency management.
The support for 3rd party libraries that are not released through Maven 
Central is very useful.
We are just using the free version since we have a very small team 
although we have lots of POMs - about 90 in our largest project.


I would strongly recommend getting a repo into any development 
environment that includes Maven.


Ron

On 21/04/2011 10:48 AM, David Bruley wrote:

Want to make sure I understand your current setup correctly.

You have a local repository on a file system somewhere that contains all the 
artifacts approved for use in your builds.  Then you create a copy of that 
repository and point Hudson to that private copy.  Is that one copy per project 
built?  Or do all builds on Hudson use that private repo?

Anyway, we used an older version of a particular repo manager a few years back 
but switched over to the Professional version of Nexus last fall.  We too need 
to lock down what versions of artifacts developers use and Nexus has worked 
well for that.

Not knowing your environment or process, I'm not sure if these would benefit 
you, but thought I would share the benefits we've seen:

- Nexus Staging Suite

- This was probably the main reason we went with Nexus Pro.  When we do a release build, we can intercept 
the artifact(s) and segregate them in a staging repository.  If they do not pass testing or QA, we can 
"drop" the whole repo and those artifacts are gone.  If everything passes, we can 
"release" the contents of the staging repo to our "production approved" repository.  
Helps ensure an artifact is not made available for general use until it's passed everything and has been 
formally released.  It's worked well with our particular release process.

- Nexus Procurement Suite

- This has been a handy feature on those occasions when we do need to 
update our external artifacts, such as a new version of a plugin.  Helps 
control how new external artifacts are introduced inside the company.

- Search capabilities

- The UI provides a nice capability for searching for an artifact.  Has 
some cool features where we can drill into the contents of a particular version 
of a jar or easily get the XML of the GAV for an artifact so we can paste it 
into our POM.  Can search on part of a GAV or even a class name to find 
artifacts containing a particular class.

- Repository Grouping

   - We can create group repositories in Nexus that are configured to use 
several individual repositories.  We can then use different profiles with Maven 
to point to different groups.  So our CI builds in development can point to one 
group and our release builds can point to a different group.

- Consistent repos used by both developers and the CI servers

   - Not sure how your developers build.  Do they point at the same local repo 
as Hudson or are they looking external when they build local?  We have each 
developer's Maven settings file configured to point to Nexus as well so there 
are no surprises when the code builds on Hudson as far as missing dependency 
versions, etc.

Again, situation might differ for you and this is not intended to be a sales 
pitch for Nexus - I'm sure other Repository Managers have similar functionality 
as well - just sharing our experiences.

Hope it helps.

Dave Bruley
Lead Technical Analyst
CoreLink Administrative Solutions

-Original Message-
From: Sony Antony [mailto:sony.ant...@gmail.com]
Sent: Wednesday, April 20, 2011 8:03 AM
To: Maven Users List
Subject: Re: Advantages of using a Repository Manager

Thank you for the link.
I had looked at this section from teh book around a year back.
I couldnt find any clear advantage since we have a  pre approved and pre
decided list of plugins and dependencies.

Currently we have a master repository which is populated only when project
decides to add a new dependency or plugin.
At teh initial hudson setup, this repository is copied to a private
location, and hudson is pointed to this private location ( this is one time
only and is not done with each build ).
Build is done in the offline maven mode.

Given this scenario, Im trying to see if repository managers can provide any
advantage over what we already have.


--sony

2011/4/20 Tamás Cservenák


See here for reasons:


http://www.sonatype.com/books/nexus-book/reference/sect-repoman-reasons.html


Thanks,
~t~

On Wed, Apr 20, 2011 at 2:23 PM, Sony Antony
wrote:


Im trying to evaluate whether we should use a repository manager.

Will somebody post at least a few of the advantages here
Our project uses a list of pre approved ( and pre downloaded )

dependencies

and plugins.


RE: Advantages of using a Repository Manager

2011-04-21 Thread David Bruley
Want to make sure I understand your current setup correctly.

You have a local repository on a file system somewhere that contains all the 
artifacts approved for use in your builds.  Then you create a copy of that 
repository and point Hudson to that private copy.  Is that one copy per project 
built?  Or do all builds on Hudson use that private repo?

Anyway, we used an older version of a particular repo manager a few years back 
but switched over to the Professional version of Nexus last fall.  We too need 
to lock down what versions of artifacts developers use and Nexus has worked 
well for that.

Not knowing your environment or process, I'm not sure if these would benefit 
you, but thought I would share the benefits we've seen:

- Nexus Staging Suite

   - This was probably the main reason we went with Nexus Pro.  When we do a 
release build, we can intercept the artifact(s) and segregate them in a staging 
repository.  If they do not pass testing or QA, we can "drop" the whole repo 
and those artifacts are gone.  If everything passes, we can "release" the 
contents of the staging repo to our "production approved" repository.  Helps 
ensure an artifact is not made available for general use until it's passed 
everything and has been formally released.  It's worked well with our 
particular release process.

- Nexus Procurement Suite

   - This has been a handy feature on those occasions when we do need to update 
our external artifacts, such as a new version of a plugin.  Helps control how 
new external artifacts are introduced inside the company.

- Search capabilities

   - The UI provides a nice capability for searching for an artifact.  Has some 
cool features where we can drill into the contents of a particular version of a 
jar or easily get the XML of the GAV for an artifact so we can paste it into 
our POM.  Can search on part of a GAV or even a class name to find artifacts 
containing a particular class.

- Repository Grouping

  - We can create group repositories in Nexus that are configured to use 
several individual repositories.  We can then use different profiles with Maven 
to point to different groups.  So our CI builds in development can point to one 
group and our release builds can point to a different group.

- Consistent repos used by both developers and the CI servers

  - Not sure how your developers build.  Do they point at the same local repo 
as Hudson or are they looking external when they build local?  We have each 
developer's Maven settings file configured to point to Nexus as well so there 
are no surprises when the code builds on Hudson as far as missing dependency 
versions, etc.

Again, situation might differ for you and this is not intended to be a sales 
pitch for Nexus - I'm sure other Repository Managers have similar functionality 
as well - just sharing our experiences.

Hope it helps.

Dave Bruley
Lead Technical Analyst
CoreLink Administrative Solutions

-Original Message-
From: Sony Antony [mailto:sony.ant...@gmail.com]
Sent: Wednesday, April 20, 2011 8:03 AM
To: Maven Users List
Subject: Re: Advantages of using a Repository Manager

Thank you for the link.
I had looked at this section from teh book around a year back.
I couldnt find any clear advantage since we have a  pre approved and pre
decided list of plugins and dependencies.

Currently we have a master repository which is populated only when project
decides to add a new dependency or plugin.
At teh initial hudson setup, this repository is copied to a private
location, and hudson is pointed to this private location ( this is one time
only and is not done with each build ).
Build is done in the offline maven mode.

Given this scenario, Im trying to see if repository managers can provide any
advantage over what we already have.


--sony

2011/4/20 Tamás Cservenák 

> See here for reasons:
>
>
> http://www.sonatype.com/books/nexus-book/reference/sect-repoman-reasons.html
>
>
> Thanks,
> ~t~
>
> On Wed, Apr 20, 2011 at 2:23 PM, Sony Antony 
> wrote:
>
> > Im trying to evaluate whether we should use a repository manager.
> >
> > Will somebody post at least a few of the advantages here
> > Our project uses a list of pre approved ( and pre downloaded )
> dependencies
> > and plugins.
> >
> > --sony
> >
>

Confidentiality Notice: This communication and any attachments are for the sole 
use of the intended recipient(s) and may contain confidential and privileged 
information. Any unauthorized review, use, disclosure, distribution or copying 
is prohibited. If you are not the intended recipient(s), please contact the 
sender by replying to this e-mail and destroy/delete all copies of this e-mail 
message.


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



Re: Only partial filtering of .bat with assembly

2011-04-21 Thread David Delbecq
Could be a solution, i'll give it a try.

- Mail original -

De: "Roland Asmann" 
À: users@maven.apache.org
Envoyé: Jeudi 21 Avril 2011 13:17:38
Objet: Re: Only partial filtering of .bat with assembly

The way I would do it, is create a directory called
'src/main/filter-resources' (or something similar, just NOT the default
'src/main/resources'!) and then configure the resource-plugin to run
'resources:copy-resources' to eg 'target/filtered-resources'. With
filtering turned on of course. :-)

Then you have the assembly-plugin configured to use
'target/filtered-resources' as input (resources? I'm not very familiar
with the assembly-plugin!) for your assembly.

I think this would do the trick. Just remember what I wrote in the
parallel mail -- make sure you work around the @-bug!

Roland


On 21.04.2011 14:11, David Delbecq wrote:
> well, if i mark them as "ressource" they will be put in the jar file, no?
>
> - Mail original -
>
> De: "Roland Asmann" 
> À: users@maven.apache.org
> Envoyé: Jeudi 21 Avril 2011 12:38:44
> Objet: Re: Only partial filtering of .bat with assembly
>
> How about you don't let the assembly-plugin copy your resources, but
> have the resources-plugin do it?
>
> Roland
>
>
> On 21.04.2011 13:31, David Delbecq wrote:
> > Thanks for the hint, but not an option. The bat does not only call the 
> > jar file, it actually does some logic on parameters, call several
> > applications, manage temporary files.
> >
> > We are migrating to maven an application that mixes together .bat/.sh, 
> > java jars and perl scripts..
> > We will later migrate to full java if possible, but one step at a time ;)
> >
> > - Mail original -
> >
> > De: "Karl Heinz Marbaise" 
> > À: users@maven.apache.org
> > Envoyé: Jeudi 21 Avril 2011 11:26:17
> > Objet: Re: Only partial filtering of .bat with assembly
> >
> > Hi,
> >
> > it looks like you are trying to build a BAT file which will call your
> java
> > code...But for this purposes i would take a deeper look into the
> > maven-appassembler-plugin which produces such kind of batch-file
> > automatically...
> >
> > http://mojo.codehaus.org/appassembler/appassembler-maven-plugin/
> >
> > Kind regards
> > Karl Heinz Marbaise
> >
> > -
> > Kind regards
> > Karl Heinz Marbaise
> > 
> > http://www.soebes.de
> > http://www.skmwiki.de
> > http://supose.org/wiki/supose
> > --
> > View this message in context:
> >
> http://maven.40175.n5.nabble.com/Only-partial-filtering-of-bat-with-assembly-tp4329257p4330450.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
> >
> >
>
> --
> Roland Asmann
> Senior Software Engineer
>
> adesso Austria GmbH
> Floridotower 26. Stock T +43 1 2198790-27
> Floridsdorfer Hauptstr. 1 F +43 1 2198790-927
> A-1210 Wien M +43 664 88657566
> E roland.asm...@adesso.at
> W www.adesso.at
>
> -
> >>> business. people. technology. <<<
> -
>

--
Roland Asmann
Senior Software Engineer

adesso Austria GmbH
Floridotower 26. Stock T +43 1 2198790-27
Floridsdorfer Hauptstr. 1 F +43 1 2198790-927
A-1210 Wien M +43 664 88657566
E roland.asm...@adesso.at
W www.adesso.at

-
>>> business. people. technology. <<<
-



Re: Only partial filtering of .bat with assembly

2011-04-21 Thread Marc Rohlfs
I just checked it once more. With the plugin version 2.2, filtering 
didn't work when there was an '@' character somewhere in the document. 
My problem was solved with version 2.2.1, but in my case there wasn't an 
'@' character in the same line.


BTW: Your workaround is not bad! Another idea would be adding a foo 
property to the statement: -Dfix=@. Filtering works, if there's an even 
number of '@' characters.


Formally (e.g. with Maven 1) filter tokens looked like this: @propname@. 
I think the problem is sort of a relic ...


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



Re: Only partial filtering of .bat with assembly

2011-04-21 Thread Asmann, Roland
The way I would do it, is create a directory called 
'src/main/filter-resources' (or something similar, just NOT the default 
'src/main/resources'!) and then configure the resource-plugin to run 
'resources:copy-resources' to eg 'target/filtered-resources'. With 
filtering turned on of course. :-)

Then you have the assembly-plugin configured to use 
'target/filtered-resources' as input (resources? I'm not very familiar 
with the assembly-plugin!) for your assembly.

I think this would do the trick. Just remember what I wrote in the 
parallel mail -- make sure you work around the @-bug!

Roland


On 21.04.2011 14:11, David Delbecq wrote:
> well, if i mark them as "ressource" they will be put in the jar file, no?
>
> - Mail original -
>
> De: "Roland Asmann" 
> À: users@maven.apache.org
> Envoyé: Jeudi 21 Avril 2011 12:38:44
> Objet: Re: Only partial filtering of .bat with assembly
>
> How about you don't let the assembly-plugin copy your resources, but
> have the resources-plugin do it?
>
> Roland
>
>
> On 21.04.2011 13:31, David Delbecq wrote:
>  > Thanks for the hint, but not an option. The bat does not only call the
>  > jar file, it actually does some logic on parameters, call several
>  > applications, manage temporary files.
>  >
>  > We are migrating to maven an application that mixes together .bat/.sh,
>  > java jars and perl scripts..
>  > We will later migrate to full java if possible, but one step at a time ;)
>  >
>  > - Mail original -
>  >
>  > De: "Karl Heinz Marbaise" 
>  > À: users@maven.apache.org
>  > Envoyé: Jeudi 21 Avril 2011 11:26:17
>  > Objet: Re: Only partial filtering of .bat with assembly
>  >
>  > Hi,
>  >
>  > it looks like you are trying to build a BAT file which will call your
> java
>  > code...But for this purposes i would take a deeper look into the
>  > maven-appassembler-plugin which produces such kind of batch-file
>  > automatically...
>  >
>  > http://mojo.codehaus.org/appassembler/appassembler-maven-plugin/
>  >
>  > Kind regards
>  > Karl Heinz Marbaise
>  >
>  > -
>  > Kind regards
>  > Karl Heinz Marbaise
>  > 
>  > http://www.soebes.de
>  > http://www.skmwiki.de
>  > http://supose.org/wiki/supose
>  > --
>  > View this message in context:
>  >
> http://maven.40175.n5.nabble.com/Only-partial-filtering-of-bat-with-assembly-tp4329257p4330450.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
>  >
>  >
>
> --
> Roland Asmann
> Senior Software Engineer
>
> adesso Austria GmbH
> Floridotower 26. Stock T +43 1 2198790-27
> Floridsdorfer Hauptstr. 1 F +43 1 2198790-927
> A-1210 Wien M +43 664 88657566
> E roland.asm...@adesso.at
> W www.adesso.at
>
> -
>  >>> business. people. technology. <<<
> -
>

-- 
Roland Asmann
Senior Software Engineer

adesso Austria GmbH
Floridotower 26. Stock  T +43 1 2198790-27
Floridsdorfer Hauptstr. 1   F +43 1 2198790-927
A-1210 Wien M +43 664 88657566
E roland.asm...@adesso.at
W www.adesso.at

-
 >>> business. people. technology. <<<
-


Re: Only partial filtering of .bat with assembly

2011-04-21 Thread David Delbecq
well, if i mark them as "ressource" they will be put in the jar file, no?

- Mail original -

De: "Roland Asmann" 
À: users@maven.apache.org
Envoyé: Jeudi 21 Avril 2011 12:38:44
Objet: Re: Only partial filtering of .bat with assembly

How about you don't let the assembly-plugin copy your resources, but
have the resources-plugin do it?

Roland


On 21.04.2011 13:31, David Delbecq wrote:
> Thanks for the hint, but not an option. The bat does not only call the
> jar file, it actually does some logic on parameters, call several
> applications, manage temporary files.
>
> We are migrating to maven an application that mixes together .bat/.sh,
> java jars and perl scripts..
> We will later migrate to full java if possible, but one step at a time ;)
>
> - Mail original -
>
> De: "Karl Heinz Marbaise" 
> À: users@maven.apache.org
> Envoyé: Jeudi 21 Avril 2011 11:26:17
> Objet: Re: Only partial filtering of .bat with assembly
>
> Hi,
>
> it looks like you are trying to build a BAT file which will call your java
> code...But for this purposes i would take a deeper look into the
> maven-appassembler-plugin which produces such kind of batch-file
> automatically...
>
> http://mojo.codehaus.org/appassembler/appassembler-maven-plugin/
>
> Kind regards
> Karl Heinz Marbaise
>
> -
> Kind regards
> Karl Heinz Marbaise
> 
> http://www.soebes.de
> http://www.skmwiki.de
> http://supose.org/wiki/supose
> --
> View this message in context:
> http://maven.40175.n5.nabble.com/Only-partial-filtering-of-bat-with-assembly-tp4329257p4330450.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
>
>

--
Roland Asmann
Senior Software Engineer

adesso Austria GmbH
Floridotower 26. Stock T +43 1 2198790-27
Floridsdorfer Hauptstr. 1 F +43 1 2198790-927
A-1210 Wien M +43 664 88657566
E roland.asm...@adesso.at
W www.adesso.at

-
>>> business. people. technology. <<<
-



Re: Only partial filtering of .bat with assembly

2011-04-21 Thread Asmann, Roland
You might want to configure it to work around a bug though:

maven-resources-plugin

   
 ${*}
   
   false


Roland


On 21.04.2011 13:38, Asmann, Roland wrote:
> How about you don't let the assembly-plugin copy your resources, but
> have the resources-plugin do it?
>
> Roland
>
>
> On 21.04.2011 13:31, David Delbecq wrote:
>  > Thanks for the hint, but not an option. The bat does not only call the
>  > jar file, it actually does some logic on parameters, call several
>  > applications, manage temporary files.
>  >
>  > We are migrating to maven an application that mixes together .bat/.sh,
>  > java jars and perl scripts..
>  > We will later migrate to full java if possible, but one step at a time ;)
>  >
>  > - Mail original -
>  >
>  > De: "Karl Heinz Marbaise" 
>  > À: users@maven.apache.org
>  > Envoyé: Jeudi 21 Avril 2011 11:26:17
>  > Objet: Re: Only partial filtering of .bat with assembly
>  >
>  > Hi,
>  >
>  > it looks like you are trying to build a BAT file which will call your
> java
>  > code...But for this purposes i would take a deeper look into the
>  > maven-appassembler-plugin which produces such kind of batch-file
>  > automatically...
>  >
>  > http://mojo.codehaus.org/appassembler/appassembler-maven-plugin/
>  >
>  > Kind regards
>  > Karl Heinz Marbaise
>  >
>  > -
>  > Kind regards
>  > Karl Heinz Marbaise
>  > 
>  > http://www.soebes.de
>  > http://www.skmwiki.de
>  > http://supose.org/wiki/supose
>  > --
>  > View this message in context:
>  >
> http://maven.40175.n5.nabble.com/Only-partial-filtering-of-bat-with-assembly-tp4329257p4330450.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
>  >
>  >
>
> --
> Roland Asmann
> Senior Software Engineer
>
> adesso Austria GmbH
> Floridotower 26. Stock T +43 1 2198790-27
> Floridsdorfer Hauptstr. 1 F +43 1 2198790-927
> A-1210 Wien M +43 664 88657566
> E roland.asm...@adesso.at
> W www.adesso.at
>
> -
>  >>> business. people. technology. <<<
> -
>

-- 
Roland Asmann
Senior Software Engineer

adesso Austria GmbH
Floridotower 26. Stock  T +43 1 2198790-27
Floridsdorfer Hauptstr. 1   F +43 1 2198790-927
A-1210 Wien M +43 664 88657566
E roland.asm...@adesso.at
W www.adesso.at

-
 >>> business. people. technology. <<<
-


NullKnownHostProvider class not found during site deployment

2011-04-21 Thread Marcin Kuthan
Hi,

I could not configure site deployment with NullKnownHostProvider as
known host provider. Class NullKnownHostProvider is not found :-(

Actually NullKnownHostProvider class is bundled in the
"wagon-ssh-common" library. The library is a transitive dependency of
"wagon-ssh" which is declared as m-site-p dependency. From this
perspective class should be on the classpath, but:

Stack trace:
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-site-plugin:3.0-beta-4-SNAPSHOT:stage-deploy
(default-cli) on project test3: Unable to configure Wagon: 'scp':
While configuring wagon for 'localhost': Unable to apply wagon
configuration. ClassNotFoundException: Class name which was explicitly
given in configuration using 'implementation' attribute:
'org.apache.maven.wagon.providers.ssh.knownhost.NullKnownHostProvider'
cannot be loaded -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
execute goal 
org.apache.maven.plugins:maven-site-plugin:3.0-beta-4-SNAPSHOT:stage-deploy
(default-cli) on project test3: Unable to configure Wagon: 'scp'
at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at 
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at 
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at 
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at 
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at 
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at 
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at 
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at 
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.MojoExecutionException: Unable to
configure Wagon: 'scp'
at 
org.apache.maven.plugins.site.AbstractDeployMojo.deploy(AbstractDeployMojo.java:257)
at 
org.apache.maven.plugins.site.AbstractDeployMojo.deployTo(AbstractDeployMojo.java:242)
at 
org.apache.maven.plugins.site.AbstractDeployMojo.execute(AbstractDeployMojo.java:150)
at 
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
... 19 more
Caused by: org.apache.maven.wagon.TransferFailedException: While
configuring wagon for 'localhost': Unable to apply wagon
configuration.
at 
org.apache.maven.plugins.site.AbstractDeployMojo.configureWagon(AbstractDeployMojo.java:654)
at 
org.apache.maven.plugins.site.AbstractDeployMojo.deploy(AbstractDeployMojo.java:253)
... 23 more
Caused by: 
org.codehaus.plexus.component.configurator.ComponentConfigurationException:
ClassNotFoundException: Class name which was explicitly given in
configuration using 'implementation' attribute:
'org.apache.maven.wagon.providers.ssh.knownhost.NullKnownHostProvider'
cannot be loaded
at 
org.codehaus.plexus.component.configurator.converters.AbstractConfigurationConverter.getClassForImplementationHint(AbstractConfigurationConverter.java:70)
at 
org.codehaus.plexus.component.configurator.converters.composite.ObjectWithFieldsConverter.fromConfiguration(ObjectWithFieldsConverter.java:80)
at 
org.codehaus.plexus.component.configurator.converters.ComponentValueSetter.configure(ComponentValueSetter.java:278)
at 
org.codehaus.plexus.component.configurator.converters.composite.ObjectWithFieldsConverter.processConfiguration(ObjectWithFieldsConverter.java:151)
at 
org.codehaus.plexus.component.configurator.BasicComponentConfigurator.configureComponent(BasicComponentConfigurator.java:56)
at 
org.codehaus.plexus.component.configurator.AbstractComponentConfigurator.configureComponent(AbstractComponentConfigurator.java:66)
at 
org.codeha

Re: Only partial filtering of .bat with assembly

2011-04-21 Thread Asmann, Roland
How about you don't let the assembly-plugin copy your resources, but 
have the resources-plugin do it?

Roland


On 21.04.2011 13:31, David Delbecq wrote:
> Thanks for the hint, but not an option. The bat does not only call the
> jar file, it actually does some logic on parameters, call several
> applications, manage temporary files.
>
> We are migrating to maven an application that mixes together .bat/.sh,
> java jars and perl scripts..
> We will later migrate to full java if possible, but one step at a time ;)
>
> - Mail original -
>
> De: "Karl Heinz Marbaise" 
> À: users@maven.apache.org
> Envoyé: Jeudi 21 Avril 2011 11:26:17
> Objet: Re: Only partial filtering of .bat with assembly
>
> Hi,
>
> it looks like you are trying to build a BAT file which will call your java
> code...But for this purposes i would take a deeper look into the
> maven-appassembler-plugin which produces such kind of batch-file
> automatically...
>
> http://mojo.codehaus.org/appassembler/appassembler-maven-plugin/
>
> Kind regards
> Karl Heinz Marbaise
>
> -
> Kind regards
> Karl Heinz Marbaise
> 
> http://www.soebes.de
> http://www.skmwiki.de
> http://supose.org/wiki/supose
> --
> View this message in context:
> http://maven.40175.n5.nabble.com/Only-partial-filtering-of-bat-with-assembly-tp4329257p4330450.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
>
>

-- 
Roland Asmann
Senior Software Engineer

adesso Austria GmbH
Floridotower 26. Stock  T +43 1 2198790-27
Floridsdorfer Hauptstr. 1   F +43 1 2198790-927
A-1210 Wien M +43 664 88657566
E roland.asm...@adesso.at
W www.adesso.at

-
 >>> business. people. technology. <<<
-


Re: Only partial filtering of .bat with assembly

2011-04-21 Thread David Delbecq
Thanks for the hint, but not an option. The bat does not only call the jar 
file, it actually does some logic on parameters, call several applications, 
manage temporary files.

We are migrating to maven an application that mixes together .bat/.sh, java 
jars and perl scripts..
We will later migrate to full java if possible, but one step at a time ;)

- Mail original -

De: "Karl Heinz Marbaise" 
À: users@maven.apache.org
Envoyé: Jeudi 21 Avril 2011 11:26:17
Objet: Re: Only partial filtering of .bat with assembly

Hi,

it looks like you are trying to build a BAT file which will call your java 
code...But for this purposes i would take a deeper look into the
maven-appassembler-plugin which produces such kind of batch-file
automatically...

http://mojo.codehaus.org/appassembler/appassembler-maven-plugin/

Kind regards
Karl Heinz Marbaise

-
Kind regards
Karl Heinz Marbaise

http://www.soebes.de
http://www.skmwiki.de
http://supose.org/wiki/supose
--
View this message in context: 
http://maven.40175.n5.nabble.com/Only-partial-filtering-of-bat-with-assembly-tp4329257p4330450.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: java file path in exec:java

2011-04-21 Thread Asmann, Roland
It seems gmaven might be able to help you out here:

http://maven.40175.n5.nabble.com/Exporting-Ant-properties-to-Maven-td510023.html#a510117
http://pastebin.com/XsAdbbcY

Roland


On 21.04.2011 12:14, Asmann, Roland wrote:
> I see your problem now.
>
> Would it be a problem for you to use ant to run the program instead of
> the exec-plugin? Then you could have Ant convert the path:
>
> 
> 
> 
>
> Now if there was a way to have this property available in Maven, you
> could use the exec-plugin, but I believe you can't access this property
> (${unix-path}) in Maven...
>
> Roland
>
>
> On 21.04.2011 1:17, Zilvinas Vilutis wrote:
>  > yes, I can do that, however "${project.build.outputDirectory}" still
>  > generates "C:\folder1\folder2\..." & etc :)
>  >
>  > Žilvinas Vilutis
>  >
>  > Mobile: (+370) 652 38353
>  > E-mail: cika...@gmail.com
>  >
>  >
>  >
>  > On Wed, Apr 20, 2011 at 2:57 PM, Asmann, Roland
>  >  wrote:
>  > > What I meant was: don't use ${file.separator} and write '/' in your
> POM.
>  > >
>  > > Or do you have a reason you need the variable?
>  > >
>  > >
>  > > On 20-04-11 23:51, Zilvinas Vilutis wrote:
>  > >> Exactly, but I need *maven* to generate those "/" :)
>  > >>
>  > >> I need the
>  > ${project.build.outputDirectory}${file.separator}orm.properties
>  > >> to contain "/" in the output, but it generates the path with "\"
>  > >> slashes, e.g. C:\\target\classes\orm.properties
>  > >>
>  > >> Regards
>  > >>
>  > >> Žilvinas Vilutis
>  > >>
>  > >> Mobile: (+370) 652 38353
>  > >> E-mail: cika...@gmail.com
>  > >>
>  > >>
>  > >>
>  > >> On Wed, Apr 20, 2011 at 12:57 PM, Asmann, Roland
>  > >>  wrote:
>  > >>> Just use the character '/', it works on Windows!
>  > >>>
>  > >>>
>  > >>> On 20-04-11 21:45, Zilvinas Vilutis wrote:
>  >  Hi maven users!
>  > 
>  >  I'm trying to execute a java command and pass a path to a file as
>  > an argument:
>  > 
>  >  
>  >  org.codehaus.mojo
>  >  exec-maven-plugin
>  >  
>  >  java
>  > 
> ${project.build.outputDirectory}
>  >  runtime
>  >  
>  >  -c
>  > 
>  >
> ${project.build.outputDirectory}${file.separator}orm.properties
>  >  
>  > 
>  > com.company.deploy.product.AutomatedProductDeploy
>  >  
>  >  
>  > 
>  >  And I'm using maven properties to construct the filename:
>  >  ${project.build.outputDirectory}${file.separator}orm.properties
>  > 
>  >  Unfortunately, I'm getting an exception from the java class I'm
>  > running:
>  > 
>  >  Caused by: java.io.FileNotFoundException: C:\  >  project>\target\classes\orm.properties (The filename, directory
> name,
>  >  or volume label syntax is incorrect)
>  >  at java.io.FileInputStream.open(Native Method)
>  >  at java.io.FileInputStream.(FileInputStream.java:106)
>  > 
>  >  Most likely the it is using the argument and does not escape slashes
>  >  to new java.io.File( filePath )
>  > 
>  >  As I don't have access to source code of the class - is there
> any way
>  >  to enforce maven use unix style path generation on windows? ( change
>  >  slashes to "/" )
>  > 
>  >  I tried to override the ${file.separator} property - but it seems to
>  >  be read-only and doesn't help.
>  > 
>  >  Any ideas?
>  > 
>  >  Thank you!
>  > 
>  >  Žilvinas Vilutis
>  > 
>  >  E-mail: cika...@gmail.com
>  > 
>  > 
> -
>  >  To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>  >  For additional commands, e-mail: users-h...@maven.apache.org
>  > 
>  > >>>
>  > >>> --
>  > >>> Roland Asmann
>  > >>> Senior Software Engineer
>  > >>>
>  > >>> adesso Austria GmbH
>  > >>> Floridotower 26. Stock T +43 1 2198790-27
>  > >>> Floridsdorfer Hauptstr. 1 F +43 1 2198790-927
>  > >>> A-1210 Wien M +43 664 88657566
>  > >>> E roland.asm...@adesso.at
>  > >>> W www.adesso.at
>  > >>>
>  > >>> -
>  > >>> >>> business. people. technology.<<<
>  > >>> -
>  > >>
>  > >> -
>  > >> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>  > >> For additional commands, e-mail: users-h...@maven.apache.org
>  > >>
>  > >
>  > > --
>  > > Roland Asmann
>  > > Senior Software Engineer
>  > >
>  > > adesso Austria GmbH
>  > > Floridotower 26. Stock T +43 1 2198790-27
>  > > Floridsdorfer Hauptstr. 1 F +43 1 2198790-927
>  > > A-1210 Wien M +43 664 88657566
>  > > E roland.asm...@adesso.at
>  > > W www.adesso.at
>  > >
>  > > -
>  > > >>> business. people. technology. <<<
>  > > -
>  >
>  > 

Re: Only partial filtering of .bat with assembly

2011-04-21 Thread Karl Heinz Marbaise
Hi,

it looks like you are trying to build a BAT file which will call your java
code...But for this purposes i would take a deeper look into the
maven-appassembler-plugin which produces such kind of batch-file
automatically...

http://mojo.codehaus.org/appassembler/appassembler-maven-plugin/

Kind regards
Karl Heinz Marbaise

-
Kind regards
Karl Heinz Marbaise

http://www.soebes.de
http://www.skmwiki.de
http://supose.org/wiki/supose
--
View this message in context: 
http://maven.40175.n5.nabble.com/Only-partial-filtering-of-bat-with-assembly-tp4329257p4330450.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: java file path in exec:java

2011-04-21 Thread Asmann, Roland
I see your problem now.

Would it be a problem for you to use ant to run the program instead of 
the exec-plugin? Then you could have Ant convert the path:





Now if there was a way to have this property available in Maven, you 
could use the exec-plugin, but I believe you can't access this property 
(${unix-path}) in Maven...

Roland


On 21.04.2011 1:17, Zilvinas Vilutis wrote:
> yes, I can do that, however "${project.build.outputDirectory}" still
> generates "C:\folder1\folder2\..." & etc :)
>
> Žilvinas Vilutis
>
> Mobile:   (+370) 652 38353
> E-mail:   cika...@gmail.com
>
>
>
> On Wed, Apr 20, 2011 at 2:57 PM, Asmann, Roland
>  wrote:
>  > What I meant was: don't use ${file.separator} and write '/' in your POM.
>  >
>  > Or do you have a reason you need the variable?
>  >
>  >
>  > On 20-04-11 23:51, Zilvinas Vilutis wrote:
>  >> Exactly, but I need *maven* to generate those "/" :)
>  >>
>  >> I need the
> ${project.build.outputDirectory}${file.separator}orm.properties
>  >> to contain "/" in the output, but it generates the path with "\"
>  >> slashes, e.g. C:\\target\classes\orm.properties
>  >>
>  >> Regards
>  >>
>  >> Žilvinas Vilutis
>  >>
>  >> Mobile:   (+370) 652 38353
>  >> E-mail:   cika...@gmail.com
>  >>
>  >>
>  >>
>  >> On Wed, Apr 20, 2011 at 12:57 PM, Asmann, Roland
>  >>   wrote:
>  >>> Just use the character '/', it works on Windows!
>  >>>
>  >>>
>  >>> On 20-04-11 21:45, Zilvinas Vilutis wrote:
>   Hi maven users!
>  
>   I'm trying to execute a java command and pass a path to a file as
> an argument:
>  
>   
>   org.codehaus.mojo
>   exec-maven-plugin
>   
>   java
>   ${project.build.outputDirectory}
>   runtime
>   
>   -c
>  
> ${project.build.outputDirectory}${file.separator}orm.properties
>   
>  
> com.company.deploy.product.AutomatedProductDeploy
>   
>   
>  
>   And I'm using maven properties to construct the filename:
>   ${project.build.outputDirectory}${file.separator}orm.properties
>  
>   Unfortunately, I'm getting an exception from the java class I'm
> running:
>  
>   Caused by: java.io.FileNotFoundException:  C:\   project>\target\classes\orm.properties (The filename, directory name,
>   or volume label syntax is incorrect)
>     at java.io.FileInputStream.open(Native Method)
>     at java.io.FileInputStream.(FileInputStream.java:106)
>  
>   Most likely the it is using the argument and does not escape slashes
>   to new java.io.File( filePath )
>  
>   As I don't have access to source code of the class - is there any way
>   to enforce maven use unix style path generation on windows? ( change
>   slashes to "/" )
>  
>   I tried to override the ${file.separator} property - but it seems to
>   be read-only and doesn't help.
>  
>   Any ideas?
>  
>   Thank you!
>  
>   Žilvinas Vilutis
>  
>   E-mail:   cika...@gmail.com
>  
>   -
>   To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>   For additional commands, e-mail: users-h...@maven.apache.org
>  
>  >>>
>  >>> --
>  >>> Roland Asmann
>  >>> Senior Software Engineer
>  >>>
>  >>> adesso Austria GmbH
>  >>> Floridotower 26. Stock  T +43 1 2198790-27
>  >>> Floridsdorfer Hauptstr. 1   F +43 1 2198790-927
>  >>> A-1210 Wien M +43 664 88657566
>  >>> E roland.asm...@adesso.at
>  >>> W www.adesso.at
>  >>>
>  >>> -
>  >>> >>>  business. people. technology.<<<
>  >>> -
>  >>
>  >> -
>  >> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>  >> For additional commands, e-mail: users-h...@maven.apache.org
>  >>
>  >
>  > --
>  > Roland Asmann
>  > Senior Software Engineer
>  >
>  > adesso Austria GmbH
>  > Floridotower 26. Stock  T +43 1 2198790-27
>  > Floridsdorfer Hauptstr. 1   F +43 1 2198790-927
>  > A-1210 Wien M +43 664 88657566
>  >E roland.asm...@adesso.at
>  >W www.adesso.at
>  >
>  > -
>  > >>> business. people. technology. <<<
>  > -
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>

-- 
Roland Asmann
Senior Software Engineer

adesso Austria GmbH
Floridotower 26. Stock  T +43 1 2198790-27
Floridsdorfer Hau

Re: Only partial filtering of .bat with assembly

2011-04-21 Thread David Delbecq
am using 2.2.1
Your report say that the fil is not filtered it it contains an @
My problem is that lines started with an @ are not filtered other ones are fine.




maven-assembly-plugin
2.2.1

  
${basedir}/filter.properties
  

  
assembly-kit.xml
assembly-kitcours.xml
assembly-kitoutils.xml
assembly-kitpdf.xml
  


  
make-assembly 
package 

  single

  


  

- Mail original -

De: "Marc Rohlfs" 
À: "Maven Users List" 
Envoyé: Jeudi 21 Avril 2011 11:07:20
Objet: Re: Only partial filtering of .bat with assembly

Which version of the plugin do You use? I filed a bug report for this
problem and it was solved with the plugin version 2.2.1.

See: http://jira.codehaus.org/browse/MASSEMBLY-528

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




Re: Only partial filtering of .bat with assembly

2011-04-21 Thread Marc Rohlfs
Which version of the plugin do You use? I filed a bug report for this 
problem and it was solved with the plugin version 2.2.1.


See: http://jira.codehaus.org/browse/MASSEMBLY-528

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



Re: Only partial filtering of .bat with assembly

2011-04-21 Thread David Delbecq
The documentation of assembly plugin does not says anything about changing 
delimiter. Moreover, it does not use maven resource plugin.
I tried to change my version of m-r-p to a recent one that fixes the @ issue, 
but assembly does not seem to use it.
The only workaround i found is to replace all my @ with ${At} and defin At=@ in 
filter. This create unreadable file on source side :s

Any other suggestion?
Should i fill a bug report?


- Mail original -

De: "Wayne Fay" 
À: "Maven Users List" 
Envoyé: Mercredi 20 Avril 2011 23:01:48
Objet: Re: Only partial filtering of .bat with assembly

> i try to have some .bat files filtered by assembly plugin. However, for some
> reason, any batch line that starts with a @ is ignored by filterer :/
> This is a big problem considering 90% of the script lines starts with a @. Is
> there some way to have filter don't ignore those lines?

Pretty sure the assembly plugin uses the same configuration for
filtering delimiters that m-r-p uses:
http://maven.apache.org/plugins/maven-resources-plugin/resources-mojo.html#delimiters

The delimiter list includes ${*} and @.

You should be able to override those delimiters somehow. I honestly
don't know the proper configuration as I've never needed to do this
myself, but probably you can configure  in 
somewhere.

Wayne

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




Re: Release plugin: release project from within subdirectory

2011-04-21 Thread Stephen Connolly
fyi that is a hack and may not work in future versions when the bug is fixed

- Stephen

---
Sent from my Android phone, so random spelling mistakes, random nonsense
words and other nonsense are a direct result of using swype to type on the
screen
On 20 Apr 2011 15:36, "werdex"  wrote:
> Hi,
> The following did trick for me:
> 
> deploy -f Sources/pom.xml
> 
>
> --
> View this message in context:
http://maven-users.828.n2.nabble.com/Release-plugin-release-project-from-within-subdirectory-tp5057222p6290891.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
>