GithubHelp home page GithubHelp logo

Comments (11)

cherylking avatar cherylking commented on August 11, 2024 1

@bmarwell I refreshed the 3.8.3-SNAPSHOT so it contains this fix.

from ci.maven.

bmarwell avatar bmarwell commented on August 11, 2024

I also tried to add <type>jar</type> to my dependencies, but OL still chose to use the .bundle artifacts.

Internally in Liberty, this leads to a ClassNotFoundException.

from ci.maven.

cherylking avatar cherylking commented on August 11, 2024

I think this line of code is what is adding the .bundle to the entry.

from ci.maven.

cherylking avatar cherylking commented on August 11, 2024

@bmarwell Is the correct extension always jar for a bundle packaging type? My quick search makes me think yes. But this is the first I've seen it used. I think the fix is easy and straight forward.

Not sure why it broke between versions though, as this code has been the same or similar for quite a while (the getAppFileName method used to be in DeployMojoSupport and has always used the packaging type for the extension).

from ci.maven.

bmarwell avatar bmarwell commented on August 11, 2024

Might have been broken because of my commits, no? 😉

Yes you're right. Bundle types are in the end just jar files with extra descriptors. If it wasn't my commit, I have no idea what broke it.

from ci.maven.

bmarwell avatar bmarwell commented on August 11, 2024

I still see this in the apps/shiro.xml file:

    <archive targetInArchive="/WEB-INF/lib/shiro-core-2.0.0-SNAPSHOT.bundle">

You can try yourself. Just check out apache/shiro (main branch) and run:

mvn -Prun-its verify -pl integration-tests/jaxrs/openliberty -am

To deploy without the .war archive and use loose applications instead to reproduce the problem, change <looseApplication>false</looseApplication> to true in integration-tests/jaxrs/openliberty/pom.xml.

But then, thinking about it, maybe my proxy is caching too agressively.

from ci.maven.

cherylking avatar cherylking commented on August 11, 2024

@bmarwell I will double check and reopen if I see the same thing. The test case I modified to include a bundle is passing, but perhaps the changes I made were not enough for the more complex application that you have.

from ci.maven.

bmarwell avatar bmarwell commented on August 11, 2024

Where did you upload the 3.8.3-SNAPSHOT to again?

from ci.maven.

cherylking avatar cherylking commented on August 11, 2024

Where did you upload the 3.8.3-SNAPSHOT to again?

sonatype

from ci.maven.

cherylking avatar cherylking commented on August 11, 2024

@bmarwell I just ran that command successfully after cloning the apache/shiro main branch locally and modifying <looseApplication> to true. I see the following in the apps/shiro...xml file.

 <archive targetInArchive="/WEB-INF/lib/shiro-core-2.0.0-SNAPSHOT.jar">
        <dir sourceOnDisk="/Users/cherylking/gitForks/shiro/core/target/classes" targetInArchive="/"/>
        <file sourceOnDisk="/Users/cherylking/gitForks/shiro/core/target/tmp/META-INF/MANIFEST.MF" targetInArchive="/META-INF/MANIFEST.MF"/>
    </archive>

This ran with my locally built 3.8.3-SNAPSHOT build of LMP. I will wipe out my local .m2 and see if the snapshot in sonatype is not current for some reason.

Update: Even after wiping my local .m2 the build passed successfully using the snapshot available in sonatype. Did you add the following to your pom.xml to pick up the snapshot?

 <pluginRepositories>
        <!-- Configure Sonatype OSS Maven snapshots repository -->
        <pluginRepository>
            <id>sonatype-nexus-snapshots</id>
            <name>Sonatype Nexus Snapshots</name>
            <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
            <releases>
                <enabled>false</enabled>
            </releases>
        </pluginRepository>
    </pluginRepositories>

from ci.maven.

bmarwell avatar bmarwell commented on August 11, 2024

Yes I did, but somehow it didn't work for me. Will check later on why. Thanks for confirming this issue has been resolved! 🙏🏻

from ci.maven.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.