Re: First time compile, why looking for module POM on remote repo?

2012-04-26 Thread Dave Wolf
Use mvn install, so that the various dependent modules will be installed into 
your local repository. 

Sent from Dave's iPhone 4.
Dave Wolf

On Apr 26, 2012, at 11:57 AM, hujirong jirong...@gmail.com wrote:

 *This is the first time I try to compile the project in my workstation. I am
 invoking the highest level of POM and it suppose to compile everything.
 Developers are doing that but they are using their own local repo. I am the
 build engineer so my Maven is pointing to the company central repo.
 
 But I got this error, tells me the module POM is not in the Maven
 repository. Of course, this is the first time I try to compile! Please
 advise what shall I do.
 
 Thanks
 Jirong*
 
 
 C:\Sandbox\MDM-CDIServiceMgmt\CdiServicesParentmvn compile
 [INFO] Scanning for projects...
 [ERROR] The build could not read 5 projects - [Help 1]
 [ERROR]
 [ERROR]   The project com.nbfg.cdi.ext:CdiExtensionServices:1.0-SNAPSHOT
 (C:\Sandbox\MDM-CDIServiceMgmt\CdiExtensionServices\pom.xml) has 1 error
 [ERROR] Non-resolvable parent POM: Failure to find
 com.nbfg.cdi:CdiExtensionServicesParent:pom:1.0-SNAPSHOT in
 http://axddarep01.npr.bngf.local:8080/nexus/content/groups/max-public/ was
 cached in the local repository, resolution will not be reattempted until the
 update interval of nexus has elapsed or updates are forced and
 'parent.relativePath' points at wrong local POM @ line 5, column 10 - [Help
 2]
 [ERROR]
 [ERROR]   The project com.nbfg.cdi.ext:CdiExtensionWebServices:1.0-SNAPSHOT
 (C:\Sandbox\MDM-CDIServiceMgmt\CdiExtensionWebServices\pom.xml) has 1 error
 [ERROR] Non-resolvable parent POM: Failure to find
 com.nbfg.cdi:CdiExtensionServicesParent:pom:1.0-SNAPSHOT in
 http://axddarep01.npr.bngf.local:8080/nexus/content/groups/max-public/ was
 cached in the local repository, resolution will not be reattempted until the
 update interval of nexus has elapsed or updates are forced and
 'parent.relativePath' points at wrong local POM @ line 4, column 10 - [Help
 2]
 [ERROR]
 [ERROR]   The project
 com.nbfg.cdi.ext:CdiExtensionWebServicesEar:1.0-SNAPSHOT
 (C:\Sandbox\MDM-CDIServiceMgmt\CdiExtensionWebServicesEar\pom.xml) has 1
 error
 [ERROR] Non-resolvable parent POM: Failure to find
 com.nbfg.cdi:CdiExtensionServicesParent:pom:1.0-SNAPSHOT in
 http://axddarep01.npr.bngf.local:8080/nexus/content/groups/max-public/ was
 cached in the local repository, resolution will not be reattempted until the
 update interval of nexus has elapsed or updates are forced and
 'parent.relativePath' points at wrong local POM @ line 5, column 10 - [Help
 2]
 [ERROR]
 [ERROR]   The project
 com.nbfg.cdi.ext:CdiExtensionServicesDatabase:1.0-SNAPSHOT
 (C:\Sandbox\MDM-CDIServiceMgmt\CdiExtensionServicesDatabase\pom.xml)
 has 1 error
 [ERROR] Non-resolvable parent POM: Failure to find
 com.nbfg.cdi:CdiExtensionServicesParent:pom:1.0-SNAPSHOT in
 http://axddarep01.npr.bngf.local:8080/nexus/content/groups/max-public/ was
 cached in the local repository, resolution will not be reattempted until the
 update interval of nexus has elapsed or updates are forced and
 'parent.relativePath' points at wrong local POM @ line 3, column 10 - [Help
 2]
 [ERROR]
 [ERROR]   The project
 com.nbfg.cdi.ext:CdiExtensionWebServicesUT:1.0-SNAPSHOT
 (C:\Sandbox\MDM-CDIServiceMgmt\CdiExtensionWebServicesUT\pom.xml) has 1
 error
 [ERROR] Non-resolvable parent POM: Failure to find
 com.nbfg.cdi:CdiExtensionServicesParent:pom:1.0-SNAPSHOT in
 http://axddarep01.npr.bngf.local:8080/nexus/content/groups/max-public/ was
 cached in the local repository, resolution will not be reattempted until the
 update interval of nexus has elapsed or updates are forced and
 'parent.relativePath' points at wrong local POM @ line 4, column 10 - [Help
 2]
 [ERROR]
 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e
 switch.
 
 *Below is part of my POM:*
 
 ?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.nbfg.cdi/groupId
artifactIdCdiServicesParent/artifactId
version1.0-SNAPSHOT/version
packagingpom/packaging
 
nameCdiServicesParent/name
 
properties
project.build.sourceEncodingUTF-8/project.build.sourceEncoding
spring.version3.0.5.RELEASE/spring.version
/properties
 
modules

module../CdiServicesCommons/module
module../CdiServicesBO/module


module../CdiInitiateService/module
module../CdiServices/module
module../CdiWebServices/module
module../ClientInfoMgmt/module
module../CdiWebServicesEar/module


module../CdiExtensionServicesParent/module
/modules
 
 
 
 
 --
 View this message in context: 
 http://maven.40175.n5.nabble.com/First-time-compile-why-looking

Re: How can I trigger a makefile through Maven? is there any plugin for this?

2012-04-25 Thread Dave Wolf
If your goal is to compile / link c, c++, or fortran; then you might take a 
look at the maven-nar-plugin. We just began using it and so far, so good. 

Dave Wolf

On Apr 25, 2012, at 12:31 AM, bettypop yashu@gmail.com wrote:

 
 
 --
 View this message in context: 
 http://maven.40175.n5.nabble.com/How-can-I-trigger-a-makefile-through-Maven-is-there-any-plugin-for-this-tp5663921p5663921.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
 

This electronic communication and any attachments may contain confidential and 
proprietary 
information of DigitalGlobe, Inc. If you are not the intended recipient, or an 
agent or employee 
responsible for delivering this communication to the intended recipient, or if 
you have received 
this communication in error, please do not print, copy, retransmit, disseminate 
or 
otherwise use the information. Please indicate to the sender that you have 
received this 
communication in error, and delete the copy you received. DigitalGlobe reserves 
the 
right to monitor any electronic communication sent or received by its 
employees, agents 
or representatives.



RE: Compilation failure: interface com.ibm.websphere.sibx.smobo.ServiceMessageObject

2012-04-19 Thread Dave Wolf
Yes, you probably should get the libraries added to your repository. If you are 
in a situation where this might take some time, then you might look into adding 
the dependencies to your pom.xml (temporally) using system scope dependencies. 
This would allow you to move forward until the required dependencies are 
available in your repository.

Regards,

Dave Wolf 
Java Architect
Gorilla Logic




-Original Message-
From: hujirong [mailto:jirong...@gmail.com]
Sent: Thu 4/19/2012 4:15 PM
To: users@maven.apache.org
Subject: Compilation failure: interface 
com.ibm.websphere.sibx.smobo.ServiceMessageObject
 
I got this error during Maven compile, but it compiles no problem within my
WID 7.0.0.4. The project is depends on ESB server 7.0 libraries. How can I
find what's missing and what shall I do? Ask repository manager to add ESB
server libraries?

Thanks
Jirong

[INFO] Scanning for projects...
[INFO] 
[INFO]

[INFO] Building CDIPubSubMgmtMed Mediation 0.0.1-SNAPSHOT
[INFO]

[INFO] 
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ CDIPubSubMgmtMed
---
[INFO] Deleting
C:\DEV\WIDWS\MDM\CDIPubSubMgmtMed\..\build\target\CDIPubSubMgmtMed
[INFO] 
[INFO] --- build-helper-maven-plugin:1.7:regex-property (regex-property) @
CDIPubSubMgmtMed ---
[INFO] Setting property 'portable.artifact.path' to
'C:/DEV/WIDWS/MDM/CDIPubSubMgmtMed/../build/target/CDIPubSubMgmtMed/CDIPubSubMgmtMed-0.0.1-SNAPSHOT.ear'.
[INFO] 
[INFO] --- build-helper-maven-plugin:1.7:add-source (add-source) @
CDIPubSubMgmtMed ---
[INFO] Source directory: C:\DEV\WIDWS\MDM\CDIPubSubMgmtMed\gen\src added.
[INFO] 
[INFO] --- build-helper-maven-plugin:1.7:add-resource (add-resource) @
CDIPubSubMgmtMed ---
[INFO] 
[INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @
CDIPubSubMgmtMed ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered
resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory
C:\DEV\WIDWS\MDM\CDIPubSubMgmtMed\src\main\resources
[INFO] Copying 20 resources
[INFO] Copying 1 resource
[INFO] 
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @
CDIPubSubMgmtMed ---
[WARNING] File encoding has not been set, using platform encoding Cp1252,
i.e. build is platform dependent!
[INFO] Compiling 2 source files to
C:\DEV\WIDWS\MDM\CDIPubSubMgmtMed\..\build\target\CDIPubSubMgmtMed\classes
[INFO] -
[ERROR] COMPILATION ERROR : 
[INFO] -
[ERROR]
\DEV\WIDWS\MDM\CDIPubSubMgmtMed\src\main\java\com\nbfg\cdi\pubsub\HeaderUtil.java:[28,33]
cannot find symbol
symbol  : method getRootObject()
location: interface com.ibm.websphere.sibx.smobo.ServiceMessageObject
[INFO] 1 error
[INFO] -
[INFO]

[INFO] BUILD FAILURE
[INFO]

[INFO] Total time: 1.984s
[INFO] Finished at: Thu Apr 19 12:03:24 EDT 2012
[INFO] Final Memory: 31M/512M
[INFO]

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile
(default-compile) on project CDIPubSubMgmtMed: Compilation failure
[ERROR]
\DEV\WIDWS\MDM\CDIPubSubMgmtMed\src\main\java\com\nbfg\cdi\pubsub\HeaderUtil.java:[28,33]
cannot find symbol
[ERROR] symbol  : method getRootObject()
[ERROR] location: interface
com.ibm.websphere.sibx.smobo.ServiceMessageObject
[ERROR] - [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please
read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException


This is my POM.xml:

?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/maven-v4_0_0.xsd;
modelVersion4.0.0/modelVersion

parent
groupIdcom.nbfg.max.maven/groupId
artifactIdmax-wesb-pom/artifactId
version0.0.4-SNAPSHOT/version
/parent

groupIdcom.nbfg.max.wesb/groupId
artifactIdCDIPubSubMgmtMed/artifactId
version0.0.1-SNAPSHOT/version
nameCDIPubSubMgmtMed Mediation/name

dependencies
dependency
groupIdcom.nbfg.max.wesb/groupId

RE: maven-nar-plugin -- building libraries for both 32 64 Linux

2012-04-17 Thread Dave Wolf
Ping... :-)

Any help with this would be greatly appreciated and prevent me from having to 
revert to using Ant.

Thanks in advance!!!

Dave Wolf 


-Original Message-
From: Dave Wolf
Sent: Mon 4/16/2012 2:41 PM
To: users@maven.apache.org
Subject: maven-nar-plugin -- building libraries for both 32  64 Linux
 
Hi,

From reading the documentation, I'm not quite following how to tell the 
maven-nar-plugin to generate both 32  64 versions of my project's artifacts. 
I'm running on a 64 bit Linux system, so it is successfully generating 
amd64.Linux.g++ artifacts. How can I cause it to build for not only the 
current build platform, but also i386-Linux-g++? 

One of pom files looks like this:
?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;
  modelVersion4.0.0/modelVersion
  groupIdcom.mycompany/groupId
  artifactIdcomponent-cpp-api/artifactId
  packagingnar/packaging

  parent
  groupIdcom.mycompany/groupId
  artifactIdsecurityservices-cpp/artifactId
  version${component.version}/version
  /parent

  dependencies
dependency
groupIdcom.mycompany/groupId
artifactIdcomponent-cpp-validator/artifactId
version${component.version}/version
typenar/type
/dependency
  /dependencies

  build
  plugins
  plugin
  groupIdnet.mjahn/groupId
  artifactIdmaven-nar-plugin/artifactId
  version${maven-nar-plugin.version}/version
  extensionstrue/extensions
  configuration
  libraries
  library
  typeshared/type
  /library
  /libraries
  /configuration
  /plugin
  /plugins
  /build

/project

Thanks in advance!
Dave Wolf 




This electronic communication and any attachments may contain confidential and 
proprietary 
information of DigitalGlobe, Inc. If you are not the intended recipient, or an 
agent or employee 
responsible for delivering this communication to the intended recipient, or if 
you have received 
this communication in error, please do not print, copy, retransmit, disseminate 
or 
otherwise use the information. Please indicate to the sender that you have 
received this 
communication in error, and delete the copy you received. DigitalGlobe reserves 
the 
right to monitor any electronic communication sent or received by its 
employees, agents 
or representatives.



RE: maven-nar-plugin -- building libraries for both 32 64 Linux

2012-04-17 Thread Dave Wolf
Will do. Thanks, I thought the GroupId was odd for a Sonotype plugin. I must 
have followed the wrong Google link somewhere along the way.

Dave Wolf 
Java Architect
Gorilla Logic
M: 303-956-9106
DG GL Room: x4545



-Original Message-
From: Wayne Fay [mailto:wayne...@gmail.com]
Sent: Tue 4/17/2012 10:04 AM
To: Maven Users List
Subject: Re: maven-nar-plugin -- building libraries for both 32  64 Linux
 
 From reading the documentation, I'm not quite following how to tell
 the maven-nar-plugin to generate both 32  64 versions of my project's

As far as I know, this plugin is not published by Apache but rather
supported by the FreeHEP team or possibly Sonatype (??):
http://java.freehep.org/freehep-nar-plugin/mail-lists.html
https://issues.sonatype.org/browse/NAR

          plugin
              groupIdnet.mjahn/groupId
              artifactIdmaven-nar-plugin/artifactId

Looks like you are running Mirko's fork of the plugin. Perhaps you
should ask him for support? :)
https://github.com/mirkojahn/maven-nar-plugin

Wayne

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



This electronic communication and any attachments may contain confidential and 
proprietary 
information of DigitalGlobe, Inc. If you are not the intended recipient, or an 
agent or employee 
responsible for delivering this communication to the intended recipient, or if 
you have received 
this communication in error, please do not print, copy, retransmit, disseminate 
or 
otherwise use the information. Please indicate to the sender that you have 
received this 
communication in error, and delete the copy you received. DigitalGlobe reserves 
the 
right to monitor any electronic communication sent or received by its 
employees, agents 
or representatives.



RE: maven-nar-plugin -- building libraries for both 32 64 Linux

2012-04-17 Thread Dave Wolf
Curtis,

Thank you! That solution works great! We're off and running now. Yes, open 
source communities are grand.

Cheers,

Dave Wolf 
Java Architect
Gorilla Logic



-Original Message-
From: ctrueden.w...@gmail.com on behalf of Curtis Rueden
Sent: Tue 4/17/2012 12:57 PM
To: Maven Users List
Subject: Re: maven-nar-plugin -- building libraries for both 32  64 Linux
 
Hi Dave,


From reading the documentation, I'm not quite following how to tell the
 maven-nar-plugin to generate both 32  64 versions of my project's
 artifacts.


The ImageJ2 project uses the maven-nar-plugin to build a cross-platform
launcher for our Java application.

We use gcc to build on Windows, Mac OS X and Linux, in 32-bit and 64-bit
modes.

Here is our POM:
https://github.com/imagej/imagej/blob/master/core/launcher/pom.xml

We use the duns version of the plugin, forked to the scijava organization:
https://github.com/scijava/maven-nar-plugin

Since the plugin is not deployed to any other public repository (that I
know of), we have deployed the snapshot version at:

http://maven.imagej.net/content/repositories/snapshots/org/apache/maven/plugins/maven-nar-plugin/

We have also made an interim release of the plugin and deployed it to:

http://maven.imagej.net/content/repositories/thirdparty/org/apache/maven/plugins/maven-nar-plugin/

We use Jenkins to do the build, with a separate profile for each
architecture. You can read a detailed description of how to configure
things here:
http://trac.imagej.net/ticket/832#comment:11

You are welcome to use either of these versions if they suit your needs.
Also feel free to pilfer from the POM if it helps your project!

Isn't open source grand? :-)

Regards,
Curtis


On Mon, Apr 16, 2012 at 3:41 PM, Dave Wolf dw...@digitalglobe.com wrote:

 Hi,

 From reading the documentation, I'm not quite following how to tell the
 maven-nar-plugin to generate both 32  64 versions of my project's
 artifacts. I'm running on a 64 bit Linux system, so it is successfully
 generating amd64.Linux.g++ artifacts. How can I cause it to build for not
 only the current build platform, but also i386-Linux-g++?

 One of pom files looks like this:
 ?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;
  modelVersion4.0.0/modelVersion
  groupIdcom.mycompany/groupId
  artifactIdcomponent-cpp-api/artifactId
  packagingnar/packaging

  parent
  groupIdcom.mycompany/groupId
  artifactIdsecurityservices-cpp/artifactId
  version${component.version}/version
  /parent

  dependencies
dependency
groupIdcom.mycompany/groupId
artifactIdcomponent-cpp-validator/artifactId
version${component.version}/version
typenar/type
/dependency
  /dependencies

  build
  plugins
  plugin
  groupIdnet.mjahn/groupId
  artifactIdmaven-nar-plugin/artifactId
  version${maven-nar-plugin.version}/version
  extensionstrue/extensions
  configuration
  libraries
  library
  typeshared/type
  /library
  /libraries
  /configuration
  /plugin
  /plugins
  /build

 /project

 Thanks in advance!
 Dave Wolf


 This electronic communication and any attachments may contain confidential
 and proprietary
 information of DigitalGlobe, Inc. If you are not the intended recipient,
 or an agent or employee
 responsible for delivering this communication to the intended recipient,
 or if you have received
 this communication in error, please do not print, copy, retransmit,
 disseminate or
 otherwise use the information. Please indicate to the sender that you have
 received this
 communication in error, and delete the copy you received. DigitalGlobe
 reserves the
 right to monitor any electronic communication sent or received by its
 employees, agents
 or representatives.




This electronic communication and any attachments may contain confidential and 
proprietary 
information of DigitalGlobe, Inc. If you are not the intended recipient, or an 
agent or employee 
responsible for delivering this communication to the intended recipient, or if 
you have received 
this communication in error, please do not print, copy, retransmit, disseminate 
or 
otherwise use the information. Please indicate to the sender that you have 
received this 
communication in error, and delete the copy you received. DigitalGlobe reserves 
the 
right to monitor any electronic communication sent or received by its 
employees, agents 
or representatives.



maven-nar-plugin -- building libraries for both 32 64 Linux

2012-04-16 Thread Dave Wolf
Hi,

From reading the documentation, I'm not quite following how to tell the 
maven-nar-plugin to generate both 32  64 versions of my project's artifacts. 
I'm running on a 64 bit Linux system, so it is successfully generating 
amd64.Linux.g++ artifacts. How can I cause it to build for not only the 
current build platform, but also i386-Linux-g++? 

One of pom files looks like this:
?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;
  modelVersion4.0.0/modelVersion
  groupIdcom.mycompany/groupId
  artifactIdcomponent-cpp-api/artifactId
  packagingnar/packaging

  parent
  groupIdcom.mycompany/groupId
  artifactIdsecurityservices-cpp/artifactId
  version${component.version}/version
  /parent

  dependencies
dependency
groupIdcom.mycompany/groupId
artifactIdcomponent-cpp-validator/artifactId
version${component.version}/version
typenar/type
/dependency
  /dependencies

  build
  plugins
  plugin
  groupIdnet.mjahn/groupId
  artifactIdmaven-nar-plugin/artifactId
  version${maven-nar-plugin.version}/version
  extensionstrue/extensions
  configuration
  libraries
  library
  typeshared/type
  /library
  /libraries
  /configuration
  /plugin
  /plugins
  /build

/project

Thanks in advance!
Dave Wolf 


This electronic communication and any attachments may contain confidential and 
proprietary 
information of DigitalGlobe, Inc. If you are not the intended recipient, or an 
agent or employee 
responsible for delivering this communication to the intended recipient, or if 
you have received 
this communication in error, please do not print, copy, retransmit, disseminate 
or 
otherwise use the information. Please indicate to the sender that you have 
received this 
communication in error, and delete the copy you received. DigitalGlobe reserves 
the 
right to monitor any electronic communication sent or received by its 
employees, agents 
or representatives.



RE: Maven / Java 1.7 compliance

2012-01-05 Thread Dave Wolf
Instead of 1.7 try simply 7.

Dave Wolf 
Java Architect
Gorilla Logic



-Original Message-
From: Johannes.Lichtenberger [mailto:johannes.lichtenber...@uni-konstanz.de]
Sent: Thu 1/5/2012 4:00 PM
To: Maven Users List
Subject: Re: Maven / Java 1.7 compliance
 
On 01/05/2012 11:24 PM, Johannes.Lichtenberger wrote:
 Hello,
 
 I want to package a maven-(multi)module, the parent pom includes:
 
 plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-compiler-plugin/artifactId
   version2.3.2/version
   configuration
 source${maven.compiler.source}/source
 target${maven.compiler.target}/target
 encoding${project.build.sourceEncoding}/encoding
   /configuration
 /plugin
 
 I'm using Java 1.7 and the properties are specified as follows:
 
 properties
   project.build.sourceEncodingUTF-8/project.build.sourceEncoding
   maven.compiler.source1.7/maven.compiler.source
   maven.compiler.target1.7/maven.compiler.target
   slf4j.version1.6.1/slf4j.version
 /properties
 The maven version is 2.2.1:
 
 johannes@luna:~/workspace/treetank/bundles/treetank-core$ mvn -version
 Apache Maven 2.2.1 (rdebian-6)
 Java version: 1.7.0
 Java home: /usr/lib/jvm/jdk1.7.0/jre
 Default locale: en_US, platform encoding: UTF-8
 OS name: linux version: 3.0.0-14-generic arch: amd64 Family: unix
 
 I have no clue why it doesn't use java version 1.7. When invoking mvn
 package I get the error (use -source 7 or higher to enable diamond
 operator) for instance. Do you know why it tries using 1.6?

The effective POM is:

  plugin
artifactIdmaven-compiler-plugin/artifactId
version2.3.2/version
executions
  execution
iddefault-testCompile/id
phasetest-compile/phase
goals
  goaltestCompile/goal
/goals
configuration
  source1.7/source
  target1.7/target
  encodingUTF-8/encoding
/configuration
  /execution
  execution
iddefault-compile/id
phasecompile/phase
goals
  goalcompile/goal
/goals
configuration
  source1.7/source
  target1.7/target
  encodingUTF-8/encoding
/configuration
  /execution
/executions
configuration
  source1.7/source
  target1.7/target
  encodingUTF-8/encoding
/configuration
  /plugin

really strange :(


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



This electronic communication and any attachments may contain confidential and 
proprietary 
information of DigitalGlobe, Inc. If you are not the intended recipient, or an 
agent or employee 
responsible for delivering this communication to the intended recipient, or if 
you have received 
this communication in error, please do not print, copy, retransmit, disseminate 
or 
otherwise use the information. Please indicate to the sender that you have 
received this 
communication in error, and delete the copy you received. DigitalGlobe reserves 
the 
right to monitor any electronic communication sent or received by its 
employees, agents 
or representatives.



RE: Retrieving attached files.

2011-04-22 Thread Dave Wolf
Stephen,

Your comment about the classifier defaulting to  (none) explains it. The 
properties files are now getting copied into the dependent project. Thank you!

The only thing that isn't working is the creation of the 
properties.dependency.fileset using the type filtering:
echoCopying properties dependencies/echo
artifact:dependencies filesetId=properties.dependency.fileset 
type=properties
pom refid=pom /
/artifact:dependencies
copy todir=${dist.project.properties}/secureconfig
fileset refid=properties.dependency.fileset /
/copy

The type=jar dependency filtering works fine. If I supply the type=jar, 
only jar files end up in that fileset. If I eliminate the type=jar attribute, 
then both the jars and the properties are found in the fileset.

Any ideas on this aspect? As it is, since I can get all of the files, get what 
I need done, but I'm just curious why this isn't working.


Thanks again,

Dave Wolf 
Java Architect
Gorilla Logic



-Original Message-
From: Stephen Connolly [mailto:stephen.alan.conno...@gmail.com]
Sent: Fri 4/22/2011 12:27 AM
To: Maven Users List
Subject: Re: Retrieving attached files.
 
in a dependencies section in a pom, type defaults to jar and classifier
defaults to  (ie none)

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

you could probably handle it with the xslt task

- Stephen

---
Sent from my Android phone, so random spelling mistakes, random nonsense
words and other nonsense are a direct result of using swype to type on the
screen
On 22 Apr 2011 00:03, Dave Wolf dw...@digitalglobe.com wrote:
 Hi,

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

 artifact:install file=${distdir.main}/${projectName}.jar

 pom refid=pom /

 attach file=${securityConfig.dir}/ESAPI.properties type=properties
classifier=global-configuration /

 attach file=${securityConfig.dir}/validation.properties
type=properties classifier=global-validation /

 /artifact:install


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

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

 echoCopying securityservices jar dependencies/echo
 artifact:dependencies filesetId=jar.dependency.fileset type=jar
 pom file=pom.xml /
 /artifact:dependencies
 echoCopying securityservices jar dependencies/echo
 copy todir=${dir.lib}/securityservices
 fileset refid=jar.dependency.fileset /
 mapper type=flatten /
 /copy

 echoCopying securityservices properties dependencies/echo
 artifact:dependencies filesetId=properties.dependency.fileset
type=properties
 pom refid=pom /
 /artifact:dependencies
 copy todir=${dist.project.properties}/secureconfig
 fileset refid=properties.dependency.fileset /
 /copy

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

 [echo] Copying securityservices jar dependencies
 [artifact:dependencies] Maven Ant Tasks version: 2.1.2
 [artifact:dependencies] Loading Maven settings file:
/home/dwolf/.m2/settings.xml
 [artifact:dependencies] Loading Maven settings file:
/home/dwolf/devtools/maven/apache-maven-3.0.1/conf/settings.xml
 [artifact:dependencies] Using local repository: /home/dwolf/.m2/repository
 [pom] Loading Maven settings file: /home/dwolf/.m2/settings.xml
 [pom] Loading Maven settings file:
/home/dwolf/devtools/maven/apache-maven-3.0.1/conf/settings.xml
 [artifact:dependencies] Resolving dependencies...
 [artifact:dependencies] Using remote repositories:
 - id=nexus, url=
http://dgwsnxslgmt01.digitalglobe.com:8082/nexus/content/groups/development,
releases=enabled, snapshots=enabled
 com.digitalglobe:FM-PPE-GUI:jar:4.13-SNAPSHOT (selected)
 com.digitalglobe:securityservices:jar:4.13-SNAPSHOT:compile (selected)
 org.owasp.esapi:esapi:jar:2.0_rc10:compile (selected)
 org.beanshell:bsh-core:jar:2.0b4:compile (selected)
 log4j:log4j:jar:1.2.16:compile (selected)
 Setting project property: com.digitalglobe:securityservices:jar -
/home/dwolf/.m2/repository/com/digitalglobe/securityservices/4.13-SNAPSHOT/securityservices
 -4.13-SNAPSHOT.jar
 Adding reference: com.digitalglobe:securityservices:jar
 Setting project property: org.owasp.esapi:esapi:jar -
/home/dwolf/.m2/repository/org/owasp/esapi/esapi/2.0_rc10/esapi-2.0_rc10.jar
 Adding reference: org.owasp.esapi:esapi:jar
 Setting project property: org.beanshell:bsh-core:jar -
/home/dwolf/.m2/repository/org/beanshell/bsh-core/2.0b4/bsh-core-2.0b4.jar
 Adding reference: org.beanshell:bsh-core:jar
 Setting project property: log4j:log4j:jar -
/home/dwolf/.m2/repository/log4j/log4j/1.2.16/log4j-1.2.16.jar
 Adding reference: log4j:log4j:jar
 Adding reference: jar.dependency.fileset
 [echo] Copying securityservices jar dependencies
 fileset: Setup scanner in dir /home/dwolf/.m2/repository with patternSet{
includes:
[com/digitalglobe/securityservices/4.13

Retrieving attached files.

2011-04-21 Thread Dave Wolf
/esapi/esapi/2.0_rc10/esapi-2.0_rc10.jar to 
/home/dwolf/projects/FM-PPE-GUI/lib/securityservices/esapi
-2.0_rc10.jar
 [echo] Copying securityservices properties dependencies
[artifact:dependencies] Maven Ant Tasks version: 2.1.2
[artifact:dependencies] Loading Maven settings file: 
/home/dwolf/.m2/settings.xml
[artifact:dependencies] Loading Maven settings file: 
/home/dwolf/devtools/maven/apache-maven-3.0.1/conf/settings.xml
[artifact:dependencies] Using local repository: /home/dwolf/.m2/repository
[artifact:dependencies] Resolving dependencies...
[artifact:dependencies] Using remote repositories:
  - id=nexus, 
url=http://dgwsnxslgmt01.digitalglobe.com:8082/nexus/content/groups/development,
 releases=enabled, snapshots=enabled
  com.digitalglobe:FM-PPE-GUI:jar:4.13-SNAPSHOT (selected)
com.digitalglobe:securityservices:jar:4.13-SNAPSHOT:compile (selected)
  org.owasp.esapi:esapi:jar:2.0_rc10:compile (selected)
org.beanshell:bsh-core:jar:2.0b4:compile (selected)
  log4j:log4j:jar:1.2.16:compile (selected)
Adding reference: properties.dependency.fileset
fileset: Setup scanner in dir /home/dwolf/.m2/repository with patternSet{ 
includes: [] excludes: [**/**] }
 [copy] No sources found.
 [copy] No sources found.

Any ideas? I've checked the documentation and the mail archives. I've found a 
few things that were close, but not a solution yet.

Thanks,
Dave Wolf 
Java Architect
Gorilla Logic


This electronic communication and any attachments may contain confidential and 
proprietary 
information of DigitalGlobe, Inc. If you are not the intended recipient, or an 
agent or employee 
responsible for delivering this communication to the intended recipient, or if 
you have received 
this communication in error, please do not print, copy, retransmit, disseminate 
or 
otherwise use the information. Please indicate to the sender that you have 
received this 
communication in error, and delete the copy you received. DigitalGlobe reserves 
the 
right to monitor any electronic communication sent or received by its 
employees, agents 
or representatives.