Re: How to use error-prone 2.3.4 plugin with Maven

2020-11-19 Thread Chris Ward
Thanks ! Building with that version of 'docker run' with 
'-Derrorprone.version=2.3.4' succeeded.

On 2020/11/18 17:54:03, Jörg Schaible  wrote: 
> Just overwrite that property from command line:> 
> 
> docker run -it --rm -v $HOME/.m2:/root/.m2 -v $PWD:/root/trellis-t3 -w> 
> /root/trellis-t3 maven:latest mvn clean install 
-Derrorprone.version=2.3.4> 
> 
> BTW: That's one of the reasons to declare all versions with properties 
in POMs.> 
> 
> Am Mittwoch, 18. November 2020, 16:01:05 CET schrieb Chris Ward:> 
> 
> 
> I see> 
> 
>  2.3.3> 
> 
> in file ~/.m2/repository/org/onosproject/onos-depende


T J (Chris) Ward, IBM Research. 
Scalable Data-Centric Computing - IBM Spectrum MPI 
IBM United Kingdom Ltd., Hursley Park, Winchester, Hants, SO21 2JN 
011-44-1962-818679 
LinkedIn https://www.linkedin.com/in/tjcward/ 
ResearchGate https://www.researchgate.net/profile/Thomas_Ward16 

IBM Research -- Data Centric Systems 
IBM Supercomputer Marketing 

IBM Branded Products IBM Branded Swag 


UNIX in the Cloud - Find A Place Where There's Room To Grow, with the 
original Open Standard. Free Trial Here Today 
Protein Folding by Supercomputer - BlueMatter Molecular Dynamics package. 
Data Tables - In-memory key-value store package. 
Linux on Windows - Virtualisation package. On the Lighthouse ! 

Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number 
741598. 
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU


Re: How to use error-prone 2.3.4 plugin with Maven

2020-11-18 Thread Chris Ward
I see
 2.3.3
in file 
~/.m2/repository/org/onosproject/onos-dependencies/2.2.7-b2/onos-dependencies-2.2.7-b2.pom
 
, but it's apparent that I'm not supposed to edit this file; it is owned 
by root, and there is what looks like a sha1 of the file in the same 
directory as if Maven is intending to detect changes.

So where is Maven getting this from into its cache ? That is, where do I 
find the original 2.3.3 so that I 
can change it to 2.3.4 ?

On 2020/11/18 11:39:05, Maarten Mulders  wrote: 
> Hello Chris,> 
> 
> By issuing mvn help:effective-pom -Dverbose=true, you can inspect the > 
> "effective POM". It will show you where the version of the Error Prone > 

> is selected:> 
> 
>  2.3.3> 
>  > 
> 
> (you may need to scroll a bit, it's pretty much near the top of the 
output)> 
> 
> The version of Error Prone is selected from the parent module, > 


T J (Chris) Ward, IBM Research. 
Scalable Data-Centric Computing - IBM Spectrum MPI 
IBM United Kingdom Ltd., Hursley Park, Winchester, Hants, SO21 2JN 
011-44-1962-818679 
LinkedIn https://www.linkedin.com/in/tjcward/ 
ResearchGate https://www.researchgate.net/profile/Thomas_Ward16 

IBM Research -- Data Centric Systems 
IBM Supercomputer Marketing 

IBM Branded Products IBM Branded Swag 


UNIX in the Cloud - Find A Place Where There's Room To Grow, with the 
original Open Standard. Free Trial Here Today 
Protein Folding by Supercomputer - BlueMatter Molecular Dynamics package. 
Data Tables - In-memory key-value store package. 
Linux on Windows - Virtualisation package. On the Lighthouse ! 

Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number 
741598. 
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU


How to use error-prone 2.3.4 plugin with Maven

2020-11-18 Thread Chris Ward
I am using Maven to build the ONOS 'trellis-t3' app. I get an unhandled 
exception from the Error Prone static analysis plugin (with version 2.3.3 
of Error Prone). According to 
https://github.com/google/error-prone/issues/1940 this is fixed in version 
2.3.4 of Error Prone.

How do I cause Maven to use this newer version of Error Prone ?

My build command is
docker run -it --rm -v $HOME/.m2:/root/.m2 -v $PWD:/root/trellis-t3 -w 
/root/trellis-t3 maven:latest mvn clean install
i.e. I'm running a Docker-packaged Maven.

If anyone wants to reproduce the error, you will need to download 
'trellis-t3' with
git clone https://gerrit.onosproject.org/trellis-t3


T J (Chris) Ward, IBM Research. 
Scalable Data-Centric Computing - IBM Spectrum MPI 
IBM United Kingdom Ltd., Hursley Park, Winchester, Hants, SO21 2JN 
011-44-1962-818679 
LinkedIn https://www.linkedin.com/in/tjcward/ 
ResearchGate https://www.researchgate.net/profile/Thomas_Ward16 

IBM Research -- Data Centric Systems 
IBM Supercomputer Marketing 

IBM Branded Products IBM Branded Swag 


UNIX in the Cloud - Find A Place Where There's Room To Grow, with the 
original Open Standard. Free Trial Here Today 
Protein Folding by Supercomputer - BlueMatter Molecular Dynamics package. 
Data Tables - In-memory key-value store package. 
Linux on Windows - Virtualisation package. On the Lighthouse ! 

Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number 
741598. 
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU


Re: How to rewrite POMs retaining the XML structure

2018-11-29 Thread Chris Barlock
SInce it is XML, you could use the Java DOM or Sax parsers.

Chris




From:   Marc Rohlfs 
To: users@maven.apache.org
Date:   11/29/2018 07:42 PM
Subject:How to rewrite POMs retaining the XML structure



Hi all,

is there a way to rewrite pom.xml files without loosing formatting,
ordering and comments?

We need to (programmatically) do several changes on Maven POMs, e.g. 
adding
and removing dependencies and properties. Currently we're using
the MavenXpp3Reader and MavenXpp3Writer classes to read and write the
pom.xml files, but in the output files, all comments are removed, the XML
nodes are reordered and formatting (indentations, empty lines) is lost.
Does anybody know a way how to read and write POM files without loosing
formatting ordering and comments?

Best regards
Marc






Re: Integration testing of command line tools?

2018-08-20 Thread Chris Shellenbarger
Have you considered writing an integration test that invoked your command
line tool from the command line?

When you use tools like Failsafe, JUnit, etc, you can know that the process
works in that environment, but the real world execution won't be the same.

While most of your corner cases, logic, etc can be covered by unit tests in
the framework, the final test (does it run on the command line) is
something you should be able to do with a simple shell script (call your
command line, check the output, exit 0 if things match, done).

I think of integration tests as 'testing that everything is hooked up
properly' and so just a couple executions usually can validate this.  I
leave all my edge cases and logic testing to unit tests, usually isolating
at the function level, where they become a lot simpler to test.


---
Chris Shellenbarger
Founder, CloudRepo <https://www.cloudrepo.io>

On Mon, Aug 20, 2018 at 8:59 AM, Mark H. Wood  wrote:

> When writing integration tests for command-line tools, is there any
> support in Failsafe, jUnit, or elsewhere to fork a process and manage
> its standard IO streams?
>
> Or am I over-designing?  Would one typically write such an integration
> test rather like a unit test, bypassing the command analyzer and just
> calling the appropriate method on an instance created by the test
> suite?  Without stubbing or mocking the underlying code, of course,
> since it's an integration test.
>
> Is there a better place to ask?
>
> --
> Mark H. Wood
> Lead Technology Analyst
>
> University Library
> Indiana University - Purdue University Indianapolis
> 755 W. Michigan Street
> Indianapolis, IN 46202
> 317-274-0749
> www.ulib.iupui.edu
>


Re: dependency:tree erroring with cxf boot starter

2018-02-20 Thread Chris Castle
Confirmed. No issues with 3.5.2.

Thanks!

On Mon, Feb 19, 2018 at 3:56 PM, Robert Scholte 
wrote:

> I think you're hitting https://issues.apache.org/jira/browse/MNG-6280
> It is fixed in Maven 3.5.2
>
> thanks,
> Robert
>
> On Mon, 19 Feb 2018 20:34:22 +0100, castlec  wrote:
>
> Hello all. I'm not sure if there is an error in my pom, in the cxf pom, or
>> in
>> the dependency plugin. I'm able to get a tree from within eclipse but not
>> from command line.
>>
>> Relevant info is below. Suggestions much appreciated.
>>
>> Apache Maven 3.5.0
>> Maven home: /usr/share/maven
>> Java version: 1.8.0_151, vendor: Oracle Corporation
>> Java home: /usr/lib/jvm/java-8-openjdk-amd64/jre
>> Default locale: en_US, platform encoding: UTF-8
>> OS name: "linux", version: "4.13.0-32-generic", arch: "amd64", family:
>> "unix"
>>
>>
>> 
>> org.springframework.boot
>> spring-boot-starter-parent
>> 1.5.10.RELEASE
>> 
>>
>>
>> org.apache.cxf
>> cxf-spring-boot-st
>> arter-jaxrs
>> 3.1.12
>> 
>>
>>
>> [DEBUG] Goal:
>> org.apache.maven.plugins:maven-dependency-plugin:3.0.2:tree (default-cli)
>> [DEBUG] Style: Regular
>> [DEBUG] Configuration: 
>> 
>>   ${appendOutput}
>>   ${excludes}
>>   ${includes}
>>   ${outputFile}
>>   ${outputType}
>>   
>>   
>>   ${scope}
>>   
>>   ${skip}
>>   ${tokens}
>>   ${verbose}
>> 
>> [DEBUG]
>> ===
>> [INFO]
>> 
>> [INFO] BUILD FAILURE
>> [INFO]
>> 
>> [INFO] Total time: 0.741 s
>> [INFO] Finished at: 2018-02-19T14:30:45-05:00
>> [INFO] Final Memory: 16M/607M
>> [INFO]
>> 
>> [ERROR] 15782
>> java.lang.ArrayIndexOutOfBoundsException: 15782
>> at org.codehaus.plexus.util.xml.pull.MXParser.parsePI
>> (MXParser.java:2502)
>> at org.codehaus.plexus.util.xml.pull.MXParser.parseEpilog
>> (MXParser.java:1604)
>> at org.codehaus.plexus.util.xml.pull.MXParser.nextImpl
>> (MXParser.java:1434)
>> at org.codehaus.plexus.util.xml.pull.MXParser.next
>> (MXParser.java:1131)
>> at org.apache.maven.model.io.xpp3.MavenXpp3Reader.read
>> (MavenXpp3Reader.java:4133)
>> at org.apache.maven.model.io.xpp3.MavenXpp3Reader.read
>> (MavenXpp3Reader.java:872)
>> at org.apache.maven.model.io.DefaultModelReader.read
>> (DefaultModelReader.java:109)
>> at org.apache.maven.model.io.DefaultModelReader.read
>> (DefaultModelReader.java:82)
>> at org.apache.maven.model.building.DefaultModelProcessor.read
>> (DefaultModelProcessor.java:81)
>> at org.apache.maven.model.building.DefaultModelBuilder.readModel
>> (DefaultModelBuilder.java:535)
>> at org.apache.maven.model.building.DefaultModelBuilder.build
>> (DefaultModelBuilder.java:275)
>> at
>> org.apache.maven.repository.internal.DefaultArtifactDescript
>> orReader.loadPom
>> (DefaultArtifactDescriptorReader.java:321)
>> at
>> org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.
>> readArtifactDescriptor
>> (DefaultArtifactDescriptorReader.java:199)
>> at
>> org.eclipse.aether.internal.impl.DefaultDependencyCollector.
>> resolveCachedArtifactDescriptor
>> (DefaultDependencyCollector.java:539)
>> at
>> org.eclipse.aether.internal.impl.DefaultDependencyCollector.
>> getArtifactDescriptorResult
>> (DefaultDependencyCollector.java:524)
>> at
>> org.eclipse.aether.internal.impl.DefaultDependencyCollector.
>> processDependency
>> (DefaultDependencyCollector.java:412)
>> at
>> org.eclipse.aether.internal.impl.DefaultDependencyCollector.
>> processDependency
>> (DefaultDependencyCollector.java:365)
>> at org.eclipse.aether.internal.impl.DefaultDependencyCollector.
>> process
>> (DefaultDependencyCollector.java:353)
>> at org.eclipse.aether.internal.impl.DefaultDependencyCollector.
>> doRecurse
>> (DefaultDependencyCollector.java:507)
>> at
>> org.eclipse.aether.internal.impl.DefaultDependencyCollector.
>> processDependency
>> (DefaultDependencyCollector.java:460)
>> at
>> org.eclipse.aether.internal.impl.DefaultDependencyCollector.
>> processDependency
>> (DefaultDependencyCollector.java:365)
>> at org.eclipse.aether.internal.impl.DefaultDependencyCollector.
>> process
>> (DefaultDependencyCollector.java:353)
>> at org.eclipse.aether.internal.impl.DefaultDependencyCollector.
>> doRecurse
>> (DefaultDependencyCollector.java:507)
>> at
>> org.eclipse.aether.internal.impl.DefaultDependencyCollector.
>> processDependency
>> (DefaultDependencyCollector.java:460)
>> at
>> org.eclipse.aether.internal.impl.DefaultDependencyCollector.
>> processDependency
>> (DefaultDependencyCollector.java:365)
>> at org.eclipse.aether.internal.impl.Defau

Re: Release plugin: why are my releases tagged as snapshots?

2017-09-10 Thread Chris
Actually, the parent pom.xml can probably be deleted now. I was trying to
keep the child one together with a sibling pom.xml, which builds some
benchmarks (that I'm not going to push to Maven Central since they wouldn't
be useful as a library). I'll do that and see if it makes any difference.
You'll notice that release.sh descends into a subfolder to do the build; so
do my other build scripts.

On Sun, Sep 10, 2017 at 12:45 PM Karl Heinz Marbaise 
wrote:

> Hi Chris,
>
> If i correctly see in your pom file you have defined Git URL in the root
> location of your project as well as in the sub module which is simply
> wrong...
> Cause you are trying to release a multi module build which means these
> things should only be at the root of that...
>
> Furthermore your child (skinny-wars-javaee5/pom.xml) duplicates many
> things...Apart from that your child (which is not the case) based on the
> things in Git repo:
>
> 
>
>  UTF-8
>  
>  1.8
>  1.8
>  ${org.checkerframework:jdk8:jar}
>  github
>
>io.github.pr0methean.betterrandom
>BetterRandom
>0.9.2.15-SNAPSHOT
>BetterRandom
>
>
> So in the end the parent is an aggregator...So my question if why are
> you trying to release a single module ? Why not the whole in one go?
>
> Furthermore you see the difference in the version ?
>
> BTW: I'm not sure but there have been improvements made in more recent
> versions of maven-release-plugin (but I'm not sure if really support
> releases of childs at the moment?)...
>
> Kind regards
> Karl Heinz Marbaise
>
>
>
>
>
>
> On 10/09/17 20:52, Chris wrote:
> > I've been informed at https://issues.sonatype.org/browse/OSSRH-34445
> that:
> > "The logs show that the build is trying to checkout the release branch,
> but
> > whatever it checks out probably still has 0.9.2.7-SNAPSHOT as the version
> > instead of 0.9.2.8
> >
> > Once the build things it's building a SNAPSHOT version, it has no choice
> > but to deploy to the Snapshots repo"
> >
> > I've changed my release shell script a little bit since then to properly
> > integrate the Proguard step, but I'm still having the same issue. A more
> > up-to-date output log is here: https://pastebin.ca/3866418 The script
> I'm
> > running is at
> >
> https://github.com/Pr0methean/BetterRandom/blob/66901100812a4bca1243ac7639c34a837d6aecfa/release.sh
> > and
> > the pom.xml is at
> >
> https://github.com/Pr0methean/BetterRandom/blob/master/betterrandom/pom.xml
> > .
> >
> > What do I need to do differently to generate a release with a
> non-snapshot
> > tag?
> >
>


Release plugin: why are my releases tagged as snapshots?

2017-09-10 Thread Chris
I've been informed at https://issues.sonatype.org/browse/OSSRH-34445 that:
"The logs show that the build is trying to checkout the release branch, but
whatever it checks out probably still has 0.9.2.7-SNAPSHOT as the version
instead of 0.9.2.8

Once the build things it's building a SNAPSHOT version, it has no choice
but to deploy to the Snapshots repo"

I've changed my release shell script a little bit since then to properly
integrate the Proguard step, but I'm still having the same issue. A more
up-to-date output log is here: https://pastebin.ca/3866418 The script I'm
running is at
https://github.com/Pr0methean/BetterRandom/blob/66901100812a4bca1243ac7639c34a837d6aecfa/release.sh
and
the pom.xml is at
https://github.com/Pr0methean/BetterRandom/blob/master/betterrandom/pom.xml
.

What do I need to do differently to generate a release with a non-snapshot
tag?


Re: CloudRepo - A Cloud Based Artifact Repository

2017-04-23 Thread Chris Shellenbarger
 Thank you very much for taking the time to share your thoughts with me,
Sander - I greatly appreciate it.

You’re definitely spot on with the obstacles that lie ahead for us,
especially being the new product on the block.  Nexus and Artifactory do
offer support for many different types of Artifacts and so they appeal to a
much broader audience.  Our plan is to continue to grow the types of
artifacts we support (I think NPM will be next), but we chose Maven as our
first because it’s something we’re intimately familiar with as we’ve have
to stand up and maintain several different installations of Nexus
throughout our careers.

We also do have the ‘new car smell’, if you will - people are right to be
wary about where they place their artifacts and it’s something we take very
seriously.  I think this is why Nexus and Artifactory continue to offer
primarily an on-prem solution (Artifactory’s cloud offering is just managed
VMs and it’s hard unclear what Nexus’ offering is).  Thank you for
reiterating this valuable insight to me as it means I need to think more on
how to better address this problem and get that message across through our
website.

So, for the stuff that you’ll like, open source, there is one thing that we
have on the roadmap, assuming we start working with cross geo teams:

Since our service is built on S3, we currently stream traffic through our
servers and back to the Maven clients.  This creates load on our servers
but at the same time forces clients to have to pay latency costs to reach
their artifacts (so someone in Asia trying to use CloudRepo which is
currently in California). To solve this, we can leverage S3’s cross-geo
replication features and mirror the repositories in an Asian region.
Ideally, CloudRepo would perform authentication and authorization of
requests and then redirect clients to an S3 endpoint with a temporary,
signed URL that can pull the artifact.  Then the client could pull directly
from S3 which will avoid any bottlenecks through our servers.

The current Maven client is able to follow redirects, but the problem (in
our experience) is that it seems to use the same method of Auth for when it
follows.   S3 doesn’t like it if you send the Authorization header on a
signed URL and so we’d have to make a Maven Wagon or some sort to handle
this scenario a little better.  This is something we’d definitely open
source because it’s on the client side and we’d hope it was useful to
people.

 In addition, some other  Wagons that might be useful to our customers in
the future:


   - A Wagon that encrypts and decrypts artifacts on the client side (to
   directly address the ‘crown jewels’ problem).
   - Various Auth Providers - If a customer wants to leverage their own
   Auth (i.e. LDAP, AAD, OpenId, etc) and ones don’t exist.


Right now I think we’d open source anything that we release to run on the
client side.  Hopefully, they’d add benefit for all Maven users and not
just our customers (the encryption one seems like it could have global
utility, the challenge is manage the secrets you encrypt with).

Anyway, thanks again for your feedback.  If you do ever decide you need a
private repository for your own needs, please do get in touch with me and
I’ll set you up with a complimentary account to show my appreciation.

Have a great day,
Chris

On Sat, Apr 22, 2017 at 11:58 PM, Sander Verhagen  wrote:

> This is exciting, but also scary (for you, I'm sure).
>
> Here's some feedback. I think this is very much a niche, particularly
> compared to Artifactory who aren't limited to just Maven artifacts. (And
> didn't Nexus now support Docker repositories too?) If I were shopping for a
> repository now (having been in that position before) I'd be suspicious for
> someone offering this "from scratch" as you are. I remember the growing
> pains of particularly Artifactory, and they weren't pretty. Why would I
> want to go through that with a new party again? Just for the few bucks a
> month it's saving me?
>
> At this point I'd feel more comfortable buying into a cloud offering of
> Nexus, to compete with the existing cloud offering of Artifactory. My
> employer couldn't agree with the cloud-based Artifactory either, since they
> didn't provide much paperwork on security and compliance. Since a
> cloud-based repository will be handling companies' crown jewels, you might
> want to brace yourself for that, as your website is still a little sparse
> on any of that (understandably).
>
> Will any of your product be open source, because we... well... would
> really like that :)
>
> Still... exciting.
>
>
>
> Sander Verhagen
> [  san...@sanderverhagen.net  ]
>
> NOTICE: my e-mail address has changed. Please remove verha...@sander.com
> now and start using san...@sanderverhagen.net from now on. Please update
> your address book. T

CloudRepo - A Cloud Based Artifact Repository

2017-04-22 Thread Chris Shellenbarger
Hi everyone,

As this is the Maven Users ML, I thought it was appropriate to share a
new, 100% cloud based,  Artifact Repository that we've launched at
www.cloudrepo.io . As long time Maven users, we wanted something that was
fully managed and that we wouldn't have to maintain.  So, we built
CloudRepo for our own use and then decided to open it up for others to use.

I feel that a Cloud Based Artifact Repository can really make it easier for
Maven users to host their own private repos and further the adoption of
Maven itself, especially in small organizations that are just getting
started and who can't afford the time to operate their own servers.

I'd also like to solicit feedback from any member of this ML, since you are
our target audience.  As a thanks, I'd also like to offer any member of
this ML an extended trial of 60 days - that way you can have plenty of time
to kick the tires and see if it works for you (and hopefully let us know
what we need to add).  Once you sign up, just email me directly at
ch...@cloudrepo.io with your account info and I'll make it happen.

Thanks,
Chris Shellenbarger
Founder - CloudRepo


Re: Is there a way to make mvn default to Java 8?

2017-01-13 Thread Chris Barlock
Maybe...Depends on what you mean by "a module of that parent."  If you 
mean


  ...
  ...


then I think not.  I think it means that every POM that wants to use the 
same common stuff would include something like:


my.groupId
build.master
1.0.0.0-SNAPSHOT
../build.master
    

Chris




From:   Dean Schulze 
To: Maven Users List 
Date:   01/13/2017 01:14 PM
Subject:Re: Is there a way to make mvn default to Java 8?



That means making every new project a module of that parent.  Ugh.

On Fri, Jan 13, 2017 at 9:54 AM, Bernd Eckenfels 
wrote:

> Sorry when this answer is an over-simplification, but you can just
> configure it in a common parent. This is a quite typical case why you 
want
> shared company/team/product/buildenv parents.
>
> Gruss
> Bernd
> --
> http://bernd.eckenfels.net
>
>
>
>
> On Fri, Jan 13, 2017 at 5:51 PM +0100, "Dean Schulze" <
> dean.w.schu...@gmail.com> wrote:
>
>
>
>
>
>
>
>
>
>
> I would like to avoid having to add
>
>
> 1.8
> 1.8
>
>
> to every pom.xml.  Is there a global setting I can set in mvn to make 
Java
> 8 the default so I don't have to add this to every pom.xml?
>
>
>
>
>
>






Re: Is there a way to make mvn default to Java 8?

2017-01-13 Thread Chris Barlock
Most projects I've been on have a notion of a "parent" or "common" script 
(whether Ant, Maven or just about anything else).  With Maven, you could 
define a  POM that contains all the common stuff.  Of course, you 
would have to add the parent element to all child POMs, but if you ever 
want to change something in the parent (such as this Java version), you 
would only have to do it once.

Chris




From:   Dean Schulze 
To: users@maven.apache.org
Date:   01/13/2017 11:51 AM
Subject:Is there a way to make mvn default to Java 8?



I would like to avoid having to add


1.8
1.8


to every pom.xml.  Is there a global setting I can set in mvn to make Java
8 the default so I don't have to add this to every pom.xml?






Re: maven-compiler-plugin cannot find class files in WEB-INF/classes

2015-12-13 Thread Chris Barlock
Thanks Robert.  I opened some of the Apache jars that have been 
OSGi-enabled and they just put the classes and/or JARs in the root of the 
JAR and specify the appropriate packages on Import-Packages and 
Export-Package in the MANIFEST.  Your best practice is a little more 
"pure" in terms of generating a "proper" OSGi bundle -- at the expense of 
more more project to build the JAR for the bundle.

Chris

IBM Middleware
Research Triangle Park, NC
(919) 224-2240
Internet:  barl...@us.ibm.com



From:   "Robert Scholte" 
To: "Maven Users List" 
Date:   12/12/2015 07:07 AM
Subject:Re: maven-compiler-plugin cannot find class files in 
WEB-INF/classes



Hi Chris,

this isn't really a maven-compiler-plugin issue. This is how the java 
compiler (JAVA_HOME/bin/javac) works, or to be more precise: how the 
classpath works.
It expects that the packages are in the root of the archive, not in a 
subdirectory like WEB-INF/classes.

Best practice in this case: have a separate Maven module for the classes 
and include it as jar dependency to your war or generate an extra jar with 
 
your war containing the classes [1]. You'll get an extra 
webapp-1.0-SNAPSHOT-classes.jar. If you want to use this, add 
classes to your dependency.

thanks,
Robert

[1] 
http://maven.apache.org/plugins/maven-war-plugin/war-mojo.html#archiveClasses



Op Sat, 12 Dec 2015 01:19:11 +0100 schreef Chris Barlock 
:

> I used the maven-bundle-plugin to create a Web Application Bundle in 
> which
> the class files are in WEB-INF/classes and the MANIFEST.MF confirms 
this:
>
> Bundle-ClassPath: WEB-INF/classes
>
> If I try to use this WAB (packaged as a JAR) as a dependency for the
> maven-compiler-plugin, it can't find any of the class files in the JAR. 
> If
> I change the JAR such that the class files are in the root of the JAR
> rather than in WEB-INF classes, then maven-compiler-plugin is happy.  Is
> it possible to use WABs with the maven-compiler-plugin?
>
> Chris

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






maven-compiler-plugin cannot find class files in WEB-INF/classes

2015-12-11 Thread Chris Barlock
I used the maven-bundle-plugin to create a Web Application Bundle in which 
the class files are in WEB-INF/classes and the MANIFEST.MF confirms this:

Bundle-ClassPath: WEB-INF/classes

If I try to use this WAB (packaged as a JAR) as a dependency for the 
maven-compiler-plugin, it can't find any of the class files in the JAR. If 
I change the JAR such that the class files are in the root of the JAR 
rather than in WEB-INF classes, then maven-compiler-plugin is happy.  Is 
it possible to use WABs with the maven-compiler-plugin?

Chris



Maven 3.0.5 eclipse:eclipse reports a BULD SUCCES while dependency does not exist.

2013-04-29 Thread Chris de Vries
I have the following dependency in my pom but this version does not exist
in our repository. Maven then tries to download it from
http://repo1.maven.org/ where of course this package also does not exists.
But Maven reports BUILD SUCCESS while there are unresolved packages. Is
this normal behavior or is this a bug?

I spent some time to figure out that I was using a wrong version. If Maven
had given any sort of warning it would have saved me some time.
So if this is by design then it would be a nice feature to have a warning
of some sort.




   nl.cjib.clients
   zakenregister-client
   8.3.0.0


[INFO] [INFO]

[INFO] Building dwangproforma-service-war 6.0.0.1-SNAPSHOT [INFO]

[INFO] [INFO] >>> maven-eclipse-plugin:2.8:eclipse (default-cli) @
dwangproforma-service-war >>> [INFO] [INFO] <<<
maven-eclipse-plugin:2.8:eclipse (default-cli) @ dwangproforma-service-war
<<< [INFO] [INFO] --- maven-eclipse-plugin:2.8:eclipse (default-cli) @
dwangproforma-service-war --- [WARNING] The POM for
org.apache.maven:maven-repository-metadata:jar:2.0 is missing, no
dependency information available [INFO] Adding support for WTP version R7.
[INFO] Using Eclipse Workspace: null [INFO] Adding default classpath
container: org.eclipse.jdt.launching.JRE_CONTAINER Downloading:
http://repo1.maven.org/maven2/nl/cjib/clients/zakenregister-client/8.3.0.0/zakenregister-client-8.3.0.0.pom[INFO]
File
D:\work\java\dwangproforma-service-accelerate\dwangproforma-service-war\.project
already exists. Additional settings will be preserved, run mvn
eclipse:clean if you want old settings to be removed. [INFO] Wrote Eclipse
project for "dwangproforma-service-war" to
D:\work\java\dwangproforma-service-accelerate\dwangproforma-service-war.
[INFO] [INFO]

[INFO] BUILD SUCCESS [INFO]

[INFO] Total time: 24.156s [INFO] Finished at: Mon Apr 29 10:53:35 CEST
2013 [INFO] Final Memory: 6M/18M [INFO]


Settings look like this   (I placed some xxx's ;this is not the original
file but it should not matter for this post)


http://maven.apache.org/SETTINGS/1.0.0"; xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="
http://maven.apache.org/SETTINGS/1.0.0
http://maven.apache.org/xsd/settings-1.0.0.xsd";>

D:\work\.m2\repository



nexus



false

cjibcentral
libs-release
http://xxx:8080/nexus/content/repositories/releases




snapshots
libs-snapshot
http://xxx:8080/nexus/content/repositories/snapshots






false

central
plugins-release
http://xx:8080/nexus/content/repositories/releases



snapshots
plugins-snapshot
http://xxx:8080/nexus/content/repositories/snapshots






jbos


jboss-public-repository-group
JBoss Public Maven Repository Group
https://repository.jboss.org/nexus/content/groups/public/
default

true
never


true
never



 

jboss-public-repository-group
JBoss Public Maven Repository Group
https://repository.jboss.org/nexus/content/groups/public/
default

true
never


true
never







nexus





true
http
xx.xxx.nl
8080
xx
xx
*.cjib.minjus.nl







Re: Dependencies that should not be on the classpath

2012-10-15 Thread Chris Conroy
On Mon, Oct 15, 2012 at 12:19 PM, Chris Conroy  wrote:

> On Fri, Oct 12, 2012 at 11:22 PM, Barrie Treloar wrote:
>
>> If you are just serving it from jetty you could use
>>
>> http://maven.apache.org/plugins/maven-dependency-plugin/examples/copying-artifacts.html
>> to copy the aggregate jar into the web directory?
>>
>> Trying to wedge dependencies into this round hole may not be your best
>> option.
>
>
> I happen to be using the unpack option to stuff it into the child jar at
> the moment, but in either case don't I still need to declare it as a
> dependency in order to use unpack or copy from a subproject? Otherwise, I
> won't have any guarantee that Maven has built the javadoc by the time it
> gets to copying or unpacking it since it's not part of the dependency graph.
>
> It's not so much that I'm trying to wedge it into a round hole, but I need
> an artifact to be built in the aggregator and to use it in the child. It
> happens that this isn't a java artifact. If it's valid to do that without
> declaring that dependency, then perhaps that fixes my problem (I'll
> experiment with it), but hiding that information from the dependency graph
> seems like I'd be asking for a successful build based on a lucky ordering
> of the dependency graph.
>

Using the dependency implicitly as you suggest does seem to fix this issue
(and another related one I hit with the maven release plugin). I'm not sure
how future-proof it is to rely on the artifact from the aggregator project
being built before one of its sub-modules, but this does look like the path
of least resistance for the moment.


-- 
Chris Conroy


Re: Dependencies that should not be on the classpath

2012-10-15 Thread Chris Conroy
On Fri, Oct 12, 2012 at 11:22 PM, Barrie Treloar  wrote:

> If you are just serving it from jetty you could use
>
> http://maven.apache.org/plugins/maven-dependency-plugin/examples/copying-artifacts.html
> to copy the aggregate jar into the web directory?
>
> Trying to wedge dependencies into this round hole may not be your best
> option.


I happen to be using the unpack option to stuff it into the child jar at
the moment, but in either case don't I still need to declare it as a
dependency in order to use unpack or copy from a subproject? Otherwise, I
won't have any guarantee that Maven has built the javadoc by the time it
gets to copying or unpacking it since it's not part of the dependency graph.

It's not so much that I'm trying to wedge it into a round hole, but I need
an artifact to be built in the aggregator and to use it in the child. It
happens that this isn't a java artifact. If it's valid to do that without
declaring that dependency, then perhaps that fixes my problem (I'll
experiment with it), but hiding that information from the dependency graph
seems like I'd be asking for a successful build based on a lucky ordering
of the dependency graph.

-- 
Chris Conroy


RE: How can I recursively build -SNAPSHOT dependencies present in the filesystem but outside the reactor?

2012-06-15 Thread Chris Beach
Thanks Thorsten and Ron,

Some additional background:

We're a team of about 25 developers, and 100 projects/modules. All developers 
are familiar with the whole suite of apps, and move freely between projects. 
They want to be able to work on several projects locally without taking in 
unwanted -SNAPSHOT changes from our repo (Artifactory).

In our case, developers simply want to build apps together (usually two or 
three together depending on the scope of the development task) to ensure the 
build accurately reflects the code checked out in the developer's workspace. 

We have Jenkins, which builds our projects on SCM commit, and builds 
dependents. This isn't applicable for individual developer workspace builds.

Ron - the burden of checking out the whole workspace isn't a big deal for us, 
and we still "peg" individual dependencies to release versions as necessary. My 
original question concerned workspace builds where we intend to use limited 
number of -SNAPSHOT dependencies to trigger a  selectively-recursive build 
across multiple projects.

I am currently building a plugin "maven-r-plugin" which internally uses 
Maven.execute(MavenExecutionResult) and a file-based index of in-house 
artifacts to prototype a solution to this problem. Suggestions of better 
solutions would be welcome.

Thanks,

Chris

This email and any attachments contain CONFIDENTIAL information which may be 
legally privileged. If this 
communication constitutes a financial promotion, it is directed only at persons 
who are professional clients or 
eligible counterparties (as defined under the FSA rules).  The information, 
which is provided on a non-reliance 
basis, may be subject to verification or amendment.  No representation or 
warranty is made as to its accuracy or 
completeness. Unless expressly stated otherwise, this email is neither an offer 
to sell nor a solicitation of any 
offer to buy an interest in any fund or other investment vehicle sponsored or 
managed by Aspect Capital Limited 
(Aspect Funds). Any such offer or solicitation would be made only by way of the 
final offering documents of such 
Aspect Fund (which should be considered carefully before any investment 
decision is made) and only in such 
jurisdictions where, and to such persons to whom, it would be lawful to do so. 
Past performance is not necessarily 
indicative of future returns. Email transmission cannot be guaranteed to be 
secure or error free.  Subject to 
applicable law, Aspect (or its service providers) may intercept, monitor, 
review and retain e-communications 
travelling through its networks/systems. By messaging with Aspect you consent 
to the foregoing.  Aspect Capital 
Limited is authorised and regulated by the Financial Services Authority and is 
a company registered in England and Wales 
under registered no. 3491169. Its registered office is at Nations House, 103 
Wigmore Street, London W1U 1QS. ASPECT, 
ASPECT CAPITAL, the ASPECT CAPITAL device and ASPECT CAPITAL:THE SCIENCE OF 
INVESTMENT are registered trademarks of 
Aspect Capital Limited. © Aspect Capital Limited 2012. All rights reserved. For 
more information, go to www.aspectcapital.com.

How can I recursively build -SNAPSHOT dependencies present in the filesystem but outside the reactor?

2012-06-15 Thread Chris Beach
I have two projects as follows, in neighbouring directories on the filesystem:

* project_a (-SNAPSHOT)
* project_b (-SNAPSHOT, depends on project_a)

I'd like to build project_b and for Maven to discover that project_a exists on 
the filesystem and thus build it rather than look in the local repo for its 
artifact.

I could build these within an aggregator and use the reactor to select 
project_b i.e.

mvn --projects project_b [goal]

However, this is problematic because

* this two-project example is a simplification of my real build, which consists 
of dozens of projects, and I don't want to have to maintain an aggregator 
project that lists all of them.
* I only want to recursively build -SNAPSHOT dependencies

Is there a neat way I could get Maven to perform a recursive build that looks 
on the filesystem to find -SNAPSHOT dependency projects and builds them?
I'm familiar with Maven plugin development, but haven't yet found any clues 
toward a solution in the Maven / Aether documentation.

Chris Beach

This email and any attachments contain CONFIDENTIAL information which may be 
legally privileged. If this 
communication constitutes a financial promotion, it is directed only at persons 
who are professional clients or 
eligible counterparties (as defined under the FSA rules).  The information, 
which is provided on a non-reliance 
basis, may be subject to verification or amendment.  No representation or 
warranty is made as to its accuracy or 
completeness. Unless expressly stated otherwise, this email is neither an offer 
to sell nor a solicitation of any 
offer to buy an interest in any fund or other investment vehicle sponsored or 
managed by Aspect Capital Limited 
(Aspect Funds). Any such offer or solicitation would be made only by way of the 
final offering documents of such 
Aspect Fund (which should be considered carefully before any investment 
decision is made) and only in such 
jurisdictions where, and to such persons to whom, it would be lawful to do so. 
Past performance is not necessarily 
indicative of future returns. Email transmission cannot be guaranteed to be 
secure or error free.  Subject to 
applicable law, Aspect (or its service providers) may intercept, monitor, 
review and retain e-communications 
travelling through its networks/systems. By messaging with Aspect you consent 
to the foregoing.  Aspect Capital 
Limited is authorised and regulated by the Financial Services Authority and is 
a company registered in England and Wales 
under registered no. 3491169. Its registered office is at Nations House, 103 
Wigmore Street, London W1U 1QS. ASPECT, 
ASPECT CAPITAL, the ASPECT CAPITAL device and ASPECT CAPITAL:THE SCIENCE OF 
INVESTMENT are registered trademarks of 
Aspect Capital Limited. © Aspect Capital Limited 2012. All rights reserved. For 
more information, go to www.aspectcapital.com.

Re: Eclipse Plugin and Project Links to Independent Projects

2012-06-05 Thread Chris Redekop
On Mon, Jun 4, 2012 at 8:08 PM, Barrie Treloar  wrote:
> On Tue, Jun 5, 2012 at 3:19 AM, Chris Redekop  wrote:
>> (How) can I use the Eclipse plugin to create Eclipse project files
>> that refer to an dependency A) with an Eclipse project link instead of
>> B) as a JAR in the repo?  The dependency in this case is A) NOT a
>> module of the parent project (where 'mvn eclipse:eclipse' is executed)
>> and B) NOT built with Maven.
>>
>> Project links work well between modules in a multi-module project, and
>> the -Declipse.workspace property provides some related functionality;
>> but its workspace scan only seems to recognize other Maven projects.
>
> You can't.
Thanks for the confirmation, Barrie.  I figured that this is currently
not supported, but part of me wondered if I just hadn't found the
right (combination of) options.

>
> mvn eclipse:eclipse will automatically configure the .classpath to
> reference any dependency that is already configured in Eclipse and is
> a Maven project.
>
> If you think about it, how do you expect eclipse:eclipse to work out
> that your non-Maven project just happens to be the same as one of your
> Maven dependencies?

The most straight-forward way that I can think of is a new plugin
configuration: a map of dependency -> project.  When the Eclipse
plugin handles a dependency, in can first check the map.  If there is
an entry, then the specified project is used; otherwise, the JAR is
used.

The old Maven 1 plugin had something like this, in the form of a "project" flag:

http://maven.apache.org/maven-1.x/plugins/eclipse/faq.html#project_dependencies

>
>> I am looking for something like -Declipse.workspace but more direct
>> and fully contained within the plugin configuration: a map between
>> dependencies and Eclipse projects that says, "when you are generating
>> Eclipse project files and hit this dependency, refer to this Eclipse
>> project instead of the artifact's JAR in the repo."
>>
>> The use case here is migrating one of an organization's existing
>> builds to Maven while NOT migrating ALL an organization's builds.  We
>> currently have a mix of Maven/non-Maven builds cohabitating in the
>> same Eclipse workspace.  In this environment, dependencies from
>> Maven-built projects to non-Maven-built projects appear twice:
>> 1) as a JAR dependency and
>> 2) as an Eclipse project where active development takes place.
>>
>> The duplicate project/class definition is causing confusion.
>
> You have some of options:
> 1) Dont use mvn eclipse:eclipse
> 2) Use mvn eclipse:eclipse to "kick-start" the .classpath creation and
> then manually tweak this to work with the non-Maven project.  You then
> check-in the eclipse files: .project, .classpath into your source
> control.
Both of these run counter to DRY: maintaining dependencies in POMs and
Eclipse project files.  Do not want.

> 3) Migrate your non-Maven builds to Maven.  If these are Ant builds it
> should be a simple process to create a dumb Maven wrapper that just
> calls out to Ant to do the build.  This will give you a pom.xml that
> specifies the correct dependency coordinates for mvn eclipse:eclipse
> to then use.  Then when you are ready to migrate these projects, you
> take out the Ant stuff and replace it with the equivalent Maven
> plugins.
>
> I would recommend 3).
The use case of a mixed-build environment will be valid into the
foreseeable future.  3) is not an option.

A fourth option would enhance the plugin to support a map
configuration as described here.  It *seems* straightforward to me at
this point, but the history of a similar feature disappearing from the
Maven 1 plugin makes me wonder: maybe this is a Bad Idea?

Comments?


> -
> 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



Eclipse Plugin and Project Links to Independent Projects

2012-06-04 Thread Chris Redekop
(How) can I use the Eclipse plugin to create Eclipse project files
that refer to an dependency A) with an Eclipse project link instead of
B) as a JAR in the repo?  The dependency in this case is A) NOT a
module of the parent project (where 'mvn eclipse:eclipse' is executed)
and B) NOT built with Maven.

Project links work well between modules in a multi-module project, and
the -Declipse.workspace property provides some related functionality;
but its workspace scan only seems to recognize other Maven projects.

I am looking for something like -Declipse.workspace but more direct
and fully contained within the plugin configuration: a map between
dependencies and Eclipse projects that says, "when you are generating
Eclipse project files and hit this dependency, refer to this Eclipse
project instead of the artifact's JAR in the repo."

The use case here is migrating one of an organization's existing
builds to Maven while NOT migrating ALL an organization's builds.  We
currently have a mix of Maven/non-Maven builds cohabitating in the
same Eclipse workspace.  In this environment, dependencies from
Maven-built projects to non-Maven-built projects appear twice:
1) as a JAR dependency and
2) as an Eclipse project where active development takes place.

The duplicate project/class definition is causing confusion.

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



Re: How can I use a Maven plugin to change Eclipse WebSphere Deployment Classloader mode to PARENT_LAST

2012-03-28 Thread Chris Harris
I know it was in the OP.  I edited the OP and removed that info upon
discovery.

Good to know about m2e and eclipse:rad.  Someone else also PM'ed me (which
is fine but another reason I hope to have my info/disclaimer removed from
the reply) and provided me with another alternative (thanks to Datta):

" http://maven.40175.n5.nabble.com/file/n5601870/RAD_m2e.pdf RAD_m2e.pdf You
have to do everything what is mentioned in the attached document which I
believe you have. Then as usual generate the ibmconfig files by  right click
-> JAVA EE -> generate deployment disctriptor.

You then have to copy the generated files into
src/main/application/META-INF. 

You will have to add the following line in the
“org.eclipse.wst.common.component”  file and everything works like a charm.

Changing the “org.eclipse.wst.common.component” file will let maven + RAD
know where to go and find the CLassLoader information. Then you can go and
change the  class loader to what you want . whether it is parent_last or
parent_first. 

By not changing it m2eclipse does not know and then evertime you do a clean
it will over ride it."

--
View this message in context: 
http://maven.40175.n5.nabble.com/How-can-I-use-a-Maven-plugin-to-change-Eclipse-WebSphere-Deployment-Classloader-mode-to-PARENT-LAST-tp4727822p5601870.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 use a Maven plugin to change Eclipse WebSphere Deployment Classloader mode to PARENT_LAST

2012-03-28 Thread Chris Harris
Nabble didn't ever email me that I had replies to my post, so apologies to
you two for never responding until now.  paulv, Could you please remove my
Email info from your reply?

Anyway, I happened to revisit this issue recently since I first posted.

Eclipse/RAD now has better Maven support via m2e, which is what I was using
within RAD 8.0.x.  This WTP/Maven improvement is what prompted me to revisit
my post's problem, which seems to be resolved now.

I happened to visit the page for the eclipse:rad plugin, and, lo and behold,
the most recent version is v2.9, which includes:

classpathContainersLast:
Put classpath container entries last in eclipse classpath configuration.
Note that this behaviour, although useful in situations were you want to
override resources found in classpath containers, will made JRE classes
loaded after 3rd party jars, so enabling it is not suggested.

Type: boolean
Since: 2.9
Required: No
Expression: ${eclipse.classpathContainersLast}
Default: false

Today is a good day :-)

 - Chris

--
View this message in context: 
http://maven.40175.n5.nabble.com/How-can-I-use-a-Maven-plugin-to-change-Eclipse-WebSphere-Deployment-Classloader-mode-to-PARENT-LAST-tp4727822p5601450.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: Running ProGuard before signing a jar?

2011-03-31 Thread Chris von See

Hi Jörg,

Thanks... My original plan to obfuscate the class before unit testing  
didn't work out very well because I ended up not obfuscating almost  
all of the class and member names in order to get the tests to  
compile, so I ended up moving the proguard plugin execution to the  
package phase after the jar is created and moved to the jarsigner  
plugin at that time...


Cheers
Chris




On Mar 31, 2011, at 1:20 PM, Jörg Schaible wrote:


Hi Chris,

Chris von See wrote:


I'm a new user of Maven.  I have a POM that is creating a signed jar
using Maven 3.0.2 and maven-jar-plugin - that part seems to be  
working

well, but now I want to integrate ProGuard in order to obfuscate the
code before signing the JAR.  Ideally I'd like to obfuscate the code
before the Maven test phase so that tests will run on the obfuscated
code, but the ProGuard docs seem to imply that I can only obfuscate
the code after it's been packaged into a JAR.  Has anybody run
ProGuard on the pre-test-phase compiled classes, and if so how did  
you

set up your POM and ProGuard configuration?

If it's true that I can only obfuscate a JAR then I'm not clear on  
how

I would insert a ProGuard goal in between the point at which the JAR
to be signed is created and the actual signing process - the docs for
the proguard-maven-plugin aren't quite clear on how that's done.   
Do I
need to split the process into a jar creation step using the maven- 
jar-

plugin, a ProGuard step and then a signing step using the maven-
jarsigner-plugin? and if so, how can I set this up so that the goals
run in this order within the package phase without explicitly
specifying them on the command line?


note, that signing a jar with the jar plugin is deprecated. You  
should use

the jarsigner plugin instead. Therefore it should not be a problem to
execute another plugin before the resulting jar is signed.

- 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



Re: Running ProGuard before signing a jar?

2011-03-30 Thread Chris von See
Manfred, this was a huge help - thanks!  I totally missed the part in  
the ProGuard docs that says you can specify a directory name in the  
 parameter...


I seem to have ProGuard running, although the most recent version  
(4.6) isn't in the Maven repos so I had to specify a dependency on  
release 4.4 until I can get 4.6 into my local repo.  I've included my  
final plugin definition below - note that this is for Mac OS X 10.5 so  
I needed to specify a different JVM runtime JAR that the "rt.jar" seen  
in the proguard-maven-plugin examples.



  com.pyx4me
  proguard-maven-plugin
  2.0.4
  
  
  process-classes
  proguard
   
  
  
   4.4
   true
   classes
   ${basedir}/src/main/resources/build/ 
proguard/plugins-convert-latin1.pro

   
	/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/ 
Contents/Classes/classes.jar





net.sf.proguard
proguard
4.4
runtime
    
    


Cheers
Chris



On Mar 30, 2011, at 4:12 PM, Manfred Moser wrote:


I'm a new user of Maven.  I have a POM that is creating a signed jar
using Maven 3.0.2 and maven-jar-plugin - that part seems to be  
working

well, but now I want to integrate ProGuard in order to obfuscate the
code before signing the JAR.  Ideally I'd like to obfuscate the code
before the Maven test phase so that tests will run on the obfuscated
code, but the ProGuard docs seem to imply that I can only obfuscate
the code after it's been packaged into a JAR.  Has anybody run
ProGuard on the pre-test-phase compiled classes, and if so how did  
you

set up your POM and ProGuard configuration?

If it's true that I can only obfuscate a JAR then I'm not clear on  
how

I would insert a ProGuard goal in between the point at which the JAR
to be signed is created and the actual signing process - the docs for
the proguard-maven-plugin aren't quite clear on how that's done.   
Do I
need to split the process into a jar creation step using the maven- 
jar-

plugin, a ProGuard step and then a signing step using the maven-
jarsigner-plugin? and if so, how can I set this up so that the goals
run in this order within the package phase without explicitly
specifying them on the command line?


In the android world this is exactly what you need to do too.. and I  
wrote

some blog posts that explain the details and link to a fully working
example implementation.

http://www.simpligility.com/2010/12/proguard-for-android-with-maven-without-shooting-yourself-in-the-foot/

http://www.simpligility.com/2010/12/hints-for-using-proguard-on-your-android-app/

That should explain it all.

manfred
http://simpligility.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



Running ProGuard before signing a jar?

2011-03-30 Thread Chris von See
I'm a new user of Maven.  I have a POM that is creating a signed jar  
using Maven 3.0.2 and maven-jar-plugin - that part seems to be working  
well, but now I want to integrate ProGuard in order to obfuscate the  
code before signing the JAR.  Ideally I'd like to obfuscate the code  
before the Maven test phase so that tests will run on the obfuscated  
code, but the ProGuard docs seem to imply that I can only obfuscate  
the code after it's been packaged into a JAR.  Has anybody run  
ProGuard on the pre-test-phase compiled classes, and if so how did you  
set up your POM and ProGuard configuration?


If it's true that I can only obfuscate a JAR then I'm not clear on how  
I would insert a ProGuard goal in between the point at which the JAR  
to be signed is created and the actual signing process - the docs for  
the proguard-maven-plugin aren't quite clear on how that's done.  Do I  
need to split the process into a jar creation step using the maven-jar- 
plugin, a ProGuard step and then a signing step using the maven- 
jarsigner-plugin? and if so, how can I set this up so that the goals  
run in this order within the package phase without explicitly  
specifying them on the command line?



Thanks,
Chris





Re: Debugging maven-dependency-plugin

2011-03-17 Thread Chris

On 3/17/2011 7:48 AM, Marc Rohlfs wrote:

If can't find useful information in the debug output, it's getting
somewhat hard to analyse. In the last instance You could try to debug it
using the IDE:
1. Download the sources of the dependency plugin version Your're using
from the SVN and integrate/import it in Your IDE.
2. Set a debug break point at the begining of the execute() method in
the CopyDependenciesMojo class.
3. Start Your build using the command 'mvnDebug' (instead of 'mvn').
Maven now waits for a remote debugger to connect until it starts the build.
4. In Your IDE, start the remote debugger for the
maven-dependency-plugin project (using port 8000). The execution of the
Maven build should stop at the break point and You can start debugging ...


BTW: I think I have an idea why the servlet-api-2.3.jar isn't excluded
when copying the dependencies. Try using a dot instead of a dash:
javax.servlet


Excellent -- replacing the dash with a dot did it. Looks like I don't 
have to debug it at all. Though I'm hoping that other mystery jars 
aren't showing up as well...



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



Re: ZIP and UNZIP the code source in another project

2011-03-17 Thread Chris

On 3/17/2011 9:08 AM, Nguyen Tien Luong wrote:

 Hi maven's users,

Maybe the title is not understandable enough, here is my example:

I have PROJECT-A which contains only JSP files.

For each PROJECT-B which depends on PROJECT-A, I want that maven go and get the
JSP files in PROJECT-A and put in PROJECT-B with same folder's structure.

So I don't know if with maven, we have somethings to for example ZIP all JSP
file of PROJECT-A. When we have a dependency of PROJECT-A, maven will get this
compressing, UNZIP and copy in PROJECT-B

Let me know if we have another way to do this kind of work.


We have a similar need. We do it outside maven with a launch script that 
copies everything when we launch project B.


We have another case where a lot of files need to be copied from one 
project to another at build time. We do it using Ant. You can call Ant 
from within maven. Ant has good tools for zipping and unzipping.


Another way to do it is by creating your own maven plugin and doing it 
in Java.



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



Debugging maven-dependency-plugin

2011-03-16 Thread Chris

I've having an odd problem with the maven dependency plugin.

I'm using it to copy all the jars upon which my app depends. It's 
copying one particular jar, servlet-api-2.3.jar, which it shouldn't.


How do I figure out *why* it's copying that jar?

I've already tried running mvn dependency:tree from the command line, 
and that particular jar does not show up in the output.


I've also tried to exclude it explicitly using :


  package
  
copy-dependencies
  
  
compile
javax-servlet
target/lib
  


But it still gets copied.

I also enabled debug output during the maven build, but the dependency 
plugin showed nothing useful.


How do I debug this?


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



Re: Not finding artifact in local repo

2011-03-16 Thread Chris

On 3/15/2011 5:39 PM, Benjamin Bentmann wrote:

Chris wrote:


The third party jar that it's looking for does not exist in maven
central; it's a proprietary app. But it does exist in the proper place
in my local repo, with the right version number and everything (I've
triple checked).
[...]
My settings.xml is empty, if that's relevant.


Could be
https://cwiki.apache.org/confluence/display/MAVEN/Maven+3.x+Compatibility+Notes#Maven3.xCompatibilityNotes-ResolutionfromLocalRepository



Thank you. That was the problem. I had had a setting.xml that pointed to 
an internal repo at my company, and then cleared it out. Maven puts a 
file named _maven.repositories in with the jar file in the local repo 
that keeps track of where the jar came from. If the remote repo isn't 
available, the build fails. Deleting _maven.repositories solved the problem.


This seems like an extrordinarily bad design. If a remote system goes 
down, you can't do a build? If you have an internal repo at work, and 
you take your laptop home, you can't do a build?






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



Not finding artifact in local repo

2011-03-15 Thread Chris
I'm getting the following error. Maven claims it can't find a jar file 
which does in fact exist in my local .m2/repository directory:


Build errors for myapp; 
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to 
execute goal on project myapp-core: Could not resolve dependencies for 
project com.myapp:myapp-core:jar:0.1-SNAPSHOT: Could not find artifact 
com.somethirdpartyapp:somethirdpartyartifact:jar:2.6.1 in central 
(http://repo1.maven.org/maven2)


The third party jar that it's looking for does not exist in maven 
central; it's a proprietary app. But it does exist in the proper place 
in my local repo, with the right version number and everything (I've 
triple checked).


Why isn't maven finding it locally? It's finding a ton of other jar 
files without a problem.


My settings.xml is empty, if that's relevant.



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



RE: What is the right way to create a patch jar file?

2010-11-12 Thread Chris Helck
Sorry, I was not clear. I don't mean patchng source code.

Suppose we create foo_1.2.3.jar and it is in production. A bug is found.
Normally we'd fix the bug, create a new release called foo_1.2.4.jar,
test it, and deploy it to production. But, my operations group would, in
certain circumstances, prefer a patch jar file containing just the
classes modified by the bug fix. The patch jar would be called
foo_1.2.3.p1.jar and would be much smaller then the 1.2.4 jar.
Operations would deploy it so that it goes in the front of the
application's classpaths. 

I think that this patch stuff is a deployment issue and not a build
issue. I would like to leave Maven out of this entirely if I can, I
think what I would really like is a utility that takes two jar files and
creates a new jar file just containing those classes that are different.
I'm not sure if such a thing exists because class files have  creation
timestamps embedded within them that are different for each build.

Hope it's clearer now.
-Chris Helck

-Original Message-
From: Wendy Smoak [mailto:wsm...@gmail.com] 
Sent: Friday, November 12, 2010 12:28 PM
To: Maven Users List
Subject: Re: What is the right way to create a patch jar file?

On Fri, Nov 12, 2010 at 12:18 PM, Chris Helck 
wrote:
> I need to support patching: creating a jar file that has just those 
> classes modified since a base line. Is Maven the right tool to do
this?
> If so how? There is a patch plugin for Maven1, but nothing for Maven2.

There is this... https://maven.apache.org/plugins/maven-patch-plugin/
(not sure if that has the same functionality as the Maven 1 plugin
though.)

Is this your code?  If so I'd branch just that module, say from the
2.5.6 release, make the change, and release version 2.5.6.1 of that jar.

--
Wendy

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


**
This communication and all information (including, but not limited to,
 market prices/levels and data) contained therein (the "Information") is
 for informational purposes only, is confidential, may be legally
 privileged and is the intellectual property of ICAP plc and its affiliates
 ("ICAP") or third parties. No confidentiality or privilege is waived or
 lost by any mistransmission. The Information is not, and should not
 be construed as, an offer, bid or solicitation in relation to any
 financial instrument or as an official confirmation of any transaction.
 The Information is not warranted, including, but not limited, as to
 completeness, timeliness or accuracy and is subject to change
 without notice. ICAP assumes no liability for use or misuse of the
 Information. All representations and warranties are expressly
 disclaimed. The Information does not necessarily reflect the views of
 ICAP. Access to the Information by anyone else other than the
 recipient is unauthorized and any disclosure, copying, distribution or
 any action taken or omitted to be taken in reliance on it is prohibited. If
 you receive this message in error, please immediately delete it and all
 copies of it from your system, destroy any hard copies of it and
 notify the sender.
**



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



What is the right way to create a patch jar file?

2010-11-12 Thread Chris Helck
I need to support patching: creating a jar file that has just those
classes modified since a base line. Is Maven the right tool to do this?
If so how? There is a patch plugin for Maven1, but nothing for Maven2. 

Thanks,
C. Helck


**
This communication and all information (including, but not limited to,
 market prices/levels and data) contained therein (the "Information") is
 for informational purposes only, is confidential, may be legally
 privileged and is the intellectual property of ICAP plc and its affiliates
 ("ICAP") or third parties. No confidentiality or privilege is waived or
 lost by any mistransmission. The Information is not, and should not
 be construed as, an offer, bid or solicitation in relation to any
 financial instrument or as an official confirmation of any transaction.
 The Information is not warranted, including, but not limited, as to
 completeness, timeliness or accuracy and is subject to change
 without notice. ICAP assumes no liability for use or misuse of the
 Information. All representations and warranties are expressly
 disclaimed. The Information does not necessarily reflect the views of
 ICAP. Access to the Information by anyone else other than the
 recipient is unauthorized and any disclosure, copying, distribution or
 any action taken or omitted to be taken in reliance on it is prohibited. If
 you receive this message in error, please immediately delete it and all
 copies of it from your system, destroy any hard copies of it and
 notify the sender.
**



Re: Maven SQL plugin

2010-10-27 Thread Chris Odney
Yup, I would like to do that. However, I settled for an alternative for my
project.

If someone could help me with a starting point in the code(Am I asking for
too much? ) I will take it from there.

Thanks,
Chris.

On Wed, Oct 20, 2010 at 2:25 AM, Wayne Fay  wrote:

> > In this case, I cannot use the  as the ordering mechanism is
> > alphabetical.  seems a good choice however I cannot specify
> > wildcards :(
>
> Have you considered simply modifying the Maven SQL plugin to add the
> functionality you require, and then offering your changes back for
> inclusion in a future release of the plugin?
>
> Adding a feature like you're proposing should be relatively simple, I'd
> assume.
>
> Wayne
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


Re: Maven SQL plugin

2010-10-18 Thread Chris Odney
Folks,

Can I specify wildcards like "c:\SQLscripts\create\*.sql" for the 
attribute within ?


We have our db scripts in separate folders like create, upgrade,
constraints, triggers etc.

As the name says create folders has sql files that have db script to create
tables, upgrade has scripts to alter the tables incase we add/remove any
columns etc, constraints folder has sql scripts to add foreign key, indexes
etc.

Sql files within a particular folder can be executed in any order, it does
not matter. However, the folders must be picked up in a predefined order,
eg: create, upgrade, constraints triggers etc.

In this case, I cannot use the  as the ordering mechanism is
alphabetical.  seems a good choice however I cannot specify
wildcards :(

Any help?

Thanks,
Chris.



On Fri, Oct 15, 2010 at 3:48 AM, John Singleton wrote:

> http://jira.codehaus.org/browse/MSQL-53
>
> addresses exactly this issue...
>
> On Thu, Oct 14, 2010 at 5:12 PM, John Singleton  >wrote:
>
> > Hi Chris,
> >
> > It has been my experience of ~2.5 years that the order is maintained with
> a
> >  list, though I see nothing in the plugin docs that specifically
> > mentions this, nor have I had the time (or inclination) to read the
> > source...  We have a relatively small number of sql files, 4 in one
> place, 2
> > in another, so it is not too bad for us to list them all by name.  FWIW,
> we
> > are using version 1.4 of the plugin.
> >
> > Cheers,
> > John
> >
> >
> > On Thu, Oct 14, 2010 at 10:27 AM, Chris Odney  >wrote:
> >
> >> Hi John,
> >>
> >> I never noticed the option of  as against 
> >>
> >> My understanding is the list of files specified using  are
> >> executed in the order they are specified whereas it is not so in the
> case
> >> of
> >> (this is when orderFile attribute is not specified). Am I
> wrong?
> >>
> >> Thanks for the reply,
> >> Chris.
> >>
> >> On Thu, Oct 14, 2010 at 7:33 PM, John Singleton  >> >wrote:
> >>
> >> > Hi Chris,
> >> >
> >> > #2 is probably the best to ensure repeatability in the order you want.
> >>  It
> >> > also prevents inadvertent re-ordering if a new sql file is introduced
> >> into
> >> > the sql directory.  In our project, we use srcFiles rather than
> fileset:
> >> >
> >> > 
> >> >[file1]
> >> >[file2}
> >> >...
> >> > 
> >> >
> >> > HTH,
> >> > John Singleton
> >> >
> >> > On Thu, Oct 14, 2010 at 9:25 AM, Chris Odney 
> >> > wrote:
> >> >
> >> > > Hi,
> >> > >
> >> > > I am facing some problem in ordering the sql execution.
> >> > >
> >> > > We have one sql script file for each table under one directory. Ex:
> >> There
> >> > > is
> >> > > user.sql and role.sql in the directory c:\SqlScripts. We are using
> the
> >> > sql
> >> > > maven plugin to execute these sql files.
> >> > >
> >> > > The role table has a Foriegn key to the user table and the execution
> >> is
> >> > > failing because the plugin is trying to execute the role.sql before
> >> > > user.sql. I cannot use the  orderfile attribute as we specify the
> >> > 
> >> > > as c:\SqlScripts\*.sql.
> >> > >
> >> > > How do I overcome this problem?
> >> > >
> >> > > I see 2 solutions:
> >> > >
> >> > > 1) Merge all scripts into one file in the creation order, the script
> >> to
> >> > > create role comes after the script to create user.
> >> > >
> >> > > 2)Remove the * wildcard and specify each file in the 
> >> attribute
> >> > > in
> >> > > the order of execution.
> >> > >
> >> > > 3)Number the name of the files according to the execution order ex:
> >> > > 1_user.sql, 2_role.sql and use the 'ascending' orderfile
> attribute(not
> >> > sure
> >> > > if this would work though, as the ordering may not be applied)
> >> > >
> >> > > Any more elegant solutions?
> >> > >
> >> > > Thank you,
> >> > > Chris.
> >> > >
> >> >
> >>
> >
> >
>


Re: Maven SQL plugin

2010-10-14 Thread Chris Odney
Hi John,

I never noticed the option of  as against 

My understanding is the list of files specified using  are
executed in the order they are specified whereas it is not so in the case of
(this is when orderFile attribute is not specified). Am I wrong?

Thanks for the reply,
Chris.

On Thu, Oct 14, 2010 at 7:33 PM, John Singleton wrote:

> Hi Chris,
>
> #2 is probably the best to ensure repeatability in the order you want.  It
> also prevents inadvertent re-ordering if a new sql file is introduced into
> the sql directory.  In our project, we use srcFiles rather than fileset:
>
> 
>[file1]
>[file2}
>...
> 
>
> HTH,
> John Singleton
>
> On Thu, Oct 14, 2010 at 9:25 AM, Chris Odney 
> wrote:
>
> > Hi,
> >
> > I am facing some problem in ordering the sql execution.
> >
> > We have one sql script file for each table under one directory. Ex: There
> > is
> > user.sql and role.sql in the directory c:\SqlScripts. We are using the
> sql
> > maven plugin to execute these sql files.
> >
> > The role table has a Foriegn key to the user table and the execution is
> > failing because the plugin is trying to execute the role.sql before
> > user.sql. I cannot use the  orderfile attribute as we specify the
> 
> > as c:\SqlScripts\*.sql.
> >
> > How do I overcome this problem?
> >
> > I see 2 solutions:
> >
> > 1) Merge all scripts into one file in the creation order, the script to
> > create role comes after the script to create user.
> >
> > 2)Remove the * wildcard and specify each file in the  attribute
> > in
> > the order of execution.
> >
> > 3)Number the name of the files according to the execution order ex:
> > 1_user.sql, 2_role.sql and use the 'ascending' orderfile attribute(not
> sure
> > if this would work though, as the ordering may not be applied)
> >
> > Any more elegant solutions?
> >
> > Thank you,
> > Chris.
> >
>


Maven SQL plugin

2010-10-14 Thread Chris Odney
Hi,

I am facing some problem in ordering the sql execution.

We have one sql script file for each table under one directory. Ex: There is
user.sql and role.sql in the directory c:\SqlScripts. We are using the sql
maven plugin to execute these sql files.

The role table has a Foriegn key to the user table and the execution is
failing because the plugin is trying to execute the role.sql before
user.sql. I cannot use the  orderfile attribute as we specify the 
as c:\SqlScripts\*.sql.

How do I overcome this problem?

I see 2 solutions:

1) Merge all scripts into one file in the creation order, the script to
create role comes after the script to create user.

2)Remove the * wildcard and specify each file in the  attribute in
the order of execution.

3)Number the name of the files according to the execution order ex:
1_user.sql, 2_role.sql and use the 'ascending' orderfile attribute(not sure
if this would work though, as the ordering may not be applied)

Any more elegant solutions?

Thank you,
Chris.


Running tests with dynamic file sets

2010-10-05 Thread Chris Audley
I'm writing a POM for a project that needs to run unit tests in two
groups, one with forkMode "once" and the other with forkMode "always".
 I understand how to configure two separate executions of the surefire
plugin in the  section with separate  blocks.
The problem I have is that the files to be run by each execution can't
be defined by file patterns in  and  elements.

Our current ant based build system uses annotations included in the
test sources to create two filesets, a junit task is then used to run
each of the filesets separately.  I know I can use ant within maven to
create these filesets.  Is there a way I can feed these filesets into
the surefire plugin?

Is it better to just forego the surefire plugin and run my unit tests
using an ant based mojo?

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



Why? Maven 2.2.1 defaults to maven-surefire-plugin 2.4.3

2010-09-28 Thread Chris Audley
I spent some time banging my head this morning because I couldn't get
the systemPropertyVariables element in the maven-surefire-plugin
configuration to work.  After a while I realized that Maven was
defaulting to maven-surefire-plugin 2.4.3 and I was trying to use a
feature introduced in 2.5.

OK, so I can update pluginManagement to pull in surefire 2.6, or I can
fall back to the older systemProperties element.

My question is, why is Maven still using 2.4.3?  Is it just that maven
hasn't been updated recently, or is there some kind of issue with
using 2.5 or above?

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



Multi Module Archetypes

2010-06-02 Thread chris
Hi,

Is it possible to create an Archetype which will create a full multi
module project rather than creating each module individually?

I would like to generate the following in one go to reduce complexity.

--parent
warproject
--src
--pom.xml
ejbproject
--src
--pom.xml
earproject
--pom.xml

Many Thanks

Chris


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



Multi Module Archetypes

2010-06-02 Thread chris
Hi,

Is it possible to create an Archetype which will create a full multi
module project rather than creating each module individually?

I would like to generate the following in one go to reduce complexity.

--parent
warproject
--src
--pom.xml
ejbproject
--src
--pom.xml
earproject
--pom.xml

Many Thanks

Chris



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



RE: Versioning of company SuperPOM

2010-06-01 Thread Chris Helck
The release plugin has never meshed well with our organization, how we
release software, and our SCM system. So I suggest you try it out on a
couple of use cases. Particular problems for us is that we have separate
groups doing development and release so the release:prep and
release:perform are done on different machines. We also have separate
dev and release branches in Perforce and this seems to cause friction
with release plugin -- not that the plugin is wrong, just has different
expectations. Kinda hard to explain. Last problem is plugin does not
have deep understanding of Perforce labels (I understand why it does
not), but it wants to create labels differently from what we do.

Anyway, basic message is that release plugin is kinda cool, but you to
test if it meshes with your release process. 

-Chris

-Original Message-
From: Ron Wheeler [mailto:rwhee...@artifact-software.com] 
Sent: Tuesday, June 01, 2010 11:24 AM
To: Maven Users List
Subject: Re: Versioning of company SuperPOM

The documentation is a bit light.

Are there any particular things to watch out for in the release plug-in?
Is it smart enough to fix the version of the parent pom in the project
pom?
What about authentication to the SCM?


We have 60+ modules in a portlet application and it would be nice to
have a batch job that produced a release from a SNAPSHOT.


Ron


On 01/06/2010 10:15 AM, Shan Syed wrote:
> I don't fully understand your scenario, but do you use the "release"
plugin?
> http://maven.apache.org/plugins/maven-release-plugin/introduction.html
>
> if you maintain your pre-release code as "SNAPSHOT so-and-so", this
plugin
> will help you make a release version out of it without having to edit
POMs
> manually
>
>
>
> On Tue, Jun 1, 2010 at 10:09 AM, Andrew Close
wrote:
>
>
>> the organization that i currently work at is in the process of
>> updating our POM hierarchy.  we're moving to a common company
SuperPOM
>> which everyone will inherit from as opposed to the handful of
>> semi-SuperPOMs we have now. :)  we currently have over 300 artifacts
>> that are downstream of this architecture and we'll be rolling this
>> model out in phases since it would be very difficult to schedule a
>> release with all of our artifacts at once.  we're hoping to take
>> advantage of the common plugin management and dependency management
to
>> keep our third party dependencies more manageable.  this sounds good,
>> but i'm guessing we'll get halfway through the rollout and realize
>> that we need to make some changes to the SuperPOM, which entails a
new
>> version, which means updating all the downstream artifacts so they
>> inherit from the new parent.  this could become a very vicious cycle.
>>
>> so, the question i have is how do other large organizations with this
>> model handle versioning their SuperPOMs?  do you actually update the
>> version and then go through all the artifacts and update their parent
>> block?  or do you keep the SuperPOM at a static version (probably not
>> a very good idea) so all updates are handled dynamically?
>> is there a way to enforce which version of the SuperPOM should be
>> used?  or at least warn the developer that there is a newer version
of
>> the SuperPOM that they should be inheriting from?
>>
>>
>> --
>> Andrew Close
>>
>> -
>> 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


**
This communication and all information (including, but not limited to,
 market prices/levels and data) contained therein (the "Information") is
 for informational purposes only, is confidential, may be legally
 privileged and is the intellectual property of ICAP plc and its affiliates
 ("ICAP") or third parties. No confidentiality or privilege is waived or
 lost by any mistransmission. The Information is not, and should not
 be construed as, an offer, bid or solicitation in relation to any
 financial instrument or as an official confirmation of any transaction.
 The Information is not warranted, including, but not limited, as to
 completeness, timeliness or accuracy and is subject to change
 without notice. ICAP assumes no liability for use or misuse of the
 Information. All representations and warranties are expressly
 disclaimed. The Information does not necessarily reflect the views of
 

How do I fail the build if a javac warning occurs

2010-03-22 Thread Chris Webster
I would like to use the -Werror hidden feature of javac to fail the
build if warnings occur. I have a maven 2.2.1 pom which contains the
following:

...

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

1.6
1.6





true


...

I have observed the following:
* I do see the Xlint warnings, but they don't result in a build failure.
* If I remove the showDeprecation statement I don't see any warnings.
* Using fork doesn't help

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



Resolving import scope POMs in the reactor for multi module project

2010-01-18 Thread MELIKIAN, Chris
Hi,
 
We have a problem with import scope dependencies being resolved in the
reactor in multi module project  build.
 
Take for example a multi module project  build POM "project-pom" which
has two modules in it, "import-pom" and "app-pom", with app-pom having
an import-scope dependency  on import-pom in the dependencyManagement
section. 
 
If we separately build import-pom and app-pom then all is OK
 
If we clean the repo and build project-pom, then the build-fails as
"import-pom" cannot be downloaded from any repo.
 
Surely, if import-pom is specified  as a sub-project of a multi-module
project then  the multi-module project should be buildable as Maven can
establish that import-pom is the file referenced in app-pom's dependency
import by matching on g/a/v parameters? Maven seems to have no problem
in resolving parent POMs if they are not built as you can use the
relativePath element but what is needed is first class support  when
building the reactor for both parent POMs and import scope POMs which
aren't in the repo but are part of the current build. I don't think
adding relativePath support for import POMs is the answer.
 
Is it worth writing a bug report?
 
Regards, Chris

Visit www.bupa.com for the story of who we are, where we've come from and what 
we do.
Bupa House 15-19 Bloomsbury Way London WC1A 2BA 
Internet communications are not secure and therefore Bupa does not accept legal 
responsibility for the contents of this message. Any views or opinions 
presented are solely those of the author and do not necessarily represent those 
of Bupa. 
Bupa Insurance Limited, Bupa Health Assurance Limited, Bupa Insurance Services 
Limited and Goldsborough Estates Limited are authorised and regulated by the 
Financial Services Authority.
For a list of Bupa's main UK trading companies visit 
www.bupa.co.uk/html/statements/trading_addresses.html


Building project dependencies under Maven Eclipse plugin

2009-12-24 Thread Chris von See
I have an application that is comprised of three Maven projects: a  
server, a webapp and a common JAR.  All three of these have the same  
parent POM, and the server and webapp have the appropriate  
dependencies defined.  When I execute "mvn clean install" on the  
parent POM from the command line everything gets built in the correct  
order and with no problems, so I'm pretty comfortable that the POMs  
are set up correctly.


Now, I'd like to use the Maven Eclipse plugin and the Maven "exec- 
maven-plugin' with the exec:java goal to run and debug a child project  
under Eclipse.  As I understand it, I need to set the working  
directory of the Eclipse debug configuration to the base directory of  
the child project (the server, for example) so that the Maven Eclipse  
plugin will find the child project's POM.  However, when I do this  
then the Maven Eclipse plugin doesn't rebuild any of the other child  
projects under that parent if changes are made to their sources during  
the debugging session.  Given what I've read of Maven this seems to  
make sense, but I'm wondering if there's a way to tell the Maven  
Eclipse plugin to execute the clean/install against the parent's POM  
before running the child project using exec-maven-plugin.  Is this  
possible? and if so, what do I need to do?



Thanks
Chris





Never mind RE: Need help with Maven SCM plugins

2009-12-11 Thread Chris Helck
 
My bad. Should have been maven release plugin.

-Original Message-
From: Chris Helck [mailto:chris.he...@us.icap.com] 
Sent: Friday, December 11, 2009 12:08 PM
To: Maven Users List
Subject: Need help with Maven SCM plugins

I'm using maven 2.2.1
I would like to upgrade the Perforce SCM plugin to version 1.2, but I'm
having lots of trouble configuring the pom. I've added:


   
  
  org.apache.maven.plugins
  maven-scm-plugin
  1.2
   
   


Note: Copied the above by hand, so any syntax/spelling errors may not be
root cause.

When I run with the above, nothing for 1.2 is downloaded. Everything
else I've tried produces errors. Any help would be great.

Thanks,
Christopher

**
This communication and all information (including, but not limited to,
market prices/levels and data) contained therein (the "Information") is
for informational purposes only, is confidential, may be legally
privileged and is the intellectual property of ICAP plc and its
affiliates
 ("ICAP") or third parties. No confidentiality or privilege is waived or
lost by any mistransmission. The Information is not, and should not  be
construed as, an offer, bid or solicitation in relation to any
financial instrument or as an official confirmation of any transaction.
 The Information is not warranted, including, but not limited, as to
completeness, timeliness or accuracy and is subject to change  without
notice. ICAP assumes no liability for use or misuse of the  Information.
All representations and warranties are expressly  disclaimed. The
Information does not necessarily reflect the views of  ICAP. Access to
the Information by anyone else other than the  recipient is unauthorized
and any disclosure, copying, distribution or  any action taken or
omitted to be taken in reliance on it is prohibited. If  you receive
this message in error, please immediately delete it and all  copies of
it from your system, destroy any hard copies of it and  notify the
sender.
**


**
This communication and all information (including, but not limited to,
 market prices/levels and data) contained therein (the "Information") is
 for informational purposes only, is confidential, may be legally
 privileged and is the intellectual property of ICAP plc and its affiliates
 ("ICAP") or third parties. No confidentiality or privilege is waived or
 lost by any mistransmission. The Information is not, and should not
 be construed as, an offer, bid or solicitation in relation to any
 financial instrument or as an official confirmation of any transaction.
 The Information is not warranted, including, but not limited, as to
 completeness, timeliness or accuracy and is subject to change
 without notice. ICAP assumes no liability for use or misuse of the
 Information. All representations and warranties are expressly
 disclaimed. The Information does not necessarily reflect the views of
 ICAP. Access to the Information by anyone else other than the
 recipient is unauthorized and any disclosure, copying, distribution or
 any action taken or omitted to be taken in reliance on it is prohibited. If
 you receive this message in error, please immediately delete it and all
 copies of it from your system, destroy any hard copies of it and
 notify the sender.
**



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



Need help with Maven SCM plugins

2009-12-11 Thread Chris Helck
I'm using maven 2.2.1
I would like to upgrade the Perforce SCM plugin to version 1.2, but I'm
having lots of trouble configuring the pom. I've added:


   
  
  org.apache.maven.plugins
  maven-scm-plugin
  1.2
   
   


Note: Copied the above by hand, so any syntax/spelling errors may not be
root cause.

When I run with the above, nothing for 1.2 is downloaded. Everything
else I've tried produces errors. Any help would be great.

Thanks,
Christopher

**
This communication and all information (including, but not limited to,
 market prices/levels and data) contained therein (the "Information") is
 for informational purposes only, is confidential, may be legally
 privileged and is the intellectual property of ICAP plc and its affiliates
 ("ICAP") or third parties. No confidentiality or privilege is waived or
 lost by any mistransmission. The Information is not, and should not
 be construed as, an offer, bid or solicitation in relation to any
 financial instrument or as an official confirmation of any transaction.
 The Information is not warranted, including, but not limited, as to
 completeness, timeliness or accuracy and is subject to change
 without notice. ICAP assumes no liability for use or misuse of the
 Information. All representations and warranties are expressly
 disclaimed. The Information does not necessarily reflect the views of
 ICAP. Access to the Information by anyone else other than the
 recipient is unauthorized and any disclosure, copying, distribution or
 any action taken or omitted to be taken in reliance on it is prohibited. If
 you receive this message in error, please immediately delete it and all
 copies of it from your system, destroy any hard copies of it and
 notify the sender.
**



Affecting SureFire's argLine from another plugin

2009-10-26 Thread Chris Bredesen

Hi List,

I'm attempting to write a plugin (my first one; go easy please!) that 
has a pretty simple goal:  Discover some scripts/sources and modify 
SureFire's execution environment to add a -javaagent with related config 
based on the discovered sources.  The first part is easy; I can locate 
and parse the source files.


The second part is eluding me:  I need to drive SureFire behavior based 
on an earlier phase and I'm not sure how to do this.  If I were to do it 
manually, I'd add and argLine to SureFire's  but this 
seems somewhat icky (this confirmed by a discussion in IRC).  I'm libel 
to destroy any configured argLine if I replace with my own.  And I don't 
see that the argLine is configured until the surefire plugin executes.


Is there a better way to go about all this?  Any suggestions welcome!

Cheers,

Chris

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



Re: Unit test project depending on WAR project code

2009-10-07 Thread Chris Bredesen

This makes sense.  Thanks Justin.

-Chris

On 10/07/2009 11:51 AM, Edelson, Justin wrote:

If you question is - can I use a WAR file as a dependency and get the classes 
inside the WAR file added to the classpath, the answer is no. This has nothing 
to do with Maven - it's Java.

-Original Message-
From: Chris Bredesen [mailto:cbrede...@redhat.com]
Sent: Wednesday, October 07, 2009 10:50 AM
To: users@maven.apache.org
Subject: Re: Unit test project depending on WAR project code

I got your meaning and I will investigate that.  I generally try to KISS and 
adding a module to create a jar to go in a war kinda violates that.
   But if it's the only way out of this, I'll try it.

Oddly, when I remove thewar  from the unit test 
project's dependency list, it works in m2eclipse (which AFIAK is based on M3).  In that 
state, maven 2.0.10 barfs completely and can't even find the dependency which is farther 
from success than what I've got.

I'd really like to see if this is meant to work in Maven or if I'm just 
DoingItWrong.

Thanks for your input Roland, must appreciated!!!

-CB

On 10/07/2009 10:43 AM, Roland Asmann wrote:

ThatÅ› not the way I meant it... Sorry if it looked that way!

When I have a WAR-project, I normally create 2 modules: 1 with the
java-code
(package: JAR) and 1 with the other WAR-stuff (JSP, CSS, etc - package: WAR).

That way, I can use the code inside the JAR as a normal dependency in
any and all tests I have.

Hope this cleared it up a bit. :-)


On Wednesday 07 October 2009 16:41, Chris Bredesen wrote:

Why stop there?  I'll just not write ANY code.  Stress-free life! :)
:)

On 10/07/2009 10:13 AM, Roland Asmann wrote:

Personally, I don't put ANY code in the WAR. That will definitely
solve your problem! :-)

On Wednesday 07 October 2009 16:03, Chris Bredesen wrote:

All,

I have split my unit tests out into a separate project which will
eventually become a module (not there yet).  I've got it mostly
sorted but I'm getting compile errors on classes that are part of
the main project which uses war packaging.

Maven doesn't seem to add the WAR's code into the test module's
test classpath correctly.  Is this a known issue?  Any idea how to
get around it?  Maven is definitely finding the artifact in my
repository; it's just not contributing the WAR's code (I think).

Any help is appreciated.

-Chris

---
-- 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


-
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: Unit test project depending on WAR project code

2009-10-07 Thread Chris Bredesen
I got your meaning and I will investigate that.  I generally try to KISS 
and adding a module to create a jar to go in a war kinda violates that. 
 But if it's the only way out of this, I'll try it.


Oddly, when I remove the war from the unit test 
project's dependency list, it works in m2eclipse (which AFIAK is based 
on M3).  In that state, maven 2.0.10 barfs completely and can't even 
find the dependency which is farther from success than what I've got.


I'd really like to see if this is meant to work in Maven or if I'm just 
DoingItWrong.


Thanks for your input Roland, must appreciated!!!

-CB

On 10/07/2009 10:43 AM, Roland Asmann wrote:

ThatÅ› not the way I meant it... Sorry if it looked that way!

When I have a WAR-project, I normally create 2 modules: 1 with the java-code
(package: JAR) and 1 with the other WAR-stuff (JSP, CSS, etc - package: WAR).

That way, I can use the code inside the JAR as a normal dependency in any and
all tests I have.

Hope this cleared it up a bit. :-)


On Wednesday 07 October 2009 16:41, Chris Bredesen wrote:

Why stop there?  I'll just not write ANY code.  Stress-free life! :) :)

On 10/07/2009 10:13 AM, Roland Asmann wrote:

Personally, I don't put ANY code in the WAR. That will definitely solve
your problem! :-)

On Wednesday 07 October 2009 16:03, Chris Bredesen wrote:

All,

I have split my unit tests out into a separate project which will
eventually become a module (not there yet).  I've got it mostly sorted
but I'm getting compile errors on classes that are part of the main
project which uses war packaging.

Maven doesn't seem to add the WAR's code into the test module's test
classpath correctly.  Is this a known issue?  Any idea how to get around
it?  Maven is definitely finding the artifact in my repository; it's
just not contributing the WAR's code (I think).

Any help is appreciated.

-Chris

-
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: Unit test project depending on WAR project code

2009-10-07 Thread Chris Bredesen

Why stop there?  I'll just not write ANY code.  Stress-free life! :) :)

On 10/07/2009 10:13 AM, Roland Asmann wrote:

Personally, I don't put ANY code in the WAR. That will definitely solve your
problem! :-)


On Wednesday 07 October 2009 16:03, Chris Bredesen wrote:

All,

I have split my unit tests out into a separate project which will
eventually become a module (not there yet).  I've got it mostly sorted
but I'm getting compile errors on classes that are part of the main
project which uses war packaging.

Maven doesn't seem to add the WAR's code into the test module's test
classpath correctly.  Is this a known issue?  Any idea how to get around
it?  Maven is definitely finding the artifact in my repository; it's
just not contributing the WAR's code (I think).

Any help is appreciated.

-Chris

-
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



Unit test project depending on WAR project code

2009-10-07 Thread Chris Bredesen

All,

I have split my unit tests out into a separate project which will 
eventually become a module (not there yet).  I've got it mostly sorted 
but I'm getting compile errors on classes that are part of the main 
project which uses war packaging.


Maven doesn't seem to add the WAR's code into the test module's test 
classpath correctly.  Is this a known issue?  Any idea how to get around 
it?  Maven is definitely finding the artifact in my repository; it's 
just not contributing the WAR's code (I think).


Any help is appreciated.

-Chris

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



RE: Reactor - skip parent project build

2009-10-02 Thread Pasillas, Chris
You can create a separate pom that only includes the your 5 modules to build, 
don't use the parent pom to do the reactor build.

-Original Message-
From: Brian Fox [mailto:bri...@infinity.nu] 
Sent: Wednesday, September 30, 2009 10:31 PM
To: Maven Users List
Subject: Re: Reactor - skip parent project build

You can't. The parent will always run first in a reactor before
anything that inherits from it.

On Wed, Sep 30, 2009 at 6:03 PM, droidin.net  wrote:
>
> I have a parent POM which defines 5 modules (5 subprojects). Since each
> module is executed in exactly the same way I pull  section
> into the parent POM to get rid of the duplicate code. Now - if I execute
> build individually from each module it works, however if I want to build all
> modules at once and move to the parent directory I got error since the very
> first thing Maven tries to execute is the parent project itself:
>
>>mvn package -P release
> [INFO] Scanning for projects...
> [INFO] Reactor build order:
> [INFO]   DWD Parent project
> [INFO]   Projects
>
> After that build fails because exec plugin tries to execute something that
> is not there. Looking at the output it is pretty obvious that reactor plugin
> is driving the build but how can I configure reactor to skip the parent?
> --
> View this message in context: 
> http://www.nabble.com/Reactor---skip-parent-project-build-tp25691730p25691730.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



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



RE: Porpuse of src/main/config

2009-09-16 Thread Chris Helck
Here's my understanding...

In maven1, files in 'config' were packaged into the jar file. At some
point it was decided that 'resources' was a better name than 'config',
so now 'config' is just another directory that Maven doesn't do anything
with.

In general Maven doesn't know how you're going to deploy your package,
so it doesn't know what to do with directories like: config, etc, bin,
and so on. So you need to figure this out and come up with your own
convention. Plugin's like assemble (assembly?) can help a lot. I often
use it to create a tar ball that unpacks into a directory something
like:

  app/
bin # all files have execute
etc # User configurable files
jars# all dependencies
logs# where app writes logs.

Basically my bin and etc directories under src/main get copied into the
tar ball.

Hope this helps.
C. Helck



 

-Original Message-
From: Jean-Louis MONTEIRO [mailto:jean-louis.monte...@atosorigin.com] 
Sent: Wednesday, September 16, 2009 12:06 PM
To: users@maven.apache.org
Subject: Re: Porpuse of src/main/config




Geoffrey Wiseman wrote:
> 
> On Fri, Aug 1, 2008 at 11:00 AM, DOMINGUEZ Felipe < 
> felipe.doming...@eurocontrol.int> wrote:
> 
>> I am new to Maven, and I am a bit confuse about the porpuse of 
>> directory src/main/config porpuse
>>
>> I have been looking for information about it but it does not seems to

>> be much.
>>
>> I initially thought that in directory src/main/resources I could put 
>> any static resource used by the jar file and in src/main/config I 
>> could put any configuration file that needs to be customised before 
>> the jar file is used. For example in the config file I would add the 
>> hibernate.cfg.xml file, since the DB connection information needs to 
>> be modify by the person who will use the jar file.
>>
>> placing hibernage.cfg.xml in the resources files is not good, since 
>> this file will be added to the jar file, so the person who will use 
>> the jar file will have to extract it to be able to modify its 
>> properties. So initially I thought that src/main/config  was for this

>> porpuse, but all files that I put in congif directory are ignored.
>>
>> Can any body clarify the usage of src/main/config  and what is maven 
>> approach for using configuration files such as hibernate.cfg.xml or 
>> other config files that need to be modified on the live environment?
>>
> 
> What about this?
> http://maven.apache.org/guides/introduction/introduction-to-the-standa
> rd-directory-layout.html
> 
> --
> Geoffrey Wiseman
> 
> 
Hi Geoffrey,

it's not clear at all.
Can you please explicitly give us the difference between
src/main/resources and src/main/config ?
I guess src/main/resources goes to target package (jar, war, ...). And
from my understanding, src/main/config is not part of the classpath and
is used only for build (configuration files used to build, ...).

Thanks for your help.
Regards,
Jean-Louis
--
View this message in context:
http://www.nabble.com/Porpuse-of-src-main-config-tp18776348p25475583.htm
l
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


**
This communication and all information (including, but not limited to,
 market prices/levels and data) contained therein (the "Information") is
 for informational purposes only, is confidential, may be legally
 privileged and is the intellectual property of ICAP plc and its affiliates
 ("ICAP") or third parties. No confidentiality or privilege is waived or
 lost by any mistransmission. The Information is not, and should not
 be construed as, an offer, bid or solicitation in relation to any
 financial instrument or as an official confirmation of any transaction.
 The Information is not warranted, including, but not limited, as to
 completeness, timeliness or accuracy and is subject to change
 without notice. ICAP assumes no liability for use or misuse of the
 Information. All representations and warranties are expressly
 disclaimed. The Information does not necessarily reflect the views of
 ICAP. Access to the Information by anyone else other than the
 recipient is unauthorized and any disclosure, copying, distribution or
 any action taken or omitted to be taken in reliance on it is prohibited. If
 you receive this message in error, please immediately delete it and all
 copies of it from your system, destroy any hard copies of it and
 notify the sender.
**



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



Re: Maven keeps looking for a POM for an artifact that's already in my local repository

2009-08-26 Thread Chris Bredesen

Solved.

I re-installed the artifact using -DgeneratePom=true and it no longer 
bugs me.  Apparently generatePom does *not* default to true when there's 
no POM in the repo.


Sorry for wasting everyone's time...

-Chris

On 08/26/2009 03:00 PM, Chris Bredesen wrote:

Hello,

I get this every time I do just about anything with my project:

Downloading:
http://repo1.maven.org/maven2/net/sf/gsa-japi/gsa-japi/1.10/gsa-japi-1.10.pom

[INFO] Unable to find resource 'net.sf.gsa-japi:gsa-japi:pom:1.10' in
repository central (http://repo1.maven.org/maven2)

This routine is repeated for each of the five repositories I have enabled.

This artifact is in my local repository:

$ ls .m2/repository/net/sf/gsa-japi/gsa-japi/1.10/
gsa-japi-1.10.jar

Once all this complaining ends, the build does succeed and the artifact
is even packaged into my WAR. I don't recall where this artifact
originally came from but it's quite possible I installed it myself. I
guess it's looking for the POM, but how can I tell Maven that there will
never be a POM for this artifact?

Thanks,

Chris

-
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



Maven keeps looking for a POM for an artifact that's already in my local repository

2009-08-26 Thread Chris Bredesen

Hello,

I get this every time I do just about anything with my project:

Downloading: 
http://repo1.maven.org/maven2/net/sf/gsa-japi/gsa-japi/1.10/gsa-japi-1.10.pom
[INFO] Unable to find resource 'net.sf.gsa-japi:gsa-japi:pom:1.10' in 
repository central (http://repo1.maven.org/maven2)


This routine is repeated for each of the five repositories I have enabled.

This artifact is in my local repository:

$ ls .m2/repository/net/sf/gsa-japi/gsa-japi/1.10/
gsa-japi-1.10.jar

Once all this complaining ends, the build does succeed and the artifact 
is even packaged into my WAR.  I don't recall where this artifact 
originally came from but it's quite possible I installed it myself.  I 
guess it's looking for the POM, but how can I tell Maven that there will 
never be a POM for this artifact?


Thanks,

Chris

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



RE: Removing: jar from forked lifecycle, to prevent recursive invocation

2009-08-05 Thread Chris McMillan

> > 

I don't know if you are still looking for an answer to how to fix this
problem but what I found to fix the problem for me was to change the
maven-source-plugin goal from jar to jar-no-fork. I also had to add
2.1 as well. You may also need to change test-jar to
test-jar-no-fork. 

The information was not immediately obvious to me but 
http://maven.apache.org/plugins/maven-source-plugin/ Maven Source Plugin
Help  was where I found the information.

Chris McMillan


-- 
View this message in context: 
http://www.nabble.com/Removing%3A-jar-from-forked-lifecycle%2C-to-prevent-recursive-invocation-tp22054923p24831242.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 to delete a directory?

2009-08-05 Thread Chris

Thanks. It was a version error. 2.3 did the trick.

Alexander wrote:
Oh, you right. But you already answered your question! 

Use excludeDefaultDirectories. It works fine, really. Be sure you use 
2.3 version of maven-clean-plugin. (as it mentioned in documentation 
this option work only since 2.3)



org.apache.maven.plugins
maven-clean-plugin
2.3

true



2009/8/5 Chris mailto:she...@yahoo.com>>

I can delete the directories ok. What I can't do is prevent it from
deleting the target directory.


Alexander wrote:

No maven-clean-plugin is more flexible. Read there

http://maven.apache.org/plugins/maven-clean-plugin/examples/delete_additional_files.html

    2009/8/5 Chris mailto:she...@yahoo.com>
<mailto:she...@yahoo.com <mailto:she...@yahoo.com>>>


   I'm using maven-dependency-plugin to make a custom directory of
   dependencies. The trouble is that I can't find a way to
delete the
   outputDirectory before the plugin runs so I can be sure there
aren't
   any old files left over in it.

   I tried to use maven-clean-plugin to do it, but it insists on
   deleting the entire /target directory, which I don't want. It
looks
   like there is an excludeDefaultDirectories option available
on the
   command line, but putting
   true
in the
section doesn't work.

   Any other suggestions?


 
 -

   To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
<mailto:users-unsubscr...@maven.apache.org>
   <mailto:users-unsubscr...@maven.apache.org
<mailto:users-unsubscr...@maven.apache.org>>

   For additional commands, e-mail: users-h...@maven.apache.org
<mailto:users-h...@maven.apache.org>
   <mailto:users-h...@maven.apache.org
<mailto:users-h...@maven.apache.org>>




-- 
Alexander




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




--
Alexander




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



Re: How to delete a directory?

2009-08-04 Thread Chris
I can delete the directories ok. What I can't do is prevent it from 
deleting the target directory.



Alexander wrote:
No maven-clean-plugin is more flexible. Read 
there http://maven.apache.org/plugins/maven-clean-plugin/examples/delete_additional_files.html 


2009/8/5 Chris mailto:she...@yahoo.com>>

I'm using maven-dependency-plugin to make a custom directory of
dependencies. The trouble is that I can't find a way to delete the
outputDirectory before the plugin runs so I can be sure there aren't
any old files left over in it.

I tried to use maven-clean-plugin to do it, but it insists on
deleting the entire /target directory, which I don't want. It looks
like there is an excludeDefaultDirectories option available on the
command line, but putting
true in the
 section doesn't work.

Any other suggestions?


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




--
Alexander




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



How to delete a directory?

2009-08-04 Thread Chris
I'm using maven-dependency-plugin to make a custom directory of 
dependencies. The trouble is that I can't find a way to delete the 
outputDirectory before the plugin runs so I can be sure there aren't any 
old files left over in it.


I tried to use maven-clean-plugin to do it, but it insists on deleting 
the entire /target directory, which I don't want. It looks like there is 
an excludeDefaultDirectories option available on the command line, but 
putting true in 
the  section doesn't work.


Any other suggestions?


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



Re: Copy groups of dependencies with dependency plugin

2009-08-04 Thread Chris
Thanks. This almost works. I had to add 
compile to the third execution.


Now a new problem: it copies over the dependencies with a particular 
groupId, but not the transitive dependencies. I guess what I really want 
is jetty plus everything it depends on to go in a directory. Possible 
without having to list every transitive dependency explicitly?



JeremieB wrote:

Hi,

I think the following configuration should do the trick :

  

maven-dependency-plugin
2.0

  
unpack-jetty
package

  unpack-dependencies


  org.mortbay.jetty
  target/lib/jetty

  
  
unpack-metro
package

  unpack-dependencies


  com.sun.xml.ws
  target/lib/metro

  
  
unpack-others
package

  unpack-dependencies


 
org.mortbay.jetty,com.sun.xml.ws

  target/lib





  


I think also groupIds are exact match, I'm not sure you could use "*" inside
pattern.
It worked for me, but I adapted it to your sample, so you might have to
adjust some bits.

Hope this helps,
Jeremie



Shef wrote:
I'm having a rough time finding the magic syntax to get 
maven-dependency-plugin to copy dependencies to the right places. What I 
want to do is:


1. Copy dependencies with common groupIds to particular subdirectories.
2. Copy the rest of the compile-scope dependencies to the main /lib 
directory.


Example output:

/target
   /lib
 /jetty
   (jetty and transitives go here, groupid="org.mortbay.jetty")
 /metro
   (glassfish and transitives go here, groupid="com.sun.xml.ws")
   commons-collections.jar
   commons-logging.jar
   etc. -- rest of compile-scope dependencies here

I don't want to have to specify every artifact and its version in the 
configuration, because all that's already in the  section 
of the pom.



-
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



Copy groups of dependencies with dependency plugin

2009-08-03 Thread Chris
I'm having a rough time finding the magic syntax to get 
maven-dependency-plugin to copy dependencies to the right places. What I 
want to do is:


1. Copy dependencies with common groupIds to particular subdirectories.
2. Copy the rest of the compile-scope dependencies to the main /lib 
directory.


Example output:

/target
  /lib
/jetty
  (jetty and transitives go here, groupid="org.mortbay.jetty")
/metro
  (glassfish and transitives go here, groupid="com.sun.xml.ws")
  commons-collections.jar
  commons-logging.jar
  etc. -- rest of compile-scope dependencies here

I don't want to have to specify every artifact and its version in the 
configuration, because all that's already in the  section 
of the pom.



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



How to create self extracting archive?

2009-07-21 Thread Chris Helck
Assembly plugin is very nice, but I need to add one more step. Once I
have the package.tar.gz file, I need to create a new file, which in
Linux I would do as:

 cat extract.txt package.tar.gz > package.sh
 chmod a+x package.sh

The file 'extract.txt' is my code to support self extracting archives in
our system.

What's the best way to add this step to the build?

Thanks,
Christopher Helck



**
This communication and all information (including, but not limited to,
 market prices/levels and data) contained therein (the "Information") is
 for informational purposes only, is confidential, may be legally
 privileged and is the intellectual property of ICAP plc and its affiliates
 ("ICAP") or third parties. No confidentiality or privilege is waived or
 lost by any mistransmission. The Information is not, and should not
 be construed as, an offer, bid or solicitation in relation to any
 financial instrument or as an official confirmation of any transaction.
 The Information is not warranted, including, but not limited, as to
 completeness, timeliness or accuracy and is subject to change
 without notice. ICAP assumes no liability for use or misuse of the
 Information. All representations and warranties are expressly
 disclaimed. The Information does not necessarily reflect the views of
 ICAP. Access to the Information by anyone else other than the
 recipient is unauthorized and any disclosure, copying, distribution or
 any action taken or omitted to be taken in reliance on it is prohibited. If
 you receive this message in error, please immediately delete it and all
 copies of it from your system, destroy any hard copies of it and
 notify the sender.
**



Run unit tests with multimple dependecies?

2009-05-14 Thread Chris Helck
I have multiple versions of a jar file called child: child_1.0.jar,
child_1.1, and child_1.2. In theory each version of child implements the
same API and should be backwardly compatible.

I have another jar file called parent_2.0.jar. I would like to run
parent's unit tests three times, each time using a different version of
child. 

Can this be done using Maven? 

Regards,
Christopher


**
This communication and all information (including, but not limited to,
 market prices/levels and data) contained therein (the "Information") is
 for informational purposes only, is confidential, may be legally
 privileged and is the intellectual property of ICAP plc and its affiliates
 ("ICAP") or third parties. No confidentiality or privilege is waived or
 lost by any mistransmission. The Information is not, and should not
 be construed as, an offer, bid or solicitation in relation to any
 financial instrument or as an official confirmation of any transaction.
 The Information is not warranted, including, but not limited, as to
 completeness, timeliness or accuracy and is subject to change
 without notice. ICAP assumes no liability for use or misuse of the
 Information. All representations and warranties are expressly
 disclaimed. The Information does not necessarily reflect the views of
 ICAP. Access to the Information by anyone else other than the
 recipient is unauthorized and any disclosure, copying, distribution or
 any action taken or omitted to be taken in reliance on it is prohibited. If
 you receive this message in error, please immediately delete it and all
 copies of it from your system, destroy any hard copies of it and
 notify the sender.
**



How to access non-jar files from repo w/maven 1.x?

2009-04-24 Thread Chris Helck
I have some scripts that I would like to share across multiple projects.
I can upload them to my local repo and give the files version numbers.
Once they're in the repo, how do I access and use them from a maven
project.xml file? Ideally I'd like the scripts to magically appear in
specific directories like ./src/main/bin.

Regards,
C. Helck

**
This communication and all information (including, but not limited to,
 market prices/levels and data) contained therein (the "Information") is
 for informational purposes only, is confidential, may be legally
 privileged and is the intellectual property of ICAP plc and its affiliates
 ("ICAP") or third parties. No confidentiality or privilege is waived or
 lost by any mistransmission. The Information is not, and should not
 be construed as, an offer, bid or solicitation in relation to any
 financial instrument or as an official confirmation of any transaction.
 The Information is not warranted, including, but not limited, as to
 completeness, timeliness or accuracy and is subject to change
 without notice. ICAP assumes no liability for use or misuse of the
 Information. All representations and warranties are expressly
 disclaimed. The Information does not necessarily reflect the views of
 ICAP. Access to the Information by anyone else other than the
 recipient is unauthorized and any disclosure, copying, distribution or
 any action taken or omitted to be taken in reliance on it is prohibited. If
 you receive this message in error, please immediately delete it and all
 copies of it from your system, destroy any hard copies of it and
 notify the sender.
**



dependency:copy and transitive dependencies of artifactItems

2009-04-21 Thread Chris Burroughs
I assumed from the frequent references to transitive dependencies at

that dependency:copy supported transitive dependencies of artifactItems.

However, this appears to not be the case (at least as of a few years ago):
http://www.mail-archive.com/users@maven.apache.org/msg55576.html
http://jira.codehaus.org/browse/MDEP-182

Can someone confirm that artifactItem still does not support transitive
dependencies?  If not, is there a standard workaround or alternative?

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



Re: Mvn command not recognized

2009-04-13 Thread Chris Lieb
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 4/13/2009 2:01 PM, Cappoli, William wrote:
> -Original Message-
>> From: Wayne Fay [mailto:wayne...@gmail.com] 
>> Sent: Monday, April 13, 2009 2:57 PM
>> To: Maven Users List
>> Subject: Re: Mvn command not recognized
>> 
>>> Anybody have any ideas as to how to fix this?
>>>
>> Install Maven into a path that does not have any spaces, eg c:\dev.
>> 
>> Wayne
>>
> Thanks for the suggestion however I still have to type out the whole
> path except I no long need the quotation marks.
>
>
> Bill Cappoli
>
Are you restarting cmd after you set the PATH variable?  The spaces
should not matter, as I have many spaces in paths that are in my PATH
variable and do not have any issues.

A thought: have you tried replacing %M2_HOME% in PATH with the actual
value of M2_HOME?  I think I remember running into an instance where
Windows didn't do the substitution in the PATH variable.

Chris Lieb
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQEcBAEBAgAGBQJJ45ACAAoJEJWxx7fgsD+CdU0H/2efhrLqaCJrBinSLgkw+62W
bN/tAnuyYr8Fbkm7ds/g/IavKCHT1kZrL57Q/67vtEB8ggLPHJlvil16vSoz4Nt2
kwvTVAPls4FgttQx9dyGDDNZjy1Yqb/8ToNGPhW4NA8tiawkZ3q5EVRqxdvN+rla
LDY99o9WuG9ew6iiXK9oAuUt2zJa0YslVPdd+4nILLuWa4xitc5HFNJjTnNx1zLo
zg85b6GsxIx9fvPwclRDrmEeTvMkb/UkjphTJMgOO4B5uPO4kdpcEPitamDf5Vva
f3gZIf8UIuyHvsesAYqH6xKDRD5eKkJNdVYfUeson5sDJQFymunLeImv8aMkIc0=
=RcJQ
-END PGP SIGNATURE-


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



SCM requires that command line svn be used?

2009-03-26 Thread Chris
I'm trying to configure my pom to use an . We use Subversion. When 
I run it, I get the error "'svn' is not recognized as an internal or 
external command, operable program or batch file.". I take it this means 
that svn.exe needs to be on the path, and the plugin is shelling out to 
access it.


This is obviously flaky and error prone. In Ant, I can use SvnAnt to 
access svn directly, using java alone.


Is it possible to configure Maven to use one of the svn-java libraries 
instead of the command line client?



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



Re: first use of Maven -- how to check cvs repository and build when something has changed

2009-03-13 Thread Chris Stoughton
Thanks for the pointer.  I'll read the continuum docs and join that list if
necessary.


On Thu, Mar 12, 2009 at 10:47 PM, Wendy Smoak  wrote:

> On Thu, Mar 12, 2009 at 8:30 PM, Chris Stoughton
>  wrote:
> > I have continuum installed, but I need to install a Maven2 build.
> >
> > 1.  Does continuum detect that there is a change in cvs?
> > 2.  Given that there is a change, what phase of maven does the cvs
> > checkout?
>
> Probably best to come join us on us...@continuum then, instead of the
> maven list. :)
>
> Generally you add the project to the CI server, and it does the
> initial checkout.  Then periodically it wakes up and updates the
> checkout.  If there are changes, it builds.  If not, it waits for the
> next scheduled build time.
>
> --
> Wendy
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


project exists in cvs; how to check whether there are updates and then build?

2009-03-13 Thread Chris Stoughton
I suspect this is a solved problem, but I can't find an example or
description.  I am starting to use Maven2.

I have a java project that is in cvs.  I want to use mvn to check whether
there are any change in the cvs repository and, if so, update, and build.

I managed to get the scm:bootstrap goal to get a local copy of the project,
in the targets directory.

Thanks.


Re: first use of Maven -- how to check cvs repository and build when something has changed

2009-03-12 Thread Chris Stoughton
I have continuum installed, but I need to install a Maven2 build.

1.  Does continuum detect that there is a change in cvs?
2.  Given that there is a change, what phase of maven does the cvs
checkout?

Sorry, this must be obvious once you see it -- thanks!




On Thu, Mar 12, 2009 at 9:35 PM, Wendy Smoak  wrote:

> On Thu, Mar 12, 2009 at 7:32 PM, Chris Stoughton
>  wrote:
>
> > I have a java project that is in cvs.  I want to use mvn to check whether
> > there are any change in the cvs repository and, if so, update, and build.
>
> The easiest way would be to install one of the many continuous
> integration servers (Continuum, Hudson, etc.) which do exactly that.
>
> --
> Wendy
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


first use of Maven -- how to check cvs repository and build when something has changed

2009-03-12 Thread Chris Stoughton
I suspect this is a solved problem, but I can't find an example or
description.  I am starting to use Maven2.

I have a java project that is in cvs.  I want to use mvn to check whether
there are any change in the cvs repository and, if so, update, and build.

I managed to get the scm:bootstrap goal to get a local copy of the project,
in the targets directory.

Thanks.


Re: Special URL characters

2009-03-10 Thread Chris Lieb
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

solo1970 wrote:
> Hello All,
> 
> I would like to put the following URL: 
>   
> http://local.mysite/pub/get?Type=19010-TEST9040044/1&Lang=X&Rev=1&Format=GZIP
> in the  tags of my POM,
> but I get the following error:
> 
> [INFO] Scanning for projects...
> [INFO]
> 
> [ERROR] FATAL ERROR
> [INFO]
> 
> [INFO] Error building POM (may not be this project's POM).
> 
> 
> Project ID: unknown
> POM Location: C:\TMP\sonia\pom.xml
> 
> Reason: Parse error reading POM. Reason: entity reference name can not
> contain c
> haracter =' (position: START_TAG seen
> ...http://local.mysite/pub/get?Type=1
> 9010-TEST9040044/1&Lang=... @11:66)  for project unknown at
> C:\TMP\sonia\pom.xml
> 
> 
> Is there a workaround?
> 
> Thanks
> 
> Sonia

Since the POM is an XML document, all text in it must be proper XML.  In
your case, the '&' character starts an XML entity.  An entity name is
terminated with a ';' character.  When the parser reads in your POM, it
sees the first '&' in your URL and then starts reading until it reaches
a ';' so that it can read the entity name.  While trying to find a ';',
the parser encountered a '=', which is not a valid character in an
entity name.

To get around this, you need to replace the '&' with the correct XML
entity, '&'.  This would change your repository URL to:

http://local.mysite/pub/get?Type=19010-TEST9040044/1&Lang=X&Rev=1&Format=GZIP

HTH,
Chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQEcBAEBAgAGBQJJtomeAAoJEJWxx7fgsD+CKAkH/iTolsr9S5ehRtTdxRYVCXyV
RTiIAAaZnWixJg/Vp4XKlfvS3dYmcXNlXXyukHc9bGC6NAUVhFyFG3zvOGT7tzzs
9OlsZQKi9Gf/zrDhYYTVu9G5J0aDF7lx9eUPK0JxTN5n99hAuSdVZMW6x6priy4d
jDurIugWn7C/Xfu0HJv+81Xgf1Gg6TyXUAJahevx001R05gWO187E18KxpKTcUeA
tMIWtlw3R/9u9XCYxWqr0XODZt/Oh53d0z8cs+pkZwRMQED60oAt8l7Y1+zsMy1E
uuRFt3HPH5mbqpP86cugNEe0pZTS77B3Lu9O61mDnjBj4uUyZg52b2xIfXCI9oA=
=64Au
-END PGP SIGNATURE-


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



Again qdox-current.jar problems. RE: qdox-current.jar is missing from repo1.maven.org

2009-03-04 Thread Chris Helck
A while back this was fixed, but it seems to be broken again. I had
gotten a reply from Brian Fox saying:

  It's available here:
http://repo1.maven.org/maven2/vdoclet/qdox/current/
  and I adjusted the rewrite so your url below works correctly.


I still have a lot of maven1 projects that need to build documents.
Thanks,
C. Helck

BTW: Is there an easy way for me to correct the problem, or should it be
left to someone how knows what they're doing?

> _ 
> From: Chris Helck  
> Sent: Wednesday, December 03, 2008 9:16 AM
> To:   'Maven Users List'
> Subject:  qdox-current.jar is missing from repo1.maven.org
> 
> What happened to
> http://repo1.maven.org/maven/vdoclet/jars/qdoc-current.jar ?
> When I wget it I get a "403 Forbidden" error.
> 
> This used to work -- just a few weeks ago. I can no longer create site
> documentation for maven1 projects.
> 
> Thanks,
> C. Helck

**
This communication and all information (including, but not limited to,
 market prices/levels and data) contained therein (the "Information") is
 for informational purposes only, is confidential, may be legally
 privileged and is the intellectual property of ICAP plc and its affiliates
 ("ICAP") or third parties. No confidentiality or privilege is waived or
 lost by any mistransmission. The Information is not, and should not
 be construed as, an offer, bid or solicitation in relation to any
 financial instrument or as an official confirmation of any transaction.
 The Information is not warranted, including, but not limited, as to
 completeness, timeliness or accuracy and is subject to change
 without notice. ICAP assumes no liability for use or misuse of the
 Information. All representations and warranties are expressly
 disclaimed. The Information does not necessarily reflect the views of
 ICAP. Access to the Information by anyone else other than the
 recipient is unauthorized and any disclosure, copying, distribution or
 any action taken or omitted to be taken in reliance on it is prohibited. If
 you receive this message in error, please immediately delete it and all
 copies of it from your system, destroy any hard copies of it and
 notify the sender.
**



RE: Maven for the internet afraid

2009-02-02 Thread Chris Helck
Could you clarify the security requirement? It sounds like you don't want 
unverified jars entering the development space. Is this correct?

We have simple production builds (no site, no reports). My maven1 cert 
repository has 210 jar files, 150 of them are external. How are you going to 
validate this many files?  This is a lot of effort just to support a build 
process. I like maven, but perhaps Ant would be simpler?

-C. Helck


-Original Message-
From: Merv Green [mailto:paradeofh...@gmail.com] 
Sent: Sunday, February 01, 2009 5:18 PM
To: Maven Users List
Subject: Re: Maven for the internet afraid

We envision a process where we periodically reevaluate our needs, gathering all 
artifacts we'll use until the next assessment.

In summary, that is simply impractical; we need a different approach.

Saying that at work lately, I've felt like Cassandra, but I'll be glad to admit 
if I'm wrong...

Tamás Cservenák wrote:
> I have to agree with Brian: letting developers use the proxy repo, but 
> CI/Releases the procured repo (which pulls its content from same proxy 
> repo that devs uses, but "bureaucratic" rules are applied). This IS a 
> supported scenario.
>
> But, as with many things in our lives, you can play "Unnatural Acts"
> (sic!) with Nexus too...
>
> You could even procure a procured repository ("waterfall" procurement? 
> ;)
>
> Set up "central" repo as proxy for central.
> Set up a procured-light repo, as procured for devs (with "light" rule 
> management applied) using central as target.
> Set up a "devs" group and put procured-devs repo into it (and possibly 
> any other "secure" reposes) Set up a procured-strong repo, as procured 
> for CI/Release (with "bureaucratic" rule management applied) using 
> "devs" group as target.
> ...and so on.
>
> That's it. But it would require a lot of beers to explain me why would 
> you do it :)
>
> Thanks for appreciating Nexus!
> ~t~
>
> [1] fav TV series, followed by cultic Mighty Boosh
>
> On Sun, Feb 1, 2009 at 8:19 PM, Brian E. Fox  wrote:
>   
>> I don't see how you can have both an ask-first approach and not some 
>> business process to handle it. The recommended setup we like to see is to 
>> let developers have access to the repos, but keep the official builds behind 
>> the Nexus Procurement repo so that you are sure what is officially built. 
>> It's the best of both worlds. If they really insist on being 100% offline, 
>> then you are stuck with a completely manual process that will be 
>> bureaucratic regardless of the existence of a tool or not. It simply isn't 
>> practical to try and pull down all 80gb of central and every other repo you 
>> might ever want and then hide in a corner hoping you never need something 
>> more. It has to be a balanced approach.
>>
>> -Original Message-
>> From: Merv Green [mailto:paradeofh...@gmail.com]
>> Sent: Sunday, February 01, 2009 2:14 PM
>> To: Maven Users List
>> Subject: Re: Maven for the internet afraid
>>
>> I need to clarify my question.
>>
>> The security people at my company certainly want the finest-grained 
>> control possible over artifacts, that is, an ask-first model where 
>> they approve each individually. I don't question that we can force 
>> Maven into this mindset, but whether we can do so without 
>> significantly hindering its usefulness.
>>
>> For us, a reactive approach like what Nexus's procurement mechanism 
>> assists with will inevitably turn artifact approval into an agonizing 
>> bureaucratic process at exactly the wrong times for developers. To 
>> ensure that relatively arcane corners of dependency resolution do not 
>> hamstring them in the midst of coding frenzies, I need a big-bang 
>> approach to front-load the repository. Basically, how can I minimize 
>> the pain when someone tries to use an already approved artifact in an 
>> unanticipated configuration?
>>
>> Incidentally, I have been happily experimenting with Nexus for a 
>> little while now. Good work.
>> 
>>> In short, two handy URLs:
>>> http://books.sonatype.com/nexus-book/reference/procure.html
>>> http://blogs.sonatype.com/people/2009/01/nexus-professional-what-is-
>>> procurement/
>>>
>>>
>>> Hope helps,
>>> ~t~
>>>
>>>
>>> On Sat, Jan 31, 2009 at 9:36 PM, Merv Green  wrote:
>>>
>>>
>>>   
 So, in my quest to take Maven completely internal, I'm still 
 grappling with a couple of use cases:

 1. Gathering plugin dependencies

 We have some list of approved plugins we somehow decide we need. 
 For each, we want to populate our repo with any artifacts those 
 plugins might require in use.

 During the approval process we create dummy projects to exercise 
 each plugin, then we build those projects against a proxy repo and 
 declare whatever landed in the proxy kosher. That step rubs me 
 wrong because I feel like Maven is resolving plugin dependencies 
 based on the plugin's configuration for a particular project, and 
 we'll eas

Getting classpath list from non ant-run plugins

2009-01-21 Thread Chris Graham

Hi all.

Using the ant-run plugin, you can get properties, like this:



What I'd like to do it to get access to the same classpath entries but from
a normal (ie not an ant-run derivative) plugin.

Ideally, I'd like to use something like this:


${maven.compile.classpath}


Or some other variable.

Can this be done?

-Chris

-- 
View this message in context: 
http://www.nabble.com/Getting-classpath-list-from-non-ant-run-plugins-tp21581532p21581532.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: ConversionException

2009-01-14 Thread Chris Lacy


The problem seems to have magically gone away.  My guess is that it started
working after I cleaned my test project.

Chris


Chris Lacy wrote:
> 
> 
> I'm having the same problem, also (Eclipse plugin executing on
> MavenEmbedder).  Did y'all ever figure this one out?
> 
> Chris
> 
> 
> Jörg Schaible-2 wrote:
>> 
>> Hi Dmitry,
>> 
>> Dmitry Beransky wrote:
>> 
>>> I wish I remembered since I just got this error again.
>> 
>> Please open an issue for the war-plugin.
>> 
>> - Jörg
>> 
>>> 
>>> On Thu, Nov 6, 2008 at 5:44 AM, eznibe  wrote:
>>>>
>>>> Hi,
>>>>
>>>> Did you find the problem, since im now getting the same exception
>>>>
>>>> thanks
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> Dmitry Beransky-3 wrote:
>>>>>
>>>>> Hi,
>>>>>
>>>>> what could be causing this exception (in maven 2.0.9)?
>>>>>
>>>>> [INFO] Trace com.thoughtworks.xstream.converters.ConversionException:
>>>>> dependenciesInfo : dependenciesInfo
>>>>>  Debugging information 
>>>>> message : dependenciesInfo : dependenciesInfo
>>>>> cause-exception :
>>>>> com.thoughtworks.xstream.mapper.CannotResolveClassException
>>>>> cause-message   : dependenciesInfo : dependenciesInfo
>>>>> class   : org.apache.maven.plugin.war.util.WebappStructure
>>>>> required-type   : org.apache.maven.plugin.war.util.WebappStructure
>>>>> path: /webapp-structure/dependenciesInfo
>>>>> line number : 10
>>>>> ---
>>>>> at
>>>>>
>> com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:63)
>>>>> at
>>>>>
>> com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:45)
>>>>> at
>>>>>
>> com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:46)
>>>>> at
>>>>>
>> com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:117)
>>>>> at
>>>>>
>> com.thoughtworks.xstream.core.ReferenceByXPathMarshallingStrategy.unmarshal(ReferenceByXPathMarshallingStrategy.java:29)
>>>>> at
>>>>> com.thoughtworks.xstream.XStream.unmarshal(XStream.java:846)
>>>>>
>>>>> Here's what the pom looks like:
>>>>>
>>>>> 
>>>>> http://maven.apache.org/POM/4.0.0";
>>>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>>>>>  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
>>>>> http://maven.apache.org/xsd/maven-4.0.0.xsd";>
>>>>> 4.0.0
>>>>> notificationWebUI
>>>>> war
>>>>>
>>>>> 
>>>>> service.notification
>>>>> notificationProject
>>>>> 1.1.2-SNAPSHOT
>>>>> ../pom.xml
>>>>> 
>>>>>
>>>>> 
>>>>> 
>>>>> ${pom.groupId}
>>>>> notificationClient
>>>>> 1.1.2-SNAPSHOT
>>>>> provided
>>>>> 
>>>>> 
>>>>> 
>>>>>
>>>>>
>>>>> thanks
>>>>> Dmitry
>>>>>
>>>>> -
>>>>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>>>>> For additional commands, e-mail: users-h...@maven.apache.org
>>>>>
>>>>>
>>>>>
>>>>
>>>> --
>>>> View this message in context:
>>>> http://www.nabble.com/ConversionException-tp19730105p20361267.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
>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/ConversionException-tp19730105p21465930.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: ConversionException

2009-01-13 Thread Chris Lacy


I'm having the same problem, also (Eclipse plugin executing on
MavenEmbedder).  Did y'all ever figure this one out?

Chris


Jörg Schaible-2 wrote:
> 
> Hi Dmitry,
> 
> Dmitry Beransky wrote:
> 
>> I wish I remembered since I just got this error again.
> 
> Please open an issue for the war-plugin.
> 
> - Jörg
> 
>> 
>> On Thu, Nov 6, 2008 at 5:44 AM, eznibe  wrote:
>>>
>>> Hi,
>>>
>>> Did you find the problem, since im now getting the same exception
>>>
>>> thanks
>>>
>>>
>>>
>>>
>>>
>>> Dmitry Beransky-3 wrote:
>>>>
>>>> Hi,
>>>>
>>>> what could be causing this exception (in maven 2.0.9)?
>>>>
>>>> [INFO] Trace com.thoughtworks.xstream.converters.ConversionException:
>>>> dependenciesInfo : dependenciesInfo
>>>>  Debugging information 
>>>> message : dependenciesInfo : dependenciesInfo
>>>> cause-exception :
>>>> com.thoughtworks.xstream.mapper.CannotResolveClassException
>>>> cause-message   : dependenciesInfo : dependenciesInfo
>>>> class   : org.apache.maven.plugin.war.util.WebappStructure
>>>> required-type   : org.apache.maven.plugin.war.util.WebappStructure
>>>> path: /webapp-structure/dependenciesInfo
>>>> line number : 10
>>>> ---
>>>> at
>>>>
> com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:63)
>>>> at
>>>>
> com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:45)
>>>> at
>>>>
> com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:46)
>>>> at
>>>>
> com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:117)
>>>> at
>>>>
> com.thoughtworks.xstream.core.ReferenceByXPathMarshallingStrategy.unmarshal(ReferenceByXPathMarshallingStrategy.java:29)
>>>> at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:846)
>>>>
>>>> Here's what the pom looks like:
>>>>
>>>> 
>>>> http://maven.apache.org/POM/4.0.0";
>>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>>>>  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
>>>> http://maven.apache.org/xsd/maven-4.0.0.xsd";>
>>>> 4.0.0
>>>> notificationWebUI
>>>> war
>>>>
>>>> 
>>>> service.notification
>>>> notificationProject
>>>> 1.1.2-SNAPSHOT
>>>> ../pom.xml
>>>> 
>>>>
>>>> 
>>>> 
>>>> ${pom.groupId}
>>>> notificationClient
>>>> 1.1.2-SNAPSHOT
>>>> provided
>>>> 
>>>> 
>>>> 
>>>>
>>>>
>>>> thanks
>>>> Dmitry
>>>>
>>>> -
>>>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>>>> For additional commands, e-mail: users-h...@maven.apache.org
>>>>
>>>>
>>>>
>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/ConversionException-tp19730105p20361267.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
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/ConversionException-tp19730105p21448513.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



Where do general resources go?

2009-01-09 Thread Chris
My project has a lot of files that are used for the build or during 
design, but shouldn't end up in the target directory. For example, we 
have a directory named /design_docs, installer config files, icons used 
by the installer, code formatting standards, etc. Some of these files 
are referenced during the build, others are just internal documentation.


Where do these files belong in a proper Maven directory structure?

I've put them in src/test/resources, but I don't think they belong there.


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



access to offline switch in POM & JUnits

2008-12-22 Thread Chris Berry

Greetings,
I need to configure a few JUnits to *not*  run when in I'm running  
offline (i.e mvn -o)

I tried many incarnations and nothing seems to work.
It seems that ${settings.offline} should work (according to a few  
posts here and there), but it does not...


Here's what I'm trying in my POM:


.
 
${settings.offline}

.


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


 

is.offline
${isOffline}


And then in my JUnit, I check against the system property; "is.offline"
And it is always just the literal; "${settings.offline}"  (or whatever  
else I've tried)


What is the maven variable that corresponds to the "-o" switch??
Thanks,
-- Chris

PS; I have put  in my settings.xml (or alternately,  
true)



S'all good  ---   chriswberry at gmail dot com




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



Re: Renaming jars using the assembly plugin

2008-12-13 Thread Chris Graham

It appears that when you unpack things, then you can not change their names.
And for whatever reasons, what I had was overly complex.

This works:





zip

false



   
${artifact.artifactId}.${artifact.extension}

*:jar





-Chris


Chris Graham wrote:
> 
> Hi All.
> 
> I am attempting to build a zip file of all listed dependencies of a
> project.
> 
> I am sucessfully creating the zip file with all deps included in it.
> However, I need to strip the version numbers from the jar files.
> 
> This is the assembly file, it is packaged as a jar file.
> 
> 
> 
> 
> 
> zip
> 
> false
> 
> 
> 
> 
> true
> 
> 
> *.jar
> 
> 
> runtime
> 
> 
> 
> 
> It is used as such:
> 
> 
> 
> 
> maven-assembly-plugin
> 
> 
> zip-for-wid
> 
> 
> 
> 
> make-assembly
> package
> 
> attached
> 
> 
> 
> 
> 
>
> au.com.warpspeed.maven.assemblies
> zip-for-wid
> 0.0.1-SNAPSHOT
> 
> 
> 
> 
> I've tried using the outputFileNameMapping entry, but it does not work.
> 
> Help!
> 
> This is driving me nuts!
> 
> -Chris
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Renaming-jars-using-the-assembly-plugin-tp20988586p20988731.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



Renaming jars using the assembly plugin

2008-12-13 Thread Chris Graham

Hi All.

I am attempting to build a zip file of all listed dependencies of a project.

I am sucessfully creating the zip file with all deps included in it.
However, I need to strip the version numbers from the jar files.

This is the assembly file, it is packaged as a jar file.





zip

false




true


*.jar


runtime




It is used as such:




maven-assembly-plugin


zip-for-wid




make-assembly
package

attached





au.com.warpspeed.maven.assemblies
zip-for-wid
0.0.1-SNAPSHOT




I've tried using the outputFileNameMapping entry, but it does not work.

Help!

This is driving me nuts!

-Chris

-- 
View this message in context: 
http://www.nabble.com/Renaming-jars-using-the-assembly-plugin-tp20988586p20988586.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



Force build of another eclipse project?

2008-12-10 Thread Chris

Is there a way for one Maven/Eclipse project to force the build of another?

I asked this question once before, and the answer was to create a 
"reactor" project and make the dependent projects modules. This is not 
possible; we can't rearrange our directory structures. These two 
projects are peers and are not part of a larger structure.


All I need is a command, which can be issued from within a Maven POM or 
an Ant script, to trigger a "mvn install" in another project in the 
Eclipse environment.



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



Assign path to dependency to a property?

2008-12-06 Thread Chris
How do I assign the path to a particular dependency to a property, which 
I can then pass to an Ant script?


For example,

value="${maven.some.syntax.here.to.point.to.some.groupId.artifactId}"/>



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



qdox-current.jar is missing from repo1.maven.org

2008-12-03 Thread Chris Helck
What happened to
http://repo1.maven.org/maven/vdoclet/jars/qdoc-current.jar ?
When I wget it I get a "403 Forbidden" error.

This used to work -- just a few weeks ago. I can no longer create site
documentation for maven1 projects.

Thanks,
C. Helck

**
This communication and all information (including, but not limited to,
 market prices/levels and data) contained therein (the "Information") is
 for informational purposes only, is confidential, may be legally
 privileged and is the intellectual property of ICAP plc and its affiliates
 ("ICAP") or third parties. No confidentiality or privilege is waived or
 lost by any mistransmission. The Information is not, and should not
 be construed as, an offer, bid or solicitation in relation to any
 financial instrument or as an official confirmation of any transaction.
 The Information is not warranted, including, but not limited, as to
 completeness, timeliness or accuracy and is subject to change
 without notice. ICAP assumes no liability for use or misuse of the
 Information. All representations and warranties are expressly
 disclaimed. The Information does not necessarily reflect the views of
 ICAP. Access to the Information by anyone else other than the
 recipient is unauthorized and any disclosure, copying, distribution or
 any action taken or omitted to be taken in reliance on it is prohibited. If
 you receive this message in error, please immediately delete it and all
 copies of it from your system, destroy any hard copies of it and
 notify the sender.
**



Proper syntax for referencing dependencies in Ant?

2008-12-01 Thread Chris

At the bottom of this page:

http://maven.apache.org/plugins/maven-antrun-plugin/examples/classpaths.html

it says that you can use the path to each dependency artifact in your 
Ant script. I can't get this to work. Can anyone give me the right 
syntax with an example?


This fails:
refid="maven.dependency.commons-logging:commons-logging:jar.path"/>


${logging_jar}


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



Re: How to get reference to dependency fileset in Ant?

2008-12-01 Thread Chris

Chris wrote:

Wayne Fay wrote:
I'd like to copy all of the jar files that my app depends on to a 
particular

directory.


Any specific reason you're not just doing this with the dependency 
plugin?
http://maven.apache.org/plugins/maven-dependency-plugin/copy-dependencies-mojo.html 



Wayne


Yes, several. There are a great many things that Maven can't handle that 
Ant does very nicely. It's all part of a larger build process for 
creating the final release that involves several steps that are beyond 
the capabilities of the assembly plugin. So yes, there is a use case for 
getting filesets of dependencies in Ant.


I don't mean to dis Maven -- it's a great tool -- but it has limitations.


For the curious, I figured it out. Pass in the classpath, instead of a 
fileset. The  task in Ant 1.7 will accept a path as well as a fileset.



  

  



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



antrun plugin: include all jars?

2008-12-01 Thread Chris
When I invoke the antrun plugin, how do I get Maven to include all of 
the Ant jars on the classpath, not just the main one?


There are a ton of Ant optional tasks that I can't seem to use, and when 
I add extra Ant jar files to the pom, the antrun plugin isn't picking 
them up.



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



Any way to create maven1 maven2 dependency data?

2008-12-01 Thread Chris Helck
I have a mix of maven1 and maven2 projects. I would like to create
dependency data for all versions of my projects and poms. Is there any
way to do this?

It seems to me that maven2 poms would be easier. I have a maven2 repo
with all my published components. At first I thought I could write a
script the fetches the pom.xml files, extracts the relevant XML snippets
and create the dependency data. Then I realized I'd have to handle
parent/child relationships and evaluating properties and I ran out of
steam. Any suggestions?

Maven1 project.xml files are not published to the repo, so I'd have to
use what's in source control. Again I run into parent/child
relationships and properties.

The reason I want to do this is to get a picture of dependencies across
my line of applications. I want to know which projects are still using
old versions of components. I also want a more thorough way of finding
mismatched transitive dependencies.

Thanks,
Christopher Helck


**
This communication and all information (including, but not limited to,
 market prices/levels and data) contained therein (the "Information") is
 for informational purposes only, is confidential, may be legally
 privileged and is the intellectual property of ICAP plc and its affiliates
 ("ICAP") or third parties. No confidentiality or privilege is waived or
 lost by any mistransmission. The Information is not, and should not
 be construed as, an offer, bid or solicitation in relation to any
 financial instrument or as an official confirmation of any transaction.
 The Information is not warranted, including, but not limited, as to
 completeness, timeliness or accuracy and is subject to change
 without notice. ICAP assumes no liability for use or misuse of the
 Information. All representations and warranties are expressly
 disclaimed. The Information does not necessarily reflect the views of
 ICAP. Access to the Information by anyone else other than the
 recipient is unauthorized and any disclosure, copying, distribution or
 any action taken or omitted to be taken in reliance on it is prohibited. If
 you receive this message in error, please immediately delete it and all
 copies of it from your system, destroy any hard copies of it and
 notify the sender.
**



Re: How to get reference to dependency fileset in Ant?

2008-12-01 Thread Chris

Wayne Fay wrote:

I'd like to copy all of the jar files that my app depends on to a particular
directory.


Any specific reason you're not just doing this with the dependency plugin?
http://maven.apache.org/plugins/maven-dependency-plugin/copy-dependencies-mojo.html

Wayne


Yes, several. There are a great many things that Maven can't handle that 
Ant does very nicely. It's all part of a larger build process for 
creating the final release that involves several steps that are beyond 
the capabilities of the assembly plugin. So yes, there is a use case for 
getting filesets of dependencies in Ant.


I don't mean to dis Maven -- it's a great tool -- but it has limitations.


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



How to get reference to dependency fileset in Ant?

2008-11-30 Thread Chris
I'm calling an Ant script using the maven-antrun-plugin. How do I get a 
fileset reference to the dependencies from within my Ant script?


I'd like to copy all of the jar files that my app depends on to a 
particular directory.


I know it's possible if I'm call Maven from Ant (using 
 syntax). But I'm calling Ant from Maven, and 
would like to pass in the fileset reference the same way we pass in 
classpath references.


My pom looks pretty standard, just like these examples:

http://maven.apache.org/plugins/maven-antrun-plugin/examples/classpaths.html


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



Bad checksum problem

2008-11-24 Thread Chris
I'm getting a "checksum failed" error when downloading from the maven 
repository on our network.


What happened was that I created a pom for a jar that didn't have one, 
uploaded it, found an error in it, and uploaded a second time. So the 
checksum for the pom changed.


How do I fix this? My guess is that old checksum is being cached 
someplace, but I don't know where. Or maybe this is an Archiva problem?





11/24/08 11:56:45 AM CST: Downloading archiva.internal : 
org/tigris/subversion/svnant/1.2.0-RC1/svnant-1.2.0-RC1.pom


11/24/08 11:56:45 AM CST: Downloaded [archiva.internal] -> 
http://paine:8081/archiva/repository/internal//org/tigris/subversion/svnant/1.2.0-RC1/svnant-1.2.0-RC1.pom


11/24/08 11:56:45 AM CST: [WARN] *** CHECKSUM FAILED - Checksum failed 
on download: local = '362357268355c8e642ac2580621d209f7825eee3'; remote 
= '9865d36d3b519cf0d53b8fac1c394c37db405445' - RETRYING



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



Re: override maven-compiler-plugin?

2008-11-20 Thread Chris Lieb
I've never had this issue with aspectj-maven-plugin.  Here is the
configuration that I use for the compiler and aspectj plugins (works
with jar and war packaging, perhaps others):


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

1.5
1.5
true
true
UTF-8




org.codehaus.mojo
aspectj-maven-plugin



compile
test-compile




1.5
1.5
UTF-8



org.aspectj
aspectjrt
1.6.1


org.aspectj
aspectjtools
1.6.1




-- Chris

matthew hindle wrote:
> Apologies Nabble 2 seemed to mess the code up.
>
> Hi, I'm trying to override the default maven compiler with
> aspectj-maven-plugin. But it insists on compiling.
>
> My compiler settings are:
>
> 
>   org.codehaus.mojo
>   aspectj-maven-plugin
>   1.1-alpha
>   
>   1.6
>   1.6
>   1.6
>   true
>   warning
>   
> src/main/aspect
>   true
>   
>   
>   
>   org.aspectj
>   aspectjrt
>   1.6.1
>   
>   
>   org.aspectj
>   aspectjtools
>   1.6.1
>   
>   
>   
>
>  compile
>   compile
>   
>   compile
>   
> 
> 
>test-compile
> test-compile
>  
>   test-compile
>  
> 
>
> 
>
> I have even tried to exclude compiled classes with:
>
>  
>   maven-compiler-plugin 
>   
>   
>   **/*.*
>   
>   
>  
>
> This still tries to compile the test cases.
>
> Many Thanks,
> Matt.
>   

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



Location of changelog, installer files?

2008-11-10 Thread Chris
Where in the standard maven directory layout should I put the changelog 
for my app (changelog.txt)?


Where should I put files that are used only by the installer? These are 
files that are needed at build time, but shouldn't be distributed. They 
include the XML file that tells the install tool how to build the 
release, and a few JPGs used on the installer screens.


Where should I put the script used by our obfuscator?

It looks like files like readme.txt and license.txt go in the root of 
the project, but I don't feel comfortable putting files other than 
changelog.txt there. Perhaps in src/test/resources?



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



Re: SSH Slaves plugin can't connect

2008-11-10 Thread Chris Lieb
Sorry, posted to the wrong list.  This was supposed to go to
[EMAIL PROTECTED]

Chris

Chris Lieb wrote:
> I am trying to set up a Linux slave using the SSH Slaves plugin
> connecting from a Linux host.  I have entered the connection information
> for the slave into Hudson and made sure that you can remotely log in to
> the slave using the slave user.  However, it always shows up as offline
> and when I look at the slave log, I see the following:
>
> [11/10/08 11:00:34] [SSH] Opening SSH connection to slavebox:22.
> [11/10/08 11:00:34] [SSH] Authenticating as hudson-slave/**.
> java.io.IOException: Password authentication failed.
>   at 
> com.trilead.ssh2.auth.AuthenticationManager.authenticatePassword(AuthenticationManager.java:317)
>   at 
> com.trilead.ssh2.Connection.authenticateWithPassword(Connection.java:312)
>   at 
> hudson.plugins.sshslaves.SSHLauncher.openConnection(SSHLauncher.java:295)
>   at hudson.plugins.sshslaves.SSHLauncher.launch(SSHLauncher.java:105)
>   at hudson.slaves.SlaveComputer$1.run(SlaveComputer.java:116)
>   at 
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
>   at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
>   at java.lang.Thread.run(Thread.java:619)
> Caused by: java.io.IOException: Authentication method password not supported 
> by the server at this stage.
>   at 
> com.trilead.ssh2.auth.AuthenticationManager.authenticatePassword(AuthenticationManager.java:287)
>   ... 7 more
> [11/10/08 11:00:34] [SSH] Connection closed.
>
>
> I tried disabling the password on the hudson-slave account and removing
> the password from the Hudson slave configuration, but I received the
> exact same error, complete with six stars in place of the password in
> the second line of the log file.
>
> Is there something special that I need to do to get this plugin to
> work?  If this plugin doesn't work, how else can I set up a slave on an
> X-less Linux box?
>
> Thanks,
> Chris
>
>
>   

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



SSH Slaves plugin can't connect

2008-11-10 Thread Chris Lieb
I am trying to set up a Linux slave using the SSH Slaves plugin
connecting from a Linux host.  I have entered the connection information
for the slave into Hudson and made sure that you can remotely log in to
the slave using the slave user.  However, it always shows up as offline
and when I look at the slave log, I see the following:

[11/10/08 11:00:34] [SSH] Opening SSH connection to slavebox:22.
[11/10/08 11:00:34] [SSH] Authenticating as hudson-slave/**.
java.io.IOException: Password authentication failed.
at 
com.trilead.ssh2.auth.AuthenticationManager.authenticatePassword(AuthenticationManager.java:317)
at 
com.trilead.ssh2.Connection.authenticateWithPassword(Connection.java:312)
at 
hudson.plugins.sshslaves.SSHLauncher.openConnection(SSHLauncher.java:295)
at hudson.plugins.sshslaves.SSHLauncher.launch(SSHLauncher.java:105)
at hudson.slaves.SlaveComputer$1.run(SlaveComputer.java:116)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.io.IOException: Authentication method password not supported by 
the server at this stage.
at 
com.trilead.ssh2.auth.AuthenticationManager.authenticatePassword(AuthenticationManager.java:287)
... 7 more
[11/10/08 11:00:34] [SSH] Connection closed.


I tried disabling the password on the hudson-slave account and removing
the password from the Hudson slave configuration, but I received the
exact same error, complete with six stars in place of the password in
the second line of the log file.

Is there something special that I need to do to get this plugin to
work?  If this plugin doesn't work, how else can I set up a slave on an
X-less Linux box?

Thanks,
Chris



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



Re: Mojo fails to read parameters fed via plugin config

2008-11-07 Thread Chris Pall
I filed a bug on this.

-- cgp



On Wed, Nov 5, 2008 at 12:37 PM, Chris Pall <[EMAIL PROTECTED]> wrote:

> I would confirm this behavior. Is this a bug? Shouldn't it read the
> configurations from inside the executions? Otherwise, you can't specify a
> different config for each execution. The example below would conditionally
> deploy to either one or two tomcat configurations -- but without the
> configuration being picked up as part of the execution, it doesn't work. Or,
> is it a problem with the plugin itself?
>
> 
>   
>   tomcat_server
>   !tomcat2_url
>   
>   
>   
>   
>   org.codehaus.mojo
>   tomcat-maven-plugin
>   
>  
>   
>
> tc_${appName}_${tier}_${env}
>   ${tomcat_url}
>   ${tomcat_deploy_path}
>   true
>   
>   
>   
>   
>   
>   
>  
>   
>   tomcat2_server
>   tomcat2_url
>   
>   
>   
>   
>   org.codehaus.mojo
>   tomcat-maven-plugin
>   
>   
>   first
>   
>
> tc_${appName}_${tier}_${env}
>   ${tomcat_url}
>   ${tomcat_deploy_path}
>   true
>   
>   
>   
>   second
>   
>
> tc_${appName}_${tier}_${env}
>   ${tomcat2_url}
>   ${tomcat_deploy_path}
>   true
>   
>   
>   
>   
>   
>   
>  
> 
>
> -- cgp
>
>
>
>


Re: Mojo fails to read parameters fed via plugin config

2008-11-05 Thread Chris Pall
I would confirm this behavior. Is this a bug? Shouldn't it read the
configurations from inside the executions? Otherwise, you can't specify a
different config for each execution. The example below would conditionally
deploy to either one or two tomcat configurations -- but without the
configuration being picked up as part of the execution, it doesn't work. Or,
is it a problem with the plugin itself?


  
  tomcat_server
  !tomcat2_url
  
  
  
  
  org.codehaus.mojo
  tomcat-maven-plugin
  
 
  

tc_${appName}_${tier}_${env}
  ${tomcat_url}
  ${tomcat_deploy_path}
  true
  
  
  
  
  
  
 
  
  tomcat2_server
  tomcat2_url
  
  
  
  
  org.codehaus.mojo
  tomcat-maven-plugin
  
  
  first
  

tc_${appName}_${tier}_${env}
  ${tomcat_url}
  ${tomcat_deploy_path}
  true
  
  
  
  second
  

tc_${appName}_${tier}_${env}
  ${tomcat2_url}
  ${tomcat_deploy_path}
  true
  
  
  
  
  
  
 


-- cgp


Problem with Perforce SCM plugin: requires password

2008-11-05 Thread Chris Andersen

I've been using the Perforce SCM plugin for about a year now in our project
and it has worked fine up until today. Now suddenly when I try to do
releases of our project, the SCM plugin fails with the exception:

  "password is required for the perforce scm plugin"

Searching for this online I find that a recent patch to the plugin forces a
password to be set. Here's a link to a post about this:

http://www.nabble.com/-jira--Created:-(SCM-415)-1.1-requires-setting-a-Perforce-password-breaking-Perforce-setup-for-external-authentication-td19713201.html

Apparently this problem is recognized and this post contains a patch for it
but I have no way of knowing how to use it. Is there a work-around for this
problem? 

This is a serious show-stopper right now. I can't build new releases of our
product until I have a work around for this.

Thanks
-- 
View this message in context: 
http://www.nabble.com/Problem-with-Perforce-SCM-plugin%3A-requires-password-tp20343436p20343436.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



RE: repo1.maven.org is really slow

2008-10-28 Thread Chris Helck
What monetary purpose is there to scraping the repo? I want to know if there is 
a security issue related to using Maven.
-C. Helck 

-Original Message-
From: Brian E. Fox [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 28, 2008 8:56 AM
To: Maven Users List
Subject: Re: repo1.maven.org is really slow

We have been getting hit really hard by people trying to scrape the repo for 
monetary purposes. We block them when it causes problems and then they get more 
sneaky about their methods.

The machine load was going through the roof so we are in the process of 
installing a balancer and an additional machine. Last night we switched the 
http server to something more suitable for static files and the cpu load is 
very low now so I think it¹s an overall improvement. The throughput I¹m seeing 
here is normal, so perhaps you had a temporary network bottleneckbut yes it 
was slow the past few days and should be normal now.


On 10/28/08 7:06 AM, "Ray Krueger" <[EMAIL PROTECTED]> wrote:

> Has anyone noticed that repo1 has been really slow the past couple days?
> It just took me 20 seconds to download commons-lang which is all of 237k.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


**
This communication and all information (including, but not limited to,
 market prices/levels and data) contained therein (the "Information") is
 for informational purposes only, is confidential, may be legally
 privileged and is the intellectual property of ICAP plc and its affiliates
 ("ICAP") or third parties. No confidentiality or privilege is waived or
 lost by any mistransmission. The Information is not, and should not
 be construed as, an offer, bid or solicitation in relation to any
 financial instrument or as an official confirmation of any transaction.
 The Information is not warranted, including, but not limited, as to
 completeness, timeliness or accuracy and is subject to change
 without notice. ICAP assumes no liability for use or misuse of the
 Information. All representations and warranties are expressly
 disclaimed. The Information does not necessarily reflect the views of
 ICAP. Access to the Information by anyone else other than the
 recipient is unauthorized and any disclosure, copying, distribution or
 any action taken or omitted to be taken in reliance on it is prohibited. If
 you receive this message in error, please immediately delete it and all
 copies of it from your system, destroy any hard copies of it and
 notify the sender.
**



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



  1   2   3   4   5   6   7   >