You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@continuum.apache.org by "Brett Porter (JIRA)" <ji...@codehaus.org> on 2005/10/07 05:04:11 UTC

[jira] Created: (CONTINUUM-334) can't add a pom from the repository

can't add a pom from the repository
-----------------------------------

         Key: CONTINUUM-334
         URL: http://jira.codehaus.org/browse/CONTINUUM-334
     Project: Continuum
        Type: Bug
  Components: continuum-core  
 Reporter: Brett Porter
    Priority: Minor
     Fix For: 1.0-beta-2


because it tries to build it like a source file, it fails because of the status in distribution management when adding a pom directly from the repository.

-- 
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: (CONTINUUM-334) can't add a pom from the repository

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/CONTINUUM-334?page=comments#action_48217 ] 

Brett Porter commented on CONTINUUM-334:
----------------------------------------

plexus-utils 1.0.3 from repo1.maven.org

> can't add a pom from the repository
> -----------------------------------
>
>          Key: CONTINUUM-334
>          URL: http://jira.codehaus.org/browse/CONTINUUM-334
>      Project: Continuum
>         Type: Bug
>   Components: continuum-core
>     Reporter: Brett Porter
>     Priority: Minor
>      Fix For: 1.0-beta-2

>
>
> because it tries to build it like a source file, it fails because of the status in distribution management when adding a pom directly from the repository.

-- 
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] Closed: (CONTINUUM-334) can't add a pom from the repository

Posted by "Emmanuel Venisse (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/CONTINUUM-334?page=all ]
     
Emmanuel Venisse closed CONTINUUM-334:
--------------------------------------

     Assign To: Emmanuel Venisse
    Resolution: Fixed

Done.

> can't add a pom from the repository
> -----------------------------------
>
>          Key: CONTINUUM-334
>          URL: http://jira.codehaus.org/browse/CONTINUUM-334
>      Project: Continuum
>         Type: Bug
>   Components: continuum-core
>     Reporter: Brett Porter
>     Assignee: Emmanuel Venisse
>     Priority: Minor
>      Fix For: 1.0-beta-2

>
>
> because it tries to build it like a source file, it fails because of the status in distribution management when adding a pom directly from the repository.

-- 
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: (CONTINUUM-334) can't add a pom from the repository

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/CONTINUUM-334?page=comments#action_48299 ] 

Brett Porter commented on CONTINUUM-334:
----------------------------------------

I'm not sure why you are encountering this. I thought that the parsing method would be "buildFromRepository", not "buildFromSourceFile".


> can't add a pom from the repository
> -----------------------------------
>
>          Key: CONTINUUM-334
>          URL: http://jira.codehaus.org/browse/CONTINUUM-334
>      Project: Continuum
>         Type: Bug
>   Components: continuum-core
>     Reporter: Brett Porter
>     Priority: Minor
>      Fix For: 1.0-beta-2

>
>
> because it tries to build it like a source file, it fails because of the status in distribution management when adding a pom directly from the repository.

-- 
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: (CONTINUUM-334) can't add a pom from the repository

Posted by "Emmanuel Venisse (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/CONTINUUM-334?page=comments#action_48306 ] 

Emmanuel Venisse commented on CONTINUUM-334:
--------------------------------------------

The stack trace is :

jvm 1    | 2005-10-11 10:01:26,296 [SocketListener0-0] INFO  ContinuumProjectBuilder:maven-two-builder - Downloading htt
p://test.maven.codehaus.org/maven2/plexus/plexus-utils/1.0.3/plexus-utils-1.0.3.pom
jvm 1    | 2005-10-11 10:01:27,203 [SocketListener0-0] ERROR MavenBuilderHelper             - Cannot build maven project
 from C:\DOCUME~1\evenisse\LOCALS~1\Temp\continuum-452.tmp.
jvm 1    | org.apache.maven.project.ProjectBuildingException: Invalid project file: distribution status must not be spec
ified for a project outside of the repository
jvm 1    |      at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFile(DefaultMavenProjectBuilder.ja
va:286)
jvm 1    |      at org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:266)
jvm 1    |      at org.apache.maven.continuum.execution.maven.m2.DefaultMavenBuilderHelper.getMavenProject(DefaultMavenB
uilderHelper.java:242)
jvm 1    |      at org.apache.maven.continuum.project.builder.maven.MavenTwoContinuumProjectBuilder.readModules(MavenTwo
ContinuumProjectBuilder.java:100)
jvm 1    |      at org.apache.maven.continuum.project.builder.maven.MavenTwoContinuumProjectBuilder.buildProjectsFromMet
adata(MavenTwoContinuumProjectBuilder.java:83)
jvm 1    |      at org.apache.maven.continuum.core.action.CreateProjectsFromMetadata.execute(CreateProjectsFromMetadata.
java:59)
jvm 1    |      at org.apache.maven.continuum.DefaultContinuum.executeAction(DefaultContinuum.java:1531)
jvm 1    |      at org.apache.maven.continuum.DefaultContinuum.executeAddProjectsFromMetadataActivity(DefaultContinuum.j
ava:521)
jvm 1    |      at org.apache.maven.continuum.DefaultContinuum.addMavenTwoProject(DefaultContinuum.java:455)
jvm 1    |      at org.apache.maven.continuum.web.action.AddMavenTwoProject.uponSuccessfulValidation(AddMavenTwoProject.
java:52)
jvm 1    |      at org.codehaus.plexus.formica.action.AbstractEntityAction.execute(AbstractEntityAction.java:136)
jvm 1    |      at org.codehaus.plexus.summit.pipeline.valve.ActionValve.invoke(ActionValve.java:68)
jvm 1    |      at org.codehaus.plexus.summit.pipeline.AbstractPipeline.invoke(AbstractPipeline.java:70)
jvm 1    |      at org.codehaus.plexus.summit.Summit.doGet(Summit.java:54)
jvm 1    |      at org.codehaus.plexus.summit.Summit.doPost(Summit.java:108)
jvm 1    |      at javax.servlet.http.HttpServlet.service(HttpServlet.java:615)
jvm 1    |      at javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
jvm 1    |      at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:358)
jvm 1    |      at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:294)
jvm 1    |      at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567)
jvm 1    |      at org.mortbay.http.HttpContext.handle(HttpContext.java:1807)
jvm 1    |      at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:525)
jvm 1    |      at org.mortbay.http.HttpContext.handle(HttpContext.java:1757)
jvm 1    |      at org.mortbay.http.HttpServer.service(HttpServer.java:879)
jvm 1    |      at org.mortbay.http.HttpConnection.service(HttpConnection.java:789)
jvm 1    |      at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:960)
jvm 1    |      at org.mortbay.http.HttpConnection.handle(HttpConnection.java:806)
jvm 1    |      at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:218)
jvm 1    |      at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:331)
jvm 1    |      at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:520)
jvm 1    | 2005-10-11 10:01:27,203 [SocketListener0-0] INFO  Continuum                      - Created 0 projects.
jvm 1    | 2005-10-11 10:01:27,203 [SocketListener0-0] INFO  Continuum                      - Created 0 project groups.
jvm 1    | 2005-10-11 10:01:27,203 [SocketListener0-0] INFO  Continuum                      - 1 warnings.
jvm 1    | 2005-10-11 10:01:27,203 [SocketListener0-0] INFO  Continuum                      - Cannot build maven project
 from C:\DOCUME~1\evenisse\LOCALS~1\Temp\continuum-452.tmp.


We use DefaultMavenProjectBuilder.build() instead of DefaultMavenProjectBuilder.buildFromRepository because we have only an url and we don't know that it is a file stored in a repository.


> can't add a pom from the repository
> -----------------------------------
>
>          Key: CONTINUUM-334
>          URL: http://jira.codehaus.org/browse/CONTINUUM-334
>      Project: Continuum
>         Type: Bug
>   Components: continuum-core
>     Reporter: Brett Porter
>     Priority: Minor
>      Fix For: 1.0-beta-2

>
>
> because it tries to build it like a source file, it fails because of the status in distribution management when adding a pom directly from the repository.

-- 
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: (CONTINUUM-334) can't add a pom from the repository

Posted by "Emmanuel Venisse (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/CONTINUUM-334?page=comments#action_48216 ] 

Emmanuel Venisse commented on CONTINUUM-334:
--------------------------------------------

what is your test pom?

> can't add a pom from the repository
> -----------------------------------
>
>          Key: CONTINUUM-334
>          URL: http://jira.codehaus.org/browse/CONTINUUM-334
>      Project: Continuum
>         Type: Bug
>   Components: continuum-core
>     Reporter: Brett Porter
>     Priority: Minor
>      Fix For: 1.0-beta-2

>
>
> because it tries to build it like a source file, it fails because of the status in distribution management when adding a pom directly from the repository.

-- 
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: (CONTINUUM-334) can't add a pom from the repository

Posted by "Emmanuel Venisse (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/CONTINUUM-334?page=comments#action_48231 ] 

Emmanuel Venisse commented on CONTINUUM-334:
--------------------------------------------

we use m2 jars for pars poms and m2 doesn't accept a distributionManagement/status in pom files, so, I can parse file and remove this part from it or do we have an other method that doesn't check distributionManagement/status?

> can't add a pom from the repository
> -----------------------------------
>
>          Key: CONTINUUM-334
>          URL: http://jira.codehaus.org/browse/CONTINUUM-334
>      Project: Continuum
>         Type: Bug
>   Components: continuum-core
>     Reporter: Brett Porter
>     Priority: Minor
>      Fix For: 1.0-beta-2

>
>
> because it tries to build it like a source file, it fails because of the status in distribution management when adding a pom directly from the repository.

-- 
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: (CONTINUUM-334) can't add a pom from the repository

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/CONTINUUM-334?page=comments#action_48308 ] 

Brett Porter commented on CONTINUUM-334:
----------------------------------------

ok, do you want to make the necessary change to the m2 project api? last chance! :)

> can't add a pom from the repository
> -----------------------------------
>
>          Key: CONTINUUM-334
>          URL: http://jira.codehaus.org/browse/CONTINUUM-334
>      Project: Continuum
>         Type: Bug
>   Components: continuum-core
>     Reporter: Brett Porter
>     Priority: Minor
>      Fix For: 1.0-beta-2

>
>
> because it tries to build it like a source file, it fails because of the status in distribution management when adding a pom directly from the repository.

-- 
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