You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Hendy Irawan (Created) (JIRA)" <ji...@apache.org> on 2012/03/25 21:11:27 UTC
[jira] [Created] (DIRSHARED-134) Missing artifact
org.apache.directory.jdbm:apacheds-jdbm2:bundle:2.0.0-M1 when depending on
apacheds-server-jndi
Missing artifact org.apache.directory.jdbm:apacheds-jdbm2:bundle:2.0.0-M1 when depending on apacheds-server-jndi
----------------------------------------------------------------------------------------------------------------
Key: DIRSHARED-134
URL: https://issues.apache.org/jira/browse/DIRSHARED-134
Project: Directory Shared
Issue Type: Bug
Affects Versions: 1.0.0-M11
Reporter: Hendy Irawan
Missing artifact org.apache.directory.jdbm:apacheds-jdbm2:bundle:2.0.0-M1 when depending on :
<dependency>
<groupId>org.apache.directory.server</groupId>
<artifactId>apacheds-server-jndi</artifactId>
<version>2.0.0-M6</version>
</dependency>
It should transitively depend on a "jar" type, not a bundle.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (DIRSHARED-134) Missing artifact
org.apache.directory.jdbm:apacheds-jdbm2:bundle:2.0.0-M1 when depending on
apacheds-server-jndi
Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DIRSHARED-134?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Emmanuel Lecharny updated DIRSHARED-134:
----------------------------------------
Fix Version/s: 1.0.0-M12
> Missing artifact org.apache.directory.jdbm:apacheds-jdbm2:bundle:2.0.0-M1 when depending on apacheds-server-jndi
> ----------------------------------------------------------------------------------------------------------------
>
> Key: DIRSHARED-134
> URL: https://issues.apache.org/jira/browse/DIRSHARED-134
> Project: Directory Shared
> Issue Type: Bug
> Affects Versions: 1.0.0-M11
> Reporter: Hendy Irawan
> Assignee: Pierre-Arnaud Marcelot
> Fix For: 1.0.0-M12
>
>
> Missing artifact org.apache.directory.jdbm:apacheds-jdbm2:bundle:2.0.0-M1 when depending on :
> <dependency>
> <groupId>org.apache.directory.server</groupId>
> <artifactId>apacheds-server-jndi</artifactId>
> <version>2.0.0-M6</version>
> </dependency>
> It should transitively depend on a "jar" type, not a bundle.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (DIRSHARED-134) Missing artifact
org.apache.directory.jdbm:apacheds-jdbm2:bundle:2.0.0-M1 when depending on
apacheds-server-jndi
Posted by "Pierre-Arnaud Marcelot (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DIRSHARED-134?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13238309#comment-13238309 ]
Pierre-Arnaud Marcelot commented on DIRSHARED-134:
--------------------------------------------------
Hi Hendy,
It's weird you are not able to build ApacheDS. We're constantly building it ourselves (on our machines and our CI builds).
I just dropped my entire Maven repository and I'm currently running a fresh build to see if it fails.
IIRC, I added the "type" information on the dependencies because the build would not be successful without it (but I can't remember the exact error).
I'm going to review this and see if we can really get rid of this. I'm afraid it was added there for a reason, but if we can remove it, we'll do it.
> Missing artifact org.apache.directory.jdbm:apacheds-jdbm2:bundle:2.0.0-M1 when depending on apacheds-server-jndi
> ----------------------------------------------------------------------------------------------------------------
>
> Key: DIRSHARED-134
> URL: https://issues.apache.org/jira/browse/DIRSHARED-134
> Project: Directory Shared
> Issue Type: Bug
> Affects Versions: 1.0.0-M11
> Reporter: Hendy Irawan
> Assignee: Pierre-Arnaud Marcelot
>
> Missing artifact org.apache.directory.jdbm:apacheds-jdbm2:bundle:2.0.0-M1 when depending on :
> <dependency>
> <groupId>org.apache.directory.server</groupId>
> <artifactId>apacheds-server-jndi</artifactId>
> <version>2.0.0-M6</version>
> </dependency>
> It should transitively depend on a "jar" type, not a bundle.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (DIRSHARED-134) Missing artifact
org.apache.directory.jdbm:apacheds-jdbm2:bundle:2.0.0-M1 when depending on
apacheds-server-jndi
Posted by "Pierre-Arnaud Marcelot (Resolved) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DIRSHARED-134?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Pierre-Arnaud Marcelot resolved DIRSHARED-134.
----------------------------------------------
Resolution: Fixed
Assignee: Pierre-Arnaud Marcelot
Actually you simply need to add the following lines to your parent/project pom:
<build>
<plugins>
[...]
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<inherited>true</inherited>
<extensions>true</extensions>
</plugin>
[...]
</plugins>
</build>
It will help recognize the 'bundle' type we use when building the JDBM projects.
> Missing artifact org.apache.directory.jdbm:apacheds-jdbm2:bundle:2.0.0-M1 when depending on apacheds-server-jndi
> ----------------------------------------------------------------------------------------------------------------
>
> Key: DIRSHARED-134
> URL: https://issues.apache.org/jira/browse/DIRSHARED-134
> Project: Directory Shared
> Issue Type: Bug
> Affects Versions: 1.0.0-M11
> Reporter: Hendy Irawan
> Assignee: Pierre-Arnaud Marcelot
>
> Missing artifact org.apache.directory.jdbm:apacheds-jdbm2:bundle:2.0.0-M1 when depending on :
> <dependency>
> <groupId>org.apache.directory.server</groupId>
> <artifactId>apacheds-server-jndi</artifactId>
> <version>2.0.0-M6</version>
> </dependency>
> It should transitively depend on a "jar" type, not a bundle.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (DIRSHARED-134) Missing artifact
org.apache.directory.jdbm:apacheds-jdbm2:bundle:2.0.0-M1 when depending on
apacheds-server-jndi
Posted by "Hendy Irawan (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DIRSHARED-134?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13238273#comment-13238273 ]
Hendy Irawan commented on DIRSHARED-134:
----------------------------------------
Trying to compare, Apache Felix is a OSGi-intensive project that builds all its artifacts as packaging=bundle. However for dependencies they don't use type=bundle.
e.g. http://svn.apache.org/repos/asf/felix/trunk/webconsole/pom.xml
which depends (among others):
<dependency>
<groupId>org.apache.felix</groupId>
<artifactId>org.apache.felix.shell</artifactId>
<version>1.0.0</version>
<scope>provided</scope>
</dependency>
both webconsole and org.apache.felix.shell are OSGi bundles but in dependency it doesn't specify type=bundle.
> Missing artifact org.apache.directory.jdbm:apacheds-jdbm2:bundle:2.0.0-M1 when depending on apacheds-server-jndi
> ----------------------------------------------------------------------------------------------------------------
>
> Key: DIRSHARED-134
> URL: https://issues.apache.org/jira/browse/DIRSHARED-134
> Project: Directory Shared
> Issue Type: Bug
> Affects Versions: 1.0.0-M11
> Reporter: Hendy Irawan
> Assignee: Pierre-Arnaud Marcelot
>
> Missing artifact org.apache.directory.jdbm:apacheds-jdbm2:bundle:2.0.0-M1 when depending on :
> <dependency>
> <groupId>org.apache.directory.server</groupId>
> <artifactId>apacheds-server-jndi</artifactId>
> <version>2.0.0-M6</version>
> </dependency>
> It should transitively depend on a "jar" type, not a bundle.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (DIRSHARED-134) Missing artifact
org.apache.directory.jdbm:apacheds-jdbm2:bundle:2.0.0-M1 when depending on
apacheds-server-jndi
Posted by "Hendy Irawan (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DIRSHARED-134?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13238256#comment-13238256 ]
Hendy Irawan commented on DIRSHARED-134:
----------------------------------------
I'm thinking this is the root issue :
http://svn.apache.org/repos/asf/directory/apacheds/trunk/pom.xml
These lines :
<dependency>
<groupId>org.apache.directory.jdbm</groupId>
<artifactId>apacheds-jdbm2</artifactId>
<type>bundle</type>
<version>${org.apache.directory.jdbm.version}</version>
</dependency>
Is it possible to simply remove the <type>bundle</type> line ? All other dependencies do not specify type=bundle, I hope it should work without type=bundle.
> Missing artifact org.apache.directory.jdbm:apacheds-jdbm2:bundle:2.0.0-M1 when depending on apacheds-server-jndi
> ----------------------------------------------------------------------------------------------------------------
>
> Key: DIRSHARED-134
> URL: https://issues.apache.org/jira/browse/DIRSHARED-134
> Project: Directory Shared
> Issue Type: Bug
> Affects Versions: 1.0.0-M11
> Reporter: Hendy Irawan
> Assignee: Pierre-Arnaud Marcelot
>
> Missing artifact org.apache.directory.jdbm:apacheds-jdbm2:bundle:2.0.0-M1 when depending on :
> <dependency>
> <groupId>org.apache.directory.server</groupId>
> <artifactId>apacheds-server-jndi</artifactId>
> <version>2.0.0-M6</version>
> </dependency>
> It should transitively depend on a "jar" type, not a bundle.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (DIRSHARED-134) Missing artifact
org.apache.directory.jdbm:apacheds-jdbm2:bundle:2.0.0-M1 when depending on
apacheds-server-jndi
Posted by "Pierre-Arnaud Marcelot (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DIRSHARED-134?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13238313#comment-13238313 ]
Pierre-Arnaud Marcelot commented on DIRSHARED-134:
--------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 17:40.704s
[INFO] Finished at: Mon Mar 26 14:00:18 CEST 2012
[INFO] Final Memory: 65M/149M
[INFO] ------------------------------------------------------------------------
What Maven/JVM versions are you using?
> Missing artifact org.apache.directory.jdbm:apacheds-jdbm2:bundle:2.0.0-M1 when depending on apacheds-server-jndi
> ----------------------------------------------------------------------------------------------------------------
>
> Key: DIRSHARED-134
> URL: https://issues.apache.org/jira/browse/DIRSHARED-134
> Project: Directory Shared
> Issue Type: Bug
> Affects Versions: 1.0.0-M11
> Reporter: Hendy Irawan
> Assignee: Pierre-Arnaud Marcelot
>
> Missing artifact org.apache.directory.jdbm:apacheds-jdbm2:bundle:2.0.0-M1 when depending on :
> <dependency>
> <groupId>org.apache.directory.server</groupId>
> <artifactId>apacheds-server-jndi</artifactId>
> <version>2.0.0-M6</version>
> </dependency>
> It should transitively depend on a "jar" type, not a bundle.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (DIRSHARED-134) Missing artifact
org.apache.directory.jdbm:apacheds-jdbm2:bundle:2.0.0-M1 when depending on
apacheds-server-jndi
Posted by "Pierre-Arnaud Marcelot (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DIRSHARED-134?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13238258#comment-13238258 ]
Pierre-Arnaud Marcelot commented on DIRSHARED-134:
--------------------------------------------------
No, it isn't possible as the JDBM project is built as an OSGI bundle, thus the 'bundle' type.
All our Shared/API modules are already built as bundles and all ApacheDS modules will be built as OSGI bundles soon too (they already are in some of our branches).
It's as simple as adding the above 6 lines of codes and it shouldn't affect your build in any other way than making sure Maven knows about the 'bundle' type.
> Missing artifact org.apache.directory.jdbm:apacheds-jdbm2:bundle:2.0.0-M1 when depending on apacheds-server-jndi
> ----------------------------------------------------------------------------------------------------------------
>
> Key: DIRSHARED-134
> URL: https://issues.apache.org/jira/browse/DIRSHARED-134
> Project: Directory Shared
> Issue Type: Bug
> Affects Versions: 1.0.0-M11
> Reporter: Hendy Irawan
> Assignee: Pierre-Arnaud Marcelot
>
> Missing artifact org.apache.directory.jdbm:apacheds-jdbm2:bundle:2.0.0-M1 when depending on :
> <dependency>
> <groupId>org.apache.directory.server</groupId>
> <artifactId>apacheds-server-jndi</artifactId>
> <version>2.0.0-M6</version>
> </dependency>
> It should transitively depend on a "jar" type, not a bundle.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (DIRSHARED-134) Missing artifact
org.apache.directory.jdbm:apacheds-jdbm2:bundle:2.0.0-M1 when depending on
apacheds-server-jndi
Posted by "Hendy Irawan (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DIRSHARED-134?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13238265#comment-13238265 ]
Hendy Irawan commented on DIRSHARED-134:
----------------------------------------
Thank you Pierre-Arnaud.
I tried building ApacheDS trunk itself and as it currently stands, I cannot build it without commenting the type=bundle lines.
Is there something special I should do with the apacheds sources in order to build it using Maven ?
What side effect will happen if I comment the type=bundle lines in the <dependency> elements ?
{code}
ceefour@annafi:~/vendor_dev/apacheds$ mvn install -DskipTests
[INFO] Scanning for projects...
[ERROR] The build could not read 3 projects -> [Help 1]
[ERROR]
[ERROR] The project org.apache.directory.server:apacheds-all:2.0.0-M7-SNAPSHOT (/home/ceefour/vendor_dev/apacheds/all/pom.xml) has 1 error
[ERROR] 'dependencies.dependency.version' for org.apache.directory.jdbm:apacheds-jdbm2:bundle is missing. @ line 74, column 17
[ERROR]
[ERROR] The project org.apache.directory.server:apacheds-jdbm-partition:2.0.0-M7-SNAPSHOT (/home/ceefour/vendor_dev/apacheds/jdbm-partition/pom.xml) has 1 error
[ERROR] 'dependencies.dependency.version' for org.apache.directory.jdbm:apacheds-jdbm2:bundle is missing. @ line 58, column 17
[ERROR]
[ERROR] The project org.apache.directory.server:apacheds-protocol-ldap:2.0.0-M7-SNAPSHOT (/home/ceefour/vendor_dev/apacheds/protocol-ldap/pom.xml) has 1 error
[ERROR] 'dependencies.dependency.version' for org.apache.directory.jdbm:apacheds-jdbm2:bundle is missing. @ line 61, column 17
[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/ProjectBuildingException
ceefour@annafi:~/vendor_dev/apacheds$ nano all/pom.xml
ceefour@annafi:~/vendor_dev/apacheds$ mvn install -DskipTests
[INFO] Scanning for projects...
[ERROR] The build could not read 2 projects -> [Help 1]
[ERROR]
[ERROR] The project org.apache.directory.server:apacheds-jdbm-partition:2.0.0-M7-SNAPSHOT (/home/ceefour/vendor_dev/apacheds/jdbm-partition/pom.xml) has 1 error
[ERROR] 'dependencies.dependency.version' for org.apache.directory.jdbm:apacheds-jdbm2:bundle is missing. @ line 58, column 17
[ERROR]
[ERROR] The project org.apache.directory.server:apacheds-protocol-ldap:2.0.0-M7-SNAPSHOT (/home/ceefour/vendor_dev/apacheds/protocol-ldap/pom.xml) has 1 error
[ERROR] 'dependencies.dependency.version' for org.apache.directory.jdbm:apacheds-jdbm2:bundle is missing. @ line 61, column 17
[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/ProjectBuildingException
ceefour@annafi:~/vendor_dev/apacheds$ nano jdbm-partition/pom.xml
ceefour@annafi:~/vendor_dev/apacheds$ mvn install -DskipTests
[INFO] Scanning for projects...
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project org.apache.directory.server:apacheds-protocol-ldap:2.0.0-M7-SNAPSHOT (/home/ceefour/vendor_dev/apacheds/protocol-ldap/pom.xml) has 1 error
[ERROR] 'dependencies.dependency.version' for org.apache.directory.jdbm:apacheds-jdbm2:bundle is missing. @ line 61, column 17
[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/ProjectBuildingException
ceefour@annafi:~/vendor_dev/apacheds$ nano protocol-ldap/pom.xml
ceefour@annafi:~/vendor_dev/apacheds$ mvn install -DskipTests
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] ApacheDS
[INFO] ApacheDS I18n
[INFO] ApacheDS Core Constants
[INFO] ApacheDS Core API
...
{code}
> Missing artifact org.apache.directory.jdbm:apacheds-jdbm2:bundle:2.0.0-M1 when depending on apacheds-server-jndi
> ----------------------------------------------------------------------------------------------------------------
>
> Key: DIRSHARED-134
> URL: https://issues.apache.org/jira/browse/DIRSHARED-134
> Project: Directory Shared
> Issue Type: Bug
> Affects Versions: 1.0.0-M11
> Reporter: Hendy Irawan
> Assignee: Pierre-Arnaud Marcelot
>
> Missing artifact org.apache.directory.jdbm:apacheds-jdbm2:bundle:2.0.0-M1 when depending on :
> <dependency>
> <groupId>org.apache.directory.server</groupId>
> <artifactId>apacheds-server-jndi</artifactId>
> <version>2.0.0-M6</version>
> </dependency>
> It should transitively depend on a "jar" type, not a bundle.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira