[jira] Created: (MECLIPSE-308) Change the method of verifying whether JRE is included in "classpathContainers"

2007-07-18 Thread BABA,Yasuyuki (JIRA)
Change the method of verifying whether JRE is included in "classpathContainers"
---

 Key: MECLIPSE-308
 URL: http://jira.codehaus.org/browse/MECLIPSE-308
 Project: Maven 2.x Eclipse Plugin
  Issue Type: Wish
  Components: dependency resolution
Affects Versions: 2.4
Reporter: BABA,Yasuyuki
 Attachments: classpathcontainers.patch

I want to use specified JRE container in ".classpath" like this.
{noformat}

{noformat}
And added to pom.xml
{noformat}

  
org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5

{noformat}

But JRE_CONTAINER node is duplicate in the ".classpath" written by "mvn 
eclipse:eclipse", like this...
{noformat}


{noformat}

I want you to change the method of verifying whether JRE is included in 
"classpathContainers".
See the patche please.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Created: (ARCHETYPE-144) Fails "archetype:create" when specify archetypeVersion

2008-03-03 Thread BABA,Yasuyuki (JIRA)
Fails "archetype:create" when specify archetypeVersion
--

 Key: ARCHETYPE-144
 URL: http://jira.codehaus.org/browse/ARCHETYPE-144
 Project: Maven Archetype
  Issue Type: Bug
Affects Versions: 2.0-alpha-2
Reporter: BABA,Yasuyuki


We uses custom archetype and remote repository.
http://maven.seasar.org/maven2/org/seasar/cubby/cubby-archetype/1.0.0/cubby-archetype-1.0.0.jar

no specify "archetypeVersion" -> build successful
{code}
mvn archetype:create -DremoteRepositories=http://maven.seasar.org/maven2/ \
-DgroupId=com.example.foo -DartifactId=barapp 
-DarchetypeGroupId=org.seasar.cubby \
-DarchetypeArtifactId=cubby-archetype
{code}

specify "archetypeVersion" -> build error
{code}
mvn archetype:create -DremoteRepositories=http://maven.seasar.org/maven2/ \
-DgroupId=com.example.foo -DartifactId=barapp 
-DarchetypeGroupId=org.seasar.cubby \
-DarchetypeArtifactId=cubby-archetype -DarchetypeVersion=1.0.0
{code}
and part of log
{code}
[INFO] [archetype:create]
[INFO] Defaulting package to group ID: com.example.foo
[INFO] We are using command line specified remote repositories: 
http://maven.seasar.org/maven2/
[INFO] 
[ERROR] BUILD ERROR
[INFO] 
[INFO] Error creating from archetype

Embedded error: OldArchetype does not exist.
http://repo1.maven.org/maven2/org/seasar/cubby/cubby-archetype/1.0.0/cubby-archetype-1.0.0.jar
~~ expects "http://maven.seasar.org/maven2/"; !
[INFO] 
[INFO] For more information, run Maven with the -e switch
[INFO] 
[INFO] Total time: 2 seconds
[INFO] Finished at: Mon Mar 03 21:16:46 JST 2008
[INFO] Final Memory: 8M/79M
[INFO] 
{code}

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Commented: (ARCHETYPE-144) Fails "archetype:create" when specify archetypeVersion

2008-03-03 Thread BABA,Yasuyuki (JIRA)

[ 
http://jira.codehaus.org/browse/ARCHETYPE-144?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_125993
 ] 

BABA,Yasuyuki commented on ARCHETYPE-144:
-

Thanks Raphael.
But, this case is the old "archetype:create".
Not "archetype:generate".


> Fails "archetype:create" when specify archetypeVersion
> --
>
> Key: ARCHETYPE-144
> URL: http://jira.codehaus.org/browse/ARCHETYPE-144
> Project: Maven Archetype
>  Issue Type: Bug
>Affects Versions: 2.0-alpha-2
>Reporter: BABA,Yasuyuki
>
> We uses custom archetype and remote repository.
> http://maven.seasar.org/maven2/org/seasar/cubby/cubby-archetype/1.0.0/cubby-archetype-1.0.0.jar
> no specify "archetypeVersion" -> build successful
> {code}
> mvn archetype:create -DremoteRepositories=http://maven.seasar.org/maven2/ \
> -DgroupId=com.example.foo -DartifactId=barapp 
> -DarchetypeGroupId=org.seasar.cubby \
> -DarchetypeArtifactId=cubby-archetype
> {code}
> specify "archetypeVersion" -> build error
> {code}
> mvn archetype:create -DremoteRepositories=http://maven.seasar.org/maven2/ \
> -DgroupId=com.example.foo -DartifactId=barapp 
> -DarchetypeGroupId=org.seasar.cubby \
> -DarchetypeArtifactId=cubby-archetype -DarchetypeVersion=1.0.0
> {code}
> and part of log
> {code}
> [INFO] [archetype:create]
> [INFO] Defaulting package to group ID: com.example.foo
> [INFO] We are using command line specified remote repositories: 
> http://maven.seasar.org/maven2/
> [INFO] 
> 
> [ERROR] BUILD ERROR
> [INFO] 
> 
> [INFO] Error creating from archetype
> Embedded error: OldArchetype does not exist.
> http://repo1.maven.org/maven2/org/seasar/cubby/cubby-archetype/1.0.0/cubby-archetype-1.0.0.jar
> ~~ expects "http://maven.seasar.org/maven2/"; !
> [INFO] 
> 
> [INFO] For more information, run Maven with the -e switch
> [INFO] 
> 
> [INFO] Total time: 2 seconds
> [INFO] Finished at: Mon Mar 03 21:16:46 JST 2008
> [INFO] Final Memory: 8M/79M
> [INFO] 
> 
> {code}

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Commented: (ARCHETYPE-144) Fails "archetype:create" when specify archetypeVersion

2008-03-13 Thread BABA,Yasuyuki (JIRA)

[ 
http://jira.codehaus.org/browse/ARCHETYPE-144?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_127163
 ] 

BABA,Yasuyuki commented on ARCHETYPE-144:
-

Thank you.
Archetype generation succeed when I had the archetype artifact on my local 
repository.
But, has no archetype artifact on my local repo, unable to download archetype 
artifact and fails generation.

[EMAIL PROTECTED] ~]$ mvn archetype:generate 
-DarchetypeRepository=http://maven.seasar.org/maven2/ -DgroupId=com.example.foo 
-DartifactId=barapp -DarchetypeGroupId=org.seasar.cubby 
-DarchetypeArtifactId=cubby-archetype -DarchetypeVersion=1.0.1 -B
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO] 
[INFO] Building Maven Default Project
[INFO]task-segment: [archetype:generate] (aggregator-style)
[INFO] 
[INFO] Preparing archetype:generate
[INFO] No goals needed for project - skipping
Downloading: 
http://repo1.maven.org/maven2/com/example/foo/wagon-http-shared/1.0-beta-2/wagon-http-shared-1.0-beta-2.pom
Downloading: 
http://repo1.maven.org/maven2/com/example/foo/wagon-http-shared/1.0-beta-2/wagon-http-shared-1.0-beta-2.pom
[INFO] Setting property: classpath.resource.loader.class => 
'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on => 'false'.
[INFO] Setting property: resource.loader => 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound => 'false'.
[INFO] [archetype:generate]
[INFO] Archetype defined by properties
org.apache.maven.archetype.downloader.DownloadNotFoundException: Requested 
download does not exist.
at 
org.apache.maven.archetype.downloader.DefaultDownloader.download(DefaultDownloader.java:62)
at 
org.apache.maven.archetype.common.DefaultArchetypeArtifactManager.exists(DefaultArchetypeArtifactManager.java:310)
at 
org.apache.maven.archetype.ui.DefaultArchetypeGenerationConfigurator.configureArchetype(DefaultArchetypeGenerationConfigurator.java:103)
at 
org.apache.maven.archetype.mojos.CreateProjectFromArchetypeMojo.execute(CreateProjectFromArchetypeMojo.java:168)
at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:447)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:493)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:463)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:224)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:282)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException: Unable 
to download the artifact from any repository

Try downloading the file manually from the project website.

Then, install it using the command: 
mvn install:install-file -DgroupId=org.seasar.cubby 
-DartifactId=cubby-archetype -Dversion=1.0.1 -Dpackaging=jar 
-Dfile=/path/to/file

Alternatively, if you host your own repository you can deploy the file there: 
mvn deploy:deploy-file -DgroupId=org.seasar.cubby 
-DartifactId=cubby-archetype -Dversion=1.0.1 -Dpackaging=jar 
-Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]


  org.seasar.cubby:cubby-archetype:jar:1.0.1


at 
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:206)
at 
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveAlways(DefaultArtifactResolver.java:79)
at 
org.apache.maven.archetype.downloader.DefaultDownloader.download(DefaultDownloader.java:54)
... 21