This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 209602 - Use library props rather than maven-pom volume to associate Maven artifacts
Summary: Use library props rather than maven-pom volume to associate Maven artifacts
Status: RESOLVED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 7.2
Hardware: All All
: P3 normal (vote)
Assignee: Milos Kleint
URL:
Keywords:
Depends on: 209100
Blocks:
  Show dependency tree
 
Reported: 2012-03-14 23:39 UTC by Jesse Glick
Modified: 2012-07-20 13:58 UTC (History)
1 user (show)

See Also:
Issue Type: TASK
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2012-03-14 23:39:24 UTC
See bug #209100 JG02.
Comment 1 Milos Kleint 2012-07-18 07:30:09 UTC
I suppose the format of the properties could look something like this:

<properties>
        <property>
            <name>maven-dependencies</name>
            <value>org.springframework:spring-webmvc:2.5.6.SEC03:jar</value>
        </property>
        <property>
            <name>maven-repositories</name>
            <value>http://repo1.maven.org/maven2/</value>
        </property>
    </properties>

where maven-repositories is a || separated list of repository urls required. central repository can be omitted.
maven-dependencies is a || separated list of dependency declarations, with the following pattern:
groupId:artifactId:version:classifier:type where classifier can be omitted resulting in groupId:artifactId:version:type

I'm not entirely happy with the separator pattern, but I don't see a way to have one property per dependency, unless we come with some sort of numbering scheme.
Comment 2 Milos Kleint 2012-07-18 07:38:07 UTC
we might need also maven-legacy-repositories or format:url in repositories value to denote the maven1 or maven2 repository format. (default vs legacy)
Comment 3 Jesse Glick 2012-07-18 11:39:39 UTC
(In reply to comment #1)
>         <property>
>             <name>maven-repositories</name>
>             <value>http://repo1.maven.org/maven2/</value>
>         </property>

Optional, I presume, and ought to be discouraged in favor of using artifacts in Central.

> || separated list of repository urls

' ' (SPACE) is a perfectly good separator for URLs. Same for GAVs.
Comment 4 Milos Kleint 2012-07-19 19:48:06 UTC
"space" it is.

http://hg.netbeans.org/core-main/rev/09bff123568f

repotype:repourl is the pattern for repositories, central should be omitted.
Comment 5 Quality Engineering 2012-07-20 13:58:18 UTC
Integrated into 'main-golden', will be available in build *201207201342* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/09bff123568f
User: Milos Kleint <mkleint@netbeans.org>
Log: #209602 use properties rather than maven-pom volume to define the maven coordinates representing the library