Re: How to generate a Reactor Dependency Convergence which also has info about scope?

2012-08-14 Thread Lucas Persson


  
  
Aha, thanks a lot Martin :-)
/Lucas

On 08/13/2012 05:43 PM, Martin Gainty wrote:

  
  
Lucas
http://maven.apache.org/plugins/maven-project-info-reports-plugin/dependency-convergence-mojo.html

you will need to identify the report.dependencies.intro.*
attributes of your customBundle
customBundle:
Path for a custom bundle instead of using the default one.
  
  Using this field, you could change the texts in the generated
  reports.

  Type: java.lang.String
  Since: 2.3
  Required: No
  Default: ${project.basedir}/src/site/custom/project-info-report.properties


http://svn.apache.org/repos/asf/maven/plugins/trunk/maven-project-info-reports-plugin/src/main/resources/project-info-report.properties
where the specific applicable dependencies you would desire are:
report.dependencies.intro.compile  = The following is a list of compile dependencies for this project. These dependencies are required to compile and run the application:
report.dependencies.intro.provided = The following is a list of provided dependencies for this project. These dependencies are required to compile the application, but should be provided by default when using the library:
report.dependencies.intro.runtime  = The following is a list of runtime dependencies for this project. These dependencies are required to run the application:
report.dependencies.intro.system   = The following is a list of system dependencies for this project. These dependencies are required to compile the application:
report.dependencies.intro.test = The following is a list of test dependencies for this project. These dependencies are only required to compile and run unit tests for the application:

then parse the compile dependencies, provided dependencies, runtime dependencies, system dependencies and test dependencies

This would at least provide you the dependencies aggregated according to the scope in which the dependencies are referenced

Martin-



  Date: Mon, 13 Aug 2012 14:50:17 +0200
  From: lucas.pers...@oracle.com
  To: users@maven.apache.org
  Subject: How to generate a "Reactor Dependency Convergence"
  which also has info about scope?
  
  Hi
  
  I have a large set of projects with a top project (root
  project) and I want to generate an aggregated report on all
  the dependencies in the product. And the (mvn
  project-info-reports:dependency-convergence) can do that but I
  also need to know id the dependency is used for compile, test
  or runtime.
  
  Is there some other report that can be used for that?
  
  Thanks
  Lucas
  
  -- 

    Lucas Persson | Principal Member of
  Technical Staff
  Phone: +4684773644
  | | | Mobile: +46730946656
  
  Oracle Communications
  Platform
  ORACLE Sweden | Sder Mlarstrand 29, 6 tr | 118 25
  Stockholm

Oracle Svenska AB, Kronborgsgrnd 17,
  S-164 28 KISTA, reg.no. 556254-6746 
 Oracle is committed
  to developing practices and products that help protect the
  environment 

  


-- 
      
  Lucas Persson | Principal Member of Technical
Staff
Phone: +4684773644 | | | Mobile:
+46730946656

Oracle Communications Platform
ORACLE Sweden | Sder Mlarstrand 29, 6 tr | 118 25 Stockholm
  
  Oracle Svenska AB, Kronborgsgrnd 17, S-164 28
KISTA, reg.no. 556254-6746
  
  
  Oracle is committed to developing practices and
products that help protect the environment
  
  

  



How to generate a Reactor Dependency Convergence which also has info about scope?

2012-08-13 Thread Lucas Persson


  
  
Hi

I have a large set of projects with a top project (root project) and
I want to generate an aggregated report on all the dependencies in
the product. And the (mvn
project-info-reports:dependency-convergence) can do that but I also
need to know id the dependency is used for compile, test or runtime.

Is there some other report that can be used for that?

Thanks
Lucas

-- 
  
  Lucas Persson | Principal Member of Technical
Staff
Phone: +4684773644 | | | Mobile:
+46730946656

Oracle Communications Platform
ORACLE Sweden | Sder Mlarstrand 29, 6 tr | 118 25 Stockholm
  
  Oracle Svenska AB, Kronborgsgrnd 17, S-164 28
KISTA, reg.no. 556254-6746
  
  
  Oracle is committed to developing practices and
products that help protect the environment
  
  

  



Which in-container test framework do you use?

2012-04-13 Thread Lucas Persson


  
  
Hi

I am about to migrate some Ant build system to Maven and have run
into the JUnitEE ant task. I can not really find any up to date
corresponding plugin for Maven.

So what do people use now days to test servlets, ejb, JMS etc in
the JEE containers?

- JUnitEE - seems to be dead
- Cactus - seems also to be dead
- Arquillian - the rising star?
- Jeeunit - only embedded containers
??

Requirement wise I really only need a JUnit runner on the server.
The simple web GUI that JUnitEE has is also really nice and simple
to use.

Any input appreciated.

Thanks
Lucas

-- 
  
  Lucas Persson | Principal Member of Technical Staff
Phone: +4684773644 | | | Mobile:
+46730946656

Oracle Communications Platform
ORACLE Sweden | Sder Mlarstrand 29, 6 tr | 118 25 Stockholm
  
  Oracle Svenska AB, Kronborgsgrnd 17, S-164 28
KISTA, reg.no. 556254-6746
  
  
  Oracle is committed to developing practices and
products that help protect the environment
  
  

  



The perfect reporting tool?

2012-03-07 Thread Lucas Persson
Hi

I am in search for a nice way to compile all reports for a Maven build.
I have for instance JUnit results, findbugs results and code coverage
results (using Emma).

The maven site plugin does not really aggregate info so that I can get
the total number of findbugs bugs so I started to look at the dashboard
plugin from codehaus, but that plugin does not seem to get developed any
more. And there is not way to support Emma in it either.

Sonar seems to be a good initiative but that seems to require a running
server which I can not fit into our build environment.
I am locked downed to just creating a static html site that some other
will publish for me.

Any tips in this area is highly welcomed!

Thanks
Lucas



Re: The perfect reporting tool?

2012-03-07 Thread Lucas Persson
rted to look at the dashboard
plugin from codehaus, but that plugin does not seem to get developed any
more. And there is not way to support Emma in it either.

  
  
What does your pom look like? And what version of Maven, site/findbugs/... 
plugins do you use?

On my system I'm using a corporate parent pom containing a couple of 
profiles that, when activated, add Findbugs, Checkstyle and/or PMD reports 
to the generated website. Works pretty fine.


Regards

Thorsten



-- 
  
  Lucas Persson | Principal Member of Technical Staff
Phone: +4684773644 | | | Mobile:
+46730946656

Oracle Communications Platform
ORACLE Sweden | Sder Mlarstrand 29, 6 tr | 118 25 Stockholm
  
  Oracle Svenska AB, Kronborgsgrnd 17, S-164 28
KISTA, reg.no. 556254-6746
  
  
  Oracle is committed to developing practices and
products that help protect the environment
  
  

  



Re: hidden.org.codehaus.plexus.util.FileUtils.copyFile(FileUtils.java:1018) FAILS on OpenVMS

2011-06-28 Thread Lucas Persson
che.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:592)
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.MojoExecutionException: Error
installing artifact's metadata: Error installing metadata: Error co
pying POM to the local repository.
at
org.apache.maven.plugin.install.InstallMojo.execute(InstallMojo.java:143
)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginMa
nager.java:490)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
LifecycleExecutor.java:694)
... 17 more
Caused by:
org.apache.maven.artifact.installer.ArtifactInstallationException: Error
installing artifact's metadata: Error installing
 metadata: Error copying POM to the local repository.
at
org.apache.maven.artifact.installer.DefaultArtifactInstaller.install(Def
aultArtifactInstaller.java:123)
at
org.apache.maven.plugin.install.InstallMojo.execute(InstallMojo.java:105
)
... 19 more
Caused by:
org.apache.maven.artifact.repository.metadata.RepositoryMetadataInstalla
tionException: Error installing metadata: Error c
opying POM to the local repository.
at
org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetadataM
anager.install(DefaultRepositoryMetadataManager.j
ava:462)
at
org.apache.maven.artifact.installer.DefaultArtifactInstaller.install(Def
aultArtifactInstaller.java:111)
... 20 more
Caused by:
org.apache.maven.artifact.repository.metadata.RepositoryMetadataStoreExc
eption: Error copying POM to the local repository
.
at
org.apache.maven.project.artifact.ProjectArtifactMetadata.storeInLocalRe
pository(ProjectArtifactMetadata.java:100)
at
org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetadataM
anager.install(DefaultRepositoryMetadataManager.j
ava:458)
... 21 more
Caused by: java.io.IOException: Failed to copy full contents from
/dkb3/sw-projekte/asf/svnkit/tags/1_3_3/pom.xml to /dkb3/stadelma/
.m2/repository/org/tmatesoft/svnkit/svnkit/1.3.3/svnkit-1.3.3.pom
at
hidden.org.codehaus.plexus.util.FileUtils.copyFile(FileUtils.java:1018)
at
org.apache.maven.project.artifact.ProjectArtifactMetadata.storeInLocalRe
pository(ProjectArtifactMetadata.java:96)
... 22 more
[INFO]

[INFO] Total time: 8 seconds
[INFO] Finished at: Mon Jun 27 16:39:23 CEST 2011
[INFO] Final Memory: 12M/176M
[INFO]

IA64

  
  

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




-- 
  
  Lucas Persson | Principal Member of Technical Staff
Phone: +4684773644 | | | Mobile:
+46730946656

Oracle Communications Platform
ORACLE Sweden | Folkungagatan 122 | 116 30 Stockholm
  
  Oracle Svenska AB, Kronborgsgränd 17, S-164 28
KISTA, reg.no. 556254-6746
  
  
  Oracle is committed to developing practices and
products that help protect the environment
  
  

  



Best practices for multi-projects in Maven 3? (version less parent)

2011-06-28 Thread Lucas Persson

Hi
Sorry if this has been discussed before but I can not really find a
satisfying solution for this.

I have read several pre-announcement for Maven 3 indicating support for
version less parent:Those of you who have worked in multi-module
http://tomionsoftware.blogspot.com/2005/12/maven-2-how-to-multiple-module-flat.html
or multi-pom projects in Maven2 might have asked themselves, why do I
have to specify the parent version in every sub module. Maven 3 will
remove this redundancy and add version-less parent elements.

Is this really shipped in Maven 3.0.x? I can not really find any info
about it.

Anyway what is the best practice for when having several
multi-module/aggregation project? E.g
- Product (super pom)
-- Component 1 (aggregation pom)
--- project 1
--- project 2
--- project 3
-- Component 2 (aggregation pom)
--- project 4
--- project 5
--- project 6


The closest I can come with still needs to hardcode the version in
Product and in Component 1 and Component 2.
This can't not really be good. Why should I have to update several files
when I want to change the version number for my build?
It is the same product I am building.


Thanks
Lucas


Re: AW: hidden.org.codehaus.plexus.util.FileUtils.copyFile(FileUtils.java:1018) FAILS on OpenVMS

2011-06-28 Thread Lucas Persson


  
  
Java is code once debug everywhere ;-)
/Lucas

On 06/28/2011 03:06 PM, Stadelmann Josef wrote:

  
  
  
  
  
In other words, dear
maven-community, 
the check is platform dependent
working or failing, 
hence useless in a OpenVMS or
Windows 7 environment, and maybe others too! 
But Java is code once run
everywhere, isn't it?
Josef


  
Von: Lucas Persson
[mailto:lucas.pers...@oracle.com] 
Gesendet: Dienstag, 28. Juni 2011 09:32
An: Maven Users List
Betreff: Re:
hidden.org.codehaus.plexus.util.FileUtils.copyFile(FileUtils.java:1018)
FAILS on OpenVMS
  


Hi
  
  I have notice that the below check fails on windows 7 if the
  file you copy is a windows symlink (not a "shortcut").
  The length on a symlink is not the lenght of the file which
  the symlink points to so the check will always fail.
  
  I think this check is kind of useless. Sure one should get
  IOException if the copy fails?
  
  /Lucas
  
  On 06/27/2011 09:23 PM, Herv BOUTEMY wrote: 
after the source, 
if ( source.length() != destination.length() )
 {
 final String message = "Failed to copy full contents from " + 
source + " to " + destination;
 throw new IOException( message );
 }

did you try to write a unit test?

Regards,

Herv

Le lundi 27 juin 2011, Stadelmann Josef a crit :

  I reported what I see some time agoe.
  
  What ever I do with maven-2.2.1 and co
  It fails when it has no reason to fail.
  
  The greate thing is to say; when ever this copy full content error or
  any similarcopy full content errors occur, the copy took place perfect
  and diff doesn't show any diffs.
  
  So why is plexus in error at that point and as a consequence lets maven
  look old and BUILD fail?
  
  -Dfile.encoding= ISO-8859-1 has no impact and fails as well at the same
  position (just for info)
  
  Otherwhise when I see how much of maven-2.2.1 works with OpenVMS, it
  would be very promising if not this little tiny bits would play such a
  fatal bad role.
  
  Why does this guy do so badly
  hidden.org.codehaus.plexus.util.FileUtils.copyFile(FileUtils.java:1018)
  
  
  
  Josef
  
  
  
  IA64mvn "-e install"
  0: DKB3:[JAVA$150.BIN]JAVA$JAVA.EXE;1
  1: -Dclassworlds.conf=/dkb3/apache-maven-2_2_1/bin/m2.conf
  2: -Duser.home=/dkb3/stadelma
  3: -Dmaven.home=/dkb3/apache-maven-2_2_1
  4: -Dhttp.auth.preference=Basic
  5: -Dfile.encoding=UTF-8
  6: org.codehaus.classworlds.Launcher
  7: -e
  8: install
  + Error stacktraces are turned on.
  [INFO] Scanning for projects...
  [INFO]
  
  [INFO] Building SVNKit
  [INFO] task-segment: [install]
  [INFO]
  
  [INFO] [resources:resources {execution: default-resources}]
  [WARNING] Using platform encoding (UTF-8 actually) to copy filtered
  resources, i.e. build is platform dependent!
  [INFO] skip non existing resourceDirectory
  /dkb3/sw-projekte/asf/svnkit/tags/1_3_3/src/main/resources
  [INFO] [compiler:compile {execution: default-compile}]
  [INFO] No sources to compile
  [INFO] [resources:testResources {execution: default-testResources}]
  [WARNING] Using platform encoding (UTF-8 actually) to copy filtered
  resources, i.e. build is platform dependent!
  [INFO] skip non existing resourceDirectory
  /dkb3/sw-projekte/asf/svnkit/tags/1_3_3/src/test/resources
  [INFO] [compiler:testCompile {execution: default-testCompile}]
  [INFO] No sources to compile
  [INFO] [surefire:test {execution: default-test}]
  [INFO] No tests to run.
  [INFO] [jar:jar {execution: default-jar}]
  [WARNING] JAR will be empty - no content was marked for inclusion!
  [INFO] [install:install {execution: default-install}]
  [INFO] Installing
  /dkb3/sw-projekte/asf/svnkit/tags/1_3_3/target/svnkit-1.3.3.jar to
  /dkb3/stadelma/.m2/repository/org/tmatesoft/svn
  kit/svnki

Windows 7 symlinks and maven file copy

2011-04-28 Thread Lucas Persson


  
  
Hi
  
  We have just updated to Windows 7 and for some resource files in
  one of our projects we are using Windows 7 symlinks.
  
  The problem is that the maven-resource-plugin uses some
  org.codehaus.plexus.util.FileUtils class from Plexus which does a
  sanity check after the file is copied to the target folder. It
  checks if the file length are the same which on Windows 7 is not
  true. It seems that java.io.File.lenght() returns 0 for Windows 7
  symlinks. (On Linux the length will be the length of the file that
  the link points to)
  
  I suppose I can filter all resource to avoid the sanity check but
  it does not seems right.
  
  Any suggestions on suitable workarounds?
  
  Thanks
  Lucas
  
  

-- 
  
  Lucas Persson | Principal Member of Technical Staff
Phone: +4684773644 | | | Mobile:
+46730946656

Oracle Communications Platform
ORACLE Sweden | Folkungagatan 122 | 116 30 Stockholm
  
  Oracle Svenska AB, Kronborgsgrnd 17, S-164 28 KISTA,
reg.no. 556254-6746
  
  
  Oracle is committed to developing practices and
products that help protect the environment
  
  

  



Re: maven-dependency-plugin uses target dir instead of artifacts from repository

2011-04-10 Thread Lucas Persson


  
  
But when I do mvn install on the multiprojet then I will get a
  JAR but when doing mvn site on the multiproject I get
  target/classes.
  
  That seems to be the opposite to what you have described?
  
  /Lucas
  
  On 04/08/2011 07:52 PM, Brian Fox wrote:

  It's not a hack, the plugin asks maven core to resolve the artifacts and the
objects it gets back have file handles. In reactor builds with sibling
dependencies, those handles point to the sibling target folder. If you do a
compile reactor build, those handles will point to the /target/classes
folder. IOW, this is Maven Core behavior, not the plugin.

On Fri, Apr 8, 2011 at 3:56 AM, Anders Hammar and...@hammar.net wrote:


  
I believe I've run into a similar issue at some time.
However, there are a few things you should understand:
1. An reactor build is executed and for that to work, Maven *should* get
artifacts from the reactor and not the repo
2. executing "mvn pmd:pmd" will not install any artifacts to the local
repository - the build lifecycle is *not* executed

I think I basically gave up on this as I kind of think it's a hack reusing
the sources from a different project. And it wasn't really my
problem/project, so I told them to refactor instead. :-)
I think that the jira ticket I filed for this is MDEP-291.

/Anders


On Fri, Apr 8, 2011 at 09:28, Lucas Persson lucas.pers...@oracle.comwrote:



   Hi


I have some issues with the maven-dependency-plugin vers 2.2 under
Maven3.

In one project I uses the plugin to unpack a sources artifact like this:
  plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-dependency-plugin/artifactId
executions
  execution
idunpack-artifact-sources/id
phasegenerate-resources/phase
goals
  goalunpack/goal
/goals
configuration
  artifactItems
artifactItem
  groupIdoracle.ucs.callcontrol/groupId
  artifactIdcallcontrolapi/artifactId
  version${project.version}/version
  classifiersources/classifier
  overWritetrue/overWrite
/artifactItem
  /artifactItems

outputDirectory${project.build.directory}/unpack-sources/outputDirectory
/configuration
  /execution
/executions
  /plugin


This works very well when doing e.g. 'mvn install'
But when runnning e.g. mvn pmd:pmd on the parent project (which also
builds the artifact that this project tries to unpack)
then the maven-dependency-plugin uses that project's target dir instead
taking the sources jar form the repository.

 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:2.2:unpack (unpack-artifact-sources) on project javadoc: Error unpacking file: /ade/aime_sdp_924164/target/oracle.ucs.callcontrol/callcontrolapi/target/classes to: /ade/aime_sdp_924164/target/oracle.sdp.tools/javadoc/target/unpack-sources


This is very strange.

Anyone with similar experience?

Thanks
Lucas


 --
[image: Oracle] http://www.oracle.com
Lucas Persson | Principal Member of Technical Staff
Phone: +4684773644 | | | Mobile: +46730946656
Oracle Communications Platform
ORACLE Sweden | Folkungagatan 122 | 116 30 Stockholm

Oracle Svenska AB, Kronborgsgrnd 17, S-164 28 KISTA, reg.no. 556254-6746
[image: Green Oracle] http://www.oracle.com/commitment Oracle is
committed to developing practices and products that help protect the
environment






  
  




-- 

  
    Lucas Persson | Principal Member
  of Technical Staff
  Phone: +4684773644 | | |
  Mobile: +46730946656
  
  Oracle Communications Platform
  ORACLE Sweden | Folkungagatan 122 | 116 30 Stockholm
  

Oracle Svenska AB, Kronborgsgrnd
  17, S-164 28 KISTA, reg.no. 556254-6746
  

  
Oracle is committed to developing
  practices and products that help protect the environment
  
  

  



Re: How to generate javadocs for only some projects in a multiproject?

2011-04-10 Thread Lucas Persson


  
  
Only some jars contains API meant to be used by customers. No
  point in having Javadoc for internal code, that will be confusing
  for the customer. 
  
  For our internal use we are using Eclipse and having "projects
  dependencies" in the .classpath file instead of JAR dependencies
  so all javadoc will be available form the java source code in a
  IDE.
  
  Anyway the exclude can do but since we have so many packages to
  exclude it is not really a good solution.
  
  Thanks
  Lucas
  
  On 04/08/2011 04:01 PM, Anders Hammar wrote:
Although you can't exclude projects you should be
able to what you want by excluding packages.

In any case, the problems you are running into is mostly because
you're trying to do something isn't the Maven main road. :-) Why
isn't a javadoc jar for each artifact good enough? That's how
your IDE wants it in any case.

/Anders
  

  
  On Fri, Apr 8, 2011 at 15:47, Lucas
      Persson lucas.pers...@oracle.com
  wrote:


   Hi
  
  Yes but the two things have to happen at the same time :-)
  
  yes javadoc:aggregate-jar will produce a single jar of
  javadoc but I can not see that I can exclude or include
  projects.
  It seem to take all projects the the multiproject defines.
   /Lucas
  

  
  On 04/08/2011 02:29 PM, Anders Hammar wrote: 
I think you're asking two
different things here:
1. You only want a javadoc for some projects.
2. You want a single aggrgated javadoc jar

For #2, would the aggregate-jar goal of the javadoc
plugin work? 

/Anders 
  
  On Fri, Apr 8, 2011 at
      13:36, Lucas Persson lucas.pers...@oracle.com
  wrote:


   Hi
  
  I want to generate and release the javadoc
  (e.g. the javadoc.jar should be a release
  artefacts just like any other JAR)
  But only some projects contains public java
  code that javadoc should be generated for.
  And if I have for instance 4 projects for
  which I want to generate javadoc I only want
  one javadoc.jar in the end with the complete
  source tree.
  
  I really thought that I found the solution to
  this in 
  http://stackoverflow.com/questions/4947215/maven-3-generate-javadoc-for-defined-artifacts
  but the bug reported in http://jira.codehaus.org/browse/MDEP-291
  seem to hinder it.
  
  I really do not want to have some relative
  path from the 'javadoc project' to the
  projects where the source are in.
  
  
  I have also played around with different
  combination on skip
  like this in the multiproject
   build
   plugins
   plugin
  
  groupIdorg.apache.maven.plugins/groupId
  
  artifactIdmaven-javadoc-plugin/artifactId
  
  inheritedfalse/inherited
   configuration
   skipfalse/skip
   /configuration
   /plugin 
   /plugins
   pluginManagement
   plugins
   plugin
  
  groupIdorg.apache.maven.plugins/groupId
  
  artifactIdmaven-javadoc-plugin/artifactId
   configuration
   skiptrue/skip
   /configuration
   /plugin 
   /plugins
  
  And in those subproject that I really want
  javadoc for added:
   

maven-dependency-plugin uses target dir instead of artifacts from repository

2011-04-08 Thread Lucas Persson


  
  
Hi
  
  
  I have some issues with the maven-dependency-plugin
  vers 2.2 under Maven3.
  
  In one project I uses the plugin to unpack a sources artifact
  like this:
   plugin
  
  groupIdorg.apache.maven.plugins/groupId
  
  artifactIdmaven-dependency-plugin/artifactId
   executions
   execution
   idunpack-artifact-sources/id
   phasegenerate-resources/phase
   goals
   goalunpack/goal
   /goals
   configuration
   artifactItems
   artifactItem
  
  groupIdoracle.ucs.callcontrol/groupId
  
  artifactIdcallcontrolapi/artifactId
  
  version${project.version}/version
   classifiersources/classifier
   overWritetrue/overWrite
   /artifactItem
   /artifactItems
  
outputDirectory${project.build.directory}/unpack-sources/outputDirectory
   /configuration
   /execution
   /executions
   /plugin
  
  
  This works very well when doing e.g. 'mvn install'
  But when runnning e.g. mvn pmd:pmd on the parent project
  (which also builds the artifact that this project tries to
  unpack)
  then the maven-dependency-plugin
  uses that project's target dir instead taking the sources jar
  form the repository.


[ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:2.2:unpack (unpack-artifact-sources) on project javadoc: Error unpacking file: /ade/aime_sdp_924164/target/oracle.ucs.callcontrol/callcontrolapi/target/classes to: /ade/aime_sdp_924164/target/oracle.sdp.tools/javadoc/target/unpack-sources


  This is very strange.
  
  Anyone with similar experience?
  
  Thanks
  Lucas



-- 
  
  Lucas Persson | Principal Member of Technical Staff
Phone: +4684773644 | | | Mobile:
+46730946656

Oracle Communications Platform
ORACLE Sweden | Folkungagatan 122 | 116 30 Stockholm
  
  Oracle Svenska AB, Kronborgsgrnd 17, S-164 28 KISTA,
reg.no. 556254-6746
  
  
  Oracle is committed to developing practices and
products that help protect the environment
  
  

  



Re: maven-dependency-plugin uses target dir instead of artifacts from repository

2011-04-08 Thread Lucas Persson


  
  
Thanks Anders
  
  I note I get the same issue for mvn site when the reports shall be
  generated.
  I can understand that during a reactor build artifacts shall be
  fetched from the build but it does not make scenes that the plugin
  tries to use target/classes when I specified a source classifier.
  
  Well I think I perhaps missuse maven here so I need to come up
  with a better solution.
  
  Cheers
  Lucas

On 04/08/2011 09:56 AM, Anders Hammar wrote:
I believe I've run into a similar issue at some time.
  However, there are a few things you should understand:
  1. An reactor build is executed and for that to work, Maven
  *should* get artifacts from the reactor and not the repo
  2. executing "mvn pmd:pmd" will not install any artifacts to the
  local repository - the build lifecycle is *not* executed
  
  I think I basically gave up on this as I kind of think it's a hack
  reusing the sources from a different project. And it wasn't really
  my problem/project, so I told them to refactor instead. :-)
  I think that the jira ticket I filed for this is MDEP-291.
  
  /Anders
  
  On Fri, Apr 8, 2011 at 09:28, Lucas
    Persson lucas.pers...@oracle.com
wrote:

   Hi
  
  
  I have some issues with the maven-dependency-plugin

  vers 2.2 under Maven3.
  
  In one project I uses the plugin to unpack a sources
  artifact like this:
   plugin
  
  groupIdorg.apache.maven.plugins/groupId
  
  artifactIdmaven-dependency-plugin/artifactId
   executions
   execution
  
  idunpack-artifact-sources/id
  
  phasegenerate-resources/phase
   goals
   goalunpack/goal
   /goals
   configuration
   artifactItems
   artifactItem
  
  groupIdoracle.ucs.callcontrol/groupId
  
  artifactIdcallcontrolapi/artifactId
  
  version${project.version}/version
  
  classifiersources/classifier
  
  overWritetrue/overWrite
   /artifactItem
   /artifactItems
  
outputDirectory${project.build.directory}/unpack-sources/outputDirectory
   /configuration
   /execution
   /executions
   /plugin
  
  
  This works very well when doing e.g. 'mvn install'
  But when runnning e.g. mvn pmd:pmd on the parent
  project (which also builds the artifact that this
  project tries to unpack)
  then the maven-dependency-plugin

  uses that project's target dir instead taking the
  sources jar form the repository.


[ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:2.2:unpack (unpack-artifact-sources) on project javadoc: Error unpacking file: /ade/aime_sdp_924164/target/oracle.ucs.callcontrol/callcontrolapi/target/classes to: /ade/aime_sdp_924164/target/oracle.sdp.tools/javadoc/target/unpack-sources


  This is very strange.
  
  Anyone with similar experience?
  
  Thanks
  Lucas



-- 
  
  Lucas Persson | Principal Member of
Technical Staff
Phone: +4684773644 | | | Mobile: +46730946656 
Oracle Communications
Platform
ORACLE Sweden | Folkungagatan 122 | 116 30 Stockholm
  
  Oracle Svenska AB, Kronborgsgrnd
17, S-164 28 KISTA, reg.no.
556254-6746 
   Oracle is committed to developing
practices and products that help protect the environment

  

  
  


-- 
      
  Lucas Persson | Principal Member of Technical Staff
Phone: +4684773644 | | | Mobile:
+46730946656

Oracle Communications Platform
ORACLE Sweden | Folkungagatan 122 | 116 30 Stockholm
  
  Oracle Svenska AB, Kronborgsgrnd 17, S-164 28 KISTA,
reg.no. 556254-6746
  
  
  Oracle is committed to developing practices and
products that help protect the environment
  
  

  



How to generate javadocs for only some projects in a multiproject?

2011-04-08 Thread Lucas Persson


  
  
Hi
  
  I want to generate and release the javadoc (e.g. the javadoc.jar
  should be a release artefacts just like any other JAR)
  But only some projects contains public java code that javadoc
  should be generated for.
  And if I have for instance 4 projects for which I want to generate
  javadoc I only want one javadoc.jar in the end with the complete
  source tree.
  
  I really thought that I found the solution to this in 
http://stackoverflow.com/questions/4947215/maven-3-generate-javadoc-for-defined-artifacts
  but the bug reported in http://jira.codehaus.org/browse/MDEP-291
  seem to hinder it.
  
  I really do not want to have some relative path from the 'javadoc
  project' to the projects where the source are in.
  
  
  I have also played around with different combination on
  skip
  like this in the multiproject
   build
   plugins
   plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-javadoc-plugin/artifactId
   inheritedfalse/inherited
   configuration
   skipfalse/skip
   /configuration
   /plugin 
   /plugins
   pluginManagement
   plugins
   plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-javadoc-plugin/artifactId
   configuration
   skiptrue/skip
   /configuration
   /plugin 
   /plugins
  
  And in those subproject that I really want javadoc for added:
   plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-javadoc-plugin/artifactId
   configuration
   skipfalse/skip
   /configuration
   /plugin 
  
  
  
  So I then tried to use includePackageNames but that does
  not exists.
  Only excludePackageNames but then I need to exclude like
  hundred of package names, sigh.
  
  /Lucas
  
  
  

-- 
  
  Lucas Persson | Principal Member of Technical Staff
Phone: +4684773644 | | | Mobile:
+46730946656

Oracle Communications Platform
ORACLE Sweden | Folkungagatan 122 | 116 30 Stockholm
  
  Oracle Svenska AB, Kronborgsgrnd 17, S-164 28 KISTA,
reg.no. 556254-6746
  
  
  Oracle is committed to developing practices and
products that help protect the environment
  
  

  



Re: How to generate javadocs for only some projects in a multiproject?

2011-04-08 Thread Lucas Persson


  
  
Hi
  
  Yes but the two things have to happen at the same time :-)
  
  yes javadoc:aggregate-jar will produce a single jar of javadoc but
  I can not see that I can exclude or include projects.
  It seem to take all projects the the multiproject defines.
  /Lucas

On 04/08/2011 02:29 PM, Anders Hammar wrote:
I think you're asking two different things here:
  1. You only want a javadoc for some projects.
  2. You want a single aggrgated javadoc jar
  
  For #2, would the aggregate-jar goal of the javadoc plugin work?
  
  /Anders
  On Fri, Apr 8, 2011 at 13:36, Lucas
Persson lucas.pers...@oracle.com
wrote:

   Hi
  
  I want to generate and release the javadoc (e.g. the
  javadoc.jar should be a release artefacts just like any
  other JAR)
  But only some projects contains public java code that
  javadoc should be generated for.
  And if I have for instance 4 projects for which I want to
  generate javadoc I only want one javadoc.jar in the end
  with the complete source tree.
  
  I really thought that I found the solution to this in 
  http://stackoverflow.com/questions/4947215/maven-3-generate-javadoc-for-defined-artifacts
  but the bug reported in http://jira.codehaus.org/browse/MDEP-291
  seem to hinder it.
  
  I really do not want to have some relative path from the
  'javadoc project' to the projects where the source are in.
  
  
  I have also played around with different combination on
  skip
  like this in the multiproject
   build
   plugins
   plugin
  
  groupIdorg.apache.maven.plugins/groupId
  
  artifactIdmaven-javadoc-plugin/artifactId
   inheritedfalse/inherited
   configuration
   skipfalse/skip
   /configuration
   /plugin 
   /plugins
   pluginManagement
   plugins
   plugin
  
  groupIdorg.apache.maven.plugins/groupId
  
  artifactIdmaven-javadoc-plugin/artifactId
   configuration
   skiptrue/skip
   /configuration
   /plugin 
   /plugins
  
  And in those subproject that I really want javadoc for
  added:
   plugin
  
  groupIdorg.apache.maven.plugins/groupId
  
  artifactIdmaven-javadoc-plugin/artifactId
   configuration
   skipfalse/skip
   /configuration
   /plugin 
  
  
  
  So I then tried to use includePackageNames but
  that does not exists.
  Only excludePackageNames but then I need to
  exclude like hundred of package names, sigh.
  
  /Lucas
  
  
  

-- 
  
  Lucas Persson | Principal Member of
Technical Staff
Phone: +4684773644 | | | Mobile: +46730946656 
Oracle Communications
Platform
ORACLE Sweden | Folkungagatan 122 | 116 30 Stockholm
  
  Oracle Svenska AB, Kronborgsgrnd
17, S-164 28 KISTA, reg.no.
556254-6746 
   Oracle is committed to developing
practices and products that help protect the environment

  

  
  


-- 
  
  Lucas Persson | Principal Member of Technical Staff
Phone: +4684773644 | | | Mobile:
+46730946656

Oracle Communications Platform
ORACLE Sweden | Folkungagatan 122 | 116 30 Stockholm
  
  Oracle Svenska AB, Kronborgsgrnd 17, S-164 28 KISTA,
reg.no. 556254-6746
  
  
  Oracle is committed to developing practices and
products that help protect the environment
  
  

  



Re: getting maven failure code in ant

2011-02-03 Thread Lucas Persson


  
  
Hi
  
  when maven fails it returns with an exit code != 0 as most other
  tools commands
  Check for that in Ant.
  
  Cheers
  Lucas

On 02/03/2011 05:30 AM, kamilofski wrote:

  
Thanks for the quick response.

I am actually already running maven from within ANT, except I am not sure
how to signal ant to say 'build failure' when the maven build fails. 
Currently it is saying 'build successful' in ANT but 'build failure' in
maven.



-- 
  
  Lucas Persson | Principal Member of Technical Staff
Phone: +4684773644 | | | Mobile:
+46730946656

Oracle Communications Platform
ORACLE Sweden | Folkungagatan 122 | 116 30 Stockholm
  
  Oracle Svenska AB, Kronborgsgrnd 17, S-164 28 KISTA,
reg.no. 556254-6746
  
  
  Oracle is committed to developing practices and
products that help protect the environment
  
  

  



Re: Out of memory. GC overhead limit error

2011-02-02 Thread Lucas Persson


  
  
I guess you have tried to increase the heap?
  E.g export MAVEN_OPTS="-Xmx512m -Xms256m"
  /Lucas
  

On 02/02/2011 05:00 AM, Sridhar Laxmipuram Srinivasan wrote:

  I get this weird error when I try to run maven...
[INFO] Compilation failure
Failure executing javac, but could not parse the error:


The system is out of resources.
Consult the following stack trace for details.
java.lang.OutOfMemoryError: GC overhead limit exceeded
at com.sun.tools.javac.comp.Annotate.enterAnnotation(Annotate.java:172)
at com.sun.tools.javac.comp.MemberEnter.enterAnnotations(MemberEnter.java:743)
at com.sun.tools.javac.comp.MemberEnter.access$300(MemberEnter.java:42)
at com.sun.tools.javac.comp.MemberEnter$5.enterAnnotation(MemberEnter.java:711)
at com.sun.tools.javac.comp.Annotate.flush(Annotate.java:95)
at com.sun.tools.javac.comp.Annotate.enterDone(Annotate.java:87)
at com.sun.tools.javac.comp.Enter.complete(Enter.java:472)
at com.sun.tools.javac.comp.Enter.main(Enter.java:429)
at com.sun.tools.javac.main.JavaCompiler.enterTrees(JavaCompiler.java:819)
at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:727)
at com.sun.tools.javac.main.Main.compile(Main.java:353)
at com.sun.tools.javac.main.Main.compile(Main.java:279)
at com.sun.tools.javac.main.Main.compile(Main.java:270)
at com.sun.tools.javac.Main.compile(Main.java:87)
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.plexus.compiler.javac.JavacCompiler.compileInProcess(JavacCompiler.java:420)
at org.codehaus.plexus.compiler.javac.JavacCompiler.compile(JavacCompiler.java:141)
at org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:493)
at org.apache.maven.plugin.TestCompilerMojo.execute(TestCompilerMojo.java:102)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
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)

Can somebody suggest how to resolve this issue.

thnkx
sridharl
(You learn from your failures and others will learn from your success)





-- 
      
  Lucas Persson | Principal Member of Technical Staff
Phone: +4684773644 | | | Mobile:
+46730946656

Oracle Communications Platform
ORACLE Sweden | Folkungagatan 122 | 116 30 Stockholm
  
  Oracle Svenska AB, Kronborgsgrnd 17, S-164 28 KISTA,
reg.no. 556254-6746
  
  
  Oracle is committed to developing practices and
products that help protect the environment
  
  

  



Re: Rtrieving version info

2011-02-02 Thread Lucas Persson


  
  
I can not resist ;-)
  this.getClass().getPackage().getImplementationVersion();
  
  And you need to instruct maven jar plugin to include version info
  the MANIFEST.MF
  E.g.
    configuration
      archive
    manifest
     
addDefaultImplementationEntriestrue/addDefaultImplementationEntries
    /manifest
      /archive
    /configuration
  http://maven.apache.org/shared/maven-archiver/index.html
  
  Cheers
  Lucas
  

On 02/02/2011 09:45 AM, Martin Schayna wrote:
On
  02/01/2011 10:23 PM, Wayne Fay wrote:
  
  
How do I access the  maven version from
  my java code.
  

For what purpose, exactly? Are you building a Maven plugin, or
simply

building some Java project with Maven?


  
  
  I have done this by reading version number during runtime from
  MANIFEST.MF file:
  
  
      import java.util.jar.Attributes;
  
      import java.util.jar.Manifest;
  
  
      Manifest manifest =
  (Manifest)app.getServletContext().getAttribute("MANIFEST");
  
      if (manifest == null)
  
      try {
  
      manifest = new
Manifest(app.getServletContext().getResourceAsStream("/META-INF/MANIFEST.MF"));
      } catch (Exception e) {
  
      manifest = new Manifest();
  
      }
  
      String version = getAttribute(manifest,
  "Implementation-Version");
  
  
  Just curious if this solution is ok or exists better one?
  
  
  Thanks, Martin Schayna.
  
  
  
-
  
  To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
  
  For additional commands, e-mail: users-h...@maven.apache.org
  
  
    
    
-- 
  
  Lucas Persson | Principal Member of Technical Staff
Phone: +4684773644 | | | Mobile:
+46730946656

Oracle Communications Platform
ORACLE Sweden | Folkungagatan 122 | 116 30 Stockholm
  
  Oracle Svenska AB, Kronborgsgränd 17, S-164 28 KISTA,
reg.no. 556254-6746
  
  
  Oracle is committed to developing practices and
products that help protect the environment
  
  

  



maven-site-plugin 3.0-beta-3 and maven-checkstyle-plugin 2.6 gives Unable to instantiate PackageHtml

2011-01-21 Thread Lucas Persson


  
  
Hi

I am using maven 3.0.2 and I get an error like this:
"[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-site-plugin:3.0-beta-3:site
(default-site) on project commons: Error during page generation:
Error rendering Maven report: Failed during checkstyle
configuration: cannot initialize module PackageHtml - Unable to
instantiate PackageHtml: Unable to instantiate PackageHtmlCheck
- [Help 1]"

when doing 'mvn site'.

I have maven-site-plugin 3.0-beta-3 and maven-checkstyle-plugin 2.6


There seems to have been some issue around PackageHtmlCheck, see
http://jira.codehaus.org/browse/SONAR-1545?page=com.atlassian.jira.plugin.system.issuetabpanels%3Achangehistory-tabpanel
But I can not really understand what the trick is. 

And yes I have my own rules. Basically it is similar to the Sun one.
Sure I can remove module name="PackageHtml"/
but then I get "Failed during checkstyle configuration: cannot
initialize module TreeWalker - TreeWalker is not allowed as a parent
of FileLength - [Help 1]"

Thanks
Lucas
    
    
-- 
  
  Lucas Persson | Principal Member of Technical Staff
Phone: +4684773644 | | | Mobile:
+46730946656

Oracle Communications Platform
ORACLE Sweden | Folkungagatan 122 | 116 30 Stockholm
  
  Oracle Svenska AB, Kronborgsgrnd 17, S-164 28 KISTA,
reg.no. 556254-6746
  
  
  Oracle is committed to developing practices and
products that help protect the environment
  
  

  



Re: Using settings properties

2011-01-19 Thread Lucas Persson

Hi

At my company we use properties in the global setting.xml which the 
build is dependent. This make sense since our build is strictly within 
our company and everyone uses the same maven installation

For instance:
(in setting.xml)
profile
idcore/id
properties
adeViewRoot/ade/viper/adeViewRoot
/properties

(in pom.xml)
distributionManagement
repository
idsdp/id
layoutdefault/layout
nameSDP Repository/name
uniqueVersionfalse/uniqueVersion
urlfile://${adeViewRoot}/sdp/maven2-snapshots/url
/repository

I suppose that you could use environment variable, like:
site
idsdp-site/id
nameService Delivery Platform Site/name
urlfile:///net/${env.WEB_SERVER_NAME}${env.WEB_SERVER_BASE_LOCAL_DIR}/${oracle.sdp.release}/${env.ADE_VIEW_LABEL}/reports/url
/site


I think you might want to check the schema for setting.xml to see where 
you can add the element properties.



Cheers
Lucas



On 01/19/2011 12:43 PM, Michael Kelleher wrote:

Thanks for the advice.  You could have proposed a solution instead of just a
criticism.

Sent from my iPhone

On Jan 19, 2011, at 4:02 AM, Anders Hammarand...@hammar.net  wrote:

Very bad practice! The repositories defined in the pom MUST be possible for
other people (other projects depending on your artifacts) to resolve. Using
properties defined in settings.xml makes that impossible.

/Anders

On Wed, Jan 19, 2011 at 05:14, mjkmj.kelle...@gmail.com  wrote:


Is it possible to use properties defined in settings.xml within
repositories /  anddistributionManagement /?

Other properties seem to get resolved during a build, however when I do a
deploy, maven uses the variable name with the leading ${ and trailing },
instead of the resolved variable value.

Any ideas?



Re: How to write a plugin that generates source files based on the source in the project?

2011-01-13 Thread Lucas Persson


  
  
xdoclet is a tool for parsing java and also generate java, but
  it is kind of old now
  /Lucas

On 01/13/2011 04:48 PM, Lewis, Eric wrote:

  Hi

I'm trying to write a plugin which does the following:

- Check the classes in the project and keep all classes that implement interface X.
- For all X, get the fields, and if a field has a certain annotation, generate a class containing some constant information.

Normally the plugin should be bound to the phase 'generate-sources'. However, the classes of the project aren't compiled yet at that moment, so I can't just get them from the classpath, right?

Does anyone have a good idea or pointers how to do this correctly?

Thanks  best regards,
Eric

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




-- 
  
  Lucas Persson | Principal Member of Technical Staff
Phone: +4684773644 | | | Mobile:
+46730946656

Oracle Communications Platform
ORACLE Sweden | Folkungagatan 122 | 116 30 Stockholm
  
  Oracle Svenska AB, Kronborgsgrnd 17, S-164 28 KISTA,
reg.no. 556254-6746
  
  
  Oracle is committed to developing practices and
products that help protect the environment
  
  

  



Re: Automatically integration test an ejb with Maven

2010-12-22 Thread Lucas Persson


  
  
Interesting
  
  But why do you not use the Cactus maven plugin? With cactus you
  can execute the tests in the server.
  
  /Lucas
  
On 12/21/2010 11:23 PM, Thomas Sundberg wrote:

  Hi!

Somebody might have use of a blog post I just posted:
http://thomassundberg.wordpress.com/2010/12/21/automatically-integration-test-an-ejb-with-maven/

/Thomas




-- 
  
  Lucas Persson | Principal Member of Technical Staff
Phone: +4684773644 | | | Mobile:
+46730946656

Oracle Communications Platform
ORACLE Sweden | Folkungagatan 122 | 116 30 Stockholm
  
  Oracle Svenska AB, Kronborgsgrnd 17, S-164 28 KISTA,
reg.no. 556254-6746
  
  
  Oracle is committed to developing practices and
products that help protect the environment
  
  

  



Re: Automatically integration test an ejb with Maven

2010-12-22 Thread Lucas Persson


  
  
Aha I see
  
  Jepp, the development on Cactus does not seems to be very active.
  
  Here is a links for how to use it in maven2/3:
  http://jakarta.apache.org/cactus/integration/maven2/index.html.
  And they also suggests to use cargo to start the JEE server.
  (And Cactus is really just another JUnit runner, you just uses a
  different JUnit TestSuite class, but I am not sure if even that is
  required)
  
  
  Cheers
  Lucas

On 12/22/2010 10:34 AM, Thomas Sundberg wrote:

  
  On Wed, Dec 22, 2010 at 09:35, Lucas
Persson lucas.pers...@oracle.com
wrote:

   Interesting
  
  But why do you not use the Cactus maven plugin? With
  cactus you can execute the tests in the server.
  




Lucas


I am not using cactus for a number of reasons



* I hadn't heard of Cactus. Browsinghttp://jakarta.apache.org/cactus/
  tells me that it is either a very mature product that doesn't
  need any more development or a dead product. The last message
  on the mailing list was from 10 nov and discussing Tomcat 4...


* I am not interested in running my unit tests inside the
  container, I am interested in testing using well known tools
  like JUnit in the smallest possible context.


* I am interested in deploying the same artifact that I
  might deploy in production and integration test it in a
  running container that is started automatically


* I wanted to show how the Cargo plugin together with the
  failsafe plugin can be used to do this


/Thomas



  


   /Lucas
  

On 12/21/2010 11:23 PM, Thomas Sundberg
  wrote:
  
Hi!

Somebody might have use of a blog post I just posted:
http://thomassundberg.wordpress.com/2010/12/21/automatically-integration-test-an-ejb-with-maven/

/Thomas


  
  

-- 
  
  Lucas Persson | Principal Member of
Technical Staff
Phone: +4684773644 | | | Mobile: +46730946656 
Oracle Communications
Platform
ORACLE Sweden | Folkungagatan 122 | 116 30 Stockholm
  
  Oracle Svenska AB, Kronborgsgrnd
17, S-164 28 KISTA, reg.no.
556254-6746 
   Oracle
is committed to developing practices and products that
help protect the environment 
  

  
  
  
  
  -- 
  Thomas Sundberg
  M. Sc. in Computer Science
  
  Mobile: +46 70 767 33 15
  Blog: http://thomassundberg.wordpress.com/
  Twitter: @thomassundberg
  
  Better software through faster feedback


-- 
  
  Lucas Persson | Principal Member of Technical Staff
Phone: +4684773644 | | | Mobile:
+46730946656

Oracle Communications Platform
ORACLE Sweden | Folkungagatan 122 | 116 30 Stockholm
  
  Oracle Svenska AB, Kronborgsgrnd 17, S-164 28 KISTA,
reg.no. 556254-6746
  
  
  Oracle is committed to developing practices and
products that help protect the environment
  
  

  



Re: m2eclipse plugin builder or launcher

2010-12-21 Thread Lucas Persson
 
  To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
  
  For additional commands, e-mail: users-h...@maven.apache.org
  
  


-- 
  
  Lucas Persson | Principal Member of Technical Staff
Phone: +4684773644 | | | Mobile:
+46730946656

Oracle Communications Platform
ORACLE Sweden | Folkungagatan 122 | 116 30 Stockholm
  
  Oracle Svenska AB, Kronborgsgrnd 17, S-164 28 KISTA,
reg.no. 556254-6746
  
  
  Oracle is committed to developing practices and
products that help protect the environment
  
  

  



maven3: custom repository layout gives NoRepositoryConnectorException

2010-12-20 Thread Lucas Persson


  
  
Hi
  
  I am trying to migrate to maven3. And I have a couple of custom
  repository layouts registered that works all right in maven2.
  But in maven3 I got this exception (when running with mvn -e)
  
  
  Caused by:
  org.sonatype.aether.transfer.NoRepositoryConnectorException: No
  connector available to access repository adminserver-series
  (file:///ade/lupersso_sdp_main/adminserver/dist/oracle.jrf.dms/modules)
  of type fmw using the available factories
  WagonRepositoryConnectorFactory
  at
org.sonatype.aether.impl.internal.DefaultRemoteRepositoryManager.getRepositoryConnector(DefaultRemoteRepositoryManager.java:365)
   at
org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:407)
   at
org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:187)
  
  
  I have added the getId() method that was added in the interface in
  Maven3.
  My repository layout class gets loaded, that I have tested by
  remote debuging maven.
  
  
  I suppose that there is some wirering I have missed.
  
  Thanks
  Lucas
  
  
  
  

-- 
  
  Lucas Persson | Principal Member of Technical Staff
Phone: +4684773644 | | | Mobile:
+46730946656

Oracle Communications Platform
ORACLE Sweden | Folkungagatan 122 | 116 30 Stockholm
  
  Oracle Svenska AB, Kronborgsgrnd 17, S-164 28 KISTA,
reg.no. 556254-6746
  
  
  Oracle is committed to developing practices and
products that help protect the environment
  
  

  



Re: maven3: custom repository layout gives NoRepositoryConnectorException

2010-12-20 Thread Lucas Persson


  
  
ok I have investigated this a bit more
  
  It looks like that the WagonRepositoryConnectorFactory throws
  exception if the repository layout is != "default".
  So I guess that means that if you want your own layout you also
  need to create your own RepositoryConnectorFactory (which most
  likely will be a copy of the WagonRepositoryConnectorFactory)???
  
  Can it really like that?
  
  Cheers
  Lucas
  
  
  
  

On 12/20/2010 04:30 PM, Lucas Persson wrote:

  
  Hi

I am trying to migrate to maven3. And I have a couple of custom
repository layouts registered that works all right in maven2.
But in maven3 I got this exception (when running with mvn -e)


Caused by:
org.sonatype.aether.transfer.NoRepositoryConnectorException: No
connector available to access repository adminserver-series (file:///ade/lupersso_sdp_main/adminserver/dist/oracle.jrf.dms/modules)
of type fmw using the available factories
WagonRepositoryConnectorFactory
at
org.sonatype.aether.impl.internal.DefaultRemoteRepositoryManager.getRepositoryConnector(DefaultRemoteRepositoryManager.java:365)
 at
org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:407)
 at
org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:187)


I have added the getId() method that was added in the interface
in Maven3.
My repository layout class gets loaded, that I have tested by
remote debuging maven.


I suppose that there is some wirering I have missed.

Thanks
Lucas




  
  -- 
    
    Lucas Persson | Principal Member of
  Technical Staff
  Phone: +4684773644
  | | | Mobile: +46730946656 
  Oracle Communications Platform
  ORACLE Sweden | Folkungagatan 122 | 116 30 Stockholm

Oracle Svenska AB, Kronborgsgrnd 17,
  S-164 28 KISTA, reg.no. 556254-6746 

Oracle is committed to developing
  practices and products that help protect the environment


  


-- 
      
  Lucas Persson | Principal Member of Technical Staff
Phone: +4684773644 | | | Mobile:
+46730946656

Oracle Communications Platform
ORACLE Sweden | Folkungagatan 122 | 116 30 Stockholm
  
  Oracle Svenska AB, Kronborgsgrnd 17, S-164 28 KISTA,
reg.no. 556254-6746
  
  
  Oracle is committed to developing practices and
products that help protect the environment
  
  

  



Building eclipse plugins with maven, where can I find the eclipse jars?

2005-09-20 Thread Lucas Persson
Hi,

I want to build my eclipse plugins with maven (maven1)

Where can I find the eclipse jars to compile against?
Or has everybody put them in an internal repository?

I also got the maven-eclise-plugin-plugin but is it 
so that I have to maintain two lists of dependent jars;
one in project.xml and one in plugin.xml?
Or is that some trick which can generate one of these lists?

Many thanks!
/Lucas

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



Newbe: how to use multiproject to checkout?

2005-08-15 Thread Lucas Persson
Hi

I guess this must have been asked before but I do not find any answer
for this.

How can I checkout all my projects which are pointed out in a
multiproject?

I have a kind of master project and a couple of subprojects but
in a flat structure to suit eclipse:

+ multiproject
+ sub1project
+ sub2project

The multiproject has its properties like this:
maven.multiproject.basedir=${basedir}/..
maven.multiproject.includes=\
sub1project/project.xml,\
sub2project/project.xml

It is the same directory structure in CVS.

What I want to do is the following:
1) checkout multiproject from CVS
2) call a maven goal on the multiproject which will checkout 
   all subprojects.

Thanks!
Lucas


Lucas Persson 
Lead Designer
Hotsip AB   Tel:   +46 8 454 05 49
Barnhusgatan 16 Mobil: +46 730 94 66 56
SE-111 23 Stockholm Fax:   +46 8 454 05 30
Email: lucas.persson__a_hotsip.com
SIP:   lucas.persson___a__hotsip.com


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