Finding unused dependencies

2014-04-30 Thread Lahiru Gunathilake
Hi Users,

I wonder whether there's an easy way to find unused dependencies for a
module.I have a module which has bunch of dependencies, I have removed most
of them but I wonder whether there's an easy way rather manually doing it.

I there a way to get a warning about unused dependency in a pom file for a
given module.

Thanks
Lahiru

-- 
System Analyst Programmer
PTI Lab
Indiana University


Different profiles with different surefire excludes and includes doesn't work

2014-04-08 Thread Lahiru Gunathilake
Hi All,

I made my parent pom[1] with multiple profiles, and my requirement is the
enable different types of tests for each profiles.

When I just put the default profiles and test it my excludes in default
profile works fine, but when i add another new profile with a different
name (ex: gridTests) and try the default profile, it actually run my
excludes in the new profiles. I have copied my profile configuration below.

Can someone please help me whats wrong I am doing or is it a bug in maven.
This is my maven environment.

Apache Maven 3.0.2 (r1056850; 2011-01-08 19:58:10-0500)
Java version: 1.6.0_24, vendor: Apple Inc.
Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
Default locale: si, platform encoding: MacRoman
OS name: mac os x, version: 10.6.8, arch: x86_64, family: mac


[1]http://pastebin.com/xwvjH45H

Lahiru

-- 
System Analyst Programmer
PTI Lab
Indiana University


Copying license files to my jar in maven-jar-plugin

2012-02-03 Thread Lahiru Gunathilake
Hi all,

I have an issue with one of the Apache Incubator project when it comes to
copying license files. In Apache we use apache parent pom as the main
parent pom of our project. So when we use it it simply copy LICENSE,NOTICE
files of its own to my jars. I have LICENSE,NOTICE files with me for each
module I build. I want to override them and make sure my LICENSE,NOTICE
files are there in place when jar get created.

But I am having a hard time to do that, because I couldn't find proper
configuration of maven-jar-plugin.. if someone can point me to all the
configuration parameters of maven-jar-plugin that would be great, or please
advice me how to solve this kind of an issue.

Regards
Lahiru

-- 
System Analyst Programmer
PTI Lab
Indiana University


Re: Ignoring distributionmanagement repositories and use only the settings.xml repository list to upload artifacts

2010-05-06 Thread Lahiru Gunathilake
Hi Ron,

In my case I have so many modules which are having so many parent poms  :(

Lahiru
On Wed, May 5, 2010 at 5:24 PM, Ron Wheeler
rwhee...@artifact-software.comwrote:

 On 05/05/2010 1:36 AM, Lahiru Gunathilake wrote:

 Hi all,

 I have tons of pom files in my project and each file is having its own
 maven
 repository listed in their distributionmanagement elements, so I want to
 use
 a single repo to do the mvn deploy and point my repository using
 settings.xml file.

 I like to know whether this is possible with maven 2.1.0 or not, if this
 is
 possible can someone please point me on how to do that !

 Thanks in advance
 Lahiru



 Wouldn't that be easier in a parent pom?
 The project poms would not have any distribution management which makes
 them a lot simpler.

 Ron

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




-- 
Apache Qpid, Worlds dominant messaging middleware..!!!

Senior Software Engineer
WSO2 Inc


Re: Ignoring distributionmanagement repositories and use only the settings.xml repository list to upload artifacts

2010-05-06 Thread Lahiru Gunathilake
Yeah got it ... thanks guys, so that I can simply run a mvn deploy from the
super parent location.


Lahiru

On Fri, May 7, 2010 at 5:31 AM, Martin Gainty mgai...@hotmail.com wrote:


 all child project poms have one parent pom which identifies the common
 repository

 Martin Gainty
 __
 Verzicht und Vertraulichkeitanmerkung

 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.






  Date: Fri, 7 May 2010 05:00:38 +0530
  Subject: Re: Ignoring distributionmanagement repositories and use only
 thesettings.xml repository list to upload artifacts
  From: glah...@gmail.com
  To: users@maven.apache.org
 
  Hi Ron,
 
  In my case I have so many modules which are having so many parent poms
  :(
 
  Lahiru
  On Wed, May 5, 2010 at 5:24 PM, Ron Wheeler
  rwhee...@artifact-software.comwrote:
 
   On 05/05/2010 1:36 AM, Lahiru Gunathilake wrote:
  
   Hi all,
  
   I have tons of pom files in my project and each file is having its own
   maven
   repository listed in their distributionmanagement elements, so I want
 to
   use
   a single repo to do the mvn deploy and point my repository using
   settings.xml file.
  
   I like to know whether this is possible with maven 2.1.0 or not, if
 this
   is
   possible can someone please point me on how to do that !
  
   Thanks in advance
   Lahiru
  
  
  
   Wouldn't that be easier in a parent pom?
   The project poms would not have any distribution management which makes
   them a lot simpler.
  
   Ron
  
   -
   To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
   For additional commands, e-mail: users-h...@maven.apache.org
  
  
 
 
  --
  Apache Qpid, Worlds dominant messaging middleware..!!!
 
  Senior Software Engineer
  WSO2 Inc

 _
 The New Busy think 9 to 5 is a cute idea. Combine multiple calendars with
 Hotmail.

 http://www.windowslive.com/campaign/thenewbusy?tile=multicalendarocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_5




-- 
Apache Qpid, Worlds dominant messaging middleware..!!!

Senior Software Engineer
WSO2 Inc


Ignoring distributionmanagement repositories and use only the settings.xml repository list to upload artifacts

2010-05-04 Thread Lahiru Gunathilake
Hi all,

I have tons of pom files in my project and each file is having its own maven
repository listed in their distributionmanagement elements, so I want to use
a single repo to do the mvn deploy and point my repository using
settings.xml file.

I like to know whether this is possible with maven 2.1.0 or not, if this is
possible can someone please point me on how to do that !

Thanks in advance
Lahiru

-- 
Apache Qpid, Worlds dominant messaging middleware..!!!

Senior Software Engineer
WSO2 Inc


Creating a jar with manifest only using maven-bundle-plugin

2009-12-09 Thread Lahiru Gunathilake
Hi all,

I wanted to create  bundle(OSGi jar file) which just have a manifest file
only, so when I try to do that I'm getting the following error.

[WARNING] Warning building bundle org.wso2.carbon:servletbridge:bundle:1.0.0
: Classpath is empty. Private-Package and Export-Package can only expand
from the classpath when there is one
[WARNING] Warning building bundle org.wso2.carbon:servletbridge:bundle:1.0.0
: Instructions for Export-Package that are never used:
javax\.servlet\.resources, javax\.servlet, javax\.servlet\.http,
org\.wso2\.carbon\.bridge, org\.wso2\.carbon\.server\.transports
[WARNING] Warning building bundle org.wso2.carbon:servletbridge:bundle:1.0.0
: Superfluous export-package instructions: [javax.servlet,
javax.servlet.http, javax.servlet.resources, org.wso2.carbon.bridge,
org.wso2.carbon.server.transports]
[WARNING] Warning building bundle org.wso2.carbon:servletbridge:bundle:1.0.0
: Did not find matching referal for *
[ERROR] Error building bundle org.wso2.carbon:servletbridge:bundle:1.0.0 :
The JAR is empty
[ERROR] Error(s) found in bundle configuration


My pom.xml looks like this.

project xmlns=http://maven.apache.org/POM/4.0.0;
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd;
 parent
groupIdorg.wso2.carbon/groupId
artifactIdcarbon-orbit-parent/artifactId
version2.1.0-SNAPSHOT/version
/parent



modelVersion4.0.0/modelVersion
groupIdorg.wso2.carbon/groupId
artifactIdservletbridge/artifactId
packagingbundle/packaging
nameorg.wso2.carbon.servletbridge/name
version1.0.0/version
description
Servletbridge Extension Bundle
/description
urlhttp://wso2.org/url

build
plugins
plugin
groupIdorg.apache.felix/groupId
artifactIdmaven-bundle-plugin/artifactId
version1.4.0/version
extensionstrue/extensions
configuration
instructions

 Bundle-SymbolicNameservletbridge/Bundle-SymbolicName
Bundle-NameServletbridge Extension
Bundle/Bundle-Name
Bundle-Version1.0.0/Bundle-Version
Export-Package
org.wso2.carbon.bridge; version=1.0.0,
org.wso2.carbon.server.transports; version=1.0.0,
javax.servlet; version=2.4.0,
javax.servlet.http; version=2.4.0,
javax.servlet.resources; version=2.4.0
/Export-Package
/instructions
/configuration
/plugin
/plugins
/build
/project


Can anyone help me to fix this issue ?

Lahiru

-- 
Apache Qpid, Worlds dominant messaging middleware..!!!


Re: How to fix the java.net repository relocation

2009-11-12 Thread Lahiru Gunathilake
Hi Stephen,

I tried with a clean repo, but didn't worked for me. I have encountered this
repository failures time to time. So we have our own repository where we
host our artifacts. Now I want to add all these third party artifacts I used
to build the product stack to our own repository. Is this possible to do and
do the build products by adding our repository in to the pom.xml of Apache
projects we are building.

Can you please tell me how to host those third party artifacts in to our own
repository.

Lahiru

On Thu, Nov 12, 2009 at 1:58 PM, Stephen Connolly 
stephen.alan.conno...@gmail.com wrote:



 2009/11/12 Lahiru Gunathilake glah...@gmail.com

 Hi Stephen,


 On Thu, Nov 12, 2009 at 12:10 PM, Stephen Connolly 
 stephen.alan.conno...@gmail.com wrote:

 AFAIK,

 Axis2 is an apache project and would be deploying to repo1.maven.org.
 The rules for repo1.maven.org are that you cannot rely on any
 artifacts which are not hosted on repo1.maven.org.

 I think there were artifacts hosted and now it's moved.

 repo1.maven.org is write-once

 artifacts cannot be removed from repo1.maven.org


  As such, I would expect that Axis2 _should not_ require artifacts from
 java.net, and should not have any repository sections in their
 pom.xml files.

 Yes axis2 doesn't have any repository section in it's pom files but when I
 manually add the relocated repo in to the Axis2 pom it successfully get some
 of the artifacts and later on it again refer to the wrong location and get a
 html content in the the pom file. please refer the error here[1].


 sounds like your local repository is corrupted.  blow away
 ~/m2/repository/org/apache (or move it to a temporary location)


  (OK technically they are allowed ones which are only
 enabled for -SNAPSHOTs... but it cannot be enabled for releases)

 That is the theory, now it may well be that Axis2 is being bold and
 depending on java.net.

 To answer your question.  Your best bet is to set up a maven
 repository manager (e.g. nexus, artifactory, etc) and configure your
 settings.xml to use that repository manager as mirrofOf*/mirrorOf

 I will try for this and get back to you.


 [1]http://www.pastie.org/694974
 Thanks in advance
 Lahiru


 Then you can add all the repositories you want to source artifacts
 from to your repository manager, and you should be able to build.

 Also this sounds more like a question for the Axis2 list

 -Stephen

 2009/11/12 Lahiru Gunathilake glah...@gmail.com:
  Hi all,
 
  I am trying to build set stack of java products which fails due to the
  relocation of https://maven-repository.dev.java.net/nonav/repository/.
 From
  the product stack I am buiding Apache Axis2 very first and I cannot see
 this
  repository in Axis2 pom.xml. So I tried to put the new location in to
 Axis2
  pom and tried to build but still it's failing with some other
 artifacts. I
  wanted to change the location where we artifacts pointing to this
 location,
  so I ran a grep command inside my .m2 directory but I couldn't find any
 of
  the .pom file where it refer to this repository.
 
  I'm ahead of a release and have to do a clean repository build, so can
  someone please help me to avoid this problem.
 
  Regards
  Lahiru
 
  --
  Apache Qpid, Worlds dominant messaging middleware..!!!
 

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




 --
 Apache Qpid, Worlds dominant messaging middleware..!!!





-- 
Apache Qpid, Worlds dominant messaging middleware..!!!


Re: How to fix the java.net repository relocation

2009-11-12 Thread Lahiru Gunathilake
Hi Stephan,

Actually this is not about building the products in my machine, we are
suppose to host our source packs and let users to download it and build it
in their machines. So a the build should go smoothly and should not stuck
due to relocation of java.net repository.

Let me explain the situation, before that I would say this is a kind of a
bug in maven, simply because maven does not skip taking an artifact if one
of the maven repo sends a 301(MOVED PERMANANTLY) and it simply take that
message and write it as the pom file. Simply if the maven repo sends 404 it
skip that repo and go for another, but here with 301 it just dump the
message as the pom file and later on this failes.

In our build system we are not refering this java.net repository in any
location but maven itself go for the java.net repo, so please be kind enough
to help to fix this.

I have only one solution for the time being, which is configuring
java.netrepository not to send 301 and send 404. I can simply patch
the maven, to
handle this scenario but we are stuck with our release process due to this
issue since our products are open source.

Lahiru

On Thu, Nov 12, 2009 at 2:10 PM, Stephen Connolly 
stephen.alan.conno...@gmail.com wrote:

 Use a repository manager and have it proxy everything.  that way you can
 just to mirrorOf* in your settings.xml. It will merge all repositories and
 everything just works(TM)


 2009/11/12 Lahiru Gunathilake glah...@gmail.com

 Hi Stephen,

 I tried with a clean repo, but didn't worked for me. I have encountered
 this repository failures time to time. So we have our own repository where
 we host our artifacts. Now I want to add all these third party artifacts I
 used to build the product stack to our own repository. Is this possible to
 do and do the build products by adding our repository in to the pom.xml of
 Apache projects we are building.

 Can you please tell me how to host those third party artifacts in to our
 own repository.

 Lahiru


 On Thu, Nov 12, 2009 at 1:58 PM, Stephen Connolly 
 stephen.alan.conno...@gmail.com wrote:



 2009/11/12 Lahiru Gunathilake glah...@gmail.com

 Hi Stephen,


 On Thu, Nov 12, 2009 at 12:10 PM, Stephen Connolly 
 stephen.alan.conno...@gmail.com wrote:

 AFAIK,

 Axis2 is an apache project and would be deploying to repo1.maven.org.
 The rules for repo1.maven.org are that you cannot rely on any
 artifacts which are not hosted on repo1.maven.org.

 I think there were artifacts hosted and now it's moved.

 repo1.maven.org is write-once

 artifacts cannot be removed from repo1.maven.org


  As such, I would expect that Axis2 _should not_ require artifacts from
 java.net, and should not have any repository sections in their
 pom.xml files.

 Yes axis2 doesn't have any repository section in it's pom files but when
 I manually add the relocated repo in to the Axis2 pom it successfully get
 some of the artifacts and later on it again refer to the wrong location and
 get a html content in the the pom file. please refer the error here[1].


 sounds like your local repository is corrupted.  blow away
 ~/m2/repository/org/apache (or move it to a temporary location)


  (OK technically they are allowed ones which are only
 enabled for -SNAPSHOTs... but it cannot be enabled for releases)

 That is the theory, now it may well be that Axis2 is being bold and
 depending on java.net.

 To answer your question.  Your best bet is to set up a maven
 repository manager (e.g. nexus, artifactory, etc) and configure your
 settings.xml to use that repository manager as mirrofOf*/mirrorOf

 I will try for this and get back to you.


 [1]http://www.pastie.org/694974
 Thanks in advance
 Lahiru


 Then you can add all the repositories you want to source artifacts
 from to your repository manager, and you should be able to build.

 Also this sounds more like a question for the Axis2 list

 -Stephen

 2009/11/12 Lahiru Gunathilake glah...@gmail.com:
  Hi all,
 
  I am trying to build set stack of java products which fails due to
 the
  relocation of
 https://maven-repository.dev.java.net/nonav/repository/. From
  the product stack I am buiding Apache Axis2 very first and I cannot
 see this
  repository in Axis2 pom.xml. So I tried to put the new location in to
 Axis2
  pom and tried to build but still it's failing with some other
 artifacts. I
  wanted to change the location where we artifacts pointing to this
 location,
  so I ran a grep command inside my .m2 directory but I couldn't find
 any of
  the .pom file where it refer to this repository.
 
  I'm ahead of a release and have to do a clean repository build, so
 can
  someone please help me to avoid this problem.
 
  Regards
  Lahiru
 
  --
  Apache Qpid, Worlds dominant messaging middleware..!!!
 

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




 --
 Apache Qpid, Worlds dominant

Re: Apache 3 pom moved

2009-11-12 Thread Lahiru Gunathilake
Hi Martin,

Please change the modules/parent/pom.xml in Axis2 like this.
Remove the java.net repository from your pom.xml and add the new location ,
like this.

---

 -repository
 + !--repository
 idjava.net/id
 urlhttps://maven-repository.dev.java.net/nonav/repository/
/url
 layoutlegacy/layout
@@ -521,7 +521,19 @@
 releases
 enabledtrue/enabled
 /releases
+/repository--
+repository
+idjava.net/id
+urlhttp://download.java.net/maven/1/url
+layoutlegacy/layout
+snapshots
+enabledfalse/enabled
+/snapshots
+releases
+enabledtrue/enabled
+/releases
 /repository
+

--

Lahiru

On Thu, Nov 12, 2009 at 7:34 PM, Martin Scholl 
martin.sch...@enviromatics.net wrote:

 Hi all,

 I'm trying to build/clean a multi-module project where one of the modules
 uses the Axis2 mar plugin. During build/clean maven tries to download the
 org.apache:apache:pom:3 from the repo. Maven finds the file but it contains
 HTML that states 301 moved permanently. This causes the build/clean to
 fail. How can I tell maven to look for the pom in the new location or how
 can I cleanly workaround that circumstance.

 Thanks in advance.

 Cheers.

 Martin

 Maven build stacktrace

 h...@flexo:~/repos/CHARON mvn -e clean
 + Error stacktraces are turned on.
 [INFO] Scanning for projects...
 [INFO] Reactor build order:
 [INFO]   CHARON
 [INFO]   PEP Commons
 [INFO]   PEP Plugs
 [INFO]   PEP
 [INFO]   PEP Proxy
 [INFO]   PEP Integration
 [INFO]   CHARON AC Handler
 [INFO]   ACS Plugs
 [INFO]   Identity Management And Authentication Service
 [INFO]   Identity Management And Authentication Service Client
 [INFO]   SunXACML EIG Patch
 [INFO]   GeoXACML Framework
 [INFO]   Policy Management And Authorisation Service
 [INFO]   Policy Management And Authorisation Service Client
 [INFO]   Profile Management Service
 [INFO]   Profile Management Service Client
 [INFO]   Proxy Code Generator
 [INFO]   PEP Service
 [INFO]   AC Bean Core
 [INFO]   AC Bean Communicator
 [INFO]   Administration Client Plugins
 [INFO]   Group Identity Plugin
 [INFO]   Username Identity Plugin
 [INFO]   Password Credential Plugin
 [INFO]   Administration Client GWT
 [INFO]
 
 [ERROR] BUILD ERROR
 [INFO]
 
 [INFO] Error building POM (may not be this project's POM).


 Project ID: org.apache.axis2:axis2-parent:pom:1.4.1

 Reason: Cannot find parent: org.apache:apache for project:
 org.apache.axis2:axis2-parent:pom:1.4.1 for project
 org.apache.axis2:axis2-parent:pom:1.4.1


 [INFO]
 
 [INFO] Trace
 org.apache.maven.lifecycle.LifecycleExecutionException: Unable to build
 project for plugin 'org.apache.axis2:axis2-mar-maven-plugin': Cannot find
 parent: org.apache:apache for project:
 org.apache.axis2:axis2-parent:pom:1.4.1 for project
 org.apache.axis2:axis2-parent:pom:1.4.1
at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.loadPluginFully(DefaultLifecycleExecutor.java:1599)
at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.findArtifactTypeHandlersInPlugins(DefaultLifecycleExecutor.java:1468)
at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.findExtensions(DefaultLifecycleExecutor.java:222)
at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:178)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at
 org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
 org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at
 org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
 Caused by: org.apache.maven.plugin.InvalidPluginException: Unable to build
 project for plugin 'org.apache.axis2:axis2-mar-maven-plugin': Cannot find
 parent: org.apache:apache for project:
 org.apache.axis2:axis2-parent:pom:1.4.1 for project
 org.apache.axis2:axis2-parent:pom:1.4.1
at
 org.apache.maven.plugin.DefaultPluginManager.checkRequiredMavenVersion(DefaultPluginManager.java:293)

Re: Apache 3 pom moved

2009-11-12 Thread Lahiru Gunathilake
Martin,

I have fixed this in Axis2 trunk and you can get an svn up and simply build
now.

Lahiru

On Thu, Nov 12, 2009 at 7:34 PM, Martin Scholl 
martin.sch...@enviromatics.net wrote:

 Hi all,

 I'm trying to build/clean a multi-module project where one of the modules
 uses the Axis2 mar plugin. During build/clean maven tries to download the
 org.apache:apache:pom:3 from the repo. Maven finds the file but it contains
 HTML that states 301 moved permanently. This causes the build/clean to
 fail. How can I tell maven to look for the pom in the new location or how
 can I cleanly workaround that circumstance.

 Thanks in advance.

 Cheers.

 Martin

 Maven build stacktrace

 h...@flexo:~/repos/CHARON mvn -e clean
 + Error stacktraces are turned on.
 [INFO] Scanning for projects...
 [INFO] Reactor build order:
 [INFO]   CHARON
 [INFO]   PEP Commons
 [INFO]   PEP Plugs
 [INFO]   PEP
 [INFO]   PEP Proxy
 [INFO]   PEP Integration
 [INFO]   CHARON AC Handler
 [INFO]   ACS Plugs
 [INFO]   Identity Management And Authentication Service
 [INFO]   Identity Management And Authentication Service Client
 [INFO]   SunXACML EIG Patch
 [INFO]   GeoXACML Framework
 [INFO]   Policy Management And Authorisation Service
 [INFO]   Policy Management And Authorisation Service Client
 [INFO]   Profile Management Service
 [INFO]   Profile Management Service Client
 [INFO]   Proxy Code Generator
 [INFO]   PEP Service
 [INFO]   AC Bean Core
 [INFO]   AC Bean Communicator
 [INFO]   Administration Client Plugins
 [INFO]   Group Identity Plugin
 [INFO]   Username Identity Plugin
 [INFO]   Password Credential Plugin
 [INFO]   Administration Client GWT
 [INFO]
 
 [ERROR] BUILD ERROR
 [INFO]
 
 [INFO] Error building POM (may not be this project's POM).


 Project ID: org.apache.axis2:axis2-parent:pom:1.4.1

 Reason: Cannot find parent: org.apache:apache for project:
 org.apache.axis2:axis2-parent:pom:1.4.1 for project
 org.apache.axis2:axis2-parent:pom:1.4.1


 [INFO]
 
 [INFO] Trace
 org.apache.maven.lifecycle.LifecycleExecutionException: Unable to build
 project for plugin 'org.apache.axis2:axis2-mar-maven-plugin': Cannot find
 parent: org.apache:apache for project:
 org.apache.axis2:axis2-parent:pom:1.4.1 for project
 org.apache.axis2:axis2-parent:pom:1.4.1
at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.loadPluginFully(DefaultLifecycleExecutor.java:1599)
at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.findArtifactTypeHandlersInPlugins(DefaultLifecycleExecutor.java:1468)
at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.findExtensions(DefaultLifecycleExecutor.java:222)
at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:178)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at
 org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
 org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at
 org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
 Caused by: org.apache.maven.plugin.InvalidPluginException: Unable to build
 project for plugin 'org.apache.axis2:axis2-mar-maven-plugin': Cannot find
 parent: org.apache:apache for project:
 org.apache.axis2:axis2-parent:pom:1.4.1 for project
 org.apache.axis2:axis2-parent:pom:1.4.1
at
 org.apache.maven.plugin.DefaultPluginManager.checkRequiredMavenVersion(DefaultPluginManager.java:293)
at
 org.apache.maven.plugin.DefaultPluginManager.verifyVersionedPlugin(DefaultPluginManager.java:205)
at
 org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManager.java:184)
at
 org.apache.maven.plugin.DefaultPluginManager.loadPluginFully(DefaultPluginManager.java:1626)
at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.loadPluginFully(DefaultLifecycleExecutor.java:1582)
... 15 more
 Caused by: org.apache.maven.project.ProjectBuildingException: Cannot find
 parent: org.apache:apache for project:
 org.apache.axis2:axis2-parent:pom:1.4.1 for project
 org.apache.axis2:axis2-parent:pom:1.4.1
at
 

How to fix the java.net repository relocation

2009-11-11 Thread Lahiru Gunathilake
Hi all,

I am trying to build set stack of java products which fails due to the
relocation of https://maven-repository.dev.java.net/nonav/repository/. From
the product stack I am buiding Apache Axis2 very first and I cannot see this
repository in Axis2 pom.xml. So I tried to put the new location in to Axis2
pom and tried to build but still it's failing with some other artifacts. I
wanted to change the location where we artifacts pointing to this location,
so I ran a grep command inside my .m2 directory but I couldn't find any of
the .pom file where it refer to this repository.

I'm ahead of a release and have to do a clean repository build, so can
someone please help me to avoid this problem.

Regards
Lahiru

-- 
Apache Qpid, Worlds dominant messaging middleware..!!!


Re: How to fix the java.net repository relocation

2009-11-11 Thread Lahiru Gunathilake
Hi Stephen,

On Thu, Nov 12, 2009 at 12:10 PM, Stephen Connolly 
stephen.alan.conno...@gmail.com wrote:

 AFAIK,

 Axis2 is an apache project and would be deploying to repo1.maven.org.
 The rules for repo1.maven.org are that you cannot rely on any
 artifacts which are not hosted on repo1.maven.org.

I think there were artifacts hosted and now it's moved.

As such, I would expect that Axis2 _should not_ require artifacts from
 java.net, and should not have any repository sections in their
 pom.xml files.

Yes axis2 doesn't have any repository section in it's pom files but when I
manually add the relocated repo in to the Axis2 pom it successfully get some
of the artifacts and later on it again refer to the wrong location and get a
html content in the the pom file. please refer the error here[1].

 (OK technically they are allowed ones which are only
 enabled for -SNAPSHOTs... but it cannot be enabled for releases)

 That is the theory, now it may well be that Axis2 is being bold and
 depending on java.net.

 To answer your question.  Your best bet is to set up a maven
 repository manager (e.g. nexus, artifactory, etc) and configure your
 settings.xml to use that repository manager as mirrofOf*/mirrorOf

I will try for this and get back to you.


[1]http://www.pastie.org/694974
Thanks in advance
Lahiru


 Then you can add all the repositories you want to source artifacts
 from to your repository manager, and you should be able to build.

 Also this sounds more like a question for the Axis2 list

 -Stephen

 2009/11/12 Lahiru Gunathilake glah...@gmail.com:
  Hi all,
 
  I am trying to build set stack of java products which fails due to the
  relocation of https://maven-repository.dev.java.net/nonav/repository/.
 From
  the product stack I am buiding Apache Axis2 very first and I cannot see
 this
  repository in Axis2 pom.xml. So I tried to put the new location in to
 Axis2
  pom and tried to build but still it's failing with some other artifacts.
 I
  wanted to change the location where we artifacts pointing to this
 location,
  so I ran a grep command inside my .m2 directory but I couldn't find any
 of
  the .pom file where it refer to this repository.
 
  I'm ahead of a release and have to do a clean repository build, so can
  someone please help me to avoid this problem.
 
  Regards
  Lahiru
 
  --
  Apache Qpid, Worlds dominant messaging middleware..!!!
 

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




-- 
Apache Qpid, Worlds dominant messaging middleware..!!!