Comments (11)
@bmarwell I refreshed the 3.8.3-SNAPSHOT
so it contains this fix.
from ci.maven.
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.
I think this line of code is what is adding the .bundle
to the entry.
from ci.maven.
@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.
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.
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.
@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.
Where did you upload the 3.8.3-SNAPSHOT to again?
from ci.maven.
Where did you upload the 3.8.3-SNAPSHOT to again?
sonatype
from ci.maven.
@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.
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)
- Add support for Maven property references in `copyDependencies`
- Add automated test for Podman support
- In multi-module dev mode, the DevUtil compile fails for a sub-module although compile mojo compilation suceeds.
- Duplicate jvm.options entries generated from a single -Dliberty.jvm.xyz=123 system property in v3.10 HOT 3
- Confusing when user provides app config but plugin generates one anyway because of location mismatch HOT 2
- liberty-maven-plugin should rely on the build toolchain configuration to build / rebuild code HOT 3
- Maven plugin prints extraneous warnings HOT 2
- Unable to measure code coverage after migrating to 3.10 HOT 5
- Warning message on download of feature *.esa.ac file when installing features yet feature verification seems to succeed HOT 4
- Support expansion variables for server.env config files
- In liberty:create goal, liberty-plugin-config.xml doesn't reflect precedence of liberty.bootstrap.* props over <bootstrapPropertiesFile> plugin config HOT 2
- Deploy goal doesn't allow for user-specified <springBootApplication> config in server.xml; will always generate deployment config HOT 1
- Exception when 'run' goal is executed for SpringBoot repackaged WAR with looseApplication=false and SB deploy
- Detect installation directory changes when `dev` mode is running and handle it somehow
- Incorrect values in liberty-plugin-config.xml for assemblyArtifact and assemblyInstallDirectory HOT 1
- Handle spaces in project path for devc HOT 3
- Error found when running Liberty dev container mode with Liberty Maven Plugin 3.10.1 on Linux HOT 2
- Maven Version issue HOT 4
- LMP 3.10 and 3.10.1 do not pickup the change from server.xml HOT 4
- In version 3.10.1, encountering an error in 'Start in container' functionality while running in Podman. HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ci.maven.