Re: There are no tests to run

2014-08-28 Thread tertelos
Have you find the solution ?



--
View this message in context: 
http://maven.40175.n5.nabble.com/There-are-no-tests-to-run-tp106353p5803201.html
Sent from the Maven - Users mailing list archive at Nabble.com.

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



Re: No test to run, No code to compile

2014-08-28 Thread Adrien Rivard
Hi,

I'm not really sure what are you expecting, but I will suppose you want to
run some junit tests.

Most probably those tests are not in the right directory and or have not
the good filename pattern (mostly should end with Test) or does not
contains tests methods (@Test annotations).

If that does'nt resolve your problem, please provide more information on
what results you expect, your pom, your project structure etc...


On Wed, Aug 27, 2014 at 10:11 AM, tertelos  wrote:

> I have been struggling with this for days and i really want to move on can
> somebody please help me, i am getting the following console output:
>
> T E S T S
>
> Results :
>
> Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
>
> [INFO]
> [INFO] --- maven-easyb-plugin:1.4:test (default) @ gameoflife ---
> [INFO] C:\Program Files
> (x86)\Jenkins\jobs\gameoflife-default\workspace\src\test\stories does not
> exists. Skipping easyb testing
> [INFO]
> [INFO] --- maven-surefire-plugin:2.10:test (integration-tests) @ gameoflife
> ---
> [INFO] No tests to run.
> [INFO] Surefire report directory: C:\Program Files
> (x86)\Jenkins\jobs\gameoflife-default\workspace\target\surefire-reports
>
> T E S T S
>
> Results :
>
> Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
>
> [INFO]
> [INFO] --- jacoco-maven-plugin:0.6.3.201306030806:report (jacoco-site) @
> gameoflife ---
> [INFO] Skipping JaCoCo for project with packaging type 'pom'
> [INFO]
> [INFO] --- maven-install-plugin:2.4:install (default-install) @ gameoflife
> ---
> [INFO] Installing C:\Program Files
> (x86)\Jenkins\jobs\gameoflife-default\workspace\pom.xml to
>
> C:\Windows\system32\config\systemprofile.m2\repository\com\wakaleo\gameoflife\gameoflife\1.0-SNAPSHOT\gameoflife-1.0-SNAPSHOT.pom
> [INFO]
>
> [INFO]
> 
> [INFO] Building gameoflife-build 1.0-SNAPSHOT
> [INFO]
> 
> [INFO]
> [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ gameoflife-build
> ---
> [INFO] Deleting C:\Program Files
> (x86)\Jenkins\jobs\gameoflife-default\workspace\gameoflife-build\target
> [INFO]
> [INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-versions) @
> gameoflife-build ---
> [INFO]
> [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @
> gameoflife-build ---
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] Copying 2 resources
> [INFO]
> [INFO] --- jacoco-maven-plugin:0.6.3.201306030806:prepare-agent
> (jacoco-initialize) @ gameoflife-build ---
> [INFO] argLine set to
>
> "-javaagent:C:\Windows\system32\config\systemprofile.m2\repository\org\jacoco\org.jacoco.agent\0.6.3.201306030806\org.jacoco.agent-0.6.3.201306030806-runtime.jar=destfile=C:\Program
> Files
>
> (x86)\Jenkins\jobs\gameoflife-default\workspace\gameoflife-build\target\jacoco.exec"
> [INFO]
> [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @
> gameoflife-build ---
> [INFO] No sources to compile
> [INFO]
> [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources)
> @ gameoflife-build ---
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] skip non existing resourceDirectory C:\Program Files
>
> (x86)\Jenkins\jobs\gameoflife-default\workspace\gameoflife-build\src\test\resources
> [INFO]
> [INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @
> gameoflife-build ---
> [INFO] No sources to compile
> [INFO]
> [INFO] --- maven-surefire-plugin:2.10:test (default-test) @
> gameoflife-build
> ---
> [INFO] Tests are skipped.
> [INFO]
> [INFO] --- maven-surefire-plugin:2.10:test (unit-tests) @ gameoflife-build
> ---
> [INFO] No tests to run.
> [INFO] Surefire report directory: C:\Program Files
>
> (x86)\Jenkins\jobs\gameoflife-default\workspace\gameoflife-build\target\surefire-reports
>
>
>
> --
> View this message in context:
> http://maven.40175.n5.nabble.com/No-test-to-run-No-code-to-compile-tp5803100.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
>
>


-- 
Adrien Rivard


Providing settings to Aether from global and user file

2014-08-28 Thread WonderCsabo
In Robolectric, we use maven-ant-tasks to resolve some dependencines.
Unfortunetaly this brings a huge number of transitive depedencies which is
not convenient for Robolectric users. We think about  switching
   to Aether. There
is a  thread

  
about how to provide settings to Aether. My question is: is there a
component we can use to find the settings file locations, so we can feed
them to the SettingsBuilder?





--
View this message in context: 
http://maven.40175.n5.nabble.com/Providing-settings-to-Aether-from-global-and-user-file-tp5803227.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



mvn 3.0.5 timeout during deployment

2014-08-28 Thread Kopf Arzt
Hello,

when I try to "mvn deploy" my project to our company repository, I
frequently get timeouts (see error below).

How can I increase the default timeout for this operation? After Googling a
lot I tried several server configurations in my settings.xml file but with
no success:


  server.company.com.snapshots
  xxx
  xxx
  
60

  
60
60
60
  

  


Thank you in advance for any help! :-)

[ERROR] Failed to execute goal at.company.xyz:xyz-maven-plugin:1.2.14.0:deploy
(default-deploy) on project project_core: Unable to execute mojo: Failed to
deploy artifacts: Could not transfer artifact
at.xyz:project_core:jar:2.0.0.0-20140828.135650-6 from/to server.company.com
(https://server.company.com/artifactory/axon-snap
shot): No response received after 6 -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
goal at.company.xyz:xyz-maven-plugin:1.2.14.0:deploy (default-deploy) on
project project_core: Unable to execute mojo
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.MojoExecutionException: Unable to
execute mojo
at
org.twdata.maven.mojoexecutor.MojoExecutor.executeMojo(MojoExecutor.java:96)
at at.company.xyz.maven.IvyDeployMojo.deploy(IvyDeployMojo.java:113)
at at.company.xyz.maven.IvyDeployMojo.execute(IvyDeployMojo.java:75)
at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
... 19 more
Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to deploy
artifacts: Could not transfer artifact
at.xyz:project_core:jar:2.0.0.0-20140828.135650-6 from/to server.company.com
(https://server.company.com/artifactory/axon-snapshot): No response
received after 6
at
org.apache.maven.plugin.deploy.DeployFileMojo.execute(DeployFileMojo.java:314)
at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
at
org.twdata.maven.mojoexecutor.MojoExecutor.executeMojo(MojoExecutor.java:94)
... 23 more
Caused by: org.apache.maven.artifact.deployer.ArtifactDeploymentException:
Failed to deploy artifacts: Could not transfer artifact
at.xyz:project_core:jar:2.0.0.0-20140828.135650-6 from/to server.company.com
(https://server.company.com/artifactory/axon-snapshot): No response
received after 6
at
org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:141)
at
org.apache.maven.plugin.deploy.AbstractDeployMojo.deploy(AbstractDeployMojo.java:167)
at
org.apache.maven.plugin.deploy.DeployFileMojo.execute(DeployFileMojo.java:310)
... 25 more
Caused by: org.sonatype.aether.deployment.DeploymentException: Failed to
deploy artifacts: Could not transfer artifact
at.xyz:project_core:jar:2.0.0.0-20140828.135650-6 from/to server.company.com
(https://server.company.com/artifactory/axon-snapshot): No response
received after 6
at
org.sonatype.aether.impl.internal.DefaultDeployer.deploy(DefaultDeployer.java:280)
at
org.sonatype.aether.impl.internal.D

Re: Atomic deploy at end to repo manager like Nexus

2014-08-28 Thread Jason van Zyl
If you want to pop into the hangout we can chat about it. I gave Karl a little 
sample. The code that Takari is working on will be open source in about 4 weeks 
but the mechanism we're using is available in the core already. Our solution 
requires a custom server side because we're doing an advanced form of 
continuous delivery. What I gave Karl can easily be extended to work.

On Aug 27, 2014, at 4:49 PM, Dan Tran  wrote:

> Hi Karl,
> 
> My build spans multiple hosts ( with helps from Jenkis), so deployAtEnd is
> not good enough.
> 
> -D
> 
> 
> On Wed, Aug 27, 2014 at 1:39 PM, Karl Heinz Marbaise 
> wrote:
> 
>> Hi Dan,
>> 
>> are you using deployAtEnd / installAtEnd options of maven-install-plugin,
>> maven-deploy-plugin ? or do you have any issues with that ?
>> 
>> 
>> 
>> On 8/27/14 10:36 PM, Dan Tran wrote:
>> 
>>> Hi
>>> 
>>> Per last Maven hangout, Jason and Karl had a discussion and code shared on
>>> topic. unzip [1] nexus plugin was mentioned
>>> 
>>> Can you share this knowledge?
>>> 
>>> For my case, I have a multiple module multiple platform builds
>>> orchestrated
>>> by CI ( jenkins)
>>> 
>>> I like to to delay all the deployments, all the way to the end, zip the
>>> up,
>>> and deploy to nexus which will correctly unpack and merge to one of the
>>> repositories ( ie snapshot or staging )
>>> 
>> 
>> 
>> Kind regards
>> Karl-Heinz Marbaise
>> 
>> 
>> -
>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>> For additional commands, e-mail: users-h...@maven.apache.org
>> 
>> 

Thanks,

Jason

--
Jason van Zyl
Founder,  Apache Maven
http://twitter.com/jvanzyl
http://twitter.com/takari_io
-

Simplex sigillum veri. (Simplicity is the seal of truth.)











Re: how to access properties defined in other module pom in maven multimodule project

2014-08-28 Thread Wayne Fay
> n pom of A.B.C i have defined a property as abc where A B C are modules. Now
> i want to access that property in pom of A.D.F module

What does the parent > child > grandchild relationship look like
between these various modules? What you want may not be possible.

Wayne

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



Re: Atomic deploy at end to repo manager like Nexus

2014-08-28 Thread Dan Tran
Thanks Jason,

 looking forward to the CD feature open source in a few week. I will try to
join the maven hangout, unfortunately my comp is currently blocking google
hangout

-Dan


On Thu, Aug 28, 2014 at 7:57 AM, Jason van Zyl  wrote:

> If you want to pop into the hangout we can chat about it. I gave Karl a
> little sample. The code that Takari is working on will be open source in
> about 4 weeks but the mechanism we're using is available in the core
> already. Our solution requires a custom server side because we're doing an
> advanced form of continuous delivery. What I gave Karl can easily be
> extended to work.
>
> On Aug 27, 2014, at 4:49 PM, Dan Tran  wrote:
>
> > Hi Karl,
> >
> > My build spans multiple hosts ( with helps from Jenkis), so deployAtEnd
> is
> > not good enough.
> >
> > -D
> >
> >
> > On Wed, Aug 27, 2014 at 1:39 PM, Karl Heinz Marbaise 
> > wrote:
> >
> >> Hi Dan,
> >>
> >> are you using deployAtEnd / installAtEnd options of
> maven-install-plugin,
> >> maven-deploy-plugin ? or do you have any issues with that ?
> >>
> >>
> >>
> >> On 8/27/14 10:36 PM, Dan Tran wrote:
> >>
> >>> Hi
> >>>
> >>> Per last Maven hangout, Jason and Karl had a discussion and code
> shared on
> >>> topic. unzip [1] nexus plugin was mentioned
> >>>
> >>> Can you share this knowledge?
> >>>
> >>> For my case, I have a multiple module multiple platform builds
> >>> orchestrated
> >>> by CI ( jenkins)
> >>>
> >>> I like to to delay all the deployments, all the way to the end, zip the
> >>> up,
> >>> and deploy to nexus which will correctly unpack and merge to one of the
> >>> repositories ( ie snapshot or staging )
> >>>
> >>
> >>
> >> Kind regards
> >> Karl-Heinz Marbaise
> >>
> >>
> >> -
> >> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> >> For additional commands, e-mail: users-h...@maven.apache.org
> >>
> >>
>
> Thanks,
>
> Jason
>
> --
> Jason van Zyl
> Founder,  Apache Maven
> http://twitter.com/jvanzyl
> http://twitter.com/takari_io
> -
>
> Simplex sigillum veri. (Simplicity is the seal of truth.)
>
>
>
>
>
>
>
>
>
>


Re: No test to run, No code to compile

2014-08-28 Thread tertelos
I expect some unit tests to run, here is the pom file, the latest console
output and the github project: 

GitHub project:

https://github.com/karkalos/game-of-life



POM file:

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";>
4.0.0
com.wakaleo.gameoflife
gameoflife
1.0-SNAPSHOT
pom
gameoflife
https://github.com/wakaleo/game-of-life

SNAPSHOT
UTF-8
1.4
2.6

1.7
wakaleo
0.9.222
gameoflife
wakaleo



   
scm:git:g...@github.com:${github.account}/game-of-life.git
   
scm:git:g...@github.com:${github.account}/game-of-life.git
scm:git:g...@github.com:${github.account}/game-of-life.git




maven-compiler-plugin
2.3.2

1.6
1.6



maven-surefire-plugin
2.10

true



unit-tests
test

test


false

**/When*.java
**/*Test.java

**/Test*.java

**/*TestCase.java


%regex[.*integration.*]




integration-tests
integration-test

test


false

%regex[.*integration.*]







org.jacoco
jacoco-maven-plugin
0.6.3.201306030806


jacoco-initialize
process-resources

prepare-agent



jacoco-site
post-integration-test

report






maven-release-plugin
2.2

clean install




maven-deploy-plugin
2.7



org.easyb
maven-easyb-plugin
1.4



test




html
target/easyb/easyb.html
   
src/test/stories
-Xmx512m
-Dwebdriver.driver=${webdriver.driver}




com.jelastic
jelastic-maven-plugin
1.6

${jelastic.username}
${jelastic.password}
${jelastic.context}
${jelastic.environment}
app.jelastic.servint.net








org.easyb
maven-easyb-plugin
${easyb.version}



test




html
l
   
${basedir}/target/easyb/easyb-report.html








org.apache.maven.wagon
wagon-webdav-jackrabbit
2.2






org.easyb
easyb-core
${easyb.version}
test





junit
junit-dep
4.10
test

Re: mvn 3.0.5 timeout during deployment

2014-08-28 Thread Karl Heinz Marbaise

Hi,
>

How can I increase the default timeout for this operation? After Googling a
lot I tried several server configurations in my settings.xml file but with
no success:

 
   server.company.com.snapshots
   xxx
   xxx
   
 60
 
   
 60
 60
 60
   
 
   
 

Thank you in advance for any help! :-)

[ERROR] Failed to execute goal at.company.xyz:xyz-maven-plugin:1.2.14.0:deploy
(default-deploy) on project project_core: Unable to execute mojo: Failed to
deploy artifacts: Could not transfer artifact
at.xyz:project_core:jar:2.0.0.0-20140828.135650-6 from/to server.company.com
(https://server.company.com/artifactory/axon-snap
shot): No response received after 6 -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
goal at.company.xyz:xyz-maven-plugin:1.2.14.0:deploy (default-deploy) on
project project_core: Unable to execute mojo



can you explain what kind of plugin this is:

goal at.company.xyz:xyz-maven-plugin:1.2.14.0:deploy (default-deploy) on

?


Kind regards
Karl-Heinz Marbaise

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



Re: maven 3.1.1 crashes on GC overhead limit exceeded with millions of org.eclipse.aether.graph.DefaultDependencyNode

2014-08-28 Thread Juven Xu
The background is, i’m helping migrating a huge project from maven2 to maven3, 
and I noticed this project is using dozens of SNAPSHOT dependencies, and more 
than hundred  transitive SNAPSHOT dependencies, after updating most of the 
SNAPSHOT direct dependencies to RELEASE dependencies, the crash issue is 
mitigated a lot, but build is still slow, but at least it can pass.

Thanks,
Juven


On Wednesday, August 27, 2014 at 7:18 PM, Stuart McCulloch wrote:

> I wonder if this might be related to 
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=418250 ?
>  
> On 27 Aug 2014, at 04:35, Juven Xu  (mailto:juvens...@gmail.com)> wrote:
>  
> > maven: 3.1.1  
> > jdk: 1.7.0_25 Java HotSpot(TM) Server VM (build 23.25-b01, mixed mode)
> >  
> > the error message is:
> >  
> > [INFO] Building buy-client 1.1.8-o2o630-SNAPSHOT
> > [INFO] 
> >   
> > [WARNING] The POM for com.taobao.logistics:logistics-common:jar:2.4.5 is 
> > invalid, transitive dependencies (if any) will not be available, enable 
> > debug logging for more details  
> > [WARNING] The POM for 
> > com.taobao.thboss:thboss-common:jar:1.0.2-20131230.121421-32 is invalid, 
> > transitive dependencies (if any) will not be available, enable debug 
> > logging for more details  
> > [WARNING] The POM for 
> > com.taobao.hbaseextend:hbase-client:jar:1.0.1-20121211.063750-2 is invalid, 
> > transitive dependencies (if any) will not be available, enable debug 
> > logging for more details  
> > [WARNING] The POM for 
> > com.taobao.hbaseextend:hbasetransit-client:jar:1.0.1-20121211.064048-1 is 
> > invalid, transitive dependencies (if any) will not be available, enable 
> > debug logging for more details  
> > [WARNING] The POM for 
> > com.taobao.sharereport:share-report-common:jar:1.5.1-20121030.080558-17 is 
> > invalid, transitive dependencies (if any) will not be available, enable 
> > debug logging for more details  
> > [WARNING] The POM for 
> > com.taobao.trade:tradeback-client:jar:1.0.0-20131118.063752-35 is invalid, 
> > transitive dependencies (if any) will not be available, enable debug 
> > logging for more details  
> > [ERROR] GC overhead limit exceeded -> [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/OutOfMemoryError
> >  
> >  
> > the jvm is full and a log of full gc happening, gc stat:
> >  
> > S0 S1 E O P YGC YGCT FGC FGCT GCT
> > 0.00 0.00 100.00 100.00 67.33 50 5.925 39 101.650 107.575
> > 0.00 0.00 100.00 100.00 67.33 50 5.925 39 101.650 107.575
> > 0.00 0.00 100.00 100.00 67.33 50 5.925 39 101.650 107.575
> > 0.00 0.00 100.00 100.00 67.33 50 5.925 40 104.805 110.730
> > 0.00 0.00 100.00 100.00 67.33 50 5.925 40 104.805 110.730
> > 0.00 0.00 100.00 100.00 67.33 50 5.925 40 104.805 110.730
> > 0.00 0.00 100.00 100.00 67.33 50 5.925 41 107.840 113.765
> > 0.00 0.00 100.00 100.00 67.33 50 5.925 41 107.840 113.765
> > 0.00 0.00 100.00 100.00 67.33 50 5.925 41 107.840 113.765
> > 0.00 0.00 100.00 100.00 67.33 50 5.925 42 110.864 116.788
> > 0.00 0.00 100.00 100.00 67.33 50 5.925 42 110.864 116.788
> > 0.00 0.00 100.00 100.00 67.33 50 5.925 42 110.864 116.788
> > 0.00 0.00 95.86 100.00 67.33 50 5.925 42 114.029 119.954
> > 0.00 0.00 100.00 100.00 67.33 50 5.925 43 114.029 119.954
> > 0.00 0.00 100.00 100.00 67.33 50 5.925 43 114.029 119.954
> > 0.00 0.00 100.00 100.00 67.33 50 5.925 43 114.029 119.954
> > 0.00 0.00 100.00 100.00 67.33 50 5.925 44 117.087 123.011
> >  
> > and the vm is full of org.eclipse.aether.graph.DefaultDependencyNode
> >  
> > $ jmap -histo 4072 | head -30
> >  
> > num #instances #bytes class name
> > --
> > 1: 5019593 281097208 org.eclipse.aether.graph.DefaultDependencyNode
> > 2: 6075641 145815384 java.util.ArrayList
> > 3: 6076588 116705216 [Ljava.lang.Object;
> > 4: 2375373 76011936 org.eclipse.aether.internal.impl.DataPool$GraphKey
> > 5: 2439860 58556640 java.util.HashMap$Entry
> > 6: 231529 34940048 [Ljava.util.HashMap$Entry;
> > 7: 231420 34810936 [Lorg.eclipse.aether.graph.Exclusion;
> > 8: 598180 28712640 org.eclipse.aether.repository.RemoteRepository
> > 9: 839969 26879008 java.util.LinkedHashMap$Entry
> > 10: 597260 15767704 [Lorg.eclipse.aether.repository.RemoteRepository;
> > 11: 208071 11651976 java.util.LinkedHashMap
> > 12: 597288 9556608 java.util.Arrays$ArrayList
> > 13: 597269 9556304 java.util.Collections$UnmodifiableRandomAccessList
> > 14: 125479 7259280 [C
> > 15: 29099 3530504 
> > 16: 197851 3165616 java.util.Collections$SingletonList
> > 17: 197706 3163296 java.util.HashMap$KeySet
> > 18: 197476 3159616 java.util.LinkedHashSet
>

Re: hi, I just want to get help about maven archetype,please help me

2014-08-28 Thread TOM
yes,i think it's better to maintain the archetype project after i tried 
it . And it's convenient too. i think this is enough.

thanks again for your help

在 2014-08-21 6:16, Hervé BOUTEMY 写道:

Le mercredi 20 août 2014 10:57:48 TOM a écrit :

yeah, it works! __artifactId__ and __rootArtifactId__ all works well
but this way bring a new little problem: my archetype is come from a
demo project using archetype:create-from-project,now i get a archetype
and change some directory's name to __artifactId__,later i want to make
some tuning on the demo project and call mvn
archetype:create-from-project again, then i have to rename those
directory's name again.
do you have any suggestions ? why not the archetype plugin put the java
sources into right path directly?

one generated with create-from-project, the result is supposed to be
maintained as primary source: that's the actual idea behind archetype

so there is no such magic mecanism to detect some parts that could be
generated in a more appropriate fashion

perhaps such a feature, to detect a directory corresponding to artifactId,
could be added: don't hesitate to open a Jira issue and work on a patch

Regards,

Hervé


在 2014-08-18 19:25, Hervé BOUTEMY 写道:

ah ok
so you don't need a custom plugin to add artifactId: just put content in a
directory named __artifactId__

see
http://stackoverflow.com/questions/6378589/how-to-rename-a-directory-with
-the-artifactid-when-using-a-maven-archetype

Regards,

Hervé

Le lundi 18 août 2014 17:00:36 TOM a écrit :

i think i got it,i debuged archetype:generate and found code like this

DefaultFilesetArchetypeGenerator.java
private File getOutputFile( String template, String directory, File
outputDirectoryFile, boolean packaged,

   String packageName, String

moduleOffset, Context context )

   {
   
   String templateName = StringUtils.replaceOnce( template,


directory, "" );

   String outputFileName =
   
   directory + "/" + ( packaged ? getPackageAsDirectory(


packageName ) : "" ) + "/" + templateName.substring(

   moduleOffset.length() );
   
   if ( TOKEN_PATTERN.matcher( outputFileName ).matches() )

   {
   
   outputFileName = replaceFilenameTokens( outputFileName,


context );

   }
   
   return new File( outputDirectoryFile, outputFileName );
   
   }


so maybe archetype plugin doesn't intend deal with the artifactId in the
path,am i right?
i wrote a plugin to adjust file path myself

在 2014-08-18 15:54, Hervé BOUTEMY 写道:

ok, need to investigate
can you create a Jira issue and attach an example project?

Regards,

Hervé

Le lundi 18 août 2014 10:01:16 TOM a écrit :

thank you ,but my descriptor already is packaged= true


  src/main/java
  
  
**/*.java
  
  




在 2014-08-18 0:10, Hervé BOUTEMY 写道:

use packaged="true" [1]

Regards,

Hervé

[1]
http://maven.apache.org/archetype/archetype-models/archetype-descripto
r/
a
rchetype-descriptor.html>

Le mardi 12 août 2014 16:58:53 TOM a écrit :

I use mvn archetype:create-from-project to generate a archetype
project.
and use it to generate a project

the content of archetype file UserDTO(generaged by
archetype:create-from-project)
package ${package}.${artifactId}.dto;

then i mvn archetype:generate -DarchetypeArtifactId=myapp
-DgroupId=test
-DartifactId=good

then the generated UserDTO with correct package(package
test.good.dto),
but it is in src/main/java/test/dto , not expected
src/main/java/test/good/dto

please help me and thank a lot



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

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

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

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

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

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

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

Re: hi, I just want to get help about maven archetype,please help me

2014-08-28 Thread TOM
i can't, i think this parameter is used for generated whole archetype 
project but this is not i need.



在 2014-08-21 1:51, Martin Gainty 写道:



Date: Wed, 20 Aug 2014 10:57:48 +0800
From: tom.w...@embracesource.com
To: users@maven.apache.org
Subject: Re: hi, I just want to get help about maven archetype,please help me

yeah, it works! __artifactId__ and __rootArtifactId__ all works well
but this way bring a new little problem: my archetype is come from a
demo project using archetype:create-from-project,now i get a archetype
and change some directory's name to __artifactId__,later i want to make
some tuning on the demo project and call mvn
archetype:create-from-project again, then i have to rename those
directory's name again.

MG>can you not specify outputDirectory from archetype:create-project for your 
new outputDirectory?
MG>http://maven.apache.org/archetype/maven-archetype-plugin/create-from-project-mojo.html


do you have any suggestions ? why not the archetype plugin put the java
sources into right path directly?


在 2014-08-18 19:25, Hervé BOUTEMY 写道:

ah ok
so you don't need a custom plugin to add artifactId: just put content in a
directory named __artifactId__

see 
http://stackoverflow.com/questions/6378589/how-to-rename-a-directory-with-the-artifactid-when-using-a-maven-archetype

Regards,

Hervé

Le lundi 18 août 2014 17:00:36 TOM a écrit :

i think i got it,i debuged archetype:generate and found code like this

DefaultFilesetArchetypeGenerator.java
private File getOutputFile( String template, String directory, File
outputDirectoryFile, boolean packaged,
   String packageName, String
moduleOffset, Context context )
   {
   String templateName = StringUtils.replaceOnce( template,
directory, "" );

   String outputFileName =
   directory + "/" + ( packaged ? getPackageAsDirectory(
packageName ) : "" ) + "/" + templateName.substring(
   moduleOffset.length() );

   if ( TOKEN_PATTERN.matcher( outputFileName ).matches() )
   {
   outputFileName = replaceFilenameTokens( outputFileName,
context );
   }

   return new File( outputDirectoryFile, outputFileName );
   }

so maybe archetype plugin doesn't intend deal with the artifactId in the
path,am i right?
i wrote a plugin to adjust file path myself

在 2014-08-18 15:54, Hervé BOUTEMY 写道:

ok, need to investigate
can you create a Jira issue and attach an example project?

Regards,

Hervé

Le lundi 18 août 2014 10:01:16 TOM a écrit :

thank you ,but my descriptor already is packaged= true


  src/main/java
  
  
**/*.java
  
  




在 2014-08-18 0:10, Hervé BOUTEMY 写道:

use packaged="true" [1]

Regards,

Hervé

[1]
http://maven.apache.org/archetype/archetype-models/archetype-descriptor/
a
rchetype-descriptor.html>

Le mardi 12 août 2014 16:58:53 TOM a écrit :

I use mvn archetype:create-from-project to generate a archetype
project.
and use it to generate a project

the content of archetype file UserDTO(generaged by
archetype:create-from-project)
package ${package}.${artifactId}.dto;

then i mvn archetype:generate -DarchetypeArtifactId=myapp
-DgroupId=test
-DartifactId=good

then the generated UserDTO with correct package(package test.good.dto),
but it is in src/main/java/test/dto , not expected
src/main/java/test/good/dto

please help me and thank a lot



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

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

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

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

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

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




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








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

[Surefire] Run executions in parallel

2014-08-28 Thread Fedorov, Leo
Hi,

Is there a way to make maven trigger different executions for surefire plugin 
at the same time?
Or if not is there any other way to execute test goal with different parameters 
concurrently?

Thank you,
Leo Fedorov



Re: maven 3.1.1 crashes on GC overhead limit exceeded with millions of org.eclipse.aether.graph.DefaultDependencyNode

2014-08-28 Thread Mark Derricutt
Sounds exactly like the problem I've been having locally on our 
integration tests, only in that instance its lots of version ranges ( 
using SNAPSHOTs ) that have transitive ranges (also using SNAPSHOTs ).


Maven would just "lock up", altho it's really just taking a LNG 
time walking the combinatorial explosion of dependencies. We didn't get 
your ultimate result tho.


Here's hoping that new aether update works like a charm.

On 29 Aug 2014, at 14:29, Juven Xu wrote:

The background is, i’m helping migrating a huge project from maven2 
to maven3, and I noticed this project is using dozens of SNAPSHOT 
dependencies, and more than hundred  transitive SNAPSHOT dependencies, 
after updating most of the SNAPSHOT direct dependencies to RELEASE 
dependencies, the crash issue is mitigated a lot, but build is still 
slow, but at least it can pass.


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



Re: mvn 3.0.5 timeout during deployment

2014-08-28 Thread Kopf Arzt
Am 28.08.2014 22:45 schrieb "Karl Heinz Marbaise" :
>> How can I increase the default timeout for this operation? After
Googling a
>> lot I tried several server configurations in my settings.xml file but
with
>> no success:
>>
>>  
>>server.company.com.snapshots
>>xxx
>>xxx
>>
>>  60
>>  
>>
>>  60
>>  60
>>  60
>>
>>  
>>
>>  
>>
>> Thank you in advance for any help! :-)
>>
>> [ERROR] Failed to execute goal at.company.xyz:xyz-maven-plugin:1.2.14.0:
deploy
>> (default-deploy) on project project_core: Unable to execute mojo: Failed
to
>> deploy artifacts: Could not transfer artifact
>> at.xyz:project_core:jar:2.0.0.0-20140828.135650-6 from/to
server.company.com
>> (https://server.company.com/artifactory/axon-snap
>> shot): No response received after 6 -> [Help 1]
>> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
>> goal at.company.xyz:xyz-maven-plugin:1.2.14.0:deploy (default-deploy) on
>> project project_core: Unable to execute mojo
>
> can you explain what kind of plugin this is:
>
> goal at.company.xyz:xyz-maven-plugin:1.2.14.0:deploy (default-deploy) on
>
> ?

This plugin integrates Maven with our development environment (generates
sources, builds packages, I don't know all the details).

Do you think this plugin is the problem? To me it seemed that the actual
deployment is done by standard Maven modules, so the settings should
apply(?).