Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maven repo / mvnosgi broken #101

Closed
maggu2810 opened this issue Jun 1, 2015 · 24 comments
Closed

Maven repo / mvnosgi broken #101

maggu2810 opened this issue Jun 1, 2015 · 24 comments
Assignees
Labels

Comments

@maggu2810
Copy link
Contributor

... continue of #93
I looked at an old channel with mvnosgi artifacts, they are still present.
After I pressed on "refresh aspects" the mvnosgi artifacts are lost in the Maven repo.
The Maven repo is empty, but I have no POMs in the channel, so I do not know if you broke mvnosgi or the whole maven repo.

@ctron
Copy link
Owner

ctron commented Jun 1, 2015

You mean from 0.9.0 to 0.9.1?

@maggu2810
Copy link
Contributor Author

I mean from last one I used till this one I used.
before (working): ?? With 0.9.0 or 0.9.1 it was working
now (broken): 78760ca

Have I to bisect?

@ctron
Copy link
Owner

ctron commented Jun 1, 2015

I fear so ... I just made 0.9.2, which has its own release branch, 0.9.x-release. And should contain only a subset of changes on master. Maybe this already cuts it down.

I am not aware of any changes done for mvnosg, so the problem could be within the MavenServlet.

@afischer211
Copy link

May be the releases 0.9.x should be stabilized before publishing the next big release 0.10.0?
Can I install the fix-version 0.9.2 (see isue #100 ) without further impact on this topic?

@maggu2810
Copy link
Contributor Author

I will edit this post until I found it...

working:

not working:

@ctron
Copy link
Owner

ctron commented Jun 1, 2015

That is why I made a branch for 0.9.x ...

This release 0.9.2 only contains the changes for #97 and #100. The test cases and the integration tests passed. However since it was a quick release, there a higher risk than usual.

@afischer211
Copy link

Ok, but I assume, that the 0.9.2 version is not more faulty than 0.9.1. So I will install 0.9.2 and look forward...

@maggu2810
Copy link
Contributor Author

If I bisected and tested correctly:

b3aedee is the first bad commit

b3aedeeb1d89284298c42f7c7a8b71e9ed55cbe8 is the first bad commit
commit b3aedeeb1d89284298c42f7c7a8b71e9ed55cbe8
Author: Jens Reimann 
Date:   Thu May 28 15:24:15 2015 +0200
    add support for processing RPM file and creating a YUM repository, #16
:040000 040000 ebd7d1685b167d4683ae643579363cf0e3d4c378 dc8ad8266a6ce7d63b9c4320053d06330f670bdc M      de.dentrassi.pm.aspect.common
:040000 040000 5e937ca8919bbc8ff72c758fc5209dab71f929c4 9cb522221eb2fa433e1b338ebcbe4db86e5830cb M      de.dentrassi.pm.aspect
:040000 040000 15ba4cf0d6f563da06ac472d5751f2698931d4d0 264bdb76ac65cf1128f1a655a4aa5d9bb7ba6f2d M      de.dentrassi.pm.common
:040000 040000 69d896fcb6297fae39ba99dc7349b1b3540cd232 9b9a1385fbd488ffedf181f3b065189434e6b84f M      de.dentrassi.pm.deb
:040000 040000 a1381da592b9f29b01bf991b4a05c3aca61ba8d7 2ebfdcef1bad4f322a72bf385d13707f415ffaea M      de.dentrassi.pm.maven
:040000 040000 75e3a6d65da7eb6f94931ac30c5f49c57d291ff0 825b26987ecde09766bc563d6cd8a0dc5fdb9fb2 M      de.dentrassi.pm.p2
:000000 040000 0000000000000000000000000000000000000000 f590386bd5ce61646ee8c6f3895bafc8ba5b7d8d A      de.dentrassi.pm.rpm
:040000 040000 dca56fe60ceb51fed0c0e6598c2a5ea904dc1103 94078ce57f2d6123210e7b6842ac753039f1d820 M      de.dentrassi.pm.storage.service.jpa
:040000 040000 ce4f67fffd96d4db9b8242ffa7440d3b2eec0c8e 5773d640d9168900dcb5f49c7ddaeaad728f5f19 M      de.dentrassi.pm.storage.web
:040000 040000 7a892059d75230c8d3538d01a25a09f24fc9db24 b5ac50c0d7d7221514dd764ed3c8cfeb0f42623e M      de.dentrassi.pm.storage
:000000 040000 0000000000000000000000000000000000000000 2eb7c895af4fb2a0acdc221b58d5bf92a8ae9388 A      de.dentrassi.rpm.tests
:000000 040000 0000000000000000000000000000000000000000 7e1e29c1e9e289955731a97041a5b20772e423db A      de.dentrassi.rpm
:000000 040000 0000000000000000000000000000000000000000 0b258bc4394d0836079d8c7ada0483c98b0aa104 A      org.tukani.xz
:040000 040000 6b1777a40acfd04ea01d1977b4799cf23cc9acce 5765922e875f8b9054efe3a6e5ee9193b40577e2 M      runtime

@ctron
Copy link
Owner

ctron commented Jun 1, 2015

So I could only imagine that:

@@ -138,6 +138,7 @@
         final DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance ();
         try
         {
+            dbf.setNamespaceAware ( true );
             this.db = dbf.newDocumentBuilder ();
         }
         catch ( final ParserConfigurationException e )

would cause troubles.

Most other changes in this commit seem either irrelevant or ok.

Do you have a channel export?

@ctron
Copy link
Owner

ctron commented Jun 1, 2015

Ok, when the MavenInformationExtractor tries to read out the POM file information it seems not to find the GAV elements.

@ctron
Copy link
Owner

ctron commented Jun 1, 2015

Commenting out:

// this.dbf.setNamespaceAware ( true );

restores the functionality

@maggu2810
Copy link
Contributor Author

You could reproduce it in a simple way:

working

  • git checkout f67e9f3
  • rebuild using Eclipse IDE
  • start using Eclipse launch config
  • create new channel
  • edit, configure aspects, add: mvnosgi (with dependencies)
  • add an OSGi jar using "drop artifacts" (used: de.dentrassi.pm_0.9.0.20150520-0903.jar)
  • click on "Maven Repository" and see the mvnosgi group there
  • stop Package Drone in the Eclipse IDE

not working

  • git checkout b3aedee
  • rebuild using Eclipse IDE
  • start using Eclipse launch config
  • create new channel
  • edit, configure aspects, add: mvnosgi (with dependencies)
  • add an OSGi jar using "drop artifacts" (used: de.dentrassi.pm_0.9.0.20150520-0903.jar)
  • click on "Maven Repository" and DO NOT see the mvnosgi group there
  • stop Package Drone in the Eclipse IDE

@ctron
Copy link
Owner

ctron commented Jun 1, 2015

@ctron
Copy link
Owner

ctron commented Jun 1, 2015

I fixed the issue in 823a725, which effectively reverts back to uses "non-namespace aware" documents and adds methods to explicitly request them when necessary.

@ctron ctron self-assigned this Jun 1, 2015
@ctron ctron added the bug label Jun 1, 2015
@ctron
Copy link
Owner

ctron commented Jun 1, 2015

It is definitely time for more test cases!

ctron added a commit that referenced this issue Jun 1, 2015
ctron added a commit that referenced this issue Jun 1, 2015
ctron added a commit that referenced this issue Jun 1, 2015
Conflicts:
	de.dentrassi.pm.common/src/de/dentrassi/pm/common/XmlHelper.java
	de.dentrassi.pm.rpm/src/de/dentrassi/pm/rpm/yum/RepositoryCreator.java
ctron added a commit that referenced this issue Jun 1, 2015
Conflicts:
	testing/src/test/java/de/dentrassi/pm/testing/TestSuite.java
ctron added a commit that referenced this issue Jun 1, 2015
@ctron
Copy link
Owner

ctron commented Jun 1, 2015

The test case validates the fix!

@maggu2810
Copy link
Contributor Author

Good, can't check it for myself niw. Will have to wait for tomorrow.

@ctron
Copy link
Owner

ctron commented Jun 1, 2015

I will make another 0.9.x release tomorrow which contains the fix.

@maggu2810
Copy link
Contributor Author

I thought the problematic commit was not part of the 0.9.x branch

@ctron
Copy link
Owner

ctron commented Jun 2, 2015

That's what I thought at first, but I checked and it got piggy backed on a cherry pick. So I will make a 0.9.3 today and continue writing integration tests 😉

@ctron
Copy link
Owner

ctron commented Jun 3, 2015

Is this closed from your point of view?

@maggu2810
Copy link
Contributor Author

Tried to test the current master.
Using the master branch the Eclipse IDE complains about missing constraints (javax.mail and com.sun.mail.handlers).
Ignoring this message results in a lot of errors in the console.

@ctron
Copy link
Owner

ctron commented Jun 3, 2015

You need to re-run the runtime ant script and reload the target platform.

@maggu2810
Copy link
Contributor Author

Thank you, it is working again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants