Re: [maven-site-plugin] trouble migrating from 3.0-beta3 to 3.0, bug?

2012-02-24 Thread Olivier Lamy
2012/2/24 nodje :
> Good catch!
>
> That was it, it works fine now.
>
> Do you consider putting the  section inside the site plugin a
> best practice?

Perso, I prefer the reporting as it's a good separation (IMHO more
easily readable).
BTW both are supported.

>
> Olivier Lamy [via Maven] wrote:
>> 2012/2/23 Joseph Argiro <[hidden email]
>> >:
>>> Did you move the   section  INSIDE the  site plugin
>> AFAIK It's not mandatory.
>>
>> @nodje.co
>> Can you use changelog plugin from Apache rather than a very old
>> version from Codehaus.
>>
>>             
>>                 org.apache.maven.plugins
>>                 maven-changelog-plugin
>>                 2.2
>>             
>>
>>>
>>> I had the same problem & fixed it by removing the reporting section
>>> And rewriting the maven-site-plugin  section of the pom
>>>
>>> See http://maven.apache.org/plugins/maven-site-plugin/maven-3.html
>>> Look at old configuration / new configuration
>>>
>>> -Original Message-
>>> From: nodje [mailto:[hidden email]
>> ]
>>> Sent: Thursday, February 23, 2012 12:23 AM
>>> To: [hidden email] 
>>> Subject: Re: [maven-site-plugin] trouble migrating from 3.0-beta3 to 3.0,
>>> bug?
>>>
>>> Hum, I guess I can provide something.
>>>
>>> I can send you the smallest 'mvn site' failing project.
>>> Note that it does in a similar fashion on all failing projects.
>>>
>>> I've integrated the parent pom into the project pom for convenience, I
>>> hope it'll work without problem for you.
>>>
>>> I'll send it on you apache email.
>>>
>>> cheers
>>>
>>> Olivier Lamy [via Maven] wrote:
 Hello,
 Do you have a sample project to reproduce that ?

 2012/2/22 nodje <[hidden email]
 >:

> migration form 2.x to 3.0-betax wasn't much of a problem, but since
 then, I
> had to release components and fix version.
>
> Now with maven-site-plugin:3.0, I have a recurring error and can't
 find any
> information on it. It basically looks like this, happens on 'mvn site'
 goal.
>
> Number of foreign imports: 1
> import: Entry[import  from realm ClassRealm[maven.api, parent: null]]
>
> -
>
>        at
>

>>>
>> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuild
>>> PluginManager.java:139)

>        at
>

>>>
>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java
>>> :209)

>        ... 19 more
> Caused by: org.apache.maven.plugin.PluginContainerException: An API
> incompatibility was encountered while executing
> org.apache.maven.plugins:maven-site-plugin:3.0:site:
> java.lang.AbstractMethodError: null
>
> I still have a couple of small components which can successfully pass
>>> the
> 'site' goal, but they don't seem to have anything different from the
 others.
> Can't figure anything form those, site.xml is identical in every
>>> project.
>
> See end of post for complete debug stack trace.
>
> Thanks for any help or pointer.
>
>
>
> realm =    plugin>org.apache.maven.plugins:maven-site-plugin:3.0
> strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
> urls[0] =
>

>>>
>> file:/Users/nodje/.m2/repository/org/apache/maven/plugins/maven-site-plugi
>>> n/3.0/maven-site-plugin-3.0.jar

> urls[1] =
>

>>>
>> file:/Users/nodje/.m2/repository/org/apache/maven/reporting/maven-reportin
>>> g-exec/1.0.1/maven-reporting-exec-1.0.1.jar

> urls[2] =
>

>>>
>> file:/Users/nodje/.m2/repository/org/apache/maven/reporting/maven-reportin
>>> g-api/3.0/maven-reporting-api-3.0.jar

> urls[3] =
>

>>>
>> file:/Users/nodje/.m2/repository/org/apache/velocity/velocity/1.5/velocity
>>> -1.5.jar

> urls[4] = file:/Users/nodje/.m2/repository/oro/oro/2.0.8/oro-2.0.8.jar
> urls[5] =
> file:/Users/nodje/.m2/repository/velocity/velocity/1.5/velocity-1.5.jar
> urls[6] =
>

>>>
>> file:/Users/nodje/.m2/repository/org/sonatype/aether/aether-util/1.7/aethe
>>> r-util-1.7.jar

> urls[7] =
>

>>>
>> file:/Users/nodje/.m2/repository/org/sonatype/sisu/sisu-inject-bean/1.4.2/
>>> sisu-inject-bean-1.4.2.jar

> urls[8] =
>

>>>
>> file:/Users/nodje/.m2/repository/org/sonatype/sisu/sisu-guice/2.1.7/sisu-g
>>> uice-2.1.7-noaop.jar

> urls[9] =
>

>>>
>> file:/Users/nodje/.m2/repository/org/codehaus/plexus/plexus-interpolation/
>>> 1.14/plexus-interpolation-1.14.jar

> urls[10] =
>

>>>
>> file:/Users/nodje/.m2/repository/org/codehaus/plexus/plexus-component-anno
>>> tations/1.5.5/plexus-component-annotations-1.5.5.jar

> urls[11] =
>

>>>
>> file:/Users/nodje/.m2/repository/org/sonatype/plexus/plexus-sec-dispatcher
>>> /1.3/plexus-sec-dispatcher-1.3.jar

> urls[12] =
>

>>>
>> file:/Users/nodje/.m2/repository/org/so

Re: Is it possible to use a jar overlay pattern, like the war overlay?

2012-02-24 Thread Tim Pizey
Thanks, that looks very promising.
Tim

On 23 February 2012 23:06, Wayne Fay  wrote:
>> What I have done is create  source jar of the first one and unpack
>> that into the second,
>> but it would be really nice to use an overlay plugin,
>> excluding the single resource file and including a different one.
>
> No plugin that I am aware of supports this specific use-case but
> perhaps Shade can help?
>
> http://maven.apache.org/plugins/maven-shade-plugin/examples/resource-transformers.html
>
> Wayne
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>



-- 
Tim Pizey - http://pizey.net/~timp

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



Howto activate ProxyProfile

2012-02-24 Thread Martin Eigenbrodt
The Page https://maven.apache.org/ref/3.0.4/maven-settings/settings.html

says for the element "proxies/proxy*":

> Multiple proxy profiles might come in handy for anyone working from a 
> notebook or other mobile platform, to enable easy switching of entire proxy 
> configurations by simply specifying the profile id, again either from the 
> command line or from the defaults section below.

However there is no "defaults section below" in this document. The xsd  
(https://maven.apache.org/xsd/settings-1.0.0.xsd) has the same problem. Also I 
don't see how to assign an id to a proxy and how I'd pass it at the command 
line. The Documentation is either wrong here or missing some information.


Regards,

Martin

Create standalone maven package

2012-02-24 Thread Dmitry Ivanov
Hello,
In my build process need run one mandatory plugin for all teams. I want to
have one maven package with plugin and all dependencies.
This package must run without connection to any repositories.
Is it possible to create that package?

Best regards,
Dmitry Ivanov


Re: how to copy resources? how to create a zip file with the app jar, the dependent jars and the resources?

2012-02-24 Thread Dennis Lundberg
Hi

You might also want to take a look at appassembler-maven-plugin

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

On Thu, Feb 23, 2012 at 7:40 PM, Maria Cristina
 wrote:
> Sorry for the duplicate post. I am new to Maven and need some help. This
> what I currently have:
>
> 1.
> my project's src/main/resources contains two packages:
> the default package contains two files jndi.properties and log4j.properties
> another package named company.it.app.i18n contains one file called
> MessageResourceBundle.properties
>
> 2.
> my pom includes:
>  
>      
>          
>              org.apache.maven.plugins
>              maven-jar-plugin
>              2.4
>              
>                  
>                      
>                          true
>                          company.it.app.MyApp
>                      
>                      
>                          config/
>                      
>                  
>              
>          
>      
>  
>
>
> 3.
> my class references the resource bundle as follows:
> private static final String BUNDLE_NAME =
> "company.it.app.i18n.MessageResourceBundle";
>
> 4.
> inside the generated executable jar file app-1.0.jar contains:
>
> (i)
> in the manifest the following class path and main class:
> Class-Path: config/ log4j-1.2.7.jar (and other dependent jars)
> Main-Class: company.it.app.MyApp
>
> (ii)
> config/jndi.properties
> config/log4j.properties
>
> (iii)
> company\it\app\i18n\MessageResourceBundle.properties
>
> my IDE results is successful:
> clean and build works and the JUnit tests run successfully
>
> then I do several manual steps
> copy app-1.0.jar to a my destination folder named testapp
> remove jndi.properties and log4j.properties from app-1.0.jar and copy to a
> folder named config in folder testapp
> copy log4j-1.2.7.jar (and other dependent jars) to the folder testapp
>
> my command line result is successful:
> java -jar app-1.0.jar
>
> I'd like to make some changes to achieve the following:
>
> because I'd like to automate my manual steps, I'd like to use Maven to
> automate the creation of a zip file containing:
>
> app-1.0.jar
> lib/log4j-1.2.7.jar (and other dependent jars)
> config/jndi.properties
> config/log4j.properties
>
> I've been trying and I don't know how to copy the resources to the config
> folder without breaking the JUnit tests. Is it possible, if so how? How
> would I create the zip with the structure?
>
> Thanks in advance.



-- 
Dennis Lundberg

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



Re: Create standalone maven package

2012-02-24 Thread Karl Heinz Marbaise
Hi,

there are two opportunities for that purpose:

You can use the maven-assembly-plugin to create an archive which contains
everything you need or you can use appassembler-maven-plugin to achieve
this...

You are talking about the dependencies you have defined for your application
?

Kind regards
Karl Heinz Marbaise

-
Kind regards
Karl Heinz Marbaise

http://www.soebes.de
http://www.skmwiki.de
http://supose.org/wiki/supose
--
View this message in context: 
http://maven.40175.n5.nabble.com/Create-standalone-maven-package-tp5512623p5512671.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



Lookup from WAR to external JAR

2012-02-24 Thread Eric Stein
Hi,
  I'm trying to set up a WAR project which uses NetBeans Lookup to find
services in external JAR files. Right now, I define an interface in the WAR
and the implementations in a couple of JAR projects. I tried adding a
dependency on the WAR to the JAR poms, but mvn clean package doesn't seem to
like that.

0. Is this the right design, or should I be doing something different?
1. What am I missing that I need to make this work?

Thanks,
Eric

--
View this message in context: 
http://maven.40175.n5.nabble.com/Lookup-from-WAR-to-external-JAR-tp5512685p5512685.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: Lookup from WAR to external JAR

2012-02-24 Thread Ron Wheeler

On 24/02/2012 7:55 AM, Eric Stein wrote:

Hi,
   I'm trying to set up a WAR project which uses NetBeans Lookup to find
services in external JAR files. Right now, I define an interface in the WAR
and the implementations in a couple of JAR projects. I tried adding a
dependency on the WAR to the JAR poms, but mvn clean package doesn't seem to
like that.

0. Is this the right design, or should I be doing something different?
1. What am I missing that I need to make this work?



Not sure why  the interface is defined in the WAR.
Interfraces would usually be in with the implementations or in a JAR by 
itself if the idea is to have each implementation in its own JAR.


WARs are not really places for code most of the time and certainly not 
interfaces.


I like to see a WAR project that only has configuration files and the 
very minimal java required to start whatever is being run.



Ron


Thanks,
Eric

--
View this message in context: 
http://maven.40175.n5.nabble.com/Lookup-from-WAR-to-external-JAR-tp5512685p5512685.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





--
Ron Wheeler
President
Artifact Software Inc
email: rwhee...@artifact-software.com
skype: ronaldmwheeler
phone: 866-970-2435, ext 102



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

Re: POM missing in Maven

2012-02-24 Thread Wayne Fay
> I have two functioning Maven builds. When using Maven to install a copy of
> Apache Synapse I get the following message amongst several regarding build
> failure:
>
> [Error] Failed to execute goal org.apache.maven .plugins:maven-remote-
> resources-plugin:1.1:process (default) on project Apache-Synapse: Error 
> finding
> remote resources manifests: c:\ASF\synapse-2.1.0-src\target\maven-shared-
> archive-resources\META-INF\Notice (The system cannot find the path specified)
> This path is missing in the directory structure.

I would ask for help with this issue on the Apache Synapse developers
or users list. They are more familiar with that product's build
process than we are.

Wayne

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



Re: maven antrun plugin 1.7 ignores second execution

2012-02-24 Thread Wayne Fay
> that matches the target of the first execution. However the second
> execution never appears in the log nor is a file created for it. What am I
...
>   5.                     
>   6.                         Starting Apache
>   7.                         pre-integration-test
...
>   21.                     
>   22.                         Stopping Apache
>   23.                         post-integration-test

What command are you executing? "mvn ..."

PS Here's a hint into why this probably isn't working... review the lifecycle:
http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html

Wayne


RE: Lookup from WAR to external JAR

2012-02-24 Thread Chad.Davis


> Hi,
>   I'm trying to set up a WAR project which uses NetBeans Lookup to find
> services in external JAR files. Right now, I define an interface in the WAR 
> and
> the implementations in a couple of JAR projects. I tried adding a dependency
> on the WAR to the JAR poms, but mvn clean package doesn't seem to like
> that.
> 
> 0. Is this the right design, or should I be doing something different?
> 1. What am I missing that I need to make this work?
> 


What do you mean by "doesn't like"?  It sounds like you probably have a 
circular dependency:  your jars must depend upon the interfaces in the war, but 
doesn't your war depend upon the jars since they'll probably be built into the 
web app?

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



Re: Lookup from WAR to external JAR

2012-02-24 Thread Wayne Fay
> services in external JAR files. Right now, I define an interface in the WAR
> and the implementations in a couple of JAR projects. I tried adding a
> dependency on the WAR to the JAR poms, but mvn clean package doesn't seem to
> like that.

Try an experiment for me. Try to use your system's javac to build a
class in one of your Jars which depends on a class in your War, and
specify the War file in the -classpath parameter. Keep in mind this is
what Maven has to do to build your project by calling out to your
system JDK.

PS This doesn't work. Application Servers have special ClassLoaders
that can handle War files.
PPS Extract the code from the War to its own Jar file, and depend on
that in both the War and the other Jars which is what Ron already
said.

Wayne

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



Re: Lookup from WAR to external JAR

2012-02-24 Thread Wayne Fay
> PS This doesn't work. Application Servers have special ClassLoaders
> that can handle War files.

I read the beginning of your email again and you mentioned using
Netbeans Lookup. I have no experience with this. For all I know, there
may be a Maven plugin the Netbeans people have produced which will
help with what you are trying to do.

Perhaps ask the Netbeans people for help. Ultimately I don't see this
being the right approach and you should externalize your interfaces to
their own Jar.

Wayne

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



Re: Lookup from WAR to external JAR

2012-02-24 Thread Eric Stein
Ron, Chad, Wayne,

  Thanks for your help. I'm still pretty new to J2EE, and I wasn't thinking
about the classloader & WAR files. I adjusted the relevant code to be in its
own JAR file, and it is working swimmingly.

Eric

--
View this message in context: 
http://maven.40175.n5.nabble.com/Lookup-from-WAR-to-external-JAR-tp5512685p5513143.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: maven-deploy-plugin 2.7

2012-02-24 Thread Wayne Fay
>                                           
> ${project.distributionManagement.repository.url}
> snapshots
> ${dist.dir.client}/${client.jar.arnes.name}.jar

Generally people are using deploy:deploy-file by specifying all
parameters as -D on the command line. What are you trying to achieve
with this configuration?

Wayne

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



Re: resources

2012-02-24 Thread Wayne Fay
> However I fail to understand why you want to do that the first place..

Probably so they can update the translations (MessageResourceBundle)
without having to rebuild the app.

Wayne

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



Re: Generating resources based on classes

2012-02-24 Thread Wayne Fay
> I want to generate a couple of resources based on the classes I have in
> my project. Therefor, I have 2 questions:
> - How do I get the classpath for the plugin correct? I need access to my
> classes and it's dependencies.
> - In which phase should I put this plugin? The phase I would normally
> use (generate-resources) occurs before the actual compiling of my
> classes... Or should I move the compiler to an earlier phase?

Can you think of any other plugins that need similar behavior? If so,
you can look at those plugins to see how they are doing the same
thing. Perhaps jaxb or jaxws or similar plugins would be a place to
start.

Wayne

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



Re: Generating resources based on classes

2012-02-24 Thread Asmann, Roland
Thanks Wayne, I'll give those a look.


On 24-02-12 18:01, Wayne Fay wrote:
>> I want to generate a couple of resources based on the classes I have in
>> my project. Therefor, I have 2 questions:
>> - How do I get the classpath for the plugin correct? I need access to my
>> classes and it's dependencies.
>> - In which phase should I put this plugin? The phase I would normally
>> use (generate-resources) occurs before the actual compiling of my
>> classes... Or should I move the compiler to an earlier phase?
>
> Can you think of any other plugins that need similar behavior? If so,
> you can look at those plugins to see how they are doing the same
> thing. Perhaps jaxb or jaxws or similar plugins would be a place to
> start.
>
> Wayne
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>

-- 
Roland Asmann
Senior Software Engineer

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

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

Maven sleep plugin/functionality between tasks

2012-02-24 Thread jaybytez
I am using a maven-weblogic-plugin to deploy multiple wars to weblogic.  And
it seems that as I deploy more wars, the memory footprint grows and WLS
doesn't have time to garbage collect before the next war.  So I thought
maybe if I could put a sleep functionality after each run of the
maven-weblogic-plugin to deploy a war, I could shift the sleep time to get
WLS enough time to garbage collect after a war deploy.

I saw this thread using the ant plugin.  Is there any other way or plugin to
create a sleep period in Maven?

http://maven.40175.n5.nabble.com/Let-Maven-wait-between-tests-td77033.html

Thanks,

Jay

--
View this message in context: 
http://maven.40175.n5.nabble.com/Maven-sleep-plugin-functionality-between-tasks-tp5513732p5513732.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



site:site fails due to not resolving in the reactor?

2012-02-24 Thread Benson Margulies
I have a rather vanilla project that fails in release:perform.

The real failure underlying this comes from the following recipe:

1) Eliminate the result jar artifacts from the local repo.

2) run mvn install site:site

the site phase fails in javadoc, complaining that one of the modules
can't find the jar produced by another.

I can reproduce this with 3.0.4. I can probably build up a test case,
but it's hard for me to believe that this does not result from some
fairly simple mischief.

Does this ring any bells?

The error message when it fails is:

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-site-plugin:3.0:site (default-cli) on
project gcoref: failed to get report for
org.apache.maven.plugins:maven-javadoc-plugin: Failed to execute goal
on project gcoref-tools: Could not resolve dependencies for project
com.basistech.gcoref:gcoref-tools:jar:2-bim-candidates-SNAPSHOT:
Failure to find
com.basistech.gcoref:gcoref-core:jar:2-bim-candidates-SNAPSHOT in
http://maven.basistech.net/nexus/content/groups/public was cached in
the local repository, resolution will not be reattempted until the
update interval of Nexus has elapsed or updates are forced -> [Help 1]

The reporting section of the top-level effective Pom, which I imagine
is the most relevant stuff, is :


  /Users/benson/x/gcoref-tc/target/site
  

  maven-site-plugin
  3.0
  
false
false
  


  maven-project-info-reports-plugin
  2.4
  

  
summary
index
dependencies
issue-tracking
scm
  
  
false
false
  

  
  
false
false
  


  maven-javadoc-plugin
  2.8
  

  html
  
javadoc
  
  
utf-8
true
true
  


  non-aggregate
  
javadoc
  
  
utf-8
true
true
  


  aggregate
  
aggregate
  
  
utf-8
true
true
  

  
  
utf-8
true
true
  

  


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



Re: site:site fails due to not resolving in the reactor?

2012-02-24 Thread Benson Margulies
If I eliminate checkstyle and pmd from my pom (not just skip them),
this changes to:

This dependency has been excluded from the Javadoc classpath. You
should rerun javadoc after executing mvn install.
[WARNING] IGNORED to add some artifacts in the classpath. See above.
Downloading: 
http://maven.basistech.net/nexus/content/groups/public/com/basistech/gcoref/gcoref-tools/2-bim-candidates-SNAPSHOT/maven-metadata.xml
Downloading: 
http://maven.basistech.net/nexus/content/groups/public/com/basistech/gcoref/gcoref-tools/2-bim-candidates-SNAPSHOT/gcoref-tools-2-bim-candidates-SNAPSHOT.jar
[WARNING] The dependency:
[com.basistech.gcoref:gcoref-core:jar:2-bim-candidates-SNAPSHOT] can't
be resolved but has been found in the reactor (probably snapshots).
This dependency has been excluded from the Javadoc classpath. You
should rerun javadoc after executing mvn install.
[WARNING] The dependency:
[com.basistech.gcoref:gcoref-tools:jar:2-bim-candidates-SNAPSHOT]
can't be resolved but has been found in the reactor (probably
snapshots).
This dependency has been excluded from the Javadoc classpath. You
should rerun javadoc after executing mvn install.
[WARNING] IGNORED to add some artifacts in the classpath. See above.


On Fri, Feb 24, 2012 at 2:22 PM, Benson Margulies  wrote:
> I have a rather vanilla project that fails in release:perform.
>
> The real failure underlying this comes from the following recipe:
>
> 1) Eliminate the result jar artifacts from the local repo.
>
> 2) run mvn install site:site
>
> the site phase fails in javadoc, complaining that one of the modules
> can't find the jar produced by another.
>
> I can reproduce this with 3.0.4. I can probably build up a test case,
> but it's hard for me to believe that this does not result from some
> fairly simple mischief.
>
> Does this ring any bells?
>
> The error message when it fails is:
>
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-site-plugin:3.0:site (default-cli) on
> project gcoref: failed to get report for
> org.apache.maven.plugins:maven-javadoc-plugin: Failed to execute goal
> on project gcoref-tools: Could not resolve dependencies for project
> com.basistech.gcoref:gcoref-tools:jar:2-bim-candidates-SNAPSHOT:
> Failure to find
> com.basistech.gcoref:gcoref-core:jar:2-bim-candidates-SNAPSHOT in
> http://maven.basistech.net/nexus/content/groups/public was cached in
> the local repository, resolution will not be reattempted until the
> update interval of Nexus has elapsed or updates are forced -> [Help 1]
>
> The reporting section of the top-level effective Pom, which I imagine
> is the most relevant stuff, is :
>
>    
>      /Users/benson/x/gcoref-tc/target/site
>      
>        
>          maven-site-plugin
>          3.0
>          
>            false
>            false
>          
>        
>        
>          maven-project-info-reports-plugin
>          2.4
>          
>            
>              
>                summary
>                index
>                dependencies
>                issue-tracking
>                scm
>              
>              
>                false
>                false
>              
>            
>          
>          
>            false
>            false
>          
>        
>        
>          maven-javadoc-plugin
>          2.8
>          
>            
>              html
>              
>                javadoc
>              
>              
>                utf-8
>                true
>                true
>              
>            
>            
>              non-aggregate
>              
>                javadoc
>              
>              
>                utf-8
>                true
>                true
>              
>            
>            
>              aggregate
>              
>                aggregate
>              
>              
>                utf-8
>                true
>                true
>              
>            
>          
>          
>            utf-8
>            true
>            true
>          
>        
>      
>    

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



Re: POM missing in Maven

2012-02-24 Thread monkeyMan
OK. Should the POM for Maven be in the Maven directory? The reason I ask it 
that it seems to be Mavens attempts to resolve dependencies when  the error 
occurs because of a missing POM.


A POM is evident in the Synapse directory, Maven functions on the command 
line. The directory path does not exist. Is this because Maven is not 
completing the install?


If these are basic questions, sorry, I am just trying to get to the bottom 
of it really.


-Original Message- 
From: Wayne Fay

Sent: Friday, February 24, 2012 2:55 PM
To: Maven Users List
Subject: Re: POM missing in Maven


I have two functioning Maven builds. When using Maven to install a copy of
Apache Synapse I get the following message amongst several regarding build
failure:

[Error] Failed to execute goal org.apache.maven .plugins:maven-remote-
resources-plugin:1.1:process (default) on project Apache-Synapse: Error 
finding

remote resources manifests: c:\ASF\synapse-2.1.0-src\target\maven-shared-
archive-resources\META-INF\Notice (The system cannot find the path 
specified)

This path is missing in the directory structure.


I would ask for help with this issue on the Apache Synapse developers
or users list. They are more familiar with that product's build
process than we are.

Wayne

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


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



RE: POM missing in Maven

2012-02-24 Thread Lyons, Roy
What he is trying to point out is that the missing pom didn’t fail the build.  
It couldn’t find the file you pasted -- that’s the problem in a nutshell.  Its 
an issue with their build setup most likely, and not with maven itself.

-Original Message-
From: monkeyMan [mailto:thebig...@hotmail.com] 
Sent: Friday, February 24, 2012 2:11 PM
To: Maven Users List
Subject: Re: POM missing in Maven

OK. Should the POM for Maven be in the Maven directory? The reason I ask it 
that it seems to be Mavens attempts to resolve dependencies when  the error 
occurs because of a missing POM.

A POM is evident in the Synapse directory, Maven functions on the command line. 
The directory path does not exist. Is this because Maven is not completing the 
install?

If these are basic questions, sorry, I am just trying to get to the bottom of 
it really.

-Original Message-
From: Wayne Fay
Sent: Friday, February 24, 2012 2:55 PM
To: Maven Users List
Subject: Re: POM missing in Maven

> I have two functioning Maven builds. When using Maven to install a 
> copy of Apache Synapse I get the following message amongst several 
> regarding build
> failure:
>
> [Error] Failed to execute goal org.apache.maven .plugins:maven-remote- 
> resources-plugin:1.1:process (default) on project Apache-Synapse: 
> Error finding remote resources manifests: 
> c:\ASF\synapse-2.1.0-src\target\maven-shared-
> archive-resources\META-INF\Notice (The system cannot find the path
> specified)
> This path is missing in the directory structure.

I would ask for help with this issue on the Apache Synapse developers or users 
list. They are more familiar with that product's build process than we are.

Wayne

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


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



Re: POM missing in Maven

2012-02-24 Thread Wayne Fay
> A POM is evident in the Synapse directory, Maven functions on the command
> line. The directory path does not exist. Is this because Maven is not
> completing the install?

I see nothing in the Apache Synapse documentation regarding installing
their product about using Maven to do anything:
http://synapse.apache.org/userguide/installation.html

> If these are basic questions, sorry, I am just trying to get to the bottom
> of it really.

Again, ask for help with this on the Apache Synapse list. Their
developers can "get to the bottom of it" much more quickly than you
will.

Wayne

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



Re: site:site fails due to not resolving in the reactor?

2012-02-24 Thread Lukas Theussl



Benson Margulies wrote:

I have a rather vanilla project that fails in release:perform.

The real failure underlying this comes from the following recipe:

1) Eliminate the result jar artifacts from the local repo.

2) run mvn install site:site

the site phase fails in javadoc, complaining that one of the modules
can't find the jar produced by another.

I can reproduce this with 3.0.4. I can probably build up a test case,
but it's hard for me to believe that this does not result from some
fairly simple mischief.

Does this ring any bells?


one bell ringing here: http://jira.codehaus.org/browse/MSITE-171

HTH,
-Lukas




The error message when it fails is:

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-site-plugin:3.0:site (default-cli) on
project gcoref: failed to get report for
org.apache.maven.plugins:maven-javadoc-plugin: Failed to execute goal
on project gcoref-tools: Could not resolve dependencies for project
com.basistech.gcoref:gcoref-tools:jar:2-bim-candidates-SNAPSHOT:
Failure to find
com.basistech.gcoref:gcoref-core:jar:2-bim-candidates-SNAPSHOT in
http://maven.basistech.net/nexus/content/groups/public was cached in
the local repository, resolution will not be reattempted until the
update interval of Nexus has elapsed or updates are forced ->  [Help 1]

The reporting section of the top-level effective Pom, which I imagine
is the most relevant stuff, is :

 
   /Users/benson/x/gcoref-tc/target/site
   
 
   maven-site-plugin
   3.0
   
 false
 false
   
 
 
   maven-project-info-reports-plugin
   2.4
   
 
   
 summary
 index
 dependencies
 issue-tracking
 scm
   
   
 false
 false
   
 
   
   
 false
 false
   
 
 
   maven-javadoc-plugin
   2.8
   
 
   html
   
 javadoc
   
   
 utf-8
 true
 true
   
 
 
   non-aggregate
   
 javadoc
   
   
 utf-8
 true
 true
   
 
 
   aggregate
   
 aggregate
   
   
 utf-8
 true
 true
   
 
   
   
 utf-8
 true
 true
   
 
   
 

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



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



RE: Howto activate ProxyProfile

2012-02-24 Thread Martin Gainty

 setting a profile with  the name of the profile and the value of the proxy 
would work e.g.

  

  
proxy1
localhost
  to activate simply specify proxy1=localhost at command line
mvn groupId:artifactId:goal -Dproxy1=localhostdoes this help
Martin 
__ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité

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


> From: martineigenbr...@googlemail.com
> Subject: Howto activate ProxyProfile
> Date: Fri, 24 Feb 2012 10:42:20 +0100
> To: users@maven.apache.org
> 
> The Page https://maven.apache.org/ref/3.0.4/maven-settings/settings.html
> 
> says for the element "proxies/proxy*":
> 
> > Multiple proxy profiles might come in handy for anyone working from a 
> > notebook or other mobile platform, to enable easy switching of entire proxy 
> > configurations by simply specifying the profile id, again either from the 
> > command line or from the defaults section below.
> 
> However there is no "defaults section below" in this document. The xsd  
> (https://maven.apache.org/xsd/settings-1.0.0.xsd) has the same problem. Also 
> I don't see how to assign an id to a proxy and how I'd pass it at the command 
> line. The Documentation is either wrong here or missing some information.
> 
> 
> Regards,
> 
> Martin
  

Re: maven antrun plugin 1.7 ignores second execution

2012-02-24 Thread Kai Hackemesser
mvn integration-test.
Wait. I think I got it. Will try Monday at work.

Cheers,
Kai

2012/2/25 Wayne Fay 

> > that matches the target of the first execution. However the second
> > execution never appears in the log nor is a file created for it. What am
> I
> ...
> >   5. 
> >   6. Starting Apache
> >   7. pre-integration-test
> ...
> >   21. 
> >   22. Stopping Apache
> >   23. post-integration-test
>
> What command are you executing? "mvn ..."
>
> PS Here's a hint into why this probably isn't working... review the
> lifecycle:
>
> http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html
>
> Wayne
>


Re: site:site fails due to not resolving in the reactor?

2012-02-24 Thread Benson Margulies
Sure enough.

On Fri, Feb 24, 2012 at 3:33 PM, Lukas Theussl  wrote:
>
>
> Benson Margulies wrote:
>>
>> I have a rather vanilla project that fails in release:perform.
>>
>> The real failure underlying this comes from the following recipe:
>>
>> 1) Eliminate the result jar artifacts from the local repo.
>>
>> 2) run mvn install site:site
>>
>> the site phase fails in javadoc, complaining that one of the modules
>> can't find the jar produced by another.
>>
>> I can reproduce this with 3.0.4. I can probably build up a test case,
>> but it's hard for me to believe that this does not result from some
>> fairly simple mischief.
>>
>> Does this ring any bells?
>
>
> one bell ringing here: http://jira.codehaus.org/browse/MSITE-171
>
> HTH,
> -Lukas
>
>
>>
>> The error message when it fails is:
>>
>> [ERROR] Failed to execute goal
>> org.apache.maven.plugins:maven-site-plugin:3.0:site (default-cli) on
>> project gcoref: failed to get report for
>> org.apache.maven.plugins:maven-javadoc-plugin: Failed to execute goal
>> on project gcoref-tools: Could not resolve dependencies for project
>> com.basistech.gcoref:gcoref-tools:jar:2-bim-candidates-SNAPSHOT:
>> Failure to find
>> com.basistech.gcoref:gcoref-core:jar:2-bim-candidates-SNAPSHOT in
>> http://maven.basistech.net/nexus/content/groups/public was cached in
>> the local repository, resolution will not be reattempted until the
>> update interval of Nexus has elapsed or updates are forced ->  [Help 1]
>>
>> The reporting section of the top-level effective Pom, which I imagine
>> is the most relevant stuff, is :
>>
>>     
>>
>> /Users/benson/x/gcoref-tc/target/site
>>       
>>         
>>           maven-site-plugin
>>           3.0
>>           
>>             false
>>             false
>>           
>>         
>>         
>>           maven-project-info-reports-plugin
>>           2.4
>>           
>>             
>>               
>>                 summary
>>                 index
>>                 dependencies
>>                 issue-tracking
>>                 scm
>>               
>>               
>>                 false
>>
>> false
>>               
>>             
>>           
>>           
>>             false
>>             false
>>           
>>         
>>         
>>           maven-javadoc-plugin
>>           2.8
>>           
>>             
>>               html
>>               
>>                 javadoc
>>               
>>               
>>                 utf-8
>>                 true
>>                 true
>>               
>>             
>>             
>>               non-aggregate
>>               
>>                 javadoc
>>               
>>               
>>                 utf-8
>>                 true
>>                 true
>>               
>>             
>>             
>>               aggregate
>>               
>>                 aggregate
>>               
>>               
>>                 utf-8
>>                 true
>>                 true
>>               
>>             
>>           
>>           
>>             utf-8
>>             true
>>             true
>>           
>>         
>>       
>>     
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>> For additional commands, e-mail: users-h...@maven.apache.org
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>

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