maven errors on xml security package

2009-03-05 Thread Kevin Witten
Hello,

I'm having trouble building with maven. The issue is that it can't find the xml 
security packages.
I'm using the java jdk 1.6_06 which includes the apache xml security package.
This builds fine using ant, but we are converting to maven and I can't get this 
to build with maven.

Any help would be appreciated.


Here is the error:

$ mvn clean install
[INFO] Scanning for projects...
[INFO] 
[INFO] Building tr69lib
[INFO]task-segment: [clean, install]
[INFO] 
[INFO] [clean:clean]
[INFO] Deleting directory c:\Codebase\DocomoIntertouch\Shared\tr69lib\target
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Compiling 124 source files to c:\Codebase\DocomoIntertouch\Shared\tr69lib
\target\classes
[INFO] 
[ERROR] BUILD FAILURE
[INFO] 
[INFO] Compilation failure

c:\Codebase\DocomoIntertouch\Shared\tr69lib\src\main\java\com\nomadix\tr69\cpemethods\SetVouchers.java:[4,53]
 package com.sun.org.apache.xml.internal.security.utils does not exist

c:\Codebase\DocomoIntertouch\Shared\tr69lib\src\main\java\com\nomadix\tr69\cpemethods\ISetVouchers.java:[3,53]
 package com.sun.org.apache.xml.internal.security.utils does not exist

c:\Codebase\DocomoIntertouch\Shared\tr69lib\src\main\java\com\nomadix\tr69\cpemethods\SetVouchers.java:[22,16]
 cannot find symbol
symbol  : class Base64
location: class com.nomadix.tr69.cpemethods.SetVouchers

c:\Codebase\DocomoIntertouch\Shared\tr69lib\src\main\java\com\nomadix\tr69\cpemethods\SetVouchers.java:[33,26]
 cannot find symbol
symbol  : class Base64
location: class com.nomadix.tr69.cpemethods.SetVouchers

c:\Codebase\DocomoIntertouch\Shared\tr69lib\src\main\java\com\nomadix\tr69\cpemethods\SetVouchers.java:[40,15]
 cannot find symbol
symbol  : class Base64
location: class com.nomadix.tr69.cpemethods.SetVouchers

c:\Codebase\DocomoIntertouch\Shared\tr69lib\src\main\java\com\nomadix\tr69\cpemethods\ISetVouchers.java:[20,19]
 cannot find symbol
symbol  : class Base64
location: interface com.nomadix.tr69.cpemethods.ISetVouchers

c:\Codebase\DocomoIntertouch\Shared\tr69lib\src\main\java\com\nomadix\tr69\cpemethods\ISetVouchers.java:[27,8]
 cannot find symbol
symbol  : class Base64
location: interface com.nomadix.tr69.cpemethods.ISetVouchers

c:\Codebase\DocomoIntertouch\Shared\tr69lib\src\main\java\com\nomadix\tr69\cpemethods\SetVouchers.java:[29,36]
 cannot find symbol
symbol  : class Base64
location: class com.nomadix.tr69.cpemethods.SetVouchers

c:\Codebase\DocomoIntertouch\Shared\tr69lib\src\main\java\com\nomadix\tr69\cpemethods\SetVouchers.java:[53,11]
 cannot find symbol
symbol  : class Base64
location: class com.nomadix.tr69.cpemethods.SetVouchers

[INFO] 
[INFO] For more information, run Maven with the -e switch
[INFO] 
[INFO] Total time: 2 seconds
[INFO] Finished at: Thu Mar 05 13:52:22 PST 2009
[INFO] Final Memory: 10M/18M
[INFO] 



Kevin Witten
Software Engineer
Nomadix, Inc.  *  1100 Business Center Circle, Suite 100, Newbury Park, CA 
91320  *  USA
direct +1 (818) 575-2421  *  main +1-818-597-1500  *  fax
interTouch Group of Companies  *  a NTT DoCoMo Group company
Enhancing Guest Experience
www.inter-touch.comhttp://www.inter-touch.com/ *  
www.maginet.nethttp://www.maginet.net/ *  
www.percipia.comhttp://www.percipia.com/ *  www.nomadix.com 
http://www.nomadix.com/  *  www.azure.com.auhttp://www.azure.com.au/


Notice? The information and attachment(s) contained in this communication are 
intended for the addressee only, and may be confidential and/or legally 
privileged. If you have received this communication in error, please contact 
the sender immediately, and delete this communication from any computer or 
network system. Any interception, review, printing, copying, re-transmission, 
dissemination, or other use of, or taking of any action upon this information 
by persons or entities other than the intended recipient is strictly prohibited 
by law and may subject them to criminal or civil liability. None of the 
interTouch Group of Companies shall be liable for the improper and/or 
incomplete transmission of the information contained in this communication or 
for any delay in its receipt.


RE: Axis2 wsdl2code Plugin Help!

2009-02-13 Thread Kevin Witten
From the maven documentation 
http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html#Lifecycle_Reference
My understanding of the maven clean lifecycle is that the following phases
will be run in order when you perform a mvn clean

pre-clean
clean
post-clean

And with the ant plugin you can run code in any of these phases.

The issue is that the post-clean does not seem to work. Am I missing something?

Here is a simple pom which does an ant echo task in each phase.

When I run mvn clean, the post-clean is never echoed.

?xml version=1.0 encoding=UTF-8?
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/xsd/maven-4.0.0.xsd;

   modelVersion4.0.0/modelVersion
   groupIdcom.nomadix/groupId
   artifactIdTest/artifactId
   nameTest/name
   version1.0.0/version

build
  plugins
 plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-antrun-plugin/artifactId
executions
   execution
  idExtended-Pre-Clean/id
  phasepre-clean/phase
  goals
 goalrun/goal
  /goals
  configuration
 tasks

echo@@@/echo
echo@ 
@/echo
echo@   PRE-CLEAN 
@/echo
echo@ 
@/echo

echo@@@/echo
 /tasks
  /configuration
   /execution
   execution
  idExtended-Clean/id
  phaseclean/phase
  goals
 goalrun/goal
  /goals
  configuration
 tasks

echo@@@/echo
echo@ 
@/echo
echo@   CLEAN 
@/echo
echo@ 
@/echo

echo@@@/echo
 /tasks
  /configuration
   /execution
   execution
  idExtended-Post-Clean/id
  phasepost-clean/phase
  goals
 goalrun/goal
  /goals
  configuration
 tasks

echo@@@/echo
echo@ 
@/echo
echo@   POST-CLEAN
@/echo
echo@ 
@/echo

echo@@@/echo
 /tasks
  /configuration
   /execution
/executions
 /plugin
  /plugins
   /build
/project



Thanks for the help,
Kevin

Notice● The information and attachment(s) contained in this communication are 
intended for the addressee only, and may be confidential and/or legally 
privileged.  If you have received this communication in error, please contact 
the sender immediately, and delete this communication from any computer or 
network system.  Any interception, review, printing, copying, re-transmission, 
dissemination, or other use of, or taking of any action upon this information 
by persons or entities other than the intended recipient is strictly prohibited 
by law and may subject them to criminal or civil liability.  None of the 
interTouch Group of Companies shall be liable for the improper and/or 
incomplete transmission of the information contained in this communication or 
for any delay in its receipt.


Maven antrun plugin

2009-02-12 Thread Kevin Witten
Any help appreciated:

I'm trying to run an ant task on clean using maven 2.0.9. So I'm basically 
following examples from
The book Maven - The Definitive Guide. I created a simple pom.xml shown 
below, which uses the
antrun plugin configured to run echo tasks. This is set up to run on phase 
pre-clean,
so the echo message should be displayed before the clean. But it does not work.

When I run clean, I do not get the echo.

$ mvn clean
[INFO] Scanning for projects...
[INFO] 
[INFO] Building test
[INFO]task-segment: [clean]
[INFO] 
[INFO] [clean:clean]
[INFO] 
[INFO] BUILD SUCCESSFUL
[INFO] 
[INFO] Total time:  1 second
[INFO] Finished at: Thu Feb 12 11:50:54 PST 2009
[INFO] Final Memory: 3M/6M
[INFO] 


?xml version=1.0 encoding=UTF-8?
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/xsd/maven-4.0.0.xsd;

   modelVersion4.0.0/modelVersion
   groupIdcom.nomadix/groupId
   artifactIdtest/artifactId
   nametest/name
   version1.0.0/version

   build
  pluginManagement
 plugins
plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-antrun-plugin/artifactId
   executions
  execution
 idfile-exists/id
 phasepre-clean/phase
 goals
goalrun/goal
 /goals
 configuration
tasks
   
echo***/echo
   echoRunning Clean/echo
   
echo***/echo
/tasks
 /configuration
  /execution
   /executions
/plugin
 /plugins
  /pluginManagement
   /build
/project


Thanks in advance for the help,
Kevin

Notice● The information and attachment(s) contained in this communication are 
intended for the addressee only, and may be confidential and/or legally 
privileged.  If you have received this communication in error, please contact 
the sender immediately, and delete this communication from any computer or 
network system.  Any interception, review, printing, copying, re-transmission, 
dissemination, or other use of, or taking of any action upon this information 
by persons or entities other than the intended recipient is strictly prohibited 
by law and may subject them to criminal or civil liability.  None of the 
interTouch Group of Companies shall be liable for the improper and/or 
incomplete transmission of the information contained in this communication or 
for any delay in its receipt.


FW: Maven antrun plugin

2009-02-12 Thread Kevin Witten
Sorry for the repost, but I'm not sure if this went through as I was not on the 
subscription list.


-Original Message-
From: Kevin Witten
Sent: Thursday, February 12, 2009 11:53 AM
To: 'Maven Users List'
Subject: Maven antrun plugin

Any help appreciated:

I'm trying to run an ant task on clean using maven 2.0.9. So I'm basically 
following examples from
The book Maven - The Definitive Guide. I created a simple pom.xml shown 
below, which uses the
antrun plugin configured to run echo tasks. This is set up to run on phase 
pre-clean,
so the echo message should be displayed before the clean. But it does not work.

When I run clean, I do not get the echo.

$ mvn clean
[INFO] Scanning for projects...
[INFO] 
[INFO] Building test
[INFO]task-segment: [clean]
[INFO] 
[INFO] [clean:clean]
[INFO] 
[INFO] BUILD SUCCESSFUL
[INFO] 
[INFO] Total time:  1 second
[INFO] Finished at: Thu Feb 12 11:50:54 PST 2009
[INFO] Final Memory: 3M/6M
[INFO] 


?xml version=1.0 encoding=UTF-8?
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/xsd/maven-4.0.0.xsd;

   modelVersion4.0.0/modelVersion
   groupIdcom.nomadix/groupId
   artifactIdtest/artifactId
   nametest/name
   version1.0.0/version

   build
  pluginManagement
 plugins
plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-antrun-plugin/artifactId
   executions
  execution
 idfile-exists/id
 phasepre-clean/phase
 goals
goalrun/goal
 /goals
 configuration
tasks
   
echo***/echo
   echoRunning Clean/echo
   
echo***/echo
/tasks
 /configuration
  /execution
   /executions
/plugin
 /plugins
  /pluginManagement
   /build
/project


Thanks in advance for the help,
Kevin

Notice● The information and attachment(s) contained in this communication are 
intended for the addressee only, and may be confidential and/or legally 
privileged.  If you have received this communication in error, please contact 
the sender immediately, and delete this communication from any computer or 
network system.  Any interception, review, printing, copying, re-transmission, 
dissemination, or other use of, or taking of any action upon this information 
by persons or entities other than the intended recipient is strictly prohibited 
by law and may subject them to criminal or civil liability.  None of the 
interTouch Group of Companies shall be liable for the improper and/or 
incomplete transmission of the information contained in this communication or 
for any delay in its receipt.


Axis2 wsdl2code Plugin Help!

2009-02-11 Thread Kevin Witten
I'm trying to use the axis2 wsdl2code plugin to generate code. Unfortunately 
I'm getting an error in maven that it cannot fine the plugin.
Does anyone know how to get this working?

I'm Using maven V2.0.9

My pom contains:

   plugin
   groupIdorg.apache.axis2/groupId
   artifactIdaxis2-wsdl2code-maven-plugin/artifactId
   version1.4.1/version
   executions
  execution
 phasegenerate-sources/phase
 goals
goalwsdl2code/goal
 /goals
  /execution
   /executions
   configuration
  packageNamecom.nomadix/packageName
  wsdlFilesrc/main/resources/ACSService.wsdl/wsdlFile
  databindingNameadb/databindingName
  generateServerSidetrue/generateServerSide
  
generateServerSideInterfacetrue/generateServerSideInterface
  generateServicesXmltrue/generateServicesXml
  namespaceToPackages
 
http://nomadix.com/acs/services/ns/acs=com.nomadix.acs.services.acsservice
  /namespaceToPackages
  outputDirectorysrc/main/java/outputDirectory
  skipWSDLtrue/skipWSDL
  skipBuildXmltrue/skipBuildXml
   /configuration
   dependencies
  dependency
 groupIdorg.apache.axis2/groupId
 artifactIdaxis2/artifactId
 version1.4.1/version
  /dependency
   /dependencies
/plugin


Any the error is:

$ mvn axis2-wsdl2code:wsdl2code
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'axis2-wsdl2code'.
[INFO] 
[ERROR] BUILD ERROR
[INFO] 
[INFO] The plugin 'org.apache.maven.plugins:maven-axis2-wsdl2code-plugin' does 
not exist or no valid version could be found
[INFO] 
[INFO] For more information, run Maven with the -e switch
[INFO] 
[INFO] Total time:  1 second
[INFO] Finished at: Wed Feb 11 11:58:37 PST 2009
[INFO] Final Memory: 1M/4M
[INFO] 


Very strange. From the error, maven seems to be looking for the plugin in 
'org.apache.maven.plugins,
but I have defined the groupId as org.apache.axis2. Is this a bug in maven?

Thanks in advance for any help,

Kevin Witten




Notice? The information and attachment(s) contained in this communication are 
intended for the addressee only, and may be confidential and/or legally 
privileged. If you have received this communication in error, please contact 
the sender immediately, and delete this communication from any computer or 
network system. Any interception, review, printing, copying, re-transmission, 
dissemination, or other use of, or taking of any action upon this information 
by persons or entities other than the intended recipient is strictly prohibited 
by law and may subject them to criminal or civil liability. None of the 
interTouch Group of Companies shall be liable for the improper and/or 
incomplete transmission of the information contained in this communication or 
for any delay in its receipt.


RE: Axis2 wsdl2code Plugin Help!

2009-02-11 Thread Kevin Witten
This works. Thanks!


Kevin

-Original Message-
From: Wayne Fay [mailto:wayne...@gmail.com]
Sent: Wednesday, February 11, 2009 1:35 PM
To: Maven Users List
Subject: Re: Axis2 wsdl2code Plugin Help!

 I'm trying to use the axis2 wsdl2code plugin to generate code. Unfortunately 
 I'm getting an error in maven that it cannot fine the plugin.
 Does anyone know how to get this working?

Try using the full name of the plugin:
mvn org.apache.axis2:axis2-wsdl2code-maven-plugin:1.4.1:wsdl2code

I don't use this plugin myself. You should probably also contact the
dev team responsible for the plugin directly, or their corresponding
user list.

Wayne

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



Notice● The information and attachment(s) contained in this communication are 
intended for the addressee only, and may be confidential and/or legally 
privileged.  If you have received this communication in error, please contact 
the sender immediately, and delete this communication from any computer or 
network system.  Any interception, review, printing, copying, re-transmission, 
dissemination, or other use of, or taking of any action upon this information 
by persons or entities other than the intended recipient is strictly prohibited 
by law and may subject them to criminal or civil liability.  None of the 
interTouch Group of Companies shall be liable for the improper and/or 
incomplete transmission of the information contained in this communication or 
for any delay in its receipt.


Maven2/Axis2 help

2009-02-11 Thread Kevin Witten
I'm trying to convert to maven2 from ant builds. I have a WS in Axis2 and I add 
axis2 to the pom file.
But I can't build, because maven can't find the dependencies of axis2.

Pom file:

?xml version=1.0 encoding=UTF-8?
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/xsd/maven-4.0.0.xsd;

   modelVersion4.0.0/modelVersion
   groupIdServiceTest/groupId
   artifactIdServiceTest/artifactId
   version1.0.0/version

   build
  pluginManagement
 plugins
plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-compiler-plugin/artifactId
   configuration
  !-- Compiler version --
  source1.6/source
  target1.6/target
   /configuration
/plugin

!--
Note: Must run the following
mvn 
org.apache.axis2:axis2-wsdl2code-maven-plugin:1.4.1:wsdl2code
--
plugin
   groupIdorg.apache.axis2/groupId
   artifactIdaxis2-wsdl2code-maven-plugin/artifactId
   version1.4.1/version
   executions
  execution
 phasegenerate-sources/phase
 goals
goalwsdl2code/goal
 /goals
  /execution
   /executions
   configuration
  packageNamecom.nomadix.acs.services.acsservice/packageName
  wsdlFilesrc/main/resources/ACSService.wsdl/wsdlFile
  generateServerSidetrue/generateServerSide
  generateServicesXmltrue/generateServicesXml
  skipBuildXMLtrue/skipBuildXML
  skipWSDLtrue/skipWSDL
  
generateServerSideInterfacetrue/generateServerSideInterface
  namespaceToPackages
 
http://nomadix.com/acs/services/ns/acs=com.nomadix.acs.services.acsservice
  /namespaceToPackages
  outputDirectorysrc/main/outputDirectory
  targetSourceFolderLocationjava/targetSourceFolderLocation
  
targetResourcesFolderLocationresources/targetResourcesFolderLocation
  overWritetrue/overWrite
  unwraptrue/unwrap
  databindingNameadb/databindingName
   /configuration
/plugin
 /plugins
  /pluginManagement
   /build

   dependencies
  dependency
 groupIdorg.apache.axis2/groupId
 artifactIdaxis2/artifactId
 version1.4.1/version
  /dependency
   /dependencies

/project


Thanks in advance for the help,
Kevin

Notice● The information and attachment(s) contained in this communication are 
intended for the addressee only, and may be confidential and/or legally 
privileged.  If you have received this communication in error, please contact 
the sender immediately, and delete this communication from any computer or 
network system.  Any interception, review, printing, copying, re-transmission, 
dissemination, or other use of, or taking of any action upon this information 
by persons or entities other than the intended recipient is strictly prohibited 
by law and may subject them to criminal or civil liability.  None of the 
interTouch Group of Companies shall be liable for the improper and/or 
incomplete transmission of the information contained in this communication or 
for any delay in its receipt.